Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » EJB deployment - Project dependencies
EJB deployment - Project dependencies [message #223493] Wed, 05 November 2008 14:59 Go to next message
Jan Marc Hoffmann is currently offline Jan Marc Hoffmann
Messages: 32
Registered: July 2009
Member
Hi!

I am using a jboss server and the eclipse j2ee tools to develop an EJB
app. The auto deployment feature works well except for a small problem.
The deploy mechanism does only deploy files within the project. It does
not deploy needed deps from the project dependencies.

As example: If i use only files that are part of my server project it
works just fine. But if i copy the files in another project (shared) and
create a project dependency i wont be able to deploy the server project
anymore. The resulting server.jar does not contain the needed class files
from the shared project. If I deploy it manually it works just fine.

I hope someone has an idea how to solve this.

thanks in advance
Jan Marc
Re: EJB deployment - Project dependencies [message #223597 is a reply to message #223493] Thu, 06 November 2008 13:25 Go to previous message
Kaloyan Raev is currently offline Kaloyan Raev
Messages: 183
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

What type of project do you publish to the appserver? A standalone EJB or
packed in an EAR?
If you publish an EAR project then you can specify dependencies to the used
shared libraries and they will be deployed on the server toghether with the
EAR.
You need to go to the EAR project's Properties > Java EE Module
Dependencies. There you can point to the modules and JARs you want to pack
toghether.

Greetings,
Kaloyan

"Jan Marc Hoffmann" <exelnet@exelnet.de> wrote in message
news:86304cd47db295d46740124bbd48fdd3$1@www.eclipse.org...
> Hi!
>
> I am using a jboss server and the eclipse j2ee tools to develop an EJB
> app. The auto deployment feature works well except for a small problem.
> The deploy mechanism does only deploy files within the project. It does
> not deploy needed deps from the project dependencies.
>
> As example: If i use only files that are part of my server project it
> works just fine. But if i copy the files in another project (shared) and
> create a project dependency i wont be able to deploy the server project
> anymore. The resulting server.jar does not contain the needed class files
> from the shared project. If I deploy it manually it works just fine.
>
> I hope someone has an idea how to solve this.
>
> thanks in advance
> Jan Marc
>
>
Previous Topic:refactoring framework and EMF2DOMSSE
Next Topic:tag selection for copy/cut
Goto Forum:
  


Current Time: Sun Apr 20 02:57:39 EDT 2014

Powered by FUDForum. Page generated in 0.11121 seconds