wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Problem with this example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem with this example" Watch "Problem with this example" New topic
Author

Problem with this example

Siamak Saarmann
Ranch Hand

Joined: Aug 21, 2004
Posts: 78
Hello,

Recently live.java.com and theserverside introduced this weblog and its video tutorials.

http://www.thescreencast.com/2007/07/tour-around-europe-eclipse-for-java-ee.html
http://www.thescreencast.com/2007/07/tour-around-europe-eclipse-for-java-ee_04.html

I have built the JPA and EJBs exactly as described and controled the source codes many times but I can not remove this bug.

Could someone please comment what could cause this?

Thank you very much.





This is the code of Client file

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

What does your JNDI tree look like. Going by the code you posted, i assume that you are using JBoss as the application server. Follow the steps below and post the contents of the JNDI tree:

- Go to http://localhost:8080/jmx-console
- Search for service=JNDIView
- Click on that link
- On the page that comes up click on the Invoke button beside the list() method
- The page that comes up will show the contents of the JNDI tree. Post that here.

Also, which version of JBoss are you using?


[My Blog] [JavaRanch Journal]
Siamak Saarmann
Ranch Hand

Joined: Aug 21, 2004
Posts: 78
Thank you very much for your help and sorry for the long list:

I have attached the page you told and the version is 4.2.0.GA. By the way both the Ejb and Persistence units are listed in main page of the jmx-console:



Thank you again for your time and kind help.

Regards,mac



[ July 10, 2007: Message edited by: Siamak Saarmann ]
[ July 10, 2007: Message edited by: Siamak Saarmann ]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

As you rightly mentioned, the JNDI tree does not contain any reference to your bean. Maybe the bean is not recognized in your deployed application? Can you post the code of your CustomerDAOBean(i would be interested in the annotations that have been used for that). Also, if possible can you post the logs from the JBoss server when its starting up. That will show us, the jndi name its using to bind your beans to, when the application is being deployed.
 
Consider Paul's rocket mass heater.
 
subject: Problem with this example