Yes. Read about the tomcat class Loader and how it loads classes. Depending on 
the way stripes Object are created, it may do a lookup in the shared directory 
or not. with its lib directory, it highly protective and may not allow code to 
execute from there. which tomcat version are u using. each version has a 
different class loading mechanism(its a confusion in that camp)
--- On Sun, 7/27/08, Brian Wawok <[EMAIL PROTECTED]> wrote:

From: Brian Wawok <[EMAIL PROTECTED]>
Subject: [Stripes-users] Weird classpath issue with StripesResources.properties
To: [email protected]
Date: Sunday, July 27, 2008, 6:54 PM








I am getting a weird classpath issue, maybe someone here can help me figure out 
why this is/ how I work around it?
 
If I put stripes.jar in my specific WEBAPPs WEB-INF/lib dir..   and I put 
StripesResources.properties in WEB-INF/classes dir.. everything works.
 
If I put stripes.jar in my tomcat shared/libs dir - No matter where I put my 
StripesResources.properties file... I get the error message: 
java.util.MissingResourceException: Could not find the form field resource 
bundle needed by Stripes. This almost certainly means that a properties file 
called 'StripesResources.properties' could not be found in the classpath. This 
properties file is needed to lookup form field names. Please ensure the file 
exists in WEB-INF/classes or elsewhere in your classpath.
 
I have tried putting the .properties file in  shared/classes, shared/lib,  
common/classes, webapps/project/WEB-INF/classes etc. etc - but no matter where 
I put it, I get the error.
 
Is there some magical reason why tomcat is only happy when I include the jar 
inside of the actual webapp?  I would prefer to keep the .jar in the 
/shared/libs dir, and don't care where StripesResources.properties is.  This 
must be some kind of Tomcat permission, but I am not entirely sure why it 
matters where the lib file is located.
 
Any suggestions?
 
Thanks,
 
Brian-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to