Ah, now we are getting somewhere:

----- Root Cause -----
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1313)
        at java.io.File.createTempFile(File.java:1401)
        at java.io.File.createTempFile(File.java:1438)
        at

I'm not familiar enough with the admin app to know what it's trying to do
there, but obviously it wants to create a file somewhere, and can't.
Whatever it is, its happening right here:

org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)

...and the last thing it was trying to do was:

2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
to
/opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar

So....what's up with that directory path?  Anything?  Permissions, etc.?
Anyone else know exactly what's going on?

John


> -----Original Message-----
> From: klavs klavsen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 11:18 AM
> To: Tomcat Users List
> Subject: RE: tomcat/manager works - tomcat/admin = 404.
> 
> 
> On Tue, 2003-01-28 at 17:06, Turner, John wrote:
> > 
> > Yes, you can run it as a non-root user.  That's what I do.  
> Tomcat is pretty
> > self-contained.
> > 
> > Is there anything in the logs about the admin application?  
> It's very
> > strange to me that /manager would work, but /admin would 
> not.  They are both
> > configured for auto-deploy.
> > 
> Sorry - I totally forgot that.
> 
> output from the admin_log.
> 
> 2003-01-28 17:15:56 WebappLoader[/admin]: Deploying class repositories
> to work directory
> /opt/jakarta/tomcat/work/Standalone/ofbiz.vsen.dk/admin
> 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy class files
> /WEB-INF/classes to
> /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/classes
> 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR
> /WEB-INF/lib/struts.jar to
> /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/li
> b/struts.jar
> 2003-01-28 17:15:57 ContextConfig[/admin] Exception processing JAR at
> resource path /WEB-INF/lib/struts.jar
> javax.servlet.ServletException: Exception processing JAR at resource
> path /WEB-INF/lib/struts.jar
>         at
> org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo
> nfig.java:930)
>         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.java:243)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.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.core.StandardService.start(StandardService
> .java:497)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.j
> ava:2189)
>         at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> ----- Root Cause -----
> java.io.IOException: No such file or directory
>         at java.io.UnixFileSystem.createFileExclusively(Native Method)
>         at java.io.File.checkAndCreate(File.java:1313)
>         at java.io.File.createTempFile(File.java:1401)
>         at java.io.File.createTempFile(File.java:1438)
>         at
> sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
>         at
> sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
>         at
> sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
>         at
> sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnec
> tion.java:85)
>         at
> sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLCon
> nection.java:69)
>         at
> org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo
> nfig.java:906)
>         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.java:243)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.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.core.StandardService.start(StandardService
> .java:497)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.j
> ava:2189)
>         at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> 2003-01-28 17:15:57 ContextConfig[/admin]: Marking this application
> unavailable due to previous error(s)
> 2003-01-28 17:15:57 StandardManager[/admin]: Seeding random number
> generator class java.security.SecureRandom
> 2003-01-28 17:15:58 StandardManager[/admin]: Seeding of random number
> generator has been completed
> 2003-01-28 17:15:58 StandardContext[/admin]: Context startup 
> failed due
> to previous errors
> 
> > What happens if you move the contents of admin.xml into 
> server.xml itself
> > and restart Tomcat?
> > 
> same difference.
> 
> > John
> > 
> > > -----Original Message-----
> > > From: klavs klavsen [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 28, 2003 11:03 AM
> > > To: Tomcat Users List
> > > Subject: RE: tomcat/manager works - tomcat/admin = 404.
> > > 
> > > 
> > > On Tue, 2003-01-28 at 16:29, Turner, John wrote:
> > > > 
> > > > Does that file get created?  Admin.xml is no different than 
> > > manager.xml.  If
> > > > /manager is working, /admin should work as well.  My guess 
> > > is there is
> > > > something on the filesystem (permissions, etc) that is 
> > > preventing Tomcat
> > > > from deploying the admin app, though I could easily be wrong.
> > > > 
> > > This sounds like a logical proposition.
> > > 
> > > However, as I don't like to just do chmod 777 -R to my webserver
> > > directory :) - I was hoping some of you could give tell me what
> > > directories/files needs to be owned by the user who runs 
> > > tomcat (or just
> > > runable by all).
> > > 
> > > Btw. my tomcat is run by root currently. Can I just run it with as
> > > f.ex.  a tomcat-user?
> > > 
> > > thank you in advance.
> > >  
> > > -- 
> > > Regards,
> > > Klavs Klavsen
> > > 
> > > --------------| This mail has been sent to you by: |------------
> > >               Klavs Klavsen - Open Source Consultant 
> > >             [EMAIL PROTECTED] - http://www.EnableIT.dk
> > > 
> > >     Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
> > > Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
> > > ----------------------------------------------------------------
> > > Open Source Software - Sometimes you get more than you paid for.
> > >                                                  -- unknown
> > > 
> > 
> > --
> > To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> 
-- 
Regards,
Klavs Klavsen

--------------| This mail has been sent to you by: |------------
              Klavs Klavsen - Open Source Consultant 
            [EMAIL PROTECTED] - http://www.EnableIT.dk

    Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
----------------------------------------------------------------
Open Source Software - Sometimes you get more than you paid for.
                                                 -- unknown

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

Reply via email to