[jboss-user] [Beginner's Corner] - Re: jboss with website root which sits deep in the app

down7ime do-not-reply at jboss.com
Sun Nov 8 19:31:41 EST 2009


Hey Guys,

Giving this another shot and running into the same issue, i need to know how to define the webroot of an application in JBoss, not sure if this is possible but its a requirement for the framework im using.

basically i have the following structure


/root.war
/root.war/projects/app/www <-- web application root
/root.war/plugins <!-- framework files
/root.war/core <!-- framework files

So i have the whole /root.war directory correctly parsing cfml (my framework files and application files), now i need a way to tell jboss to serve all requests from my application root, ie:

/root.war/projects/www/site/www

At the moment jboss deploys the site like this

009-11-09 11:15:52,546 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/
2009-11-09 11:15:53,062 INFO  [STDOUT] (main) ===================================================================
WEB CONTEXT
-------------------------------------------------------------------
- config:C:\Domains\railo-deploy\root.war\WEB-INF\railo
- webroot:C:\Domains\railo-deploy\root.war\

i would like to change the webroot location above to

- webroot:C:\Domains\railo-deploy\root.war\projects\site\www\

can this be done? note i still need jboss to parse files under root.war/plugins and root.war/core since the web app needs these files.

Any idea how i can get this done, i have tried added context-path, appBase, docBase and a number of other things to
/root.war/WEB-INF/jboss-web.xml

also tried creating
/root.war/WEB-INF/context.xml

and added context, appBase and docBase to
$jboss\server\$instance\deploy\jbossweb.sar\server.xml

most of which caused errors, can anyone suggest the right way to do this? or even if its possible, as you can see im completely lost as to how this should be defined.

Any help/advice appreciated, thanks.



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264474#4264474

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264474



More information about the jboss-user mailing list