This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In order to see my JSP changes quickly on my JBoss (by refreshing browser) , I am trying to add exploded external directory into Jboss . In directory jbossweb-tomcat55.sar of Jboss deploy, I have added following lines in server.xml . But it doesnt deploy throwing error.
You can deploy your application in exploded format by just creating a folder with an extension of .war (or .ear) and place it in the deploy folder of JBoss. See the instructions here.
I am trying to add exploded external directory into Jboss
Do you mean, you want to place the exploded application at some place other than the deploy folder of JBoss? If so, then add the following in the jboss-service.xml present in the %JBOSS_HOME%/server/default/conf folder:
The path marked in bold is what you have to add to the existing contents. What this is going to do is that when JBoss starts, its also going to look into C:/test folder (or whatever path you specify in that configuration) to see if there are any deployable applications. If it finds any, its going to deploy them as it does with anything under the deploy folder.
Yes, I do want to deploy from external directory. I tried the way you mentioned but has some problem. I am pointing to directory which is root of WAR directory (where index.jsp exists ) . But Jboss giving me "Incomplete Deployment listing".. Any clue ?
Is AuthenticateServer-web-1.0.0 the application that you are trying to deploy? Is it a war file or an ear file? Here's what you have to do (assuming AuthenticateServer-web-1.0.0 is the application you want to deploy and its a war):
- Rename the AuthenticateServer-web-1.0.0 folder to AuthenticateServer-web-1.0.0.war
- Place this AuthenticateServer-web-1.0.0.war in C:/projects/subversion/AuthServer/web/target/ folder.