-
1. Re: How to set JBoss 7 hot deploy?
ctomc Jul 11, 2012 4:47 AM (in response to areakbaby)Hi,
what exact version of jboss 7 do you use?
--
tomaz
-
2. Re: How to set JBoss 7 hot deploy?
areakbaby Jul 11, 2012 8:46 PM (in response to ctomc)Hi Tomaz,
It is jboss-as-7.1.1.Final and JBoss Developer Studio is 5.0.0.GA.
Thank you so much.
Areak
-
3. Re: How to set JBoss 7 hot deploy?
ctomc Jul 12, 2012 6:05 AM (in response to areakbaby)Hi,
there was a bug in 7.1.1 that coused that development=true attribute was ignored.
if you try with (self build) 7.1.2 or nightly build (7.2.x) it should work.
sorry for inconvinence.
--
tomaz
-
4. Re: How to set JBoss 7 hot deploy?
areakbaby Jul 13, 2012 2:18 AM (in response to ctomc)Thank you Tomaz.
I changed my strategy and used Maven to make a WAR file.(apache-maven-3.0.4)
And I found an interesting thing.When I changed the .jsp or .html files it do not hot deploy,but when I changed .java files it works.(Run as Debug on server)
Unbelievable, because the .java files in the WAR file are just .class files.
If I use JBoss 7.1.2 just add:
<configuration>
<jsp-configuration development="true"/>
</configuration>
any other things need to config?
Thanks.
Areak
-
5. Re: How to set JBoss 7 hot deploy?
lukasw44 Jul 20, 2012 2:11 AM (in response to ctomc)This bug is also in Jboss as version 7.1.0 Thunder ??
or only in version 7.1.1 ??
-
6. Re: How to set JBoss 7 hot deploy?
kliczko Aug 20, 2012 4:45 AM (in response to areakbaby)Has anybody found solution to around this:
JBoss 7 configuration is as below:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
<deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir" auto-deploy-exploded="true" deployment-timeout="60"/>
</subsystem>
When I changed any file the server would restart - this is not I want.
Is there any way to make JBoss 7 hot deploy *.xhtml, *.jsp and *.html files (when change the .xhtml, .jsp or .html files, then I refresh the browse can see the changes) ?
-
7. Re: How to set JBoss 7 hot deploy?
kliczko Aug 20, 2012 6:40 AM (in response to kliczko)I have found arrounding:
1. Set in JBoss configuration: auto-deploy-exploded="false"
2. If your exploaded application is named ex. lala.ear (or .war) create in %JBOSS_HOME%/standalone/deployments folder, file: lala.ear.deployed => thanks of that JBoss deploys exploaded application lala.ear despite configuration attribute auto-deploy-exploded="false" .
3. Enjoy hot deployment of: .xhtml, .jsp or .html files in your exploaded application lala.ear
-
8. Re: How to set JBoss 7 hot deploy?
srigiri Dec 7, 2012 4:55 AM (in response to kliczko)1 of 1 people found this helpfulYes Right Artur, Thanks for that
This is what i did...
We were having scanner tag in the standalone.xml as below<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-zipped="false" auto-deploy-exploded="false" deployment-timeout="500"/>
When made below change to standalone.xml It didn't worked.
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-zipped="false"auto-deploy-exploded="false" deployment-timeout="500"/>
Then removed "auto-deploy-zipped="false" and made as below
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-exploded="false" deployment-timeout="500"/>
It worked... -
9. Re: How to set JBoss 7 hot deploy?
areakbaby Dec 9, 2012 10:15 PM (in response to srigiri)Srigiri Thanks.I had tested,just *.java files can hot deploy.The *.jsp and *.html can not.And this must run as Debug on server.In fact when I changed a file like login.jsp ,I found the file login.jsp under jboss-as-7.1.1.Final\standalone\deployments\web***.war was changed,but can not work.
JBoss 4.0, I use ANT copy the login.jsp to jboss-4.0.4.GA\server\default\tmp\deploy\tmp35522***.ear-contents\***-exp.war it works well.
It is a bug in JBoss 7.
-
10. Re: How to set JBoss 7 hot deploy?
srigiri Dec 9, 2012 10:47 PM (in response to areakbaby)1 of 1 people found this helpfulHi Areak,
Adding one more thing to my comments.
For getting changes to be reflected without restarting the server the below change to be added (7.x)
<subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host"> <configuration> <jsp-configuration development="true"/> </configuration> So the JSP/HTML and all the other static changes will reflect immediately.
Regards,
Srigiri
-
11. Re: How to set JBoss 7 hot deploy?
areakbaby Dec 10, 2012 9:32 PM (in response to srigiri)Hi Srigiri,
I was puzzled. I changed standalone.xml what you said to me,but hot deploy the JSP/HTML failed.
My server is jboss-as-7.1.1.Final and the IDE is JBoss Developer Studio is 5.0.1.GA.
what is your IDE? Eclipse? Are there any other need to be set?
Thank you so much!
Best Regards;
Areak
-
12. Re: How to set JBoss 7 hot deploy?
srigiri Dec 11, 2012 9:21 AM (in response to areakbaby)Areak,
We are using Eclipse IDE.
After using the above said configurations in standalone.xml and keeping the ear and war exploded we are able to achieve this.
If you want i can send the standalone.xml I am using...
Regards,
Srigiri
-
13. Re: How to set JBoss 7 hot deploy?
areakbaby Dec 12, 2012 1:18 AM (in response to srigiri)Hi Srigiri,
Please send the standalone.xml to me or you can share to all of us as a attachment.
My E-mail is: 840378162@qq.com
Thank you.
Best Regards;
Areak
-
14. Re: How to set JBoss 7 hot deploy?
srigiri Dec 12, 2012 2:57 AM (in response to areakbaby)Areak.,
Mailed to 840378162@qq.com
Please send me your standalone.xml file and just details on the deployment directory structure. So that I can try to analyse your issue.
Regards,
Sri