Meaningless Drivel is fun!
The moose likes JBoss/WildFly and the fly likes JBoss Context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Context" Watch "JBoss Context" New topic

JBoss Context

Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36

I deployed my test web applicaion in Jboss at jboss/jboss-4.0.2/server/default/deploy/test.war.

I want to deploy the application as a folder instead of war file. Like instead of test.war I want to create a folder called test and place all the files under test folder.
How to create the context for this folder?
Will Jboss only take war file as context?

Any help/suggestion will be great.

Thanks in Advance.


Thanks, Ganesh
SJCP (95%), SCWCD (75%), SCDJWS (Planning to take....)
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

just call your directory test.war and extract your files directly in there. the DeployerScanner will pick it up and deploy it just as if you had droped the archive test.war directly in the deploy directory. Notice the other directories already there in your default/deploy directory. Like Tomcat for instance, instead of there being a file called Tomcatxxxx.sar, it is a folder with that name and all the wars are subfolders in that folder.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Hi Mark Spritzler,

It Worked!!!

Thank u very much for the solution.
Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36

Can I place my application folder outside JBoss and give a context to it?
This can be done in Tomcat by setting up context path in server.xml

For Ex:

<Context path="" docBase="/export/home/user/test/" debug="0" ></Context>
while the server will be in /appl/tomcat/..

Can anyone help me how to do this in Jboss?
Should all application be deployed under /default/deploy only ?

Thanks in Advance
I agree. Here's the link:
subject: JBoss Context
It's not a secret anymore!