This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss Context

 
Ganesh Sundaresan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ganesh Sundaresan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark Spritzler,

It Worked!!!

Thank u very much for the solution.
 
Ganesh Sundaresan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic