Just Want to know do there have some ways can save my time when I develop Java project. Because if I did any modify to Java file or JSP file. I have to compile and deploy my project again. I know for Tomcat , Just set the class path to compile, and just compile Java file, don't need to compile JSP and make war file. can I do it for Jboss like this?
Two solutions: a nice one and a dirty one.
In your jboss-service.xml (under server/yourservername/conf) find the definition for org.jboss.deployment.scanner.URLDeploymentScanner. Modify the URL-attribute:
<attribute name="URLs"> deploy/ , file:///pathtoyourwebapp </attribute>
Your project must use the typical WAR-file-structure and you should compile to the WEB-INF/classes directory. When you changed a class, just touch your web.xml file.
The dirty one:
Deploy your app as an exploded archive and develop directly in the deploy/yourwebapp directory. This is not a good idea.
Thanks you for answer. I try to use your first way, but it can not work. I setted the
and copy everything in my webapp folder to there. of cause webapp folder is my depolyment folder. it follow WAR-file-structure. (btw. if I use war file copy to jboss's deploy folder. my program can work.)
when I copy the webapp folder to there. jboss create lots of info to log nearly 6M, So I can not paste to here. and I went in the JBoss Management - Tomcat status page. no new one in "Application list", I missed somethings?