2017-07-28 18:53 GMT+03:00 Roparzh Hemon <roparzhhe...@gmail.com>:
> On Fri, Jul 28, 2017 at 5:13 PM, Mark Eggers
> <its_toas...@yahoo.com.invalid> wrote:
>
>> My initial guess is that you have Tomcat running as a service left over
>> from your previous attempts and that it is bound to port 8080 already.
>
>   That seems likely indeed, but 1) Eclipse says it is stopped before
> launching it and 2) when I do lsof -i tcp:8080 in my terminal I get an
> empty output.
>
>  Below is the long output in the console. The one line I noticed in it
> is the following :
>
> The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> [/Users/roparzhhemon/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
>
> Console output :
>
> juil. 28, 2017 5:44:55 PM
> org.apache.tomcat.util.digester.SetPropertiesRule begin
> AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
> Setting property 'source' to 'org.eclipse.jst.jee.server:jupiter' did
> not find a matching property.
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Server version:        Apache Tomcat/9.0.0.M22
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Server built:          Jun 21 2017 09:44:18 UTC
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Server number:         9.0.0.0
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: OS Name:               Mac OS X
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: OS Version:            10.11.3
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Architecture:          x86_64
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Java Home:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: JVM Version:           1.8.0_131-b11
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: JVM Vendor:            Oracle Corporation
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: CATALINA_BASE:
> /Users/roparzhhemon/Documents/Web_Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: CATALINA_HOME:
> /Users/roparzhhemon/Documents/Installations/usr/local/apache-tomcat-9.0.0.M22
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Command line argument:
> -Dcatalina.base=/Users/roparzhhemon/Documents/Web_Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Command line argument:
> -Dcatalina.home=/Users/roparzhhemon/Documents/Installations/usr/local/apache-tomcat-9.0.0.M22
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Command line argument:
> -Dwtp.deploy=/Users/roparzhhemon/Documents/Web_Projects/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Command line argument:
> -Djava.endorsed.dirs=/Users/roparzhhemon/Documents/Installations/usr/local/apache-tomcat-9.0.0.M22/endorsed
> juil. 28, 2017 5:44:55 PM org.apache.catalina.startup.VersionLoggerListener 
> log
> INFOS: Command line argument: -Dfile.encoding=UTF-8
> juil. 28, 2017 5:44:55 PM
> org.apache.catalina.core.AprLifecycleListener lifecycleEvent
> INFOS: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> [/Users/roparzhhemon/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
> juil. 28, 2017 5:44:56 PM org.apache.coyote.AbstractProtocol init
> INFOS: Initializing ProtocolHandler ["http-nio-8080"]
> juil. 28, 2017 5:44:56 PM org.apache.tomcat.util.net.NioSelectorPool
> getSharedSelector
> INFOS: Using a shared selector for servlet write/read
> juil. 28, 2017 5:44:56 PM org.apache.coyote.AbstractProtocol init
> INFOS: Initializing ProtocolHandler ["ajp-nio-8009"]
> juil. 28, 2017 5:44:56 PM org.apache.tomcat.util.net.NioSelectorPool
> getSharedSelector
> INFOS: Using a shared selector for servlet write/read
> juil. 28, 2017 5:44:56 PM org.apache.catalina.startup.Catalina load
> INFOS: Initialization processed in 3480 ms
> juil. 28, 2017 5:44:56 PM org.apache.catalina.core.StandardService 
> startInternal
> INFOS: Démarrage du service [Catalina]
> juil. 28, 2017 5:44:56 PM org.apache.catalina.core.StandardEngine 
> startInternal
> INFOS: Starting Servlet Engine: Apache Tomcat/9.0.0.M22
> juil. 28, 2017 5:44:58 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[/jupiter]]
>     at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>     at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>     at 
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)
>     at 
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
>     at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at 
> org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>     at 
> java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
>     at 
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
>     at 
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at 
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at 
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:657)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/jupiter]]
>     at 
> org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
>     at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)
>     at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at 
> org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>     at 
> java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
>     at 
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
>     ... 21 more
> Caused by: java.lang.IllegalArgumentException: L'association de
> servlet (servlet mapping) indique un nom de servlet inconnu [Taste]
>     at 
> org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3091)
>     at org.apache.catalina.Context.addServletMappingDecoded(Context.java:879)
>     at 
> org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1378)
>     at 
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1190)
>     at 
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
>     at 
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
>     at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
>     at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4993)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     ... 27 more

Eclipse by default places <Context> element for web application into
Tomcat's server.xml file.
This is a discouraged practice. A result of such configuration is that
when the application fails to start (due to its own misconfiguration)
this failure is fatal for Tomcat as well.

Double click on the server (in "Servers" view) -> set "[x] Publish
module context to separate XML files".



The FAQ pages have a link to Eclipse FAQ:
https://wiki.apache.org/tomcat/FAQ/Developing#Q6


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to