Newsgroup: it.comp.os.linux.software
Titolo: Tomcat 4.1 e Debian

Ciao, finalmente ce l'ho fatta, tomcat parte, sembra tutto ok, tranne per il
fatto che non mi fa partire la mia
ServletStupida che sta nell'applicazione gggg. Dai log mi sembra che ci sia
un problema con il web.xml,
solo che su win funzica da paura... ma chissà perchè? Eccovi il file e i
log. Voi ci vedete qlc di sbagliato?
Non solo, all'avvio examples parte bene infatti se faccio /manager/list mi
dice che è running, ma se poi
provo a farla partire con /manager/start?path=/examples mi dà un'eccezzione
tipo LifeCycle. A quel punto
faccio /reload e dice che è andato a buon fine, però nella list ora è
stopped, mah... Cmq è
+ importante il primo errore.
Grazie Ancora
Ciao
N@pol¤on
-------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-apps
 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "
http://java.sun.com/dtd/web-app_2_3.dtd
">
<web-app>
<servlet>
<servlet-name>gggg</servlet-name>
<servlet-class>ServletStupida</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>gggg</servlet-name>
<url-pattern>/ServletStupida</url-pattern>
</servlet-mapping>
</web-app>
2003-04-03 21:30:03 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2003-04-03 21:30:04 StandardManager[/manager]: Seeding of random number
generator has been completed
2003-04-03 21:30:05 ContextConfig[/manager]: Configured an authenticator for
method BASIC
2003-04-03 21:30:05 StandardWrapper[/manager:default]: Loading container
servlet default
2003-04-03 21:30:05 default: init
2003-04-03 21:30:05 StandardWrapper[/manager:invoker]: Loading container
servlet invoker
2003-04-03 21:30:05 invoker: init
2003-04-03 21:30:05 jsp: init
2003-04-03 21:30:06 StandardHost[localhost]: Installing web application at
context path  from URL file:/var/lib/tomcat4/webapps/ROOT
2003-04-03 21:30:06 WebappLoader[]: Deploying class repositories to work
directory /usr/share/tomcat4/work/localhost/_
2003-04-03 21:30:06 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2003-04-03 21:30:06 StandardManager[]: Seeding of random number generator
has been completed
2003-04-03 21:30:06 StandardWrapper[:default]: Loading container servlet
default
2003-04-03 21:30:06 default: init
2003-04-03 21:30:06 StandardWrapper[:invoker]: Loading container servlet
invoker
2003-04-03 21:30:06 invoker: init
2003-04-03 21:30:06 jsp: init
2003-04-03 21:30:06 StandardHost[localhost]: Installing web application at
context path /gggg from URL file:/var/lib/tomcat4/webapps/gggg
2003-04-03 21:30:06 WebappLoader[/gggg]: Deploying class repositories to
work directory /usr/share/tomcat4/work/localhost/gggg
2003-04-03 21:30:06 StandardManager[/gggg]: Seeding random number generator
class java.security.SecureRandom
2003-04-03 21:30:06 StandardManager[/gggg]: Seeding of random number
generator has been completed
2003-04-03 21:30:07 ContextConfig[/gggg] Parse error in application web.xml
org.xml.sax.SAXParseException: Document root element "web-app", must match
DOCTYPE root "web-apps".
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
        at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:256)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
224)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        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:243)
2003-04-03 21:30:07 ContextConfig[/gggg]: Occurred at line 7 column 10
2003-04-03 21:30:07 ContextConfig[/gggg]: Marking this application
unavailable due to previous error(s)
2003-04-03 21:30:07 StandardContext[/gggg]: Error initializing naming
context for context /gggg
2003-04-03 21:30:07 StandardContext[/gggg]: Context startup failed due to
previous errors
2003-04-03 21:30:07 StandardContext[/gggg]: Error initializing naming
context for context /gggg
2003-04-03 21:30:07 StandardHost[localhost]: Installing web application at
context path /tomcat-docs from URL file:/var/lib/tomcat4/webapps/tomcat-docs
2003-04-03 21:30:07 WebappLoader[/tomcat-docs]: Deploying class repositories
to work directory /usr/share/tomcat4/work/localhost/tomcat-docs
2003-04-03 21:30:07 StandardManager[/tomcat-docs]: Seeding random number
generator class java.security.SecureRandom
2003-04-03 21:30:07 StandardManager[/tomcat-docs]: Seeding of random number
generator has been completed
2003-04-03 21:30:07 StandardWrapper[/tomcat-docs:default]: Loading container
servlet default
2003-04-03 21:30:07 default: init
2003-04-03 21:30:07 StandardWrapper[/tomcat-docs:invoker]: Loading container
servlet invoker
2003-04-03 21:30:07 invoker: init
2003-04-03 21:30:07 jsp: init
2003-04-03 21:30:08 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:/var/lib/tomcat4/webapps/webdav
2003-04-03 21:30:08 WebappLoader[/webdav]: Deploying class repositories to
work directory /usr/share/tomcat4/work/localhost/webdav
2003-04-03 21:30:08 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2003-04-03 21:30:08 StandardManager[/webdav]: Seeding of random number
generator has been completed
2003-04-03 21:30:08 StandardWrapper[/webdav:default]: Loading container
servlet default
2003-04-03 21:30:08 default: init
2003-04-03 21:30:08 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2003-04-03 21:30:08 invoker: init
2003-04-03 21:30:08 jsp: init
2003-04-03 21:30:09 StandardHost[localhost]: Installing web application at
context path /examples from URL file:/var/lib/tomcat4/webapps/examples
2003-04-03 21:30:09 WebappLoader[/examples]: Deploying class repositories to
work directory /usr/share/tomcat4/work/localhost/examples
2003-04-03 21:30:09 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2003-04-03 21:30:09 StandardManager[/examples]: Seeding of random number
generator has been completed
2003-04-03 21:30:10 ContextConfig[/examples]: Configured an authenticator
for method FORM
2003-04-03 21:30:10 ContextListener: contextInitialized()
003-04-03 21:30:10 SessionListener: contextInitialized()
2003-04-03 21:30:10 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@9980d5')
2003-04-03 21:30:10 StandardWrapper[/examples:default]: Loading container
servlet default
2003-04-03 21:30:10 default: init
2003-04-03 21:30:10 StandardWrapper[/examples:invoker]: Loading container
servlet invoker
2003-04-03 21:30:10 invoker: init
2003-04-03 21:30:10 jsp: init
2003-04-03 21:30:10 StandardWrapper[/manager:Manager]: Loading container
servlet Manager
2003-04-03 21:30:10 Manager: init
2003-04-03 21:30:10 Manager: init: Associated with Deployer 'localhost'
2003-04-03 21:30:10 Manager: list: Listing contexts for virtual host
'localhost'

 sia un problema con il web.xml,
Ho avuto un problema simile, mi pare di averlo risolto installando il locale 
su debian. Cosa c'entra ? Boh ? Pero' poi funzionava :)
Ah, potrebbero essere dei problemi di CR+LF tra Windows e Linux.
-- 
mailto:
gabriele....@rcfmedia.biz

 DOCTYPE root "web-apps".
ti dice niente questa riga del log?
--
mattia
-- 
Posted via Mailgate.ORG Server - 
http://www.Mailgate.ORG

 DOCTYPE root "web-apps".
ti dice niente questo errore nel log? prendi un qualunque web.xml di 
una qualunque altra applicazione e vedi cosa c'e' di diverso.
