This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes How do I add a jar file to a War file WEB-INF/lib directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How do I add a jar file to a War file WEB-INF/lib directory" Watch "How do I add a jar file to a War file WEB-INF/lib directory" New topic
Author

How do I add a jar file to a War file WEB-INF/lib directory

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
I have created a simple webservice but now I need to add a Jar file to the WEB-INF/lib directory in my WAR file, has anyone got a good example of how to do this. Thanks

Tony
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
<target name="utiljar">
<wspackage output="${build}/${ear_file}" warName="${war_file}" overwrite="False" utilJars="${lib}/${middleware_jar_file}"/>
</target>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I add a jar file to a War file WEB-INF/lib directory
 
Similar Threads
ClassNotFoundException while trying to connect to Oracle
WAR file and its inside classes
WAR file search order: classes, lib, root?
Spring Tomcat Application - Startup Problems
JavaServer Faces 1.2 and Tomcat 5.5