Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » project dependency
project dependency [message #157199] Thu, 19 January 2006 06:42 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Hi,
Second try... Using eclipse 3.1.1 and WTP 1.0
I have a dynamic web project that uses a class from a different project.
I've set the dynamic web project to be dependant on that other project, and
it compiles OK. The problem is that when I try running it I get
NoClassDefFoundError for that class.
Is there anything I am doing wrong? Is this a known issue?
Thanks,
Zohar.
Re: project dependency [message #157216 is a reply to message #157199] Thu, 19 January 2006 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tiller.lau.mlu.lsa-net.de

I have exactly the same problem.
The problem came with Eclipse 3.1.1+WTP 1.0 and all was fine with Eclipse
3.1.0+WTP 0.7.
And I have no idea..
Re: project dependency [message #157224 is a reply to message #157216] Thu, 19 January 2006 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tiller.lau.mlu.lsa-net.de

After setting up the project once again with Eclipse 3.1.0+WTP 0.7 the
problem arrived also there...
Re: project dependency [message #157314 is a reply to message #157199] Thu, 19 January 2006 15:58 Go to previous messageGo to next message
Alexey Kakunin is currently offline Alexey KakuninFriend
Messages: 16
Registered: July 2009
Junior Member
<br><font size=2 face="sans-serif">The problem is that WTP 1.0 does not
put referenced jars into WEB-INFO/lib then &quot;Published&quot; project
to the server (as I found).</font>
<br><font size=2 face="sans-serif">But! </font>
<br><font size=2 face="sans-serif">You may generate WAR by yourself (Export
-&gt; WAR File) and in my cases it puts external libs under &nbsp;WEB-INFO/lib,
so, after it you may deploy war to the server by yourself and it probably
will work.</font>
<br>
<br><font size=2 face="sans-serif">Or (for JBoss 4.0.3 for example) you
can put your referenced jars under server/&lt;your conf&gt;/lib - and any
application in this configation will able to use them.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Hope it will help!</font>
<br><font size=2 face="sans-serif">Alexey Kakunin<br>
CEO, EmDev<br>
Jdanovskaya nab. 7-10<br>
Saint-Petersburg<br>
197110, Russia<br>
<br>
tel: +7 (812) 235-48-14</font>
Re: project dependency [message #157322 is a reply to message #157314] Thu, 19 January 2006 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: caclark.cox.net

AKakunin@emdev.ru wrote:
>
> The problem is that WTP 1.0 does not put referenced jars into
> WEB-INFO/lib then "Published" project to the server (as I found).
> But!
> You may generate WAR by yourself (Export -> WAR File) and in my cases it
> puts external libs under WEB-INFO/lib, so, after it you may deploy war
> to the server by yourself and it probably will work.
>
> Or (for JBoss 4.0.3 for example) you can put your referenced jars under
> server/<your conf>/lib - and any application in this configation will
> able to use them.
>
>
> Hope it will help!
> Alexey Kakunin
> CEO, EmDev
> Jdanovskaya nab. 7-10
> Saint-Petersburg
> 197110, Russia
>
> tel: +7 (812) 235-48-14

On Project->Properties, did you try to use the J2EE Module Dependencies?
I've used that for a couple of projects that depend upon a common Java
project and it puts the common Java project in the WEB-INF/lib as a jar
file with the name of the Java project.

Cary
Re: project dependency [message #157473 is a reply to message #157322] Fri, 20 January 2006 10:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tiller.lau.mlu.lsa-net.de

Thank you very much, Cary, now it works.
I already had that dependency, but without the desired effect. But after
your hint I also pushed the Apply-Button of the form and since then the
modification of the pure Java project automatically (!) chanches also the
WebApp, depending on it.
Re: project dependency [message #157614 is a reply to message #157322] Sun, 22 January 2006 14:32 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Thanks - it works.
My question is - why can't my web module be dependant on another web module
project?

"Cary Clark" <caclark@cox.net> wrote in message
news:dqof82$u4t$1@utils.eclipse.org...
> AKakunin@emdev.ru wrote:
>>
>> The problem is that WTP 1.0 does not put referenced jars into
>> WEB-INFO/lib then "Published" project to the server (as I found).
>> But!
>> You may generate WAR by yourself (Export -> WAR File) and in my cases it
>> puts external libs under WEB-INFO/lib, so, after it you may deploy war
>> to the server by yourself and it probably will work.
>>
>> Or (for JBoss 4.0.3 for example) you can put your referenced jars under
>> server/<your conf>/lib - and any application in this configation will
>> able to use them.
>>
>>
>> Hope it will help!
>> Alexey Kakunin
>> CEO, EmDev
>> Jdanovskaya nab. 7-10
>> Saint-Petersburg
>> 197110, Russia
>>
>> tel: +7 (812) 235-48-14
>
> On Project->Properties, did you try to use the J2EE Module Dependencies?
> I've used that for a couple of projects that depend upon a common Java
> project and it puts the common Java project in the WEB-INF/lib as a jar
> file with the name of the Java project.
>
> Cary
Re: project dependency [message #157645 is a reply to message #157322] Mon, 23 January 2006 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tiller.lau.mlu.lsa-net.de

I already answered: it works now. But the new problem is, that some
configuration files (*.properties, *.xml) from the package root directory
of the pure Java project are not deployed together with the JAR. So the
WebApp not works automatically (!) with the business layer from pure Java
project.
Re: project dependency [message #158325 is a reply to message #157645] Sun, 29 January 2006 17:57 Go to previous message
Eclipse UserFriend
Originally posted by: clechenne.wanadoo.fr

Hi,

Is someone found a solution for the confi files that aren't in the jar ?
Previous Topic:How to use DTD from an attached jar
Next Topic:Using XML-Editor and keeping EMF-Model in sync by changing xml-content with xml-editor
Goto Forum:
  


Current Time: Thu Apr 25 04:11:53 GMT 2024

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

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

Back to the top