Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    [Java] errore all'avvio di tomcat

    Ciao a tutti!
    Spero ch sia la sezione giusta, in caso contrario questo č lavoro dei mod

    Il mio problema č questo:

    Ho un'applicazione che con tomcat 4.1 funziona perfettamente, ora io vorrei trasferire tale appl. in tomcat 5.5.16. Ho ricompilato tutte le servlet ecc, ma quando avvio la versione 5 mi da delle eccezioni che sono riportate qui di seguito:

    codice:
    INFO: The Apache Tomcat Native library which allows optimal performance in produ
    ction environments was not found on the java.library.path: C:\Programmi\Java\jdk
    1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\j2sdk1.4.2_07\bin;C:\WINDOWS\sy
    stem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
    29-mar-2006 16.23.30 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    29-mar-2006 16.23.30 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1157 ms
    29-mar-2006 16.23.30 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    29-mar-2006 16.23.30 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
    29-mar-2006 16.23.30 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    29-mar-2006 16.23.32 org.apache.tomcat.util.digester.Digester endElement
    GRAVE: End event threw exception
    java.lang.reflect.InvocationTargetException
            at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUt
    ils.java:929)
            at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.jav
    a:578)
            at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
            at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:105
    7)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
    nt(AbstractSAXParser.java:633)
            at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamesp
    aceScope(XMLDTDValidator.java:2108)
            at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEnd
    Element(XMLDTDValidator.java:2059)
            at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElemen
    t(XMLDTDValidator.java:932)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:834)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:764)
            at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
    java:148)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
    stractSAXParser.java:1242)
            at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
            at org.apache.catalina.startup.ContextConfig.applicationWebConfig(Contex
    tConfig.java:351)
            at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:10
    34)
            at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
    g.java:260)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    118)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:759)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
    9)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    
            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
    a:904)
            at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
    ava:867)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
    )
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :310)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
    )
            at org.apache.catalina.core.StandardService.start(StandardService.java:4
    50)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
    )
            at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unkn
    own servlet name invoker
            at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
    ntext.java:2288)
            at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
    ntext.java:2268)
            ... 46 more
    29-mar-2006 16.23.32 org.apache.catalina.startup.ContextConfig applicationWebCon
    fig
    GRAVE: Parse error in application web.xml file at jndi:/localhost/examples/WEB-I
    NF/web.xml
    java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet
     name invoker
            at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.
    java:2725)
            at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.
    java:2751)
            at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:106
    0)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
    nt(AbstractSAXParser.java:633)
            at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamesp
    aceScope(XMLDTDValidator.java:2108)
            at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEnd
    Element(XMLDTDValidator.java:2059)
            at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElemen
    t(XMLDTDValidator.java:932)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:834)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:764)
            at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
    java:148)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
    stractSAXParser.java:1242)
            at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
            at org.apache.catalina.startup.ContextConfig.applicationWebConfig(Contex
    tConfig.java:351)
            at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:10
    34)
            at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
    g.java:260)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    118)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:759)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
    9)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    
            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
    a:904)
            at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
    ava:867)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
    )
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :310)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
    )
            at org.apache.catalina.core.StandardService.start(StandardService.java:4
    50)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
    )
            at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    29-mar-2006 16.23.32 org.apache.catalina.startup.ContextConfig applicationWebCon
    fig
    GRAVE: Occurred at line 149 column 23
    29-mar-2006 16.23.32 org.apache.catalina.startup.ContextConfig start
    GRAVE: Marking this application unavailable due to previous error(s)
    29-mar-2006 16.23.32 org.apache.catalina.core.StandardContext start
    GRAVE: Error getConfigured
    29-mar-2006 16.23.32 org.apache.catalina.core.StandardContext start
    GRAVE: Context [/examples] startup failed due to previous errors
    29-mar-2006 16.23.32 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    29-mar-2006 16.23.33 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    29-mar-2006 16.23.33 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/47  config=null
    29-mar-2006 16.23.33 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    29-mar-2006 16.23.33 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3016 ms
    Il server l'ho appena insatallato quindi questa č l'unica applicazione che gira a parte quelle di default e di esempio del server.

    Qualcuno ha qualche idea di dove mettere le mani per far funzionare tutto correttamente?

    Grazie 1000

  2. #2
    Utente di HTML.it L'avatar di floyd
    Registrato dal
    Apr 2001
    Messaggi
    3,837
    basta leggere
    GRAVE: Parse error in application web.xml file at jndi:/localhost/examples/WEB-INF/web.xml
    il web.xml č scritto male
    elimina examples e riavvia tutto

  3. #3

    examples č proprio l'applicazione che mi interessa...

    Tu dici che il problema sta tutto nel web.xml?
    non c'entrano nulla le librerie o le classi dell'appl.?

  4. #4
    Utente di HTML.it L'avatar di floyd
    Registrato dal
    Apr 2001
    Messaggi
    3,837
    Originariamente inviato da christian78
    Tu dici che il problema sta tutto nel web.xml?
    lo dice lui

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.