GWS Deployer 1.9.17 : Reloaded : New Features Part 2 : JSP Support
Posted by survivant on September 10, 2009 at 5:22 PM EDT
Grizzly Deployer got lot of activity recently over mailing list, so I took the time to give you a new feature that been added to the release 1.9.17. The Autodeploy command.
You should see that option like a default web.xml config that will be append to all your webapps
that you will deploy. You can activate this feature by adding this param to the command line :
java -jar grizzly-http-servlet-deployer-1.9.18-SNAPSHOT.jar --autodeploy=[path]
Example : --autodeploy=/folder/autodeploy
You need to create one of more web.xml files that you will put in that folder. Each web.xml config will be append to all your webapps.
here a sample for JSP support using Jasper
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
</web-app>
The last step is to put the required jars into the classpath.
You could put them in the command line with -cp or --classpath or you could use Deployer's param :
--libraryPath=[path]
Example : --libraryPath=/libs:/common_libs
With that you can have JSP support only if you want.
Follow us on Twitter
Related Topics >>
Blog Links >>
- Login or register to post comments
- Printer-friendly version
- survivant's blog
- 1337 reads





