vendredi 20 mars 2015

Java-EJB-Anwendung auf Server bzw. Client deployen

Hallo zusammen,



seit mehreren Tagen sitze ich an folgendem Problem, bei welchem mir Google leider auch nicht wirklich weiterhelfen kann, wenngleich ich mir nicht vorstellen kann, dass noch nie jemand das Selbe als ich gemacht hat.



Ich habe eine Java-EJB-Anwendung in Eclipse geschrieben; dort und wenn sämtliche Komponenten (Client und Server) auf dem selben Rechner laufen, funktioniert alles einwandfrei. Nun möchte ich jedoch bzw. habe ich eine Aufteilung dessen insofern vorgenommen, dass der Server-Teil auf einem entfernten Rechner außerhalb meines Netzwerks läuft (über einen freigegebenen Port kann ich ihn jedoch ansprechen) und der Client auf meinem Notebook. Zu diesem Zweck verwende ich auf jenem Server "GlassFish Server Open Source Edition 4.1 (build 13)".

Wenn ich dort nun meine EJB-Anwendung deploye und ebenfalls dort den Client öffne, ist alles bestens; wenn ich den Client jedoch, wie beschrieben, von meinem Rechner aus starte, kommt folgende Fehlermeldung:




Zitat:




org.omg.CORBA.COMM_FAILURE: FEIN: 00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: http:; port: 2809 vmcid: OMG minor code: 1 completed: No

at com.sun.proxy.$Proxy18.connectFailure(Unknown Source)

at com.sun.corba.ee.impl.transport.ConnectionImpl.<init>(ConnectionImpl.java:253)

at com.sun.corba.ee.impl.transport.ConnectionImpl.<init>(ConnectionImpl.java:276)

at com.sun.corba.ee.impl.transport.ContactInfoImpl.createConnection(ContactInfoImpl.java:129)

at com.sun.corba.ee.impl.protocol.ClientRequestDispatcherImpl.beginRequest(ClientRequestDispatcherImpl.java:243)

at com.sun.corba.ee.impl.protocol.ClientDelegateImpl.request(ClientDelegateImpl.java:227)

at com.sun.corba.ee.impl.protocol.ClientDelegateImpl.is_a(ClientDelegateImpl.java:392)

at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:130)

at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)

at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNameService(SerialContext.java:1205)

at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:393)

at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:329)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:477)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)

at javax.naming.InitialContext.lookup(InitialContext.java:417)

at com.sun.enterprise.connectors.jms.system.DefaultJMSConnectionFactory.handle(DefaultJMSConnectionFactory.java:83)

at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:134)

at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:164)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:471)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)

at javax.naming.InitialContext.lookup(InitialContext.java:417)

at FS31Client_UTIL_MessageHandler.initializeJMSConnections(FS31Client_UTIL_MessageHandler.java:42)

at FS31Client_UTIL_MessageHandler.<init>(FS31Client_UTIL_MessageHandler.java:27)

at FS31Client_UTIL_MessageHandler.getInstance(FS31Client_UTIL_MessageHandler.java:35)

at FS31Client_CORE_Main.main(FS31Client_CORE_Main.java:11)

Caused by: java.lang.RuntimeException: java.nio.channels.UnresolvedAddressException

at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:344)

at com.sun.corba.ee.impl.transport.ConnectionImpl.<init>(ConnectionImpl.java:250)

... 23 more

Caused by: java.nio.channels.UnresolvedAddressException

at sun.nio.ch.Net.checkAddress(Net.java:123)

at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:621)

at com.sun.corba.ee.impl.misc.ORBUtility.openSocketChannel(ORBUtility.java:110)

at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:329)

... 24 more

javax.naming.NamingException: Lookup failed for 'java:comp/DefaultJMSConnectionFactory' in SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=4848, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=####, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: Lookup failed for 'jms/__defaultConnectionFactory' in SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=4848, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=####, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=4848, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=####, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is org.omg.CORBA.COMM_FAILURE: FEIN: 00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: http:; port: 2809 vmcid: OMG minor code: 1 completed: No]]]

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)

at javax.naming.InitialContext.lookup(InitialContext.java:417)

at FS31Client_UTIL_MessageHandler.initializeJMSConnections(FS31Client_UTIL_MessageHandler.java:42)

at FS31Client_UTIL_MessageHandler.<init>(FS31Client_UTIL_MessageHandler.java:27)

at FS31Client_UTIL_MessageHandler.getInstance(FS31Client_UTIL_MessageHandler.java:35)

at FS31Client_CORE_Main.main(FS31Client_CORE_Main.java:11)

Caused by: javax.naming.NamingException: Lookup failed for 'jms/__defaultConnectionFactory' in SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=4848, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=####, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=4848, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=####, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is org.omg.CORBA.COMM_FAILURE: FEIN: 00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: http:; port: 2809 vmcid: OMG minor code: 1 completed: No]]

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)

at javax.naming.InitialContext.lookup(InitialContext.java:417)

at com.sun.enterprise.connectors.jms.system.DefaultJMSConnectionFactory.handle(DefaultJMSConnectionFactory.java:83)

at com.sun.enterprise.naming.impl.NamedNamingObjectManager.tryNamedProxies(NamedNamingObjectManager.java:134)

at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:164)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:471)

... 6 more

Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=4848, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=####, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is org.omg.CORBA.COMM_FAILURE: FEIN: 00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: http:; port: 2809 vmcid: OMG minor code: 1 completed: No]

at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:334)

at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:477)

... 12 more

Caused by: org.omg.CORBA.COMM_FAILURE: FEIN: 00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: http:; port: 2809 vmcid: OMG minor code: 1 completed: No

at com.sun.proxy.$Proxy18.connectFailure(Unknown Source)

at com.sun.corba.ee.impl.transport.ConnectionImpl.<init>(ConnectionImpl.java:253)

at com.sun.corba.ee.impl.transport.ConnectionImpl.<init>(ConnectionImpl.java:276)

at com.sun.corba.ee.impl.transport.ContactInfoImpl.createConnection(ContactInfoImpl.java:129)

at com.sun.corba.ee.impl.protocol.ClientRequestDispatcherImpl.beginRequest(ClientRequestDispatcherImpl.java:243)

at com.sun.corba.ee.impl.protocol.ClientDelegateImpl.request(ClientDelegateImpl.java:227)

at com.sun.corba.ee.impl.protocol.ClientDelegateImpl.is_a(ClientDelegateImpl.java:392)

at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:130)

at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)

at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNameService(SerialContext.java:1205)

at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:393)

at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:329)

... 13 more

Caused by: java.lang.RuntimeException: java.nio.channels.UnresolvedAddressException

at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:344)

at com.sun.corba.ee.impl.transport.ConnectionImpl.<init>(ConnectionImpl.java:250)

... 23 more

Caused by: java.nio.channels.UnresolvedAddressException

at sun.nio.ch.Net.checkAddress(Net.java:123)

at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:621)

at com.sun.corba.ee.impl.misc.ORBUtility.openSocketChannel(ORBUtility.java:110)

at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:329)

... 24 more



Ich habe es bereits mit den diversesten Anleitungen aus dem Internet versucht, u.a. mit JMS* Grundlagen** - nichts hilft.



Kann mir hier bitte endlich jemand weiterhelfen?



Vielen Dank

Marcel





Java-EJB-Anwendung auf Server bzw. Client deployen

0 commentaires:

Enregistrer un commentaire