Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is eclipse deploying me ejb with my web project?

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic