Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Jars for running dynamic web app
Jars for running dynamic web app [message #225038] Fri, 12 December 2008 19:50 Go to next message
Guy Mac is currently offline Guy MacFriend
Messages: 3
Registered: July 2009
Junior Member
Hello, I am using Eclipse 3.4.0 and a dynamic web project. I've created a
Tomcat 6 server from within Eclipse. But when I run my project ('Run on
Server'), the libraries that are on the build path for compiling are not
available on the server. I guess I'm assuming that deploying on the server
would place these libraries in WEB-INF/lib, but it doesn't seem to be
doing that. What is the right way to get this going?
Re: Jars for running dynamic web app [message #225045 is a reply to message #225038] Fri, 12 December 2008 21:23 Go to previous messageGo to next message
Guy Mac is currently offline Guy MacFriend
Messages: 3
Registered: July 2009
Junior Member
I found that it worked to just link in the jars I need from the lib
directory of Tomcat (outside of Eclipse), it sounds like there are bugs
that require such a workaround for now.
Re: Jars for running dynamic web app [message #225216 is a reply to message #225038] Fri, 12 December 2008 21:49 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Guy Mac wrote:
> Hello, I am using Eclipse 3.4.0 and a dynamic web project. I've created
> a Tomcat 6 server from within Eclipse. But when I run my project ('Run
> on Server'), the libraries that are on the build path for compiling are
> not available on the server. I guess I'm assuming that deploying on the
> server would place these libraries in WEB-INF/lib, but it doesn't seem
> to be doing that. What is the right way to get this going?
>

For a dynamic web project, build path != runtime path. You can use the
Java EE Module Dependencies page of the project's Properties dialog to
identify runtime dependencies. Also, you should find items in the
Problems view related to these jars. Using the Quick Fix for those
items will have the same effect as using the Java EE Module Dependencies
page.

For details about the Tomcat support in WTP, see
http://wiki.eclipse.org/WTP_Tomcat_FAQ.

Cheers,
Larry
Previous Topic:Maven jars but publish locally but are copied into exported war file
Next Topic:Questions on effects of a breaking change
Goto Forum:
  


Current Time: Tue Mar 19 09:07:15 GMT 2024

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

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

Back to the top