File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Deploying external exploded directory as an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploying external exploded directory as an application" Watch "Deploying external exploded directory as an application" New topic
Author

Deploying external exploded directory as an application

sanju dharma
Ranch Hand

Joined: Oct 19, 2000
Posts: 45
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

Joined: Jul 20, 2005
Posts: 10065
    
163

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.


[My Blog] [JavaRanch Journal]
sanju dharma
Ranch Hand

Joined: Oct 19, 2000
Posts: 45
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

Joined: Jul 20, 2005
Posts: 10065
    
163

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

Joined: Oct 19, 2000
Posts: 45
great. That worked !
Thanks for your help !
 
 
subject: Deploying external exploded directory as an application