> -----Original Message----- > From: Bernd Prager [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 08, 2004 2:43 PM > To: [EMAIL PROTECTED] > Subject: ZipException: Permission denied > > > While setting up a struts framework on linux (Debian) I have trouble > getting my application to work. > I get two significant error messages and I hope by solving the first > issue the second one disappears. > I use the testing packages on Debian (tomcat4 4.1.30-6 and > libstruts1.1-j 1.1-2). > > The first error message is in catalina.log: > > Dec 8, 2004 4:24:43 PM org.apache.struts.util.PropertyMessageResources > <init> > INFO: Initializing, > config='org.apache.webapp.admin.ApplicationResources', returnNull=true > java.util.zip.ZipException: Permission denied
You haven't said what your experience level with Linux and Tomcat is... so this may be a quesiton you have already answered.... Have you checked the permissions of the webapps directory and made sure that whatever user tomcat is running as has rwx priveleges? > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.<init>(ZipFile.java:112) > at java.util.jar.JarFile.<init>(JarFile.java:127) > at java.util.jar.JarFile.<init>(JarFile.java:92) > at > org.apache.catalina.loader.WebappLoader.setRepositories(Webapp > Loader.jav > a:1066) > at > org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:665) > at > org.apache.catalina.core.StandardContext.start(StandardContext > .java:3550 > ) > at > org.apache.catalina.core.ContainerBase.addChildInternal(Contai > nerBase.ja > va:821) > at > org.apache.catalina.core.ContainerBase.access$000(ContainerBas > e.java:162 > ) > at > org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run( > ContainerB > ase.java:182) > at java.security.AccessController.doPrivileged(Native Method) > ... > > Now I checked the entire tomcat4 directory structure, all files are > owned by tomcat4 and readable. > Tomcat has write access to all project directories. I even checked the > /var/cache/tomcat4 dir. > I scanned the entire box for all existing jar files and confirmed > they're readable as well. > What else could cause that? > > The second message is in localhost.log: > > 2004-12-08 16:24:46 HostConfig[localhost]: Deploying web application > directory register > 2004-12-08 16:24:47 ContextConfig[/register] Exception > processing JAR at > resource path /WEB-INF/lib/commons-collections.jar > javax.servlet.ServletException: Exception processing JAR at resource > path /WEB-INF/lib/commons-collections.jar > at > org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo > nfig.java: > 930) > at > org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi > g.java:868 > ) > ... > ----- Root Cause ----- > java.lang.IllegalArgumentException: Invalid TLD resource path > /WEB-INF/lib/commons-collections.jar > at > org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo > nfig.java: > 898) > at > org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi > g.java:868 > ) > at > org.apache.catalina.startup.ContextConfig.start(ContextConfig. > java:647) > at > org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte > xtConfig.j > ava:243) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L > ifecycleSu > pport.java:166) > at > org.apache.catalina.core.StandardContext.start(StandardContext > .java:3587 > ) > at > org.apache.catalina.core.ContainerBase.addChildInternal(Contai > nerBase.ja > va:821) > at > org.apache.catalina.core.ContainerBase.access$000(ContainerBas > e.java:162 > ) > at > org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run( > ContainerB > ase.java:182) > at java.security.AccessController.doPrivileged(Native Method) > > The application doesn't start of course. > > Can anybody please help me here? > Thanks a lot, > -- Bernd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]