tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Qin <Phillip....@shareowner.com>
Subject RE: [REPOST]Tomcat with security manager + NoClassDefFoundError
Date Mon, 23 Jun 2003 19:09:39 GMT
1. There is no struts installation at all outside Catalina directories on
this production box.
2. There are two webapps using struts, but struts.jars are located in
webapps/myapp1/WEB-INF/lib and webapps/myapp2/WEB-INF/lib respectively.
3. No environment variables set for struts.jars so I assume tomcat
classloader should take care of them.

To Yoav:

I start Tomcat with -security option. Tomcat will use Catalina.policy to
manage the permissions. I don't use JAAS or realm at all (realms were
cleaned up in server.xml).

-----Original Message-----
From: John Turner [mailto:tomcat-user@johnturner.com] 
Sent: June 23, 2003 3:01 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError


NoClassDefFound is not the same as ClassNotFound...NoClassDefFound 
typically means Tomcat is confused about which class you want it to use.  I 
agree with Jason, I think you have a couple struts.jar files around, and 
Tomcat isn't sure which one to use.

John

On Mon, 23 Jun 2003 14:46:44 -0400, Phillip Qin 
<Phillip.Qin@shareowner.com> wrote:

> Typo, it is WEB-INF/lib.
>
> When there is no grant entry for this jar, tomcat throws
> "NoClassDefFoundError".
>
> -----Original Message-----
> From: Jason Bainbridge [mailto:jason@jblinux.org] Sent: June 23, 2003 
> 2:44 PM
> To: Tomcat Users List
> Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError
>
> On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
>> I solved this problem by including a grant entry
>>
>> grant codeBase "file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar" 
>> {
>>   permission java.security.AllPermission;
>> };
>
> Why isn't it in WEB-INF/lib ? That is probably why you had to add that 
> grant
>
> entry as it isn't the usual place to store jar files.
>
> Regards,



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message