[jboss-user] [Beginner's Corner] - JBoss AS 5.1 and Virtual Directories

Robert Heim do-not-reply at jboss.com
Mon Apr 26 12:11:30 EDT 2010


Robert Heim [http://community.jboss.org/people/brannic] created the discussion

"JBoss AS 5.1 and Virtual Directories"

To view the discussion, visit: http://community.jboss.org/message/539568#539568

--------------------------------------------------------------
I am attempting to migration our application from JBoss 4.0.4 to 5.1.0.

Right now the main problem I have is getting virtual directories working.

In JBoss 4.0.4 we accomplished this by adding the following elements to the server.xml file in the Tomcat55.sar directory.



            <!-- Default context parameters -->

            <DefaultContext cookies="true" crossContext="true" override="true"/>

 
            <Context override="true" crossContext="true" docBase="./virtualDirectory/reporting/output/" path="/reporting/output"/>
            <Context override="true" crossContext="true" docBase="./virtualDirectory/app/output/" path="/app/output"/>





This worked well for our application.

When attempting to apply this to the server.xml file for JBoss 5.1.0/Tomcat 6.0 I get the following error in the server.log file.


2010-04-26 10:20:55,796 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=WebServer state=Create
org.jboss.xb.binding.JBossXBException: Failed to parse source: DefaultContext cannot appear in this position. Expected content of Host is unordered_sequence: Listener* Valve* Alias* Realm? attributes?

 


I can't find any good documentation on what changes are needed moving from 4.0.4 to 5.1.0.  All the documentation I've found so far has been for JBoss 4.2 or lower or Tomcat 5.5 or lower.

Any ideas on what I'm missing here?

P.S.  I have also tried changing the docBase to use relative paths instead of the ones noted above but with the same results.


<Context override="true" crossContext="true" docBase="${jboss.server.home.url}virtualDirectory/reporting/output/" path="/reporting/output"/>

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/539568#539568]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100426/3d90d3a3/attachment.html 


More information about the jboss-user mailing list