Jeg fant feilen ved ? lese "gamle" veiledninger for installasjon av beta 6.
punkt 3. Kopier apache/webapps/* fra NAV inn i webapps/ i tomcat-katalogen.
cp /usr/share/java/webapps/navAdmin.war /var/lib/tomcat4/webapps/ + /etc/init.d/tomcat restart gjorde susen
Peder Magne Sefland Avd. ingeni?r IT-avd. H?gskulen i Volda Postboks 500 6101 VOLDA
70075284 (kontor) 90823914 (mob.)
"Peder Magne Sefland" peder.sefland@hivolda.no 05.10.2004 09:09:46 >>>
Magnus Nordseth magnus@ntnu.no 04.10.2004 23:41:57 >>>
Peder Magne Sefland:
HTTP Status 404 - /navAdmin/servlet/navAdmin
type Status report
message /navAdmin/servlet/navAdmin
description The requested resource (/navAdmin/servlet/navAdmin) is not available.
Apache Tomcat/4.1
Jeg pr?vde ? kj?re logging p? apache, mens jeg navigerte meg rundt i nav. Uten at jeg kunne se noen direkte feil der.
tail -f /var/log/apache2/error.log
[Fri Oct 01 18:30:45 2004] [notice] mod_python: (Re)importing module 'toolbox' [Fri Oct 01 18:30:53 2004] [notice] mod_python: (Re)importing module 'report' [Fri Oct 01 18:31:04 2004] [notice] mod_python: (Re)importing module 'nav.web.pyproxy.proxy'
Er det et python-problem (eller retter sagt utfordring) jeg har?
Det ser ut til at problemet er relatert til tomcat, ikke python. Hva sier tomcat sin logg?
less /var/log/tomcat4/catalina_2004-10-02.log Using CATALINA_BASE: /var/lib/tomcat4 Using CATALINA_HOME: /usr/share/tomcat4 Using CATALINA_TMPDIR: /var/lib/tomcat4/temp Using JAVA_HOME: /usr/lib/j2sdk1.4-sun Created MBeanServer with ID: 175d6ab:ff57bbc839:-8000:nav3.hivolda.no:1 Oct 2, 2004 5:43:06 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8180 Starting service Tomcat-Standalone Apache Tomcat/4.1 Oct 2, 2004 5:43:12 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8180 Oct 2, 2004 5:43:12 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Oct 2, 2004 5:43:12 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=103/456 config=/var/lib/tomcat4/conf/jk2.properties Stopping service Tomcat-Standalone Oct 2, 2004 5:48:43 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8180 Catalina:type=ThreadPool,name=http8180 Using CATALINA_BASE: /var/lib/tomcat4 Using CATALINA_HOME: /usr/share/tomcat4 Using CATALINA_TMPDIR: /var/lib/tomcat4/temp Using JAVA_HOME: /usr/lib/j2sdk1.4-sun Created MBeanServer with ID: 175d6ab:ff57c25bac:-8000:nav3.hivolda.no:1 Oct 2, 2004 5:50:17 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8180 Starting service Tomcat-Standalone Apache Tomcat/4.1 Oct 2, 2004 5:50:23 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8180 Oct 2, 2004 5:50:24 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Oct 2, 2004 5:50:24 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=105/600 config=/var/lib/tomcat4/conf/jk2.properties ~
Kanskje det er viktigere det som st?r her
less /var/log/tomcat4/localhost_2004-10-02.log 2004-10-02 05:43:07 StandardContext[/tomcat-docs]: Resources start failed: java.lang.IllegalArgumentException: Document base /var/lib/tomcat4/webapps/tomcat-docs does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3349) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3479) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
2004-10-02 05:43:08 StandardContext[/tomcat-docs]: Context startup failed due to previous errors 2004-10-02 05:43:08 StandardContext[/tomcat-docs]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/tomcat-docs] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3663) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3641) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
2004-10-02 05:43:08 HostConfig[localhost]: Deploying web application directory ROOT 2004-10-02 05:43:08 StandardHost[localhost]: Installing web application at context path from URL file:/var/lib/tomcat4/webapps/ROOT 2004-10-02 05:43:08 WebappLoader[]: Deploying class repositories to work directory /var/lib/tomcat4/work/Standalone/localhost/_ 2004-10-02 05:43:09 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2004-10-02 05:43:11 StandardManager[]: Seeding of random number generator has been completed 2004-10-02 05:43:11 StandardWrapper[:default]: Loading container servlet default 2004-10-02 05:43:11 default: init 2004-10-02 05:43:11 StandardWrapper[:invoker]: Loading container servlet invoker 2004-10-02 05:43:11 invoker: init 2004-10-02 05:43:11 jsp: init 2004-10-02 05:48:43 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2004-10-02 05:48:43 StandardHost[localhost]: ContainerBase.removeChild: stop: LifecycleException: Container StandardContext[/tomcat-docs] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3663) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036) at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:470) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:868) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:758) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:738)
Det er riktig som du p?peker at det sitter et tynt lag med python-kode foran tomcat, men denne har kun til funksjon ? s?rge for autentisering samt ? bidra til et enhetlig utseende. Dersom du likevel tror python-koden skaper problemer kan du pr?ve ? peke browseren direkte mot tomcat (typisk port 8080).
N?r jeg bruker http og peker mot port 8180, viser den tomcat-siden. Er ikke sikker p? om den skal vise noe kataloger/filer her? Jeg kunne lagt ved skjermbilde, men vet ikke om nav-user mailinglisten tillater det.
Directory Listing For /
-------------------------------------------------------------------------------- Filename Size Last Modified
--------------------------------------------------------------------------------
Apache Tomcat/4.1
Kan det v?re at henvisning til Document base mangler i installasjonveiledningen /usr/share/doc/nav/README.Debian? Hva skal evt. st? her
6. Tomcat Set the Java location in Tomcat's configuration and turn off security (to give our applets access to the filesystem): o /etc/default/tomcat4: JAVA_HOME="/usr/lib/j2sdk1.4-sun/jre" (Denne er n? korrigert til /usr/lib/j2sdk1.4-sun) TOMCAT4_SECURITY=no o restart Tomcat: /etc/init.d/tomcat4 restart
Peder Sefland
_______________________________________________ Nav-users mailing list Nav-users@mailman.itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users