what exact version of jboss 7 do you use?
It is jboss-as-7.1.1.Final and JBoss Developer Studio is 5.0.0.GA.
Thank you so much.
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:
any other things need to config？
This bug is also in Jboss as version 7.1.0 Thunder ??
or only in version 7.1.1 ??
Has anybody found solution to around this:
JBoss 7 configuration is as below:
<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"/>
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) ?
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
1 of 1 people found this helpful
Yes 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...
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.
1 of 1 people found this helpful
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.
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!
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...