-
1. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
jaikiran Aug 10, 2011 10:36 AM (in response to msteedle)Add this to the web subsystem:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host"> ... <configuration> <jsp-configuration development="true"/> </configuration> </subsystem>
-
2. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
msteedle Aug 10, 2011 11:45 AM (in response to jaikiran)jaikiran pai wrote:
Add this to the web subsystem:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host"> ... <configuration> <jsp-configuration development="true"/> </configuration> </subsystem>
This did not work, I have it set up like this in standalone.xml:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
<configuration>
<jsp-configuration development="true"/>
</configuration>
</subsystem>
However after I run standalone.bat, the relevant code in standalone.xml gets reset to:
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
-
4. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
cameldeng Nov 2, 2011 11:09 AM (in response to msteedle)thanks jaikiran.
working fine!
thanks a lot
-
5. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
ecsudhakar Apr 18, 2012 8:36 AM (in response to jaikiran)<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
...
<configuration>
<jsp-configuration development="true"/>
</configuration>
</subsystem>It is working fine..
-
6. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
guinotphil Aug 27, 2012 5:40 AM (in response to ecsudhakar)Hello,
I’m afraid, this is not working under AS 7.1.1.Final.
I’ve got the following configuration:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" instance-id="local" native="false">
<configuration>
<jsp-configuration development="true" x-powered-by="false" trim-spaces="true" genStringAsCharArray="true" />
</configuration>
And, when the server startups the following configuration is loaded at
org.apache.jasper.EmbeddedServletOptions.EmbeddedServletOptions(ServletConfig, ServletContext) line 505:
config.getInitParameter("development") => false
And same thing for the other parameters, my configuration is ignored.
After investigating, I notice that the StandardWrapper servlet config, is initialized with a default configuration in org.jboss.as.web.deployment.JBossContextConfig.processWebMetaData(JBossWebMetaData), line 417
Like if the configuration of the org.apache.jasper.servlet.JspServlet retrieved from the JBossWebMetaData was not taking at all the jsp-configuration element.
Any idea please?
Thank you very much
-
7. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
ctomc Aug 27, 2012 5:50 AM (in response to guinotphil)It is a bug in 7.1.1.Final that was fixed shortly after release.
I would recommend you building 7.1 branch or taking 7.2 nightly build that have this issue fixed.
--
tomaz
-
8. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
guinotphil Aug 27, 2012 6:00 AM (in response to ctomc)Thank you very much for the quick response.
Isn't there a simple way to fix that issue rather than using a nightly build ? You see, it seems to be more stable to me just to fix this issue rather using a nightly build.... Is there a git commit number I could check ?
Regards
-
9. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
ctomc Aug 27, 2012 6:13 AM (in response to guinotphil)hi,
this is the commit that fixed that exact problem https://github.com/jbossas/jboss-as/commit/f3468453008c7b329f24e0681c83f32604fc82b5
but given that there ware many addional bugfixes in similar areas i would really recommend you building 7.1 branch which is at version 7.1.3 atm, and only contains bugfixes on top of 7.1.1 that you are using now.
--
tomaz
-
10. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
guinotphil Aug 27, 2012 6:48 AM (in response to ctomc)Thank you.
Yeah, I know what you mean, but I remember trying AS 7.1.2.Final, and I had a couple of logging issue as well as strange timeout error logs.... Trying to use AS 7.1.2 or 7.1.3 right now would cost me a lot of time which I u fortunately don't have at the moment..
-
11. Re: How/where do I configure jboss as 7 so that I do not have to redeploy my .war file everytime I modify a JSP?
natalia_s Sep 7, 2012 2:48 PM (in response to guinotphil)I don't see a build 7.1.2 available for downlaod. Not being able to reload JSPs in real time (as you update them) seem to be a very pressin issue for the developers using 7.1.1 final (like me). Is there a workaround it or a way to download a version where it was fixed? Should I go back to an earlier release where this wasn't an issue? Any suggerstions will be appresciated.
Tnx!