1 Reply Latest reply on Jun 3, 2009 11:03 AM by Michele Giuliano

    How to configure a virtual directory on the JBoss Web Server

    Weizhi Zhi Newbie

      hi, I configured a virtual directory on the JBoss Web Server of JBOSS 5.0, the D:\jboss-5.0.0.GA\server\xinosofterp\deploy\jbossweb.sar\server.xml content is

       <!-- Optional listener which ensures correct init and shutdown of APR,
       and provides information if it is not installed -->
       <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
       <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
       <Listener className="org.apache.catalina.core.JasperListener" />
       <Service name="jboss.web">
       <!-- A HTTP/1.1 Connector on port 8080 -->
       <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"
       connectionTimeout="20000" redirectPort="8443" />
       <!-- Add this option to the connector to avoid problems with
       .NET clients that don't implement HTTP/1.1 correctly
       restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
       <!-- A AJP 1.3 Connector on port 8009 -->
       <Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"
       redirectPort="8443" />
       <Engine name="jboss.web" defaultHost="localhost">
       <Realm className="org.jboss.web.tomcat.security.JBossWebRealm"
       <Host name="localhost">
       <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
       transactionManagerObjectName="jboss:service=TransactionManager" />
       <Context path="/upload" docBase="d:/home/upload" debug="false" reloadable="true" override="true" crossContext="true" />

      I got the following error when i started the jboss 5.0

      2009-02-19 17:13:55,578 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: Context not found as a child of Host