maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neo Anderson <>
Subject javax.naming.CommunicationException: Receive timed out problem
Date Mon, 03 Mar 2008 13:40:52 GMT

I am new to maven. And by following
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
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)

3.)  write stateless session bean

package net.sf.sample;

import javax.ejb.Stateless;

public class Hello implements HelloLocal, HelloRemote{
    public String echo(){
        return "hello\n";

package net.sf.sample;

import javax.ejb.Local;

public interface HelloLocal{
    public String echo();

package net.sf.sample;

import javax.ejb.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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message