aspose file tools*
The moose likes JBoss/WildFly and the fly likes Getting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Getting "No EJB receiver available for handling [appName:,modulename:EJB3TimerService,distinctname:]" Watch "Getting "No EJB receiver available for handling [appName:,modulename:EJB3TimerService,distinctname:]" New topic
Author

Getting "No EJB receiver available for handling [appName:,modulename:EJB3TimerService,distinctname:]

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 522
    
    2

Hello All,

I'm trying to run a sample example from the webpage. After an initial struggle in setting up my environment, I finally got my JBoss 7.1.0 Final running. I created my class files as listed in the tutorial and my project is setup as below screen shot (See attachment). I got my jar deployed and started the server and I also see that



I added jboss-client-7.1.0.Final.jar to my client's classpath.

I also added jboss-ejb-client.properties and this file is co-located with Client.java under EJB3TimerService/ejbModule/edu/learning/ejb3/client, as shown in screen.

The contents of this property file are


Client.java


When I ran the client, I see the below exception stack


Is my client code wrong? or the properties or the location of the properties file.

Please advise.



[Thumbnail for Screenshot.gif]



Regards
KumarRaja

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 522
    
    2

Any suggestion on my question ?
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 522
    
    2

May be my post is too big, to draw any attention. This time, I'll try to put keep the post shorter with precise information.

I tried the same example listed here

My project structure looks like below

Server : JBoss 7.1.0 Final

I deployed my EJB as jar, and I see the below status in logs



Deployment successful

I tried to connect to these EJB from a servlet client deployed along with this EJB as one enterprise app, on same JBoss and I'm able to lookup the proxy using the JNDI string
"java:global/Calculator/CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator"


and able to run the method calculator.add(5,4) resulting 9
However I tried to call the ejb from a standalone client and my client code is an exact copy of the URL mentioned above. In short, my client code trying to do JNDI lookup using the string



and I believe I got the proxy, however upon invoking the method I get



I added jboss-client-7.1.0.Final.jar to the client's classpath and also copied jboss-ejb-client.properties to the source directory, such that this file is exactly in the same path as the class file.


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


But yet, I'm still getting the error. Are there any settings wrong in my client code ?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

Enable the TRACE level logs for org.jboss.ejb.client package on your client standalone application side and post the logs here.

[My Blog] [JavaRanch Journal]
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 522
    
    2

I realized the issue in my client code. the jboss-ejb properties file is not correctly in the classpath That is the reason for the failure.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting "No EJB receiver available for handling [appName:,modulename:EJB3TimerService,distinctname:]