• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for Screenshot.gif]
This is how my jar is looking like
 
Kumar Raja
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any suggestion on my question ?
 
Kumar Raja
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kumar Raja, please could you specify what were the changes you made in jboss-ejb.properties file
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic