The moose likes BEA/Weblogic and the fly likes Please Help with lookup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Please Help with lookup problem" Watch "Please Help with lookup problem" New topic
Author

Please Help with lookup problem

steve dowdall
Ranch Hand

Joined: May 23, 2001
Posts: 36
Hi,
I have an EJB deployed on Weblogic 6.0. The client runs fine from inside Forte. When I try and run the client outside of Forte I get an error saying this:
Exception in thread "main" java.lang.NoClassDefFoundError: com.mycompany.document.DocumentHome
at DocumentClient.lookupHome(DocumentClient.java:42)
Does anyone know why it has a problem dong a lookup outside of Forte? I thought the whole MVC thing was so that I could have a stand alone client hit the WL server from the network.
If you have a client front end, what does it need to envoke the WL server and do a lookup? It works in Forte so I know that it is envoking the create() and it is executing the business methods just fine. What do I have to do to make a standalone client work outside of the Forte IDE?
Can someone enlighten me?
Steve
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 973
Hi,
It problably works on Forte because it keeps a classpath pointing to your ejb classes, to deploy the client sucessfully you can package the home and remote interfaces of your bean with the client classes.
steve dowdall
Ranch Hand

Joined: May 23, 2001
Posts: 36
Thanks,
Is packaging the Remote and Home Interfaces with the client the common practice when deploying a client that needs to access an EJB?
Steve
 
IntelliJ Java IDE
 
subject: Please Help with lookup problem
 
Threads others viewed
Running J2EE example in forte
How can I get to the console of WLS 7?
Question: Ejb communnication with another EJB
Running J2EE Tutorial examples in Forte
EJB# lookup() basic
developer file tools