[Geoserver-users] War-File installation problems

Hi,

I have installed Tomcat 5.5 in Debian Lenny and I deployed the geoserver.war
(1.7). I added the following lines to
/var/lib/tomcat5.5/conf/policy.d/04webapps.policy:

// The permissions granted to Geoserver
grant codebase "file:/var/lib/tomcat5.5/webapps/geoserver/-" {
    permission java.io.FilePermission
"/var/lib/tomcat5.5/webapps/geoserver/data/-", "read,write,delete";
    permission java.util.PropertyPermission "*", "read,write";
    permission java.util.logging.LoggingPermission "control";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "preferences";
    permission java.lang.RuntimePermission "shutdownHooks";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

grant codeBase "file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/-"
{
    permission java.security.AllPermission;
};
grant codeBase "file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/lib/-" {
    permission java.security.AllPermission;
};

But when I try to start the geoserver application crashes. In the logs I can
see this:

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/logging.properties
read)

If I look in the WEB-INF/classes directory the logging.properties file
doesn't exist.

Any idea to solve this?

Thanks

--
View this message in context: http://www.nabble.com/War-File-installation-problems-tp20760441p20760441.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

not sure about Lenny, but have a look at

http://grimmeister.wordpress.com/2008/07/28/revisiting-geoserver-on-ubuntu/

Looks like you're on the right track, just easier to grant more permissions.

-Arne

arrowes wrote:

Hi,

I have installed Tomcat 5.5 in Debian Lenny and I deployed the geoserver.war
(1.7). I added the following lines to
/var/lib/tomcat5.5/conf/policy.d/04webapps.policy:

// The permissions granted to Geoserver
grant codebase "file:/var/lib/tomcat5.5/webapps/geoserver/-" {
    permission java.io.FilePermission
"/var/lib/tomcat5.5/webapps/geoserver/data/-", "read,write,delete";
    permission java.util.PropertyPermission "*", "read,write";
    permission java.util.logging.LoggingPermission "control";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "preferences";
    permission java.lang.RuntimePermission "shutdownHooks";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

grant codeBase "file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/-"
{
    permission java.security.AllPermission;
};
grant codeBase "file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/lib/-" {
    permission java.security.AllPermission;
};

But when I try to start the geoserver application crashes. In the logs I can
see this:

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/logging.properties
read)

If I look in the WEB-INF/classes directory the logging.properties file
doesn't exist.

Any idea to solve this?

Thanks

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Finally I removed tomcat 5.5 installed from debian repositories and then I
installed tomcat 6 from apache site. It works fine.

Arne Kepp-2 wrote:

Hi,

not sure about Lenny, but have a look at

http://grimmeister.wordpress.com/2008/07/28/revisiting-geoserver-on-ubuntu/

Looks like you're on the right track, just easier to grant more
permissions.

-Arne

arrowes wrote:

Hi,

I have installed Tomcat 5.5 in Debian Lenny and I deployed the
geoserver.war
(1.7). I added the following lines to
/var/lib/tomcat5.5/conf/policy.d/04webapps.policy:

// The permissions granted to Geoserver
grant codebase "file:/var/lib/tomcat5.5/webapps/geoserver/-" {
    permission java.io.FilePermission
"/var/lib/tomcat5.5/webapps/geoserver/data/-", "read,write,delete";
    permission java.util.PropertyPermission "*", "read,write";
    permission java.util.logging.LoggingPermission "control";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "preferences";
    permission java.lang.RuntimePermission "shutdownHooks";
    permission java.lang.reflect.ReflectPermission
"suppressAccessChecks";
};

grant codeBase
"file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/-"
{
    permission java.security.AllPermission;
};
grant codeBase "file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/lib/-"
{
    permission java.security.AllPermission;
};

But when I try to start the geoserver application crashes. In the logs I
can
see this:

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/logging.properties
read)

If I look in the WEB-INF/classes directory the logging.properties file
doesn't exist.

Any idea to solve this?

Thanks

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

-------------------------------------------------------------------------
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=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/War-File-installation-problems-tp20760441p20762049.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Perhaps add
    permission java.io.FilePermission
"/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes", "read";

But ... that shouldn't be nessesary. The properties file should be being
loaded as a resource, and that's done with the permissions of the
clasloader (that's kind of the point of using resources).

What's the stacktrace of the exception? Can't debug an exception without
a stacktrace!

-----Original Message-----
From: arrowes [mailto:jordi.feca@anonymised.com]
Sent: Monday, 1 December 2008 6:13 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] War-File installation problems

Hi,

I have installed Tomcat 5.5 in Debian Lenny and I deployed the
geoserver.war (1.7). I added the following lines to
/var/lib/tomcat5.5/conf/policy.d/04webapps.policy:

// The permissions granted to Geoserver
grant codebase "file:/var/lib/tomcat5.5/webapps/geoserver/-" {
    permission java.io.FilePermission
"/var/lib/tomcat5.5/webapps/geoserver/data/-", "read,write,delete";
    permission java.util.PropertyPermission "*", "read,write";
    permission java.util.logging.LoggingPermission "control";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "preferences";
    permission java.lang.RuntimePermission "shutdownHooks";
    permission java.lang.reflect.ReflectPermission
"suppressAccessChecks"; };

grant codeBase
"file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/-"
{
    permission java.security.AllPermission; }; grant codeBase
"file:/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/lib/-" {
    permission java.security.AllPermission; };

But when I try to start the geoserver application crashes. In the logs I
can see this:

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/var/lib/tomcat5.5/webapps/geoserver/WEB-INF/classes/logging.properties
read)

If I look in the WEB-INF/classes directory the logging.properties file
doesn't exist.

Any idea to solve this?

Thanks

--
View this message in context:
http://www.nabble.com/War-File-installation-problems-tp20760441p20760441
.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------
-
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=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------
If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent to you in error, that error does not constitute waiver of any confidentiality, privilege or copyright in respect of information in the e-mail or attachments.

Please consider the environment before printing this email.

------