> -----Original Message-----
> From: Ed Rouse [mailto:ero...@milner.com]
> Sent: Monday, November 17, 2014 4:53 PM
> To: Tomcat Users List
> Subject: DirResourceSet
> 
> I have 2 different issues setting up a DirResourceSet. I have an
> external war file I am trying to merge into the Root of my application.
> I have a custom root that extends StandardRoot.
> 
> 
> 1.       DirResourceSet drs = new DirResourceSet(wsRoot, "/WEB-
> INF/classes/", possible.getAbsolutePath() + "/classes/", "/");
> 
> This only seems to give me the top level directory of the classes
> directory as indicated by drs.listWebAppPaths("/WEB-INF/classes/"). Is
> there a way to get it to be recursive or is it just that the
> listWebAppPaths doesn't show it even though it actually does it?
> 
> 2.       The reason I can't check the first is because this one gives
> me an exception.
> 
> DirResourceSet drs = new DirResourceSet(wsRoot, "/" +
> possible.getName(), possible.getAbsolutePath(), "/" +
> possible.getName()); It looks like the one that seems to work but I get
> a:
> 
> SEVERE [localhost-startStop-1] null.null Error setting up class path
> 
> java.lang.IllegalStateException:
> org.apache.catalina.LifecycleException: Failed to initialize component
> [org.apache.catalina.webresources.DirResourceSet@6a38848c]
> 
> at
> org.apache.catalina.webresources.DirResourceSet.<init>(DirResourceSet.j
> ava:83)
> 
> I have tried to follow through the source but keep getting lost. Line
> 83 is when it calls Start on StandardRoot. Is it because it was already
> started by the first call? But then how would you add in multiple
> resources?
> 
> 
> 
> I would like to step through it in debug mode, but the test server is
> remote and I don't know how to set up remote debugging. And it's remote
> due to other required resources that are not able to run locally.
> 
> 
> 
> Thanks for the help.


I fixed #2. Turns out I needed to use "/" for the internal path. I don't 
suppose there is a how to on using these resource sets or a details on
what the internal structure is? I think the problem for me
is the base/internal path combination. Though my guess is that it won't
recurse through the structure by default so you add the files using the 
same base with differing internal paths?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to