[Javalist] Glassfish 3.1.1 jndi hogyan?
kovacsricsi at gmail.com
kovacsricsi at gmail.com
2011. Dec. 7., Sze, 13:25:49 CET
Szia!
A EE6-ban egységesítették a JNDI eléréseket, már nem alkalmazászerver
függő a dolog.
http://www.theserverside.com/news/1363649/New-Features-in-EJB-31-Part-5
Ricsi
2011/12/7 zamek <zamek at vili.pmmf.hu>:
> hello,
>
> Egy régebbi 3.0 alkalmazásból próbálok áthozni egy ejb-t és a hozzátartozó
> standalone klienst 3.1.1 gf alá.
> Úgy tűnik alaposan megváltozott a jndi.
>
> Az ejb komponens neve Userbean, a UserEjb nevű EJB module-ban található.
> Az ejb-jar.xml-ben ez van:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE glassfish-ejb-jar PUBLIC "-//GlassFish.org//DTD GlassFish
> Application Server 3.1 EJB 3.1//EN"
> "http://glassfish.org/dtds/glassfish-ejb-jar_3_1-1.dtd">
> <glassfish-ejb-jar>
> <enterprise-beans>
> <ejb>
> <ejb-name>UserBean</ejb-name>
> <jndi-name>corbaname:iiop:127.0.0.1:3700#auth/UserBean</jndi-name>
> <ejb-ref>
> <ejb-ref-name>UserBean</ejb-ref-name>
> <jndi-name>corbaname:iiop:127.0.0.1:3700#auth/UserBean</jndi-name>
> </ejb-ref>
> </ejb>
> </enterprise-beans>
> </glassfish-ejb-jar>
>
> Van remote és local interface is.
>
> A standalone kliensben így próbálom megtalálni:
> UserBeanRemote userBeanRemote = (UserBeanRemote)
> ic.lookup("corbaname:iiop:127.0.0.1:3700#java:global/auth/UserBean");
> de próbáltam már java:global nélkül is, ill. UserBeanRemote helyett
> UserBean-nel is.
>
> A serveren beállítottam a jndi log-ot fiest-re, a levél végén látható.
> Vagyis megtalálja, csak éppen a nevet nem tudja feloldani.
>
> Mi a 3.1.1-ben a szükséges jndi formátuma, ill. hol találok egy doksit róla?
> Az Oracle-nál keresgéltem, de úgy tűnik nem jól:(
>
>
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor->: [B at 1496fbd
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor: [B at 1496fbd: ejbId: 4,294,967,297
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor<-: [B at 1496fbd: null
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Returning OID in DER format
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: OID = 2.23.130.1.1.1
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: DER OID: 06 06 67 81 02 01 01 01
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor->: [B at de7dad
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor: [B at de7dad: ejbId: 4,294,967,297
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor<-: [B at de7dad: null
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Returning OID in DER format
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: OID = 2.23.130.1.1.1
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: DER OID: 06 06 67 81 02 01 01 01
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor->: [B at 1d46a99
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor: [B at 1d46a99: ejbId: 4,294,967,297
> FINE: Can not find resource bundle for this logger. class name that failed:
> org.glassfish.enterprise.iiop.impl.GlassFishORBManager
> FINE: POAProtocolMgr.getEjbDescriptor<-: [B at 1d46a99: null
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Returning OID in DER format
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: OID = 2.23.130.1.1.1
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: Can not find resource bundle for this logger. class name that failed:
> com.sun.enterprise.iiop.security.GSSUtils
> FINE: DER OID: 06 06 67 81 02 01 01 01
> FINE: IOP00000001: Unlisted user exception received by client
> org.omg.CORBA.UNKNOWN: FINE: IOP00000001: Unlisted user exception received
> by client vmcid: SUN minor code: 1 completed: Maybe
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
> at
> com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
> at $Proxy211.unknownUserException(Unknown Source)
> at
> com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIEndingPoint(PIHandlerImpl.java:668)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.runInterceptors(CorbaMessageMediatorImpl.java:2189)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.createResponseHelper(CorbaMessageMediatorImpl.java:2101)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.createResponseHelper(CorbaMessageMediatorImpl.java:2089)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.createUserExceptionResponse(CorbaMessageMediatorImpl.java:1930)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.createExceptionReply(CorbaMessageMediatorImpl.java:673)
> at
> org.omg.CosNaming.NamingContextExtPOA._invoke(NamingContextExtPOA.java:380)
> at
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:528)
> at
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:199)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1486)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:990)
> at
> com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:214)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:742)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:539)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2324)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
>
> FINE: IOP00410034: Received java.io.IOException: End-of-stream, in a
> blocking read on connection, SocketOrChannelConnectionImpl[
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:3700
> remote=/127.0.0.1:49893] ESTABLISHED true true], because an end of stream
> was detected
> org.omg.CORBA.COMM_FAILURE: FINE: IOP00410034: Received java.io.IOException:
> End-of-stream, in a blocking read on connection,
> SocketOrChannelConnectionImpl[ java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:3700 remote=/127.0.0.1:49893] ESTABLISHED true true],
> because an end of stream was detected vmcid: OMG minor code: 34
> completed: No
> at sun.reflect.GeneratedConstructorAccessor201.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
> at
> com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
> at $Proxy203.blockingReadEndOfStream(Unknown Source)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.blockingRead(SocketOrChannelConnectionImpl.java:1584)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doOptimizedReadStrategy(SocketOrChannelConnectionImpl.java:1501)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1084)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
> Caused by: java.io.IOException: End-of-stream
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.blockingRead(SocketOrChannelConnectionImpl.java:1583)
> ... 4 more
>
> FINE: IOP00410008: Connection abort
> org.omg.CORBA.COMM_FAILURE: FINE: IOP00410008: Connection abort vmcid: OMG
> minor code: 8 completed: No
> at sun.reflect.GeneratedConstructorAccessor201.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
> at
> com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
> at $Proxy203.connectionAbort(Unknown Source)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doOptimizedReadStrategy(SocketOrChannelConnectionImpl.java:1537)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1084)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
> Caused by: org.omg.CORBA.COMM_FAILURE: FINE: IOP00410034: Received
> java.io.IOException: End-of-stream, in a blocking read on connection,
> SocketOrChannelConnectionImpl[ java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:3700 remote=/127.0.0.1:49893] ESTABLISHED true true],
> because an end of stream was detected vmcid: OMG minor code: 34
> completed: No
> at sun.reflect.GeneratedConstructorAccessor201.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
> at
> com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
> at $Proxy203.blockingReadEndOfStream(Unknown Source)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.blockingRead(SocketOrChannelConnectionImpl.java:1584)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doOptimizedReadStrategy(SocketOrChannelConnectionImpl.java:1501)
> ... 3 more
> Caused by: java.io.IOException: End-of-stream
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.blockingRead(SocketOrChannelConnectionImpl.java:1583)
> ... 4 more
>
> FINE: IOP00410028: Throwable received in doOptimizedReadStrategy
> org.omg.CORBA.COMM_FAILURE: FINE: IOP00410028: Throwable received in
> doOptimizedReadStrategy vmcid: OMG minor code: 28 completed: No
> at sun.reflect.GeneratedConstructorAccessor201.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
> at
> com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
> at $Proxy203.throwableInDoOptimizedReadStrategy(Unknown Source)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doOptimizedReadStrategy(SocketOrChannelConnectionImpl.java:1546)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1084)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
> Caused by: org.omg.CORBA.COMM_FAILURE: FINE: IOP00410034: Received
> java.io.IOException: End-of-stream, in a blocking read on connection,
> SocketOrChannelConnectionImpl[ java.nio.channels.SocketChannel[connected
> local=/127.0.0.1:3700 remote=/127.0.0.1:49893] ESTABLISHED true true],
> because an end of stream was detected vmcid: OMG minor code: 34
> completed: No
> at sun.reflect.GeneratedConstructorAccessor201.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
> at
> com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107)
> at
> com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511)
> at
> com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)
> at $Proxy203.blockingReadEndOfStream(Unknown Source)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.blockingRead(SocketOrChannelConnectionImpl.java:1584)
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doOptimizedReadStrategy(SocketOrChannelConnectionImpl.java:1501)
> ... 3 more
> Caused by: java.io.IOException: End-of-stream
> at
> com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.blockingRead(SocketOrChannelConnectionImpl.java:1583)
> ... 4 more
>
>
> --
> thx,
> ----------------------------------
> Zoltan Zidarics programmer
> PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary
> E-Mail: zamek at vili.pmmf.hu
> ----------------------------------
>
> _______________________________________________
> Javalist mailing list
> Javalist at lists.javaforum.hu
> http://lists.javaforum.hu/mailman/listinfo/javalist
További információk a(z) Javalist levelezőlistáról