Newsgroup: it.comp.java
Titolo: Server Tomcat v8.0 Server at localhost failed to start.

Salve ho un problema con l'avvio di apache tomcat 8 con Eclipse Luna. Qualcuno può aiutatmi? Grazie in anticipo, di seguito vi posto l'output della console
 
 
 
dic 14, 2014 6:07:28 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Avvertenza: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:InformatizzazioneEnergiaPrima' did not find a matching property.
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Server version:        Apache Tomcat/8.0.15
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Server built:          Nov 2 2014 19:25:20 UTC
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Server number:         8.0.15.0
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: OS Name:               Windows 7
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: OS Version:            6.1
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Architecture:          x86
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: JAVA_HOME:             C:\Program Files\Java\jre7
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: JVM Version:           1.7.0_45-b18
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: JVM Vendor:            Oracle Corporation
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: CATALINA_BASE:         C:\Users\dafcon\Desktop\energia prima\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 8.0
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Command line argument: -Dcatalina.base=C:\Users\dafcon\Desktop\energia prima\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Command line argument: -Dwtp.deploy=C:\Users\dafcon\Desktop\energia prima\Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Command line argument: -Dfile.encoding=Cp1252
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.VersionLoggerListener log
Informazioni: Command line argument: -Xbootclasspath/a:C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\tomcat-juli.jar
dic 14, 2014 6:07:28 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
Informazioni: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Program Files\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Enterprise Backup 3.8.2\;C:\Program Files\Common Files\HP\Digital Imaging\bin;C:\Program Files\HP\Digital Imaging\bin\;C:\Program Files\HP\Digital Imaging\bin\Qt\Qt 4.3.3;C:\Program Files\MATLAB\R2011a\runtime\win32;C:\Program Files\MATLAB\R2011a\bin;C:\Program Files\Pinnacle\Shared Files\;C:\Program Files\Java\jdk1.7.0_25\bin;C:\Users\dafcon\Desktop\ECLIPSE\eclipse-jee-luna-SR1-win32 funziona con apache 8\eclipse;;.
dic 14, 2014 6:07:28 PM org.apache.coyote.AbstractProtocol init
Informazioni: Initializing ProtocolHandler ["http-nio-8080"]
dic 14, 2014 6:07:28 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
Informazioni: Using a shared selector for servlet write/read
dic 14, 2014 6:07:28 PM org.apache.coyote.AbstractProtocol init
Informazioni: Initializing ProtocolHandler ["ajp-nio-8009"]
dic 14, 2014 6:07:28 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
Informazioni: Using a shared selector for servlet write/read
dic 14, 2014 6:07:28 PM org.apache.catalina.startup.Catalina load
Informazioni: Initialization processed in 840 ms
dic 14, 2014 6:07:28 PM org.apache.catalina.core.StandardService startInternal
Informazioni: Starting service Catalina
dic 14, 2014 6:07:28 PM org.apache.catalina.core.StandardEngine startInternal
Informazioni: Starting Servlet Engine: Apache Tomcat/8.0.15
dic 14, 2014 6:07:29 PM org.apache.jasper.servlet.TldScanner scanJars
Informazioni: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
dic 14, 2014 6:07:29 PM org.apache.catalina.core.ContainerBase startInternal
Grave: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/InformatizzazioneEnergiaPrima]]
	at java.util.concurrent.FutureTask.report(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:917)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:868)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/InformatizzazioneEnergiaPrima]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [protocollatore.AttoEntrataServlet] and [protocollatore.CreaAttoServlet] are both mapped to the url-pattern [/CreaAttoServlet] which is not permitted
	at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:308)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2325)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2007)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1901)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1896)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1139)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5095)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 6 more
 
dic 14, 2014 6:07:29 PM org.apache.catalina.core.ContainerBase startInternal
Grave: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
	at java.util.concurrent.FutureTask.report(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:917)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:439)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:760)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:625)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:925)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:868)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 6 more
 
dic 14, 2014 6:07:29 PM org.apache.catalina.startup.Catalina start
Grave: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:625)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:760)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:439)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:925)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 11 more
 
dic 14, 2014 6:07:29 PM org.apache.coyote.AbstractProtocol pause
Informazioni: Pausing ProtocolHandler ["http-nio-8080"]
dic 14, 2014 6:07:29 PM org.apache.coyote.AbstractProtocol pause
Informazioni: Pausing ProtocolHandler ["ajp-nio-8009"]
dic 14, 2014 6:07:29 PM org.apache.catalina.core.StandardService stopInternal
Informazioni: Stopping service Catalina
dic 14, 2014 6:07:29 PM org.apache.coyote.AbstractProtocol destroy
Informazioni: Destroying ProtocolHandler ["http-nio-8080"]
dic 14, 2014 6:07:29 PM org.apache.coyote.AbstractProtocol destroy
Grave: Failed to destroy end point associated with ProtocolHandler ["http-nio-8080"]
java.lang.NullPointerException
	at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:307)
	at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:482)
	at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:795)
	at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:531)
	at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
	at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:588)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
	at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:850)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
 
dic 14, 2014 6:07:29 PM org.apache.coyote.AbstractProtocol destroy
Informazioni: Destroying ProtocolHandler ["ajp-nio-8009"]
dic 14, 2014 6:07:29 PM org.apache.coyote.AbstractProtocol destroy
Grave: Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]
java.lang.NullPointerException
	at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:307)
	at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:482)
	at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:795)
	at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:531)
	at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
	at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:588)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
	at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:850)
	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

 
<dic 14, 2014 6:07:28 PM org.apache.tomcat.util.digester.SetPropertiesRule 
begin
<Avvertenza: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting 
property 'source' to <.eclipse.jst.jee.server:InformatizzazioneEnergiaPrima' 
did not find a matching property.
 
questo non è un errore,ma solo un avvertimento
 
<Caused by: java.lang.IllegalArgumentException: The servlets named 
[protocollatore.AttoEntrataServlet] and [protocollatore.CreaAttoServlet] are 
both mapped to the url-pattern [/CreaAttoServlet] which is <not permitted
 
Hai lo stesso mapping dichiarato sia nel file web.xml che nelle annotations.
 
Forse hai creato una servlet con il wizard che crea una entry nel file 
web.xml con un ulr-pattern , e poi hai anche aggiunto l'annotazione 
@WebServlet che duplica quanto presente nel file web.xml.
 
 

 
<Hai lo stesso mapping dichiarato sia nel file web.xml che nelle 
annotations.
 
cioč due servlet non possono essere mappate sul medesimo url pattern,e 
alcuni server lo vietano esplicitamente (inoltre non ha neppure senso in 
quanto il matching "url to servlet"  si arresta dopo aver trovato la prima 
corrispondenza e quindi non utilizza mai la seconda).