Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » reference other projects in web project?(getting ClassNotFoundException)
icon5.gif  reference other projects in web project? [message #660481] Fri, 18 March 2011 11:19 Go to next message
elhanan Maayan is currently offline elhanan Maayan
Messages: 131
Registered: November 2009
Senior Member
hi.

i don't know if it's possible but i've added in the build path of a dynamic web project a reference to another project, although this does compile when i try to launch the servlet it cannot find the classes in the other project.
Re: reference other projects in web project? [message #660484 is a reply to message #660481] Fri, 18 March 2011 11:27 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3136
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 18-Mar-11 09:19, elhanan wrote:
> hi.
>
> i don't know if it's possible but i've added in the build path of a
> dynamic web project a reference to another project, although this does
> compile when i try to launch the servlet it cannot find the classes in
> the other project.

I haven't done this, but surely it's a matter of adding the project to
the Deployment Assembly? (Right-click web project, choose Properties ->
Deployment Assembly -> Add -> Project ...)
Re: reference other projects in web project? [message #660601 is a reply to message #660481] Sat, 19 March 2011 15:23 Go to previous messageGo to next message
elhanan Maayan is currently offline elhanan Maayan
Messages: 131
Registered: November 2009
Senior Member
thanks, initially i tried using the launching of the class path of the container.. but this is better.

altough i did have to fight it over, i had to specify user libraries of hibernate, slf4j and oracle drivers in the Deployment Assembly of the source project itself.
and also had lots of bugs in it.
Re: reference other projects in web project? [message #660602 is a reply to message #660601] Sat, 19 March 2011 16:03 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3136
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.03.19 13:23, elhanan wrote:
> thanks, initially i tried using the launching of the class path of the
> container.. but this is better.
>
> altough i did have to fight it over, i had to specify user libraries of
> hibernate, slf4j and oracle drivers in the Deployment Assembly of the
> source project itself.
> and also had lots of bugs in it.

Sounds like you're on the right track. Yes, you do use the Deployment
Assembly to list everything your web application consumes.
Previous Topic:How to install jst.web facet?
Next Topic:WebService Client (The service definition selected is invalid)
Goto Forum:
  


Current Time: Wed Jul 30 11:35:45 EDT 2014

Powered by FUDForum. Page generated in 0.01738 seconds