aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Context" Watch "JBoss Context" New topic
Author

JBoss Context

Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Hi,

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


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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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
Hi,

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
 
wood burning stoves
 
subject: JBoss Context