• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying external exploded directory as an application

 
sanju dharma
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.


Is there any other way ?

Thanks,
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sanju dharma
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks JaiKiran !

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 ?

17:14:50,158 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@3c5b7e8c { url=file:/C:/projects/subversion/
AuthServer/web/target/AuthenticateServer-web-1.0.0 }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/projects/subversion/AuthServer/web/target/AuthenticateServer-w
eb-1.0.0
altDD: null
lastDeployed: 1184890490156
lastModified: 1184614316132


Here is code jboss-service.xml

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sanju dharma:


--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@3c5b7e8c { url=file:/C:/projects/subversion/
AuthServer/web/target/AuthenticateServer-web-1.0.0
}
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/projects/subversion/AuthServer/web/target/AuthenticateServer-w
eb-1.0.0
altDD: null
lastDeployed: 1184890490156
lastModified: 1184614316132





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.

- Change your jboss-service.xml to:

 
sanju dharma
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
great. That worked !
Thanks for your help !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic