tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: application deployment issue, Tomcat 5.5
Date Thu, 02 Oct 2008 12:54:52 GMT
albrecht andrzejewski wrote:
> 
[...]

> 
Thanks for the various answers.
But apparently the problem was that this was missing :

grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
[ .. parts omitted ..]
         permission java.io.FilePermission 
"${catalina.base}${file.separator}webapps${file.separator}/webapps/miramanager${file.separator}WEB-INF${file.separator}classes${file.separator}logging.properties",

"read";
};

which, had I looked better at the following logfile messages, I guess I 
could have found out by myself.
I am still a bit puzzled by the sequence of events below though.
First it writes that the WAR file is invalid or unreadable, then 10 
seconds later it mentions a logging properties permission problem.
We did restart Tomcat a couple of times trying to find out more, but it 
seems improbable that we did this just in that 10-second interval.
Another funny bit is that it mentions the permissions problem with a 
file WEB-INF/classes/logging.properties, which in fact is not in the WAR 
file.

Oh well, it seems to work now, so I'll leave it at that.


(Note : below I did cut off parts of some verbous loglines, but I did 
not remove any message).

01-Oct-2008 14:09:17 org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file : 
error in opening zip file
	at 
org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:134)
	at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3848)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4019)
[... portion removed ...]
01-Oct-2008 14:09:17 org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
01-Oct-2008 14:09:17 org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
01-Oct-2008 14:09:17 org.apache.catalina.core.StandardContext start
SEVERE: Context [/miramanager] startup failed due to previous errors
01-Oct-2008 14:09:17 org.apache.catalina.core.StandardContext stop
INFO: Container 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/miramanager] 
has not been started
01-Oct-2008 14:09:27 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/miramanager]
01-Oct-2008 14:09:27 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive miramanager.war
01-Oct-2008 14:09:28 org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive miramanager.war
org.apache.commons.logging.LogConfigurationException: 
java.security.AccessControlException: access denied 
(java.io.FilePermission 
/var/lib/tomcat5.5/webapps/miramanager/WEB-INF/classes/logging.properties 
read) (Caused by java.security.AccessControlException: access denied 
(java.io.FilePermission 
/var/lib/tomcat5.5/webapps/miramanager/WEB-INF/classes/logging.properties 
read))
	at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
	at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
	at [... portion removed ...]
Caused by: java.security.AccessControlException: access denied 
(java.io.FilePermission 
/var/lib/tomcat5.5/webapps/miramanager/WEB-INF/classes/logging.properties 
read)
	at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
	at
[.. more stuff removed ...]
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
	... 21 more



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message