• 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

java.lang.ClassNotFoundException: javax.ejb.EJBHome

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I now read about EJB and now want to test some things to understand the functions better. I have a Tomcat Server with struts and an "remote" (not on the same JVM, but on the same pc) openejb server.

<b>My programming environment:</b>
1.) Eclipse Helios
2.) Tomcat 6
3.) struts 2.2.1
4.) OpenEJB 3.1.2

<b>What I made:</b>
1.) I run (deploy) my ejb project on my openejb server. All works fine!
2.) I run my client on my tomcat server. When I request my Client (which is an Action in my struts2 framework) and this wants to lookup the remote Bean an <i>java.lang.reflect.InvocationTargetException</i> occurs.
I think my Client finds the Bean <i>(because I tried another name for the lookup and than an javax.naming.NameNotFoundException occurs)</i>.

I have the following <b>libs</b> in my lib directory on my server for the bean handling:
- openejb-client-3.1.1.jar
- javaee-api-5.0-2.jar

Please help me I don't come further with this Error.

<b>My Client:</b>


<b>This is my error message:</b>
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Dude,

I can't see any EJB Class imported in your client code i.e "TaskRemote" is not imported.



HTH,

Aalok
 
Matthias Zeilerbauer
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Aalok Singh wrote:Hey Dude,

I can't see any EJB Class imported in your client code i.e "TaskRemote" is not imported.



HTH,

Aalok



Hello,

yeah I really don't know why forgot that :S ... I use Eclipse but the ide didn't complain about it so I oversaw that. In the meantime I installed Tomcat and openejb new and then it worked (without including TaskRemote ... maybe because they are in the same package???) ... I am

 
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic