Hi,

i have found the reason for my problems. The main exception, which is thrown
has the following stacktrace:

java.io.IOException: Access is denied
 at java.io.Win32FileSystem.createFileExclusively(Native Method)
 at java.io.File.checkAndCreate(File.java:1162)
 at java.io.File.createTempFile(File.java:1247)
 at java.io.File.createTempFile(File.java:1284)
 at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:143)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:138)
 at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:43)
 at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:61)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:88)
 at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:7
2)
 at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
 at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.startup.Embedded.start(Embedded.java:994)

I have started an embedded tomcat 4.1.18 instance with my own NT Service. In
the ContextConfig class
tomcat tries to take a look inside of the jar files in /WEB-INF/lib. For
this issue tomcat needs a temporary
folder. This seems to be c:\winnt in the case of a service. The temp dir is
defined by the java property "java.io.tmpdir".
Because i have started the service as a generic user, i got the exception
access denied.
I have now set the property "java.io.tmpdir" to a directory within the
tomcat installation and now everything works
fine. Maybe this should be done by default?!

Cheers

Holger
----- Original Message -----
From: "Holger Brozio" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Cc: "Tomcat Development" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 12:07 PM
Subject: Problem with JSTL on W2k


> Hello,
>
> i have a problem with the JSTL on W2k. If i start tomcat i get the
follwoing
> exception:
>
> javax.servlet.ServletException: Exception processing JAR at resource path
> /WEB-INF/lib/jaxen-full.jar
>  at
>
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
>  at
> org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
>  at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
>  at
>
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
> 243)
>  at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:166)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>  at org.apache.catalina.startup.Embedded.start(Embedded.java:994)
>  at
>
com.intershop.beehive.core.internal.startup.EmbeddedTomcatMgr.startTomcat(Em
> beddedTomcatMgr.java:393)
>  at
>
com.intershop.beehive.core.internal.startup.EmbeddedTomcatMgr.onReadyHook(Em
> beddedTomcatMgr.java:333)
>  at
>
com.intershop.beehive.core.internal.startup.AdminServer.start(AdminServer.ja
> va:70)
>  at
>
com.intershop.beehive.core.internal.startup.AdminServer.main(AdminServer.jav
> a:264)
>
> I have debugged the ContextConfig class and found out, that an exception
is
> thrown at the line 930, which has "Access is denied" as description. It
> seems that tomcat tries to open an URLConnection with the url
> "jndi:/<hostname> /WEB-INF/lib/jaxen-full.jar!/".
> My user on W2k is a normal user. If i add the user to the administrators
or
> power user group, there are no problems. I have also tried
> to change the file permissions of the jar file without an effect.
> So it seems to be a permission problem. Does anybody know, which
permission
> on W2k is missing for my user or group, which doesn't allow a normal user
to
> get the jar informations?
>
> Thanx in advance.
>
> Holger
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to