tags:

views:

327

answers:

2

The context-path name in jboss-web.xml is different from the application which we deploy in jboss-5.0 GA.

My application creates some files with in the applications sub-folders. but when it goes to create files it searches the application with the name which is mentioned is jboss-web.xml file.

I use exploded-war file as my application, which is like file. Inside this many folders are there.

<context-root>/Test</context-root>

but my application name is Test-0.0.1

A: 

Hi Actually /Test is my context-path name in jboss-web.xml

gautam
Please edit your question, rather than submitting edits as an answer
skaffman
A: 

Hi Gautam, context-root is used to tell application server as which webapp should a request be delegated to based on the URL. Now from my understanding you ant to access the resources inside your application as like http(s):/:/Test/YouResourceName. To do something like that I will suggest to keep the context-root as Test(not starting with '/'). You need to specify web-uri as the child element of tag where you have specified context-root. So it should look something like

Test-0.0.1.war Test

Saurabh