INFO:   httpejbd             127.0.0.1       4204
Line should change so maybe forces yojr external ip.
Le 8 mars 2015 10:09, "thufir" <[email protected]> a écrit :

>
> On 2015-03-07 11:23 PM, Romain Manni-Bucau wrote:
>
>> Hi
>>
>> Did you try editing conf/conf.d/httpejbd.properties and set bind =
>> 0.0.0.0?
>> Le 8 mars 2015 08:10, "thufir" <[email protected]> a écrit :
>>
>>
>>
> Yes, and still cannot connect:
>
>
> thufir@doge:~$
> thufir@doge:~$ java -classpath .:NetBeansProjects/
> HelloClient/dist/HelloClient.jar:apache-openejb-4.7.1/lib/
> openejb-client-4.7.1.jar:netbeans-8.0.2/enterprise/modules/ext/javaee-api-7.0.jar
> org.acme.HelloClient
> Mar 08, 2015 1:03:58 AM org.apache.openejb.client.EventLogger log
> INFO: RemoteInitialContextCreated{providerUri=ejbd://192.168.1.3:4201}
> Mar 08, 2015 1:03:58 AM org.apache.openejb.client.EventLogger log
> WARNING: ConnectionFailed{uri=ejbd://192.168.1.3:4201
> cause=java.io.IOException: Cannot connect to server 'ejbd://
> 192.168.1.3:4201'.  Check that the server is started and that the
> specified serverURL is correct.}
> Mar 08, 2015 1:03:58 AM org.apache.openejb.client.EventLogger log
> WARNING: BootstrappingConnection{provider=ejbd://192.168.1.3:4201}
> Mar 08, 2015 1:03:58 AM org.apache.openejb.client.EventLogger log
> WARNING: ConnectionFailed{uri=ejbd://192.168.1.3:4201
> cause=java.io.IOException: Cannot connect to server 'ejbd://
> 192.168.1.3:4201'.  Check that the server is started and that the
> specified serverURL is correct.}
> Mar 08, 2015 1:03:58 AM org.apache.openejb.client.EventLogger log
> SEVERE: ConnectionStrategyFailed{strategy=StickyConnectionStrategy,
> cluster=org.apache.openejb.client.ClusterMetaData@17616cae, server=ejbd://
> 192.168.1.3:4201}
> Exception in thread "main" javax.naming.NamingException: Cannot lookup
> '/HelloBeanRemote'. [Root exception is java.rmi.RemoteException: Unable to
> connect; nested exception is:
>     java.io.IOException: Cannot connect to server 'ejbd://192.168.1.3:4201'.
> Check that the server is started and that the specified serverURL is
> correct.]
>     at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:405)
>     at javax.naming.InitialContext.lookup(InitialContext.java:411)
>     at org.acme.HelloClient.main(HelloClient.java:16)
> Caused by: java.rmi.RemoteException: Unable to connect; nested exception
> is:
>     java.io.IOException: Cannot connect to server 'ejbd://192.168.1.3:4201'.
> Check that the server is started and that the specified serverURL is
> correct.
>     at org.apache.openejb.client.Client.processRequest(Client.java:167)
>     at org.apache.openejb.client.Client.request(Client.java:141)
>     at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:211)
>     at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:399)
>     ... 2 more
> Caused by: java.io.IOException: Cannot connect to server 'ejbd://
> 192.168.1.3:4201'.  Check that the server is started and that the
> specified serverURL is correct.
>     at org.apache.openejb.client.SocketConnectionFactory$
> SocketConnection.failure(SocketConnectionFactory.java:334)
>     at org.apache.openejb.client.SocketConnectionFactory$
> SocketConnection.open(SocketConnectionFactory.java:308)
>     at org.apache.openejb.client.SocketConnectionFactory.getConnection(
> SocketConnectionFactory.java:162)
>     at org.apache.openejb.client.ConnectionManager.getConnection(
> ConnectionManager.java:112)
>     at org.apache.openejb.client.AbstractConnectionStrategy.connect(
> AbstractConnectionStrategy.java:105)
>     at org.apache.openejb.client.AbstractConnectionStrategy.connect(
> AbstractConnectionStrategy.java:81)
>     at org.apache.openejb.client.ConnectionManager.getConnection(
> ConnectionManager.java:88)
>     at org.apache.openejb.client.Client.processRequest(Client.java:165)
>     ... 5 more
> Caused by: java.net.ConnectException: Connection refused
>     at java.net.PlainSocketImpl.socketConnect(Native Method)
>     at java.net.AbstractPlainSocketImpl.doConnect(
> AbstractPlainSocketImpl.java:339)
>     at java.net.AbstractPlainSocketImpl.connectToAddress(
> AbstractPlainSocketImpl.java:200)
>     at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java:182)
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>     at java.net.Socket.connect(Socket.java:579)
>     at org.apache.openejb.client.SocketConnectionFactory$
> SocketConnection.open(SocketConnectionFactory.java:300)
>     ... 11 more
> thufir@doge:~$
> thufir@doge:~$
> thufir@doge:~$ jar -tf NetBeansProjects/HelloClient/dist/HelloClient.jar
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/acme/
> org/acme/Hello.class
> org/acme/HelloClient.class
> thufir@doge:~$
> thufir@doge:~$
> thufir@doge:~$
> thufir@doge:~$ jar -tf NetBeansProjects/Hello/dist/Hello.jar
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/acme/
> org/acme/Hello.class
> org/acme/HelloBean.class
> thufir@doge:~$
> thufir@doge:~$
>
>
> thanks,
>
> Thufir
>

Reply via email to