Re: [Resin-interest] Class loader issue finding resources in WEB-INF/lib .jar files

2008-12-11 Thread Mike McNally
Also: some people on the Stripes list have pointed out that .jar files
lacking explicit directory entries might cause problems.  That may be
the case, but my .jar file has directory entries. (I suppose that, on
the other hand, the *presence* of the directories might cause
problems.)



-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Class loader issue finding resources in WEB-INF/lib .jar files

2008-12-11 Thread Mike McNally
> I've filed it at http://bugs.caucho.com/view.php?id=3150
>
> Do you know what the exact string for the getResources argument is?
> There have been problems in the past related to things like "/foo" vs
> "foo".

By convention the Stripes config here is based on package names (or
package name prefixes; in other words, package "com.giganticorp" means
all packages under that prefix).  There are no slashes, just "."
separators.  In my particular case the specific string was
"org.stripesstuff".

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Class loader issue finding resources in WEB-INF/lib .jar files

2008-12-11 Thread Scott Ferguson

On Dec 11, 2008, at 5:20 AM, Mike McNally wrote:

> Under Resin 3.1.6, I'm trying to get a Stripes-based project working.
> Stripes supports an auto-discovery mechanism whereby it searches the
> classpath for components that extend its functionality. I'm finding
> that when the mechanism tries to use the Resin
> "EnvironmentClassLoader" (which it plucks off the thread) to find
> resources, it cannot locate anything that's in a WEB-INF/lib jar file.
> It can find resources in the WEB-INF/classes directory however.

I've filed it at http://bugs.caucho.com/view.php?id=3150

Do you know what the exact string for the getResources argument is?   
There have been problems in the past related to things like "/foo" vs  
"foo".

-- Scott
>
>
> Is this some sort of configuration issue, in that I need to tell Resin
> to allow those jar files to be searched?
>
> (What's happening specifically is that the call to getResources() is
> returning an empty Enumeration.)
>
> -- 
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Class loader issue finding resources in WEB-INF/lib .jar files

2008-12-11 Thread Mike McNally
Under Resin 3.1.6, I'm trying to get a Stripes-based project working.
Stripes supports an auto-discovery mechanism whereby it searches the
classpath for components that extend its functionality. I'm finding
that when the mechanism tries to use the Resin
"EnvironmentClassLoader" (which it plucks off the thread) to find
resources, it cannot locate anything that's in a WEB-INF/lib jar file.
It can find resources in the WEB-INF/classes directory however.

Is this some sort of configuration issue, in that I need to tell Resin
to allow those jar files to be searched?

(What's happening specifically is that the call to getResources() is
returning an empty Enumeration.)

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest