How do I reload dynamically my jsp from an ear ?

 

Deploy your Jsp as part of an application deployed in exploded format. (That is create a folder named yourapplication.ear  and inside it create a folder yourwebapplication.war).
This is the suggested deployment strategy when you're developing your applications because changes to the jsps take effect immediately and you dont need to redeploy the application nor restart the server.

Note for JBoss AS 7 users: make sure you have set the development attribute to "true" in your jsp-configuration :

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
            <configuration>
                <jsp-configuration development="true" keep-generated="false" check-interval="1" modification-test-interval="1" recompile-on-fail="true"/>
            </configuration>
            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
 </subsystem>

WildFly users, on the other hand, need to specify development mode to true in the jsp-config element:

<subsystem xmlns="urn:jboss:domain:undertow:1.1">
. . . .
<servlet-container name="default" default-buffer-cache="default" stack-trace-on-error="local-only"> <jsp-config development="true" check-interval="1" modification-test-interval="1" recompile-on-fail="true"/> </servlet-container>
</subsystem>

 

 

Related articles available on mastertheboss.com

Where is my compiled JSP ?

JBoss recipe of the day

How do you configure JBoss to enable HTTP logging ?

To enable HTTP logging, you need to go to the deploy/jbossweb-tom

JBoss Struts tutorial

This article explains how you can setup quickly an application ba

How to restrict access to JBoss web application by IP or Host?

You can create easily Access control list based on the IP address

How do you configure a Web Application as Default Web app ?

  JBoss AS 4-5-6 First you have to remove the default

Developing Portlets with JBoss Portal

JBoss Portal is an open source platform for hosting and serving a

Follow us on Twitter