Dynamic Web Project & Dependencies [message #195458] |
Tue, 03 July 2007 04:32 |
Eclipse User |
|
|
|
Originally posted by: eclipse.news.codefarm.com.au
I've got a dynamic web project which I am trying to run on Tomcat 5.5
through WST.
I'm using Eclipse 3.2.0.
My dynamic web project depends on a few simple Java projects in my
workspace. When I publish and run it, the first reference to a class from
these projects causes a fatal NoClassDefFoundError and the server doesn't
start.
Is there a way to make sure these dependencies are deployed when I publish
my dynamic web project or is it best that I just deploy these as jars wo
WEB-INF/lib with an Ant build before I publish ?
|
|
|
|
Re: Dynamic Web Project & Dependencies [message #195660 is a reply to message #195489] |
Thu, 05 July 2007 00:55 |
Eclipse User |
|
|
|
Originally posted by: eclipse.news.codefarm.com.au
Aha that's tricked it.
Thank you Kaloyan.
"Kaloyan Raev" <kaloyan.raev@sap.com> wrote in message
news:f6d4ei$grf$1@build.eclipse.org...
> You can.
>
> 1. Right click on the Dynamic Web Project and choose Properties.
> 2. Go to the J2EE Modules Dependencies.
> 3. In the table you will see your Java project as nodes. Select the ones
> you want to include.
> 4. Click OK.
>
> You will still not see the Java projects you have selected under the
> WEB-INF/lib folder of you web project. But when you do Export or Publish
> of the web project, then the dependent Java projects will be packed as
> JARs and included in the WEB-INF/lib of the produced WAR file.
>
>
> "Ben Iggulden" <eclipse.news@codefarm.com.au> wrote in message
> news:f6cjhg$hbh$1@build.eclipse.org...
>> I've got a dynamic web project which I am trying to run on Tomcat 5.5
>> through WST.
>> I'm using Eclipse 3.2.0.
>>
>> My dynamic web project depends on a few simple Java projects in my
>> workspace. When I publish and run it, the first reference to a class
>> from these projects causes a fatal NoClassDefFoundError and the server
>> doesn't start.
>>
>> Is there a way to make sure these dependencies are deployed when I
>> publish my dynamic web project or is it best that I just deploy these as
>> jars wo WEB-INF/lib with an Ant build before I publish ?
>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02250 seconds