aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 5823
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why is eclipse deploying me ejb with my web project?