-
-
2. Re: jsp not reflect changes
wei0313 Mar 14, 2012 2:53 AM (in response to jaikiran)Hi Jaikiran
I have tried that link but I still don't see the changes getting reflected. Do you have any suggestions?
Thanks
-A
-
3. Re: jsp not reflect changes
jaikiran Mar 14, 2012 3:35 AM (in response to wei0313)wei0313 wrote:
I have tried that link but I still don't see the changes getting reflected. Do you have any suggestions?
What does your config look like? Which exact file did you change and how are you starting the application? Are you deploying in exploded format or as an archive? Are you using any IDEs to deploy? What changes are you doing to the JSPs and how are you verifying that it doesn't work?
-
4. Re: jsp not reflect changes
wei0313 Mar 14, 2012 3:40 AM (in response to jaikiran)I put the <config...><jsp.... /></config...> under web: tag. I replaced in the standalone-xxx.xml this is our own config xml
when start the application, i supply with the standalone-xxx.xml.
it's a exploded EAR in standalone/deployment. just copy the exploded EAR to the deployment folder to deploy.
The changes on JSP : original JSP compiled and display fine and I added extra } to make jsp throw errors. however, JSP still showed up fine w/ the original content.
Thanks
-A
-
5. Re: jsp not reflect changes
jaikiran Mar 14, 2012 3:43 AM (in response to wei0313)wei0313 wrote:
I put the <config...><jsp.... /></config...> under web: tag.
Please post the exact contents.
wei0313 wrote:
I replaced in the standalone-xxx.xml this is our own config xml
when start the application, i supply with the standalone-xxx.xml.
Did you restart the server after manually changing that file? Please also post the exact command you use to start the server.
-
6. Re: jsp not reflect changes
wei0313 Mar 14, 2012 4:34 AM (in response to jaikiran)<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host">
<configuration>
<jsp-configuration development="true"/>
</configuration>
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<connector name="default" protocol="AJP/1.3" scheme="http" socket-binding="default" enabled="true"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
-
7. Re: jsp not reflect changes
wei0313 Mar 14, 2012 4:35 AM (in response to wei0313)standalone.bat -server-config=standalone-xxx.xml to start the app
-
8. Re: jsp not reflect changes
jaikiran Mar 14, 2012 5:30 AM (in response to wei0313)I just tried this against 7.1.0.Final by first including a JSP which prints "Hello World" and then changing the message in the JSP to "GoodBye". The changes were picked up dynamically. I suggest you try this first with a simple application and use the standalone.xml that ships in the distribution. If that works then try it against your custom standalone-xxx.xml. That way we'll know which part is misconfigured.
-
9. Re: jsp not reflect changes
wei0313 Mar 14, 2012 7:13 PM (in response to jaikiran)I have tried with simple ear which has one war and meta-inf ony and it worked fine.
However with more complex ear which has 10 WARs, \lib, persistence.xml in the EAR, I am running into issues as the EAR is trying to undeploy all WARs and deploy again. However, I always get the following errors
13:07:37,919 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010403: Deploying JDBC-compliant driver class com.microsoft.sqlserver.jdbc.SQLServerDriver (version 3.0)
13:07:38,089 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010403: Deploying JDBC-compliant driver class org.apache.derby.jdbc.AutoloadedDriver (version 10.8)
13:07:38,091 WARN [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010402: Unable to instantiate driver class "org.apache.derby.jdbc.AutoloadedDriver": org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.xxx_ear is already registered
13:07:38,094 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)
13:07:38,096 WARN [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010402: Unable to instantiate driver class "org.postgresql.Driver": org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.xxx_ear is already registered
then jboss (carmel) shuts down. Any suggestions?