wood burning stoves*
The moose likes Servlets and the fly likes Can we jar the servlets and still use them Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can we jar the servlets and still use them" Watch "Can we jar the servlets and still use them" New topic
Author

Can we jar the servlets and still use them

vishal goyal
Greenhorn

Joined: Aug 13, 2001
Posts: 12
Hi,
Is it possible to put all the servlets in a jar file and then access them for throwing response to the client. If yes, how? If no, why not? Please let me know the details.
Thanks and Regards,
vishal.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

Sun's recommended deployment scheme for servlets is a "war" - or "Web ARchive" file - which is simply a jar with the file extension changed to "war". Once it's on the server, some servers may unpack the jar, but that's really just an internal quirl of the server.
Within the WAR file, the servlets classes are placed in the WEB-INF/classes directory. If they were already in a jar, the jar would be placed in the WEB-INF/lib directory.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we jar the servlets and still use them
 
Similar Threads
JML (java modeling languge): how to verify servlets with JML
library directory
Servlets in JAR files
library directory
servlets in jar