- This topic has 4 replies, 2 voices, and was last updated 11 years, 11 months ago by support-pradeep.
-
AuthorPosts
-
chalksbParticipantHI there,
We’re using jboss 7.1.1 and MyEclipse 10.7 on a MAC.
Hot deploy does not work after setting the ff. to the standalone.xml file:<configuration>
<jsp-configuration development=”true”/>
</configuration>Are we missing something?
Thanks!
Chalk
support-pradeepMemberchalksb,
I could not replicate the issue at my end.
For hot deployment to work please make sure “Project->Build Automatically” is switched on. Hot code replacement works (only?) if automatic build is switched on.
Also, If you are using the Servers view to launch JBoss and are selecting “Run”, you need to stop it and select “Debug”… the server has to be running in Debug mode.
Alternatively, please select “use auto-deploy mode” option in window > Preferences > MyEclipse > Servers > Jboss > Jboss 7.x and check if hot deployment works.
Let us know how it works for you.
chalksbParticipantThanks for the reply, Pradeep.
We actually have hot-deploy working in 2 Windows machines. But for the life of me, we can’t seem to get it to work for MAC.
I think we got it to work once on the MAC but then the server still restarts automatically everytime a *.jsp file is changed. With the Windows machine, the server does not restart but we still see the changes to the jsp after we refresh the browser.
I’ll try the steps you mentioned in your reply and keep you posted.
Thanks!
Chalk
chalksbParticipantFound a workaround on https://community.jboss.org/message/771923 by user nilindra fernando:
Hi,
This 7.1.1 specific bug (https://issues.jboss.org/browse/AS7-4187) could be resolved with the following steps easily.
1. Please make sure to add
<configuration>
<jsp-configuration development=”true”/>
</configuration>
in standalone.xml under <subsystem xmlns=”urn:jboss:domain:web:1.1″ default-virtual-server=”default-host” native=”false”>2. Go to jboss-as-7.1.1.Final/modules/org/jboss/as/web/main
Place the jboss-as-web-7.1.1.Final-RECOMPILE.jar in there. You can download from http://www.datafilehost.com/download-2cb9ff04.html3. Open module.xml (jboss-as-7.1.1.Final/modules/org/jboss/as/web/main) and add the following line
<!–resource-root path=”jboss-as-web-7.1.1.Final.jar”/–>
<resource-root path=”jboss-as-web-7.1.1.Final-RECOMPILE.jar”/>4. You are done. Enjoy.
support-pradeepMemberchalksb,
Good to hear you are all set. Thanks for the workaround which might help other users who face this issue.
Let me know if you see any other issues. -
AuthorPosts