"jaikiran" wrote : anonymous wrote : BUILD FAILED | | /usr/java-source/ejb3-tutorial/source/stateless/build.xml:33: /usr/java-source/ejb3-tutorial/source/stateless/${env.JBOSS_HOME}/client not found. | | See this http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/JBossAS5.html Thanks for the help. I have it compiled with ant, but failed when it is trying to do the binding: twp1:stateless # ant Buildfile: build.xml
prepare: [mkdir] Created dir: /usr/java-source/ejb3-tutorial/source/stateless/build [mkdir] Created dir: /usr/java-source/ejb3-tutorial/source/stateless/build/classes compile: [javac] Compiling 5 source files to /usr/java-source/ejb3-tutorial/source/stateless/build/classes ejbjar: [jar] Building jar: /usr/java-source/ejb3-tutorial/source/stateless/build/jboss-ejb3-tutorial-stateless.jar [copy] Copying 1 file to /usr/local/jboss5/server/default/deploy BUILD SUCCESSFUL Total time: 3 seconds twp1:stateless # ant run Buildfile: build.xml prepare: compile: ejbjar: run: [java] Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost and discovery failed with error: javax.naming.Communication Exception: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1 099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]] [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1727) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:680) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673) [java] at javax.naming.InitialContext.lookup(InitialContext.java:392) [java] at org.jboss.tutorial.stateless.client.Client.main(Client.java:34) [java] Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server loc alhost:1099 [Root exception is java.net.ConnectException: Connection refused]] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:311) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1698) [java] ... 4 more [java] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:281) [java] ... 5 more [java] Caused by: java.net.ConnectException: Connection refused [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:277) [java] ... 5 more [java] Java Result: 1 BUILD SUCCESSFUL Total time: 6 seconds JBOSS is with version 5.0 GA and listening on port 8080. Thanks heaps View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237234#4237234 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237234 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user