Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » reference other projects in web project?(getting ClassNotFoundException)
icon5.gif  reference other projects in web project? [message #660481] Fri, 18 March 2011 15:19 Go to next message
elhanan Maayan is currently offline elhanan MaayanFriend
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 15:27 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
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 19:23 Go to previous messageGo to next message
elhanan Maayan is currently offline elhanan MaayanFriend
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 20:03 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
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: Thu Apr 25 15:08:17 GMT 2024

Powered by FUDForum. Page generated in 0.03890 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top