Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Add project jar to Tomcat /lib?
Add project jar to Tomcat /lib? [message #1756250] Tue, 14 March 2017 10:23 Go to next message
Eclipse UserFriend
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 10:25] by Moderator

Re: Add project jar to Tomcat /lib? [message #1756488 is a reply to message #1756250] Fri, 17 March 2017 14:27 Go to previous message
Eclipse UserFriend
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 Jul 10 23:17:01 EDT 2025

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

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

Back to the top