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&...]