users@glassfish.java.net

Weird problem deploying Roller 4.0 to Glassfish

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Dec 2007 15:46:04 PST

Roller 4.0 works fine with Glassfish, I use them together all day long.

But one new Roller user is experiencing a weird problem when he tries to deploy Roller to Glassfish. Roller won't deploy and he's getting the following errors in his log files.

First, he see the below message, which seems to indicate that one of the Struts jars (xwork-2.0.4.jar) is not able to get the permissions that it wants.

> [#|2007-12-20T12:02:34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28;_ThreadName=Thread-44;|JACC
> Policy Provider: PolicyWrapper.implies, context(null)-
> permission((java.lang.reflect.ReflectPermission suppressAccessChecks))
> domain that failed(ProtectionDomain
> (file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar
> <no signer certificates>)


Later, he sees this next error, where the "struts2" filter fails to init.

> [#|2007-12-20T12:02:34.337-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|WebModule[/roller]PWC1270:
> Exception starting filter struts2
> java.security.AccessControlException: access denied
> (java.lang.reflect.ReflectPermission suppressAccessChecks)
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)


Here is his environment:
   Solaris 10 update 4
   Sun Java Application Server 9.1 (i.e. GlassFish version 2.0)
   MySQL 5.0.37
   Java SDK 1.5

Any ideas as to what might be causing these problems?

- Dave
[Message sent by forum member 'snoopdave' (snoopdave)]

http://forums.java.net/jive/thread.jspa?messageID=251055