wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes EJB3.0 on Sun WebApp9.0 - dead end! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3.0 on Sun WebApp9.0 - dead end!" Watch "EJB3.0 on Sun WebApp9.0 - dead end!" New topic

EJB3.0 on Sun WebApp9.0 - dead end!

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi guys, wondering if you can help me as I'm a bit stuck with my EJB3.0 remote connection using Sun's Java WebApp9.0 Server.

Quick over-view:
I have a Client.war file which contains my Servlets and the Remote interfaces for teh EJB and other 'client' classes
I have a EJB.jar which contains the EJBs with their interfaces

I need to make a remote connection to the CreateNewUserAccountBean (Stateless) which connects to the Uploader (Entity) Bean
I have tried to post all the relivent parts of the code, but it's quite hard to make sure I have everything.

My code gets as far as the [InitialContext ic = new InitialContext(this.getEjbRemoteProps());] then bombs out claiming it can not find the Uploader class (under EJB.jar)

As I say, there is rather a lost here and it's not the easiest to look through, but kust wondering if there are any glaring erroes in the code.

All the code bits.........









persistence.xml (under EJB.jar)


[ August 26, 2008: Message edited by: Keith Seller ]
Jerwin Louise Uy
Ranch Hand

Joined: Oct 27, 2007
Posts: 75
Have you tried checking the EJB jar whether the class Uploader is properly loaded and recognized as an entity bean?

Uy Jerwin Louise Vergara
Junior Developer / Research and Development at Incuventure Partners Corporation
email: jerwin.uy@incuventure.net
Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Just been looking at an old 'laliluna' I found hidden away on my machine, it looks lik ethe Entity bean needs to be referenced in the sun-ejb-jar.xml as well. So I think you could be right, I will investigate further.
Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Still having no luck with this, I think I've narrowed it down to this line in the [RemoteEjbConnectionManager]

createAccRem = (ICreateAccountRemote) ic.lookup("createNewUserAccountEjb");
wood burning stoves
subject: EJB3.0 on Sun WebApp9.0 - dead end!
Similar Threads
Error deploying EJB Model
Has anyone seen this before with Axis Web services before?
t:inputText id="test", how to get its value?
EJB3.0, mySQL, Queries & Entity Beans?
ResulSet returning nullPointerException where running query