Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Dependent jars not published to Tomcat(Eclipse project not publishing dependent JARs to Tomcat installation)
Dependent jars not published to Tomcat [message #729732] Mon, 26 September 2011 21:05 Go to next message
Tom  is currently offline Tom Friend
Messages: 16
Registered: April 2010
Junior Member
I have a large workspace with multiple projects which all go into a web application project. These projects reference large numbers of dependent JARs from various sources, all under the control of Maven.

I recently moved from Eclipse Galileo to Eclipse Indigo and now my Tomcat installation is not receiving any of the dependent JAR files which are supposed to be published into WEB-INF/lib. I only see the three or four JAR files from my projects, not the hundred-plus other JARs that this app needs to run.

Anyone know why this might be?
Re: Dependent jars not published to Tomcat [message #729740 is a reply to message #729732] Mon, 26 September 2011 21:22 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

If you were using a Maven plug-in for Eclipse before, are you still? How were those JARs referenced before?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Dependent jars not published to Tomcat [message #729747 is a reply to message #729740] Mon, 26 September 2011 21:58 Go to previous messageGo to next message
Tom  is currently offline Tom Friend
Messages: 16
Registered: April 2010
Junior Member
Thanks for the reply!

Sorry, I probably should have provided some more detail initially. Yes, this is a workspace which uses both M2E and WTP plugins. It builds the WAR file just fine outside of Eclipse using Maven 3.0.3, which is the same installation of Maven that I have my Eclipse pointed to. All of the problems seem limited to the Eclipse-Tomcat relationship.

I am using M2E Plugin 1.0.0 and WTP plugin 3.3.1, and Tomcat 6.0.32.

This all seemed to work fine under Galileo with M2E .12 and whatever WTP plugin I was using then, so I suspect it's something in the new environment I have not set up correctly.
Re: Dependent jars not published to Tomcat [message #730131 is a reply to message #729747] Tue, 27 September 2011 16:55 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 9/26/2011 5:58 PM, Tom wrote:
> Thanks for the reply!
>
> Sorry, I probably should have provided some more detail initially. Yes,
> this is a workspace which uses both M2E and WTP plugins. It builds the
> WAR file just fine outside of Eclipse using Maven 3.0.3, which is the
> same installation of Maven that I have my Eclipse pointed to. All of the
> problems seem limited to the Eclipse-Tomcat relationship.
>
> I am using M2E Plugin 1.0.0 and WTP plugin 3.3.1, and Tomcat 6.0.32.
>
> This all seemed to work fine under Galileo with M2E .12 and whatever WTP
> plugin I was using then, so I suspect it's something in the new
> environment I have not set up correctly.

There were some changes that occurred in WTP going from Galileo to
Helios that might affect this. Most visible is that the J2EE Module
Dependencies properties page got replaced with a Deployment Assembly
page. Is this project one that migrated from Galileo to Indigo? In your
Markers or Problems (sorted by Type) view, do you see "Classpath
Dependency Validator Message" warnings? Finally, is the project in
Eclipse a single Dynamic Web Project with just direct dependencies on
the jars, or are there also some Utility projects the web project
depends on and those project have dependencies on jars that need to make
their way into the webapp?

Cheers,
Larry
Re: Dependent jars not published to Tomcat [message #730220 is a reply to message #730131] Tue, 27 September 2011 23:00 Go to previous message
Tom  is currently offline Tom Friend
Messages: 16
Registered: April 2010
Junior Member

Yes, I remember seeing the classpath dependency errors, so that was one of the problems.

I managed to solve most of the problems by doing what I considered a fairly desperate move: I deleted all the projects from Eclipse, deleted the .project, .classpath and .settings folder contents from each project, and imported them back into my workspace. Going through that process cleared out most of the gremlins.

Previous Topic:XPath View...skip namespaces
Next Topic:Not Seeing 'faces config editor'
Goto Forum:
  


Current Time: Thu Apr 18 09:29:44 GMT 2024

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

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

Back to the top