users@glassfish.java.net

JNDI resource lookup error in custom realm

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Feb 2009 03:49:13 PST

Hello,

I am currently trying to develop a custom JDBC-based realm. I have a JDBC resource and a connection pool set up.
The server won't even start up. It fails while loading the realm and executing the following lines:
[i]
Context initContext = new InitialContext();
DataSource pool = (DataSource) initContext.lookup("jdbc/jooss_dev");[/i]



The exceptions I get are as follows (I do not include the full stack trace for the sake of clarity):

Looking up JNDI resource with ConnectorRuntime: jdbc/jooss_dev
EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false
"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3820"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
Caused by: java.io.IOException: IOP5080: The server port '3 820' is not specified in iiop listener for SSL.

"IOP02310202: (OBJ_ADAPTER) Error in connecting servant to ORB"
org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
Caused by: java.io.IOException: IOP5080: The server port '3 820' is not specified in iiop listener for SSL.

UTIL6009:Unexcpected Exception in createORB.
org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
Caused by: java.io.IOException: IOP5080: The server port '3 820' is not specified in iiop listener for SSL.

Can't find SerialContextProvider
SEC1100: Disabled realm [joosss-dev-realm] due to errors.
SEC1000: Caught exception.
com.sun.enterprise.security.auth.realm.BadRealmException: com.sun.enterprise.security.auth.realm.BadRealmException: javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is java.lang.RuntimeException: org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No]
Caused by: com.sun.enterprise.security.auth.realm.BadRealmException: javax.naming.CommunicationException: Can't find

SerialContextProvider [Root exception is java.lang.RuntimeException: org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No]
Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is java.lang.RuntimeException: org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No]
Caused by: java.lang.RuntimeException: org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No
Caused by: org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
Caused by: java.io.IOException: IOP5080: The server port '3 820' is not specified in iiop listener for SSL.




Any help would be appreciated.

Best regards,
Adam Oldak
[Message sent by forum member 'adamoldak' (adamoldak)]

http://forums.java.net/jive/thread.jspa?messageID=329824