Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Dynamic Web Project & Dependencies
Dynamic Web Project & Dependencies [message #195458] Tue, 03 July 2007 04:32 Go to next message
Eclipse UserFriend
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 #195489 is a reply to message #195458] Tue, 03 July 2007 09:21 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 189
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 ?
>
>
>
Re: Dynamic Web Project & Dependencies [message #195660 is a reply to message #195489] Thu, 05 July 2007 00:55 Go to previous message
Eclipse UserFriend
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 ?
>>
>>
>>
>
>
Previous Topic:How to create a new Server for WebSphere 5.1
Next Topic:java.lang.NoSuchMethodError: org.apache.naming.NamingContextBindingsEnumeration. <init>
Goto Forum:
  


Current Time: Sat Dec 20 21:43:59 GMT 2014

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

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