Skip to main content



      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 11:19 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 23 09:46:45 EDT 2025

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

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

Back to the top