- 
        1. Re: Explicit document source root using context/docbasegburcher Jul 27, 2006 9:47 AM (in response to gburcher)Sorry, forgot to disable HTML and my XML example was eaten. Here it is: 
- 
        2. Re: Explicit document source root using context/docbasegburcher Jul 27, 2006 9:47 AM (in response to gburcher)Ok, not sure how to get XML to show in these forums. 
- 
        3. Re: Explicit document source root using context/docbasejaikiran Jul 27, 2006 10:39 AM (in response to gburcher)Ok, not sure how to get XML to show in these forums. 
 While posting, wrap the xml contents in code tags, using the 'Code' button
- 
        4. Re: Explicit document source root using context/docbasegburcher Jul 27, 2006 10:40 AM (in response to gburcher)One more post, forgot to mention the web-app is deployed under the embedded Tomcat service. 
- 
        5. Re: Explicit document source root using context/docbasejaikiran Jul 27, 2006 10:41 AM (in response to gburcher)And also, use the Preview button if you are not sure how the content is going to show up :-) 
- 
        6. Re: Explicit document source root using context/docbasejaikiran Jul 27, 2006 10:43 AM (in response to gburcher)Does this help: 
 http://wiki.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories
- 
        7. Re: Explicit document source root using context/docbasegburcher Jul 27, 2006 10:50 AM (in response to gburcher)"jaikiran" wrote: 
 Does this help:
 http://wiki.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories
 I had already seen this wiki entry. This is old and relates to jboss v3.2.3. In my v4.0.4 install, the \META_INF\jboss-service.xml file does not contain an entry for<attribute name="Config"> or any of the elements contained within. This sort of config now appears to be in the server.xml file located in the jbossweb-tomcat55.sar directory. I tried adding the<context> info in that file, but that did not seem to work.
- 
        8. Re: Explicit document source root using context/docbasec_eric_ray Aug 4, 2006 7:47 PM (in response to gburcher)I have the same issue. I would really like to know how to do this. JBoss guys. How do we do this? 
 Thanks.
 Eric Ray
- 
        9. Re: Explicit document source root using context/docbasepeterj Aug 6, 2006 10:41 PM (in response to gburcher)Three different people asked this same question in three different forums all within about a week of each other. Is this a new record??? 
 Anyway, see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88171
- 
        10. Re: Explicit document source root using context/docbasegburcher Aug 7, 2006 10:17 AM (in response to gburcher)I had previously seen the wiki entry named "ExternalDirectories". This wiki entry specifically talks about serving static content like HTML pages and images. I can make this work using the instructions in the wiki. 
 What I want to do is to redirect the root directory for my entire application deployment file structure. We use many servlets and .jsp files. I want to keep my jsp/html/image/etc. source files plus WEB-INF in a directory outside of the JBoss install directory. We have used a number of other app servers and are just moving to JBoss. This has been possible in all other app servers.
 We deploy in exploded format, not in a .war file. Initially, I deployed my file structure under the \jbossweb-tomcat55.sar\ROOT.war directory. I got that working fine. Now I want to move the entire .war directory out from under the JBoss install directory.
 When I try this using the instructions in the "ExternalDirectories" wiki entry, I get a number of errors. This appears to be the root error:org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. 
 Not sure if this would work even if I can make this error go away. Is there an intended way to redirect an entire web app deploy directory outside of the JBoss install directory?
- 
        11. Re: Explicit document source root using context/docbasec_eric_ray Aug 9, 2006 2:10 PM (in response to gburcher)This is the definitive guide to configure tomcat to serve static content. 
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
- 
        12. Re: Explicit document source root using context/docbasegburcher Aug 10, 2006 2:22 PM (in response to gburcher)Thanks for the link to the Apache Tomcat Configuration Reference. That was very helpful. The concept of Context would appear to provide exactly the capability that I need. You can specify the root directory for a web app using the docBase property of Context. 
 The difficulty comes from the fact that the directory/file layout for the Tomcat embedded inside JBoss does not match that described in the config doc for a normal Tomcat deployment.
 I believe that I want to define a somewhere. I just don't know where to put it inside the JBoss/Tomcat install. I have tried a number of options and nothing seems to work. Is there someone who can offer guidance specifically on how to do this in a JBoss/Tomcat install? Exactly what files with what config content in what directories?
 Thanks.
- 
        13. Re: Explicit document source root using context/docbasegburcher Aug 10, 2006 2:25 PM (in response to gburcher)Sorry, I'm still not used to the interface for these forum posts. I meant to say: I believe that I want to define a <Context> somewhere.
- 
        14. Re: Explicit document source root using context/docbasej2ee_junkie Aug 11, 2006 10:01 AM (in response to gburcher)check out http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingContextDotXML 
 cgriffith
 
     
     
     
    