Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Add project jar to Tomcat /lib?
Add project jar to Tomcat /lib? [message #1756250] Tue, 14 March 2017 14:23 Go to next message
Mike Wilson is currently offline Mike WilsonFriend
Messages: 9
Registered: July 2009
Junior Member
Is there a convenient way in WTP to have your project add its compiled jar to the Tomcat COMMON classloader? (the classloader loading common stuff from tomcat/lib) The closest place I've found is to add the project in the Classpath tab of Tomcat's Run Configuration but this only allows me to target the BOOTSTRAP and SYSTEM classloaders (these are the parents of the COMMON classloader).

Modules that are used to override Tomcat components (Valve, Manager etc) usually need to go inside the COMMON classloader (tomcat/lib folder) so what is the best way to do this in WTP?

[Updated on: Tue, 14 March 2017 14:25]

Report message to a moderator

Re: Add project jar to Tomcat /lib? [message #1756488 is a reply to message #1756250] Fri, 17 March 2017 18:27 Go to previous message
Mike Wilson is currently offline Mike WilsonFriend
Messages: 9
Registered: July 2009
Junior Member
I'll reply with my own best-effort solution, while not ideal gets the job done:
- edit catalina.properties in the Servers/Tomcat resource folder
- add the absolute path to your project's classes folder like so:
common.loader="${catalina.base}/lib",...,"/home/user/myworkspace/myproject/target/classes"
Previous Topic:Eclipse neon
Next Topic:Eclipse EE Neon No Server tab in Java Perspective
Goto Forum:
  


Current Time: Thu Apr 25 20:17:35 GMT 2024

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

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

Back to the top