Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with this example

 
Siamak Saarmann
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Siamak Saarmann
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic