This content has been marked as final. Show 3 replies
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?
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.
Thanks to the two