File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Screenshot.gif
This is how my jar is looking like
[Thumbnail for Screenshot.gif]
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestion on my question ?
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enable the TRACE level logs for org.jboss.ejb.client package on your client standalone application side and post the logs here.
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Francisco Marin
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kumar Raja, please could you specify what were the changes you made in jboss-ejb.properties file
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic