"essimal" wrote : Hi, | | My configuration is: | | Eclipse: Eclipse 3.1.1 (JBossIDE-1.5.1) | JBoss 4.0.4 GA | | I have started developing with JBoss and have the following problem, with Eclipse I create a file .war of my application, and from eclipse I do the deploy in JBoss, and deploy the application in "\server\default\tmp\deploy\tmp21526xxxxxx-exp.war", but when I shutdown jboss the files (.jsp, .class, .html, ...) of the application they disappear. This produces 2 problems to me: | 1 - Whenever I do a change in some JSP (for example), I meet obliged it is necessary to create the file .war and deploy the application from eclipse. | 2 - When JBoss is Shutdown, I cant see the files of my application. | | I am accustomed to working with Tomcat 5 and when for every application I have a file XML in "conf\Catalina\localhost" and with the tag "Context displayName='XXX' docBase='C:/Projects/XXX' path='/XXX' reloadable='true' workDir='C:/Projects/XXX/work'" where it is possible to establish the directory base. | | Is possible to do this with JBoss or it is necessary to create a .war and deploy it to try every change of code in development? | | Thanks
The correct deply directory is server/default/deploy, not tmp. I don't understand why you would be putting anything in the tmp directory. Your WAR once deployed under deploy will be expanded by the deployer under tmp so JBoss can easily reference files. When JBoss shutdowns down, tmp is cleaned up but your WAR remains in the deploy directory. As for changes to a page, just rebuild your WAR, and deploy it again while JBoss is running. The deployer will see a chance in the timestamp of the WAR file and redeploy so you can easily test your changes. AFAIK, this is the exact same development model as plain old Tomcat. -aps View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953455#3953455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953455 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user