This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Why is eclipse deploying me ejb with my web project? 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 » Engineering » IDEs, Version Control and other tools
Bookmark "Why is eclipse deploying me ejb with my web project?" Watch "Why is eclipse deploying me ejb with my web project?" New topic
Author

Why is eclipse deploying me ejb with my web project?

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

I have a web project that is using EJB 3.It has the following:

J2EE modulde dependancies:

EJBTest
EJBTestClient

Project references:


EJBTest
EJBTestClient

Projects on the build path:


EJBTest
EJBTestClient

Everytime I clean/build the project,I get a NameAlreadyBoundException for my EJB.

Why is this?


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

You are getting this error while compiling??? Could you post the exact error you are getting along with the full stack trace?

By the way, what app server are you using? And how is your app being deployed (are you letting Eclipse do it or are you deploying it manually)?


JBoss In Action
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hmm..don't worry about it. I have decided to simplify things a bit by not using a client-jar,and by sticking my ejb-project and web-project in the same EAR. It seems that when I build it publishes to the server automatically(can't seem to find the option to switch it off)It's really quite strange how the glassfish tools bundle for eclipse behaves....It tells me that it can't deploy aplication 'xxx' but then if I look in the autodeploy folder or the admin console application 'xxx' isn't listed.
The glassfish tools bundle for eclipse is doesn't seem to generate the sun-ejb-jar.xml either unless I ask it to create a client-jar.

There also seems to be a bug with my version of eclipse..if you add the JPA facet to a project and then remove it...it will complain that the project still has it bla bla bla
 
Don't get me started about those stupid light bulbs.
 
subject: Why is eclipse deploying me ejb with my web project?
 
Similar Threads
why is xdoclet erroring out?
Importing a package into an EJB project from a Web project
Explain why this IS working(RAD 7 +EJB 2.1)
Returning a handle to a stateful session bean
access java classes defined in another project in Eclipse