Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all 1091 articles
Browse latest View live

JSF 2.2 Proposed Final Draft spec has been posted.

$
0
0

Hello JavaServer users,

JSF 2.2 Proposed Final Draft has been posted.

You may download the draft of the spec at
. You
may try out the implementation by dropping this maven GAV into the
modules directory of GlassFish 3.1.2.2:
org.glassfish:javax.faces:2.2.0-m11. It will also work on Tomcat 7, but
none of the features that require CDI, such as Faces Flows, will be
available. Or you can simply download b80 or later from the GlassFish
4.0 promoted builds.

Please submit your feedback to the "users" list accessible from
. I'd like to extend a special thanks
to Leonardo Uribe and Frank Caputo for their valuable contributions to
the spec effort thus far.

This is blogged at [1].

Sincerely,

Ed Burns JSF 2.2 volunteer group leader

[1]
http://weblogs.java.net/blog/edburns/archive/2013/03/15/jsf-22-proposed
-final-draft-posted


Exception while enabling Client authentication in Glassfish server 3.1.2

$
0
0

Hi,
I have enabled the "client authentication" option at the "SSL" tab at the http-listener-2 configuration screen, and when i restart the server https is not at all available anymore..

I am using self signed certificates generated by keytool command.

How to overcome this? Please help.

Thanks,
Veerabhadrarao.

InitalContext lookup() hangs on standalone client

$
0
0

I have a glassfish server and several stand alone java SE clients running
on the same network but different machines. This code works fine if
the server and client are running on the same machine:

Context ctx = new InitialContext();
OrderNumber orderNumberServer = (OrderNumber) ctx.lookup("java:global/FoodServerEJB/OrderNumberSingleton");

However, this code hangs on the ctx.lookup() line when running on
a different machines. By "hang", I mean the code does not throw any
exceptions, there is no logging output on the server.

I have run the client with the
-Dorg.omg.CORBA.ORBInitialHost=192.168.1.98
and
-Dorg.omg.CORBA.ORBInitialPort=3700

but this does nothing. I have also tried initializing the context by:
Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialHost", "192.168.1.98");
props.put("org.omg.CORBA.ORBInitialPort", "3700");
Context ctx = new InitialContext(props);

When I do the following on the command line:
telnet 192.168.1.98 3700

I get the following response:
Trying 192.168.1.98
Connecting to 192.168.1.98
Escape character is '^]'

I have tried scouring the internet for a solution, including the tutorial at
http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html#nonJavaEEwebcontainer...

I have JMS messaging resources that need to be looked up, and they too hang
at the ctx.lookup step.

Thanks.

Is it possible to use JAAS-authentication with Glassfish in HTML5+ REST client-Server application?

$
0
0

Hi!

What is the best solution to implement an authentication in HTML5 - REST application? I have a software what uses JAAS-authentication + JDBCREalm. I have to re-implement software to use HTML5, is it possible to use the same authentication in case of HTML5 and REST?

Example of JAAS-authentication: http://blog.eisele.net/2013_01_01_archive.html

If it's not possible, what is the best solution to make statelss HTML5-REST application safe?

Thanks!
Sami

FishCAT - GlassFish Server 4.0 Community Acceptance Testing

$
0
0

GlassFish Server 4.0 is under development now and will be released along
with the Java EE 7 platform in Q2 2013. We need your help in testing the
nightly and promoted builds of GlassFish. This provides an opportunity
to significantly influence the quality of GlassFish as well as to
provide early feedback on stability, functionality, and usability
through testing early builds.

The complete list of features and the lightweight process is explained at:

http://glassfish.java.net/fishcat/

Any amount of testing is useful. It can be any where from 1 hr/week to
as much time you can spend. You can test installation, docs, new
functionality, running your existing applications on the latest build,
or any thing else that would make you successful on GlassFish. Bugs
filed by FishCAT participants will be evaluated ahead of other bugs. And
there is a potential to be highlighted on our social media properties.

Test early, test often, and help make your projects successful on
GlassFish Server 4.0.

Your voice is important to us, please make yourself heard.

Thanks,
Arun

--
http://twitter.com/arungupta
http://blogs.oracle.com/arungupta

GlassFish as service cant run Autocad

$
0
0

Hi
I'm developing web application, which use autocad for drawing.
When i run glassfish as application->autocad start ok.
But when I run glassfish as service->autocad doesnt start.
Help me?))

After Glassfish 2.1 restarting, my application is deleted.

$
0
0

Glassfish v2.1, openesb
When I deploy my application, a new folder in "jbi\service-assemblies" named MyServiceCA is created.
Then after Glassfish restarting, the folder remains. It is good.
If I deploy the application again, one more new folder named MyServiceCA.1 is created.
Then after Glassfish restarting, MyServiceCA and MyServiceCA.1 folders are deleted.
Why does it happen?
Thanks for any help.

Use java method in bpel mapping

$
0
0

I use a java method getTestDate () in bpel mapping for optional element "docDate" type Date.

<copy>
<from>ns0:getTestDate($ArrestIn.arrestRequest/tns:MessageData/tns:AppData/tns:person/tns:docDate)</from>
<to>$ArrestOut.arrestResponse/tns:MessageData/tns:AppData/tns:person/tns:docDate</to>
</copy>

If this element contains in the request , then everything is ok.
Why if this element doesn`t contain in the request, then throws NullPointerException?
<faultcode>SOAP-ENV:Server</faultcode>
         <faultstring><![CDATA[BPCOR-6135: A fault was not handled in the process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}java.lang.NullPointerException; Fault Data is &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;jbi:message xmlns:jbi=&quot;http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper&quot; xmlns:sxeh=&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling&quot; type=&quot;sxeh:faultMessage&quot; version=&quot;1.0&quot;&gt;&lt;jbi:part xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:sxeh=&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling&quot; xsi:type=&quot;sxeh:ErrorInfoType&quot;&gt;&lt;pojoException xmlns=&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling&quot;&gt;&lt;class&gt;myutils.MyUtils&lt;/class&gt;&lt;operation/&gt;&lt;exception&gt;java.lang.NullPointerException&lt;/exception&gt;&lt;activity&gt;Assign1&lt;/activity&gt;&lt;activityLineNumber&gt;28&lt;/activityLineNumber&gt;&lt;message/&gt;&lt;cause/&gt;&lt;stackTrace&gt;java.lang.NullPointerException&amp;#13;
at com.sun.jbi.engine.bpel.core.bpel.xpath.functions.POJOFunction.getType(POJOFunction.java:141)&amp;#13

Java metod
public static String getTestDate(String date){
        return "2001-01-01";
    }

Password aliases not propagating to cluster instances

$
0
0

I have a cluster on glassfish 3.1.2.2 (build 5) with an remote node and an instance, I create a passoword alias on the domain admin server to use on a database connection, I ping the database and it works fine, If I try to use it from the istance I get access denied.

When I stop the instance, and restart with sync full, everything works perfectly

is a big problem for us having to restart the entire cluster everytime I add a new connection, since connections are added dynamically for our system relatively often.

thanks

Jose Suero

Error when starting a remote instance. CLI802 Synchronization failed for directory config, caused by: Authentication failed..

$
0
0

Hi all,

I'm fairly new to Glassfish, and I'm working on setting up a high availability proof-of-concept running Liferay on a Glassfish cluster.

I've had no problems with one instance, and have moved on to setting up a Glassfish cluster. I've been following the following guides, and have run into some issues:
http://glassfish.java.net/public/clustering31.html
http://docs.oracle.com/cd/E18930_01/html/821-2426/docinfo.html#scrolltoc

I have created the nodes (one local, one remote), cluster, and instances (also one local, one remote). When I attmept to start the instances, the local instance starts fine, but the remote instance fails with the error in the title. If I try to start that instance locally by logging in to the remote host, I get the following error:

CLI802 Synchronization failed for directory config, caused by:
  remote failure: Unknown server instance: liferayNode3-instance1
Command start-local-instance failed.

During the previous setup steps I created the nodes in the web interface, and set them up with password authentication for SSH. Not sure if this could be related or not.

If I check my /nodes// directory, a folder has been created for the instance, but it is empty.

Running asadmin list-instances shows the instance when I run it on the local machine, but not the remote one.

I hope someone can point me in the right direction. Here is the complete error message I received:

Could not start instance liferayNode2-instance1 on node liferayNode2 (10.0.24.249). Command failed on node liferayNode2 (10.0.24.249): Previous synchronization failed at Mar 20, 2013 2:39:14 PM Will perform full synchronization. Removing all cached state for instance liferayNode2-instance1. Command start-local-instance failed. CLI802 Synchronization failed for directory config, caused by: Authentication failed for user: null (Usually, this means invalid user name and/or password) To complete this operation run the following command locally on host 10.0.24.249 from the GlassFish install location /opt/liferay-portal-6.1.20-ee-ga2: bin/asadmin start-local-instance --node liferayNode2 --sync normal liferayNode2-instance1

paas-console not available glassfish 4.0 B81

UpdateTool proxy server??

$
0
0

Hi,

I am currently reading the Oracle J2EE 6 Tutorial and trying to get started with Glassfish.

I installed Glassfish but am unable to launch the updatetool. I am first prompted with, "The software needed for this command (updatetool) is not installed."

I click 'Y' to specify I would like to download it and I get the message below.

Could not download application packages. This could be because:
- a proxy server is needed to access the internet. Please ensure that
the system proxy server settings in your Internet Options control panel
(under Connections:LAN Settings) are correct, or set the HTTP_PROXY
environment variable to the full URL of the proxy server.
- the package server or network connection is slow.
If you are getting time out errors you can try setting the
PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
environment variables and try again. For example to increase
the timeouts to 300 seconds set them to 300
- the package server is down or otherwise inaccessible or it is
generating invalid data. Please contact the provider of the package
server.

I checked under Connections:LAN settings, and I do not have a proxy server setup. What do I need to set my proxy server to? I have no idea on this. Please help!

Thanks in advance...

Project Fuji Website down?

$
0
0

I would like to ask whether the Project Fuji is still up or not as I was not able to enter their website

asadmin in two locations

$
0
0

What is the difference between glassfish3/bin/asadmin and glassfish3/glassfish/bin/asadmin?

Just want to say "Thank you" for ...

$
0
0

... what you guys made out of Glassfish after Sun Microsystems was eaten by Oracle.

It appears that the number of bugs is increasing instead of lowering down!

Issue # 1:

When downloading the zip-file and unpacking it on sparc platforms involving the unzip command,
the web-ui which is responsible to load the web admin console is still corrupt.

Issue # 2:

when creating a new domain under any Glassfish v4 release with asadmin and having set --usemasterpassword=true, the asadmin command does not ask for the masterpassword for the
keystore. the default password "changeit" is still applied

Issue # 3:

In addition to Issue # 2, when adding pkcs12 files to the keystore - which worked like a charme until Glassfish v3.1, the instance starts with masses of error messages indicating "SSLUtils not found" and without loading the web admin console.

Thus, SSL encryption for virtual hosts appears to be impossible.

Issue # 4

Refers to Glassfish v3.2.2 and all v4 releases. Changing the keystore password with the keytool command after a freshly created domain - what is necessary as the asadmin command never asks for a masterpassword when creating a new domain, the same errors like mentioned in Issue # 3 appear.

Is there any plan to get this solved at least within the next 5 years or better preparing customers to move to a competitor's solution?

Thank you!
DE


(Security Multi-user Client Problem) Bad remote CallerPrincipal when connecting 2 users from my client.

$
0
0

Hi,
I have a very annoying issue with my secured Glassfish 3.1.2.
When I connect 2 (or more) users from my EJB client, I am having always the last connected user when I do this in my EJB: sessionContext.getCallerPrincipal().getName();

Could you please give me a help on this issue?

Here is my client:

public static void main(String[] args) {
new Thread(new Runnable() {
  @Override
  public void run() {
     connectUser("userA", "pwdB");
  }
}).start();

new Thread(new Runnable() {
           @Override
   public void run() {
        connectUser("userB", "pwdB");
   }
}).start();
}

public static void connectUser(String userName, String password) {
try {
     ProgrammaticLogin login = new ProgrammaticLogin();
     login.login(userName, password.toCharArray());
     Context context = new InitialContext();
     MyServiceRemote myService = (MyServiceRemote) context.lookup("MyService");
     String remoteCaller = myService.getUserName();
     System.out.println("Local is (" + userName + "), Remote is (" + remoteCaller + ")");
  } catch (Exception e) {
     e.printStackTrace();
  }
}

Here is my EJB:

@Stateless(mappedName = "MyService", name="MyServiceBean")
public class MyServiceBean implements MyServiceRemote{
@Resource
private SessionContext sessionContext;
public MyServiceBean () {
super();
}
public String getUserName() {
return sessionContext.getCallerPrincipal().getName();
}
}

Deploying BPEL apps from GlassfishESB v2.1 to FUJI GlassfishESB v3.

$
0
0

I would like to know how to deploy the BPEL applications created on GlassfishESB v2.1 to Fuji GlassfishESB v3. The Screencast seems broken..

Inserting to DB after ejbCreate

$
0
0

As I understand it, Glassfish performs all of its Entity Bean insertions at the end of the transaction. I'm migrating a Weblogic application which expects some data to exist in the database once the ejbCreate method ends to prevent foreign key constraint issues.

I've had a look at the "flush-at-end-of-method" setting for my Entity Bean, but this does not appear to work, perhaps I'm configuring it incorrectly.

Does anyone know how I can get my Entity Bean to insert into the DB after the ejbCreate (or even ejbPostCreate) method completes?

I'm using GlassFish 3.1.2

Richard

Websockets with 4.0b81 - pending / half-open connections

$
0
0

Good evening,

I am trying html5 websocket technology with Glassfish. I use the
Glassfish 4 b81 with JSR-356 support built-in. Yet, I fail to actually
really open a websocket. In google Chrome, it says that the websocket
connection is pending. When I try to send something from the browser to
the server via the websocket, I will get invalidDOMException with code
11. Sending something from the server to the client does not result in
any exception (or even log message) but message is never received at
the browser.

Here is my server-side code:

@ServerEndpoint(value="/ws") public class CWSHandler {
@OnOpen public void open(Session S) {
System.out.println("### NEW CONNECTION OPENED ###");
}

@OnMessage public void process(ByteBuffer Data, Session S) {
System.out.println("### GOT MESSAGE ###");
}

@OnError public void error(Session S, Throwable Cause) {
System.out.println("### HAVE ERROR ###");
if (null != Cause) { Cause.printStackTrace(); }
}

@OnClose public void close(Session S, CloseReason Reason) {
System.out.println("### CONNECTION CLOSED ### " +
Reason.getReasonPhrase());
}
}

And here is the client code:

var commChannel = new WebSocket(wsURI);
commChannel.onerror = function (evt) { console.log("Error: " + evt); };
commChannel.onopen = function (evt) {
console.log("Connection opened: " + evt);
try { commChannel.send("Hello world"); }
catch (err) { console.log(err); }
};
commChannel.onclose = function (evt) { console.log("Connection closed:
" + evt); };
commChannel.onmessage = function (evt) { console.log("Received message
from websocket: " + evt); };

The output on the server is:

[2013-03-26T20:23:34.949+0100] [glassfish 4.0] [INFO] [] [] [tid:
_ThreadID=30 _ThreadName=Thread-3] [timeMillis: 1364325814949]
[levelValue: 800] [[
### NEW CONNECTION OPENED ###]]

The output on the client is:
Connection opened: [object Event] line 4
Error: InvalidStateError: DOM Exception 11 line 6

What am I missing?

Regards
Bjoern

UndeclaredThrowableException returned instead of Exception (JMX in Glassfish v2 vs v3)

$
0
0

I have a standalone Java client that uses JMX to administer a server application running inside the Glassfish container. Whenever the server encounters an exception, it throws Exception which is returned to the client via the proxy and handled appropriately by the client.

This is how it worked in Glassfish v2. When we switched to Glassfish v3, the Exception is now wrapped inside an UndeclaredThrowableException and I have to parse that exception to get the underlying cause.

Could someone tell my why this changed between v2 and v3 and how best to handle it?

Viewing all 1091 articles
Browse latest View live