No EJB receiver available for handling [appName:,modulename:MyMavenWebpp,distinctname:] combination
ous2k Apr 5, 2012 4:20 AMHi i' m new in EJB3
i'm trying a simple hello example but get this error
i'm using
Jboss 7.1 eclipse 3.7 maven3
i' confused if this is a library problem or properties file problem?
Depandancies used
<!-- EJB3 libraries --> | |||
<dependency> | |||
<groupId>org.jboss.xnio</groupId> | |||
<artifactId>xnio-api</artifactId> | |||
<version>3.0.3.GA</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss.xnio</groupId> | |||
<artifactId>xnio-nio</artifactId> | |||
<version>3.0.3.GA</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss.sasl</groupId> | |||
<artifactId>jboss-sasl</artifactId> | |||
<version>1.0.0.Beta9</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss.remoting3</groupId> | |||
<artifactId>jboss-remoting</artifactId> | |||
<version>3.2.0.CR8</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss.marshalling</groupId> | |||
<artifactId>jboss-marshalling</artifactId> | |||
<version>1.3.4.GA</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss.marshalling</groupId> | |||
<artifactId>jboss-marshalling-river</artifactId> | |||
<version>1.3.4.GA</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss</groupId> | |||
<artifactId>jboss-ejb-client</artifactId> | |||
<version>1.0.0.Beta11</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jboss.as</groupId> | |||
<artifactId>jboss-as-controller-client</artifactId> | |||
<version>7.0.2.Final</version> | |||
</dependency> |
the file jboss-ejb-client.properties is under java sources since it is a web project :
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port = 4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
/***********************************************/
ejb:/MyMavenWebpp//HelloWorldBean!com.ibytecode.business.HelloWorld
avr. 05, 2012 10:02:13 AM org.jboss.ejb.client.EJBClient <clinit>
INFO: JBoss EJB Client version 1.0.0.Beta11
Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:MyMavenWebpp,distinctname:] combination
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:344)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:92)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:83)
at $Proxy0.sayHello(Unknown Source)
at com.ibytecode.client.EJBApplicationClient.main(EJBApplicationClient.java:14)