-
1. Re: Define a context tag under host tag in JBoss -as 7.1.1
jaikiran Jul 24, 2013 2:40 AM (in response to kiran.varanasi)KIRAN KUMAR VARANASI wrote:
My current application is hosted in jboss 4.2.5.GA.
There isn't a 4.2.5.GA release.
KIRAN KUMAR VARANASI wrote:
<Context path="/Imagepath" docBase="/usr/kiran/Uploads" reloadable="true"></Context>
In uploads directory view->css->ex.css
Now I when I type http://localhost:8080/Imagepath/view/css/ex.css the ex.css is getting displayed in browser.
Now I want the same equivalent tag for jboss-as 7.1.1. Could you please anybody help me?
So you want to display content outside of your web application (.war file)?
-
2. Re: Define a context tag under host tag in JBoss -as 7.1.1
kiran.varanasi Jul 24, 2013 2:53 AM (in response to jaikiran)Yes, I want to access files from the sever having a particular context and able to access those files. This avaulable in jBoss 4.2.5.GA. For that we need to add the context tag under host tag of server.xml in the jBoss4.2.5.GA. Please let me know what should be done in standalone.xml for jBoss-as 7.1.1. That could be a great help for me.
-
3. Re: Define a context tag under host tag in JBoss -as 7.1.1
nickarls Jul 25, 2013 2:52 AM (in response to kiran.varanasi)There is still no 4.2.5.GA ;-)
You could have an exploded WAR and place your files there. I'm not sure if there will be better support in WildFly for "virtual contexts" again.
-
4. Re: Define a context tag under host tag in JBoss -as 7.1.1
kiran.varanasi Jul 29, 2013 2:21 AM (in response to nickarls)Hi Nicklas Karlsson,
What I excatly needed is the <context > tag equivalent in JBoss-AS 7.1.1 standalone.xml asI needed to host some files (configfiles, scripts,css, and js) in server as a separate application.
So could you please let me know ....
Thanks in Advance......
____________
Kiran
-
5. Re: Define a context tag under host tag in JBoss -as 7.1.1
nickarls Jul 29, 2013 2:26 AM (in response to kiran.varanasi)If you create a directory named "resources.war" in the deployments folder (and have auto-deployed exploded archives on in the web subsystem, I think it should be on by default), you can then have subdirectories in there like "css" and reference them /resources/css/my.css etc. Not sure if you have to throw in an empty web.xml or not in order for it to be recognized.