Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » dependency deplyoment tomcat
dependency deplyoment tomcat [message #151367] Sun, 11 December 2005 20:32 Go to next message
Stefan Groschupf is currently offline Stefan GroschupfFriend
Messages: 24
Registered: July 2009
Junior Member
Hi there,
really strange, looks like this is a common issue since 0.7 but browsing
all postings and spending hours to figure out the way to do, I'm still do
not know, how to get a eclipse java project deployed into the web-inf/lib
folder of my web project.

So what do I need to do, in case I have a java project in my eclipse and I
want to use a class from this project in my jsp page. It is not a problem
to add this project to my java build path and vola the content assist etc.
works fine.
But wtp does never build a jar of this project and deployed it to my
web-inf/lib folder. So browsing and testing my page within tomcat throws
an unknown class excetption in tomcat.
I notice the j2ee dependencies configuration menu and select my project
there as well, but still it is not build/copy to web-inf/lib -> jsp not
browsable.

Please, give me any hint how to get the referenced project copied to my
web-inf/lib. Also let me ask what is the status of the statement in the
help that j2ee dependencies only work for websphere, since I work with
tomcat 5.5.

Thanks.
Stefan
Re: dependency deplyoment tomcat [message #151375 is a reply to message #151367] Sun, 11 December 2005 22:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pecanov.mt.net.mk

--=-6dAx76m8KvypSHGq0fzA
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Use Utility projects with WTP. Basically, those are plain Java projects
that are referenced by your J2EE or Dynamic Web Project.
To deploy them along with your EAR/WAR, you have to check them in "J2EE
Module Dependencies" property page in your projects preferences.

If the list in this property page is empty, (and you do have availible
Java Projects in your workspace), try using WTP 1.0 RC2. It worked for
me.

On Sun, 2005-12-11 at 20:32 +0000, Stefan Groschupf wrote:

> Hi there,
> really strange, looks like this is a common issue since 0.7 but browsing
> all postings and spending hours to figure out the way to do, I'm still do
> not know, how to get a eclipse java project deployed into the web-inf/lib
> folder of my web project.
>
> So what do I need to do, in case I have a java project in my eclipse and I
> want to use a class from this project in my jsp page. It is not a problem
> to add this project to my java build path and vola the content assist etc.
> works fine.
> But wtp does never build a jar of this project and deployed it to my
> web-inf/lib folder. So browsing and testing my page within tomcat throws
> an unknown class excetption in tomcat.
> I notice the j2ee dependencies configuration menu and select my project
> there as well, but still it is not build/copy to web-inf/lib -> jsp not
> browsable.
>
> Please, give me any hint how to get the referenced project copied to my
> web-inf/lib. Also let me ask what is the status of the statement in the
> help that j2ee dependencies only work for websphere, since I work with
> tomcat 5.5.
>
> Thanks.
> Stefan
>

--=-6dAx76m8KvypSHGq0fzA
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
Use Utility projects with WTP. Basically, those are plain Java projects that are referenced by your J2EE or Dynamic Web Project.<BR>
To deploy them along with your EAR/WAR, you have to check them in &quot;J2EE Module Dependencies&quot; property page in your projects preferences.<BR>
<BR>
If the list in this property page is empty, (and you do have availible Java Projects in your workspace), try using WTP 1.0 RC2. It worked for me.<BR>
<BR>
On Sun, 2005-12-11 at 20:32 +0000, Stefan Groschupf wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi there, </FONT>
<FONT COLOR="#000000">really strange, looks like this is a common issue since 0.7 but browsing </FONT>
<FONT COLOR="#000000">all postings and spending hours to figure out the way to do, I'm still do </FONT>
<FONT COLOR="#000000">not know, how to get a eclipse java project deployed into the web-inf/lib </FONT>
<FONT COLOR="#000000">folder of my web project.</FONT>

<FONT COLOR="#000000">So what do I need to do, in case I have a java project in my eclipse and I </FONT>
<FONT COLOR="#000000">want to use a class from this project in my jsp page. It is not a problem </FONT>
<FONT COLOR="#000000">to add this project to my java build path and vola the content assist etc. </FONT>
<FONT COLOR="#000000">works fine. </FONT>
<FONT COLOR="#000000">But wtp does never build a jar of this project and deployed it to my </FONT>
<FONT COLOR="#000000">web-inf/lib folder. So browsing and testing my page within tomcat throws </FONT>
<FONT COLOR="#000000">an unknown class excetption in tomcat.</FONT>
<FONT COLOR="#000000">I notice the j2ee dependencies configuration menu and select my project </FONT>
<FONT COLOR="#000000">there as well, but still it is not build/copy to web-inf/lib -&gt; jsp not </FONT>
<FONT COLOR="#000000">browsable.</FONT>

<FONT COLOR="#000000">Please, give me any hint how to get the referenced project copied to my </FONT>
<FONT COLOR="#000000">web-inf/lib. Also let me ask what is the status of the statement in the </FONT>
<FONT COLOR="#000000">help that j2ee dependencies only work for websphere, since I work with </FONT>
<FONT COLOR="#000000">tomcat 5.5.</FONT>

<FONT COLOR="#000000">Thanks.</FONT>
<FONT COLOR="#000000">Stefan</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-6dAx76m8KvypSHGq0fzA--
Re: dependency deplyoment tomcat [message #151444 is a reply to message #151375] Mon, 12 December 2005 10:06 Go to previous messageGo to next message
Stefan Groschupf is currently offline Stefan GroschupfFriend
Messages: 24
Registered: July 2009
Junior Member
Aleksandar,
thanks for the hint, however I tried that and it does not work with rc2.
I already had some java project and select them in j2ee dependencies at
least only add these projects to the build path, but does not deploy them
into web-inf/lib.
I also tried to create a new util project (just one class) and add it to
my web application, but got a strange error message. The great thing is
that this message is not logged and so not available in the pde error log
view. :-(
The error message says something like:
IWAE0010E An internal error occured.


Eclipse:
Version: 3.1.1
Build id: M20050929-0840
jdk 1.4.1
m$ win xp

Please any more hints how to solve this issue, does it really work and
only depends on my system or more people have problems? Should I open a
bug report?
Re: dependency deplyoment tomcat [message #151467 is a reply to message #151444] Mon, 12 December 2005 14:36 Go to previous message
Eclipse UserFriend
Originally posted by: pecanov.mt.net.mk

--=-+Tg/UQFlL+AHIzsJbZa4
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I'm not sure if it is a common problem, but I know it works, since I am
using it every day.
The most common problem is the previous state of the workspace you had.
If you upgraded from 0.7 to a RC, you might want to "recreate"
some of the projects you were using with 0.7. That was all the fixes I
needed. However, you might check on some things:

When using RC2 now, the J2EE dependencies should be visible in the
server view, inside the application you are deploying to a specific
server.
If starting tomcat locally from workspace, try turning of the "Run from
workspace" option in configuration window, clean projects and start
Tomcat. This way, you make sure the application (hopefully, allong with
the dependencies as jars in WEB-INF/lib) will be deployed to Tomcat.

On Mon, 2005-12-12 at 10:06 +0000, Stefan Groschupf wrote:

> Aleksandar,
> thanks for the hint, however I tried that and it does not work with rc2.
> I already had some java project and select them in j2ee dependencies at
> least only add these projects to the build path, but does not deploy them
> into web-inf/lib.
> I also tried to create a new util project (just one class) and add it to
> my web application, but got a strange error message. The great thing is
> that this message is not logged and so not available in the pde error log
> view. :-(
> The error message says something like:
> IWAE0010E An internal error occured.
>
>
> Eclipse:
> Version: 3.1.1
> Build id: M20050929-0840
> jdk 1.4.1
> m$ win xp
>
> Please any more hints how to solve this issue, does it really work and
> only depends on my system or more people have problems? Should I open a
> bug report?
>

--=-+Tg/UQFlL+AHIzsJbZa4
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
I'm not sure if it is a common problem, but I know it works, since I am using it every day.<BR>
The most common problem is the previous state of the workspace you had. If you upgraded from 0.7 to a RC, you might want to &quot;recreate&quot;<BR>
some of the projects you were using with 0.7. That was all the fixes I needed. However, you might check on some things:<BR>
<BR>
When using RC2 now, the J2EE dependencies should be visible in the server view, inside the application you are deploying to a specific server. <BR>
If starting tomcat locally from workspace, try turning of the &quot;Run from workspace&quot; option in configuration window, clean projects and start Tomcat. This way, you make sure the application (hopefully, allong with the dependencies as jars in WEB-INF/lib) will be deployed to Tomcat.<BR>
<BR>
On Mon, 2005-12-12 at 10:06 +0000, Stefan Groschupf wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Aleksandar,</FONT>
<FONT COLOR="#000000">thanks for the hint, however I tried that and it does not work with rc2.</FONT>
<FONT COLOR="#000000">I already had some java project and select them in j2ee dependencies at </FONT>
<FONT COLOR="#000000">least only add these projects to the build path, but does not deploy them </FONT>
<FONT COLOR="#000000">into web-inf/lib.</FONT>
<FONT COLOR="#000000">I also tried to create a new util project (just one class) and add it to </FONT>
<FONT COLOR="#000000">my web application, but got a strange error message. The great thing is </FONT>
<FONT COLOR="#000000">that this message is not logged and so not available in the pde error log </FONT>
<FONT COLOR="#000000">view. :-(</FONT>
<FONT COLOR="#000000">The error message says something like:</FONT>
<FONT COLOR="#000000">IWAE0010E An internal error occured.</FONT>


<FONT COLOR="#000000">Eclipse:</FONT>
<FONT COLOR="#000000">Version: 3.1.1</FONT>
<FONT COLOR="#000000">Build id: M20050929-0840</FONT>
<FONT COLOR="#000000">jdk 1.4.1</FONT>
<FONT COLOR="#000000">m$ win xp</FONT>

<FONT COLOR="#000000">Please any more hints how to solve this issue, does it really work and </FONT>
<FONT COLOR="#000000">only depends on my system or more people have problems? Should I open a </FONT>
<FONT COLOR="#000000">bug report?</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-+Tg/UQFlL+AHIzsJbZa4--
Previous Topic:Attemp to create JBoss4-Serverdef for M9
Next Topic:Dependent web modules don't deploy
Goto Forum:
  


Current Time: Thu Apr 25 04:24:32 GMT 2024

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

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

Back to the top