Hi I am new to maven. And by following http://openejb.apache.org/3.0/simple-stateless-example.html I write a simple stateless session bean (ejb3) to test the jboss and maven,but encounter a problem. The error issues
testHelloRemote(net.sf.sample.HelloTest) Time elapsed: 5.06 sec <<< ERROR! javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] The way how I test is 1.) create ejb module mvn archetype:create -DgroupId=net.sf.sample -DartifactId=hello -Dversion=1.0 2.) modify pom.xml (adding dependency to pom.xml and 1.5 compatible) <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </pluginManagement> </build> ... <dependency> <groupId>jboss</groupId> <artifactId>jboss-ejb3x</artifactId> <version>4.0.3</version> <scope>system</scope> <systemPath>${basedir}\lib\jboss-ejb3x.jar</systemPath> </dependency> <dependency> <groupId>jboss</groupId> <artifactId>jnpserver</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${basedir}\lib\jnpserver.jar</systemPath> </dependency> <dependency> <groupId>jboss</groupId> <artifactId>jboss-common</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${basedir}\lib\jboss-common.jar</systemPath> </dependency> 3.) write stateless session bean package net.sf.sample; import javax.ejb.Stateless; @Stateless public class Hello implements HelloLocal, HelloRemote{ public String echo(){ return "hello\n"; } package net.sf.sample; import javax.ejb.Local; @Local public interface HelloLocal{ public String echo(); } package net.sf.sample; import javax.ejb.Remote; @Remote public interface HelloRemote{ public String echo(); 4.) run mvn command mvn clean install What might cause this problem? Thank you very much, env: jboss4.2.2.GA/ maven 2.0.8 / jdk1.6.0_04 __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]