Dear,...,
I’m a new in JBoss esb, I got a lot of problem when starting with Jboss esb,
I’m following step by step to run helloworld quickstart in the document Getting_Started_Guide.pdf.
Here is what I did:
Step1: Install and start Jboss as:
- Download JBoss as 5, placed at C:\JBossESB\jboss-510GA\
- I followed this guide to start Jboss as successfully (jboss-5.1.0.GA),http://docs.jboss.org/jbossas/docs/Installation_Guide/beta500/html-single/index.html
- I looked at the server.log file, no errors logged
Step2: Start with JBoss ESB-4.10
- Download jbossesb-4.10, placed at: C:\JBossESB\jbossesb-4.10
- Follow guide in the document: jbossesb-4.10\docs\en-US\pdf\Getting_Started_Guide.pdf
- You can see the document here: http://docs.jboss.org/jbossesb/docs/4.9/manuals/pdf/Getting_Started_Guide.pdf
- Changed file deployment.properties:
o org.jboss.esb.server.home=C:\\JBossESB\\jboss-510GA
o org.jboss.esb.tomcat.home=C:\\JBossESB\\Tomcat5.5
- go to folder C:\JBossESB\jbossesb-4.10\install\ ant type “ant” to deploy
- Everything gone well, the console display message BUILD SUCCESSFUL
Step 3: Try to run helloworld example
- Go to folder C:\JBossESB\jbossesb-4.10\samples\quickstarts\helloworld\
- Type “ant deploy”
- The console build successful
- Then, I start JBOSS AS, wait until this server start successful
- Stand at C:\JBossESB\jbossesb-4.10\samples\quickstarts\helloworld\
- Type “ant runtest”
- The console raise an error like this:
==================================================================
[echo] Runs Test JMS Sender
[java] Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: http://localhost:8080 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is java.net.ConnectException: Connection timed out: connect]]]
[java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage.setupConnection(SendJMSMessage.java:52)
[java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage.main(SendJMSMessage.java:81)
[java] Caused by: javax.naming.CommunicationException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is java.net.ConnectException: Connection timed out: connect]]
[java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
[java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
[java] ... 5 more
[java] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is java.net.ConnectException: Connection timed out: connect]
[java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
[java] ... 6 more
[java] Caused by: java.net.ConnectException: Connection timed out: connect
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] at java.net.Socket.connect(Socket.java:519)
[java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
[java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
[java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:301)
[java] ... 6 more
BUILD FAILED
C:\JBossESB\jbossesb-4.10\samples\quickstarts\helloworld\build.xml:15: Java returned: 1
==================================================================
- I found the log in listener.log like this:
==================================================================
2011-12-27 16:24:10,062 DEBUG [main][org.jnp.interfaces.TimedSocketFactory] createSocket, hostAddr: http://localhost:8080/67.215.65.132, port: 1099, localAddr: null, localPort: 0, timeout: 0
2011-12-27 16:24:31,093 DEBUG [main][org.jnp.interfaces.NamingContext] Failed to connect to http://localhost:8080:1099
javax.naming.CommunicationException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is java.net.ConnectException: Connection timed out: connect]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage.setupConnection(SendJMSMessage.java:52)
at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage.main(SendJMSMessage.java:81)
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server http://localhost:8080/67.215.65.132:1099 [Root exception is java.net.ConnectException: Connection timed out: connect]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
... 6 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:301)
... 6 more
==================================================================
I try to find the help form some forums on the internet, they said that I need to changed some code in files:
- C:\JBossESB\jbossesb-4.10\samples\quickstarts\helloworld\jndi.properties
o java.naming.provider.url=jnp://localhost:1099 à http://localhost:8080
- C:\JBossESB\jbossesb-4.10\samples\quickstarts\helloworld\src\org\jboss\soa\esb\samples\quickstart\helloworld\test\SendJMSMessage.java
o properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099"); à change to http://localhost:8080
But these did not affect, the above errors still display.
Can anyone please help me to solve this problem.
Thanks
Khanh
Comments