tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: [REPOST]Tomcat with security manager + NoClassDefFoundError
Date Mon, 23 Jun 2003 18:56:55 GMT

Howdy,
The curious part about the stack trace is the doPrivileged throwing the exception.  Are you
using JAAS or a custom realm to do your authentication?  If so, are you sure this realm is
properly configured?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Jason Bainbridge [mailto:jason@jblinux.org]
>Sent: Monday, June 23, 2003 2:53 PM
>To: Tomcat Users List
>Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError
>
>What other struts.jar files have you got laying around? Have you maybe got
>one
>in common/lib? I'm not sure why setting a grant like that would make a
>NoClassDefFoundError go away, maybe it tricks the classloader into looking
>at
>a specific class somehow.
>
>Either way I don't think you have fixed the problem it just appears you
>have...
>
>Regards,
>--
>Jason Bainbridge
>http://jblinux.org
>
>On Tue, 24 Jun 2003 02:46, Phillip Qin 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,
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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


Mime
View raw message