Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Tomcat can not be started via Eclipse and XAMPP
Tomcat can not be started via Eclipse and XAMPP [message #1740507] Mon, 15 August 2016 09:32 Go to next message
Rebecca Kraus is currently offline Rebecca KrausFriend
Messages: 4
Registered: August 2016
Junior Member
Hello,

I installed Eclipse Java Neon and XAMPP.

In Eclipse Java Neon I changed the Tomcat Ports from the standard value

Tomcat admin port 8005
HTTP/1.1 8080
AJP/1.3 8009

to the new values

Tomcat admin port 8044
HTTP/1.1 8088
AJP/1.3 8099

Those values I also changed in the server.xml-file.

I also installed XAMPP and in the control panel I could start Apache and MySQL.
But when i click the start-Button for Tomcat then in the message box is the message written that it is tried to start the tomcat windows service and nothing happens. The color for tomcat doesnt change to green.

Now when I look in Netstat via click on the Netstat-Button then I see there that still the old ports for Tomcat7 are used (8005, 8009, 8080).

My first question is why it has not changed to the new values?

Secondly when I try to start the Tomcat7-Server in the Tab Servers in Eclipse via the green start icon then I get the message:

""Starting Tomcat v7.0 Server at localhost" has encountered a problem. Server Tomcat v7.0 Server at localhost failed to start."

In the console output stands following:

Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Server version: Apache Tomcat/7.0.70
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Server built: Jun 15 2016 16:27:45 UTC
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Server number: 7.0.70.0
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: OS Name: Windows 10
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: OS Version: 10.0
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Architecture: x86
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Java Home: C:\Program Files\Java\jre1.8.0_101
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: JVM Version: 1.8.0_101-b13
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: JVM Vendor: Oracle Corporation
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dwtp.deploy=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
Aug 15, 2016 11:30:44 AM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dfile.encoding=Cp1252
Aug 15, 2016 11:30:44 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMATION: 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\jre1.8.0_101\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_101/bin/client;C:/Program Files/Java/jre1.8.0_101/bin;C:/Program Files/Java/jre1.8.0_101/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\C:\Program Files\Java\jdk1.8.0_102;C:\Program Files\Skype\Phone\;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\apache-ant-1.9.7-bin\apache-ant-1.9.7;C:\Users\Rebecca\Desktop;;.
Aug 15, 2016 11:30:45 AM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["http-bio-8080"]
Aug 15, 2016 11:30:45 AM org.apache.coyote.AbstractProtocol init
SCHWERWIEGEND: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
java.net.BindException: Address already in use: JVM_Bind <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:435)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
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.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 17 more

Aug 15, 2016 11:30:45 AM org.apache.catalina.core.StandardService initInternal
SCHWERWIEGEND: Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
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.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:435)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
... 13 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 17 more

Aug 15, 2016 11:30:45 AM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 15, 2016 11:30:45 AM org.apache.coyote.AbstractProtocol init
SCHWERWIEGEND: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
java.net.BindException: Address already in use: JVM_Bind <null>:8009
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:435)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
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.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 16 more

Aug 15, 2016 11:30:45 AM org.apache.catalina.core.StandardService initInternal
SCHWERWIEGEND: Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:560)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:838)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
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.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8009
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:435)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
... 13 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 16 more

Aug 15, 2016 11:30:45 AM org.apache.catalina.startup.Catalina load
INFORMATION: Initialization processed in 1915 ms
Aug 15, 2016 11:30:45 AM org.apache.catalina.core.StandardService startInternal
INFORMATION: Starting service Catalina
Aug 15, 2016 11:30:45 AM org.apache.catalina.core.StandardEngine startInternal
INFORMATION: Starting Servlet Engine: Apache Tomcat/7.0.70
Aug 15, 2016 11:30:45 AM org.apache.catalina.valves.AccessLogValve open
SCHWERWIEGEND: Failed to open access log file [C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs\localhost_access_log.2016-08-15.txt]
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs\localhost_access_log.2016-08-15.txt (Zugriff verweigert)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1206)
at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1267)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
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)

Aug 15, 2016 11:30:45 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs
Aug 15, 2016 11:30:46 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFORMATION: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [153] milliseconds.
Aug 15, 2016 11:30:46 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs has finished in 885 ms
Aug 15, 2016 11:30:46 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples
Aug 15, 2016 11:30:46 AM org.apache.catalina.core.ApplicationContext log
INFORMATION: ContextListener: contextInitialized()
Aug 15, 2016 11:30:46 AM org.apache.catalina.core.ApplicationContext log
INFORMATION: SessionListener: contextInitialized()
Aug 15, 2016 11:30:46 AM org.apache.catalina.core.ApplicationContext log
INFORMATION: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@bcfe68')
Aug 15, 2016 11:30:46 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples has finished in 743 ms
Aug 15, 2016 11:30:46 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\host-manager
Aug 15, 2016 11:30:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\host-manager has finished in 147 ms
Aug 15, 2016 11:30:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager
Aug 15, 2016 11:30:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager has finished in 122 ms
Aug 15, 2016 11:30:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
Aug 15, 2016 11:30:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT has finished in 131 ms
Aug 15, 2016 11:30:47 AM org.apache.catalina.startup.Catalina start
INFORMATION: Server startup in 2191 ms
Aug 15, 2016 11:30:47 AM org.apache.catalina.core.StandardServer await
SCHWERWIEGEND: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:444)
at org.apache.catalina.startup.Catalina.await(Catalina.java:781)
at org.apache.catalina.startup.Catalina.start(Catalina.java:727)
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:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)

Aug 15, 2016 11:30:47 AM org.apache.coyote.AbstractProtocol pause
INFORMATION: Pausing ProtocolHandler ["http-bio-8080"]
Aug 15, 2016 11:30:47 AM org.apache.coyote.AbstractProtocol pause
INFORMATION: Pausing ProtocolHandler ["ajp-bio-8009"]
Aug 15, 2016 11:30:47 AM org.apache.catalina.core.StandardService stopInternal
INFORMATION: Stopping service Catalina
Aug 15, 2016 11:30:47 AM org.apache.catalina.core.ApplicationContext log
INFORMATION: SessionListener: contextDestroyed()
Aug 15, 2016 11:30:47 AM org.apache.catalina.core.ApplicationContext log
INFORMATION: ContextListener: contextDestroyed()
Aug 15, 2016 11:30:47 AM org.apache.coyote.AbstractProtocol stop
INFORMATION: Stopping ProtocolHandler ["http-bio-8080"]
Aug 15, 2016 11:30:47 AM org.apache.coyote.AbstractProtocol destroy
INFORMATION: Destroying ProtocolHandler ["http-bio-8080"]
Aug 15, 2016 11:30:47 AM org.apache.coyote.AbstractProtocol stop
INFORMATION: Stopping ProtocolHandler ["ajp-bio-8009"]
Aug 15, 2016 11:30:47 AM org.apache.coyote.AbstractProtocol destroy
INFORMATION: Destroying ProtocolHandler ["ajp-bio-8009"]

What can I do so that I can start Tomcat in Eclipse?

Thank you.

Best regards
Rebecca
Re: Tomcat can not be started via Eclipse and XAMPP [message #1740529 is a reply to message #1740507] Mon, 15 August 2016 12:27 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3413
Registered: July 2009
Senior Member

Quote:
Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080

You already have something else running on port 8080 on your system.


Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Tomcat can not be started via Eclipse and XAMPP [message #1740533 is a reply to message #1740529] Mon, 15 August 2016 13:10 Go to previous messageGo to next message
Rebecca Kraus is currently offline Rebecca KrausFriend
Messages: 4
Registered: August 2016
Junior Member
But how to find out what it is?
Furthermore i am interested why the old value hasnt changed to the new values after clicking on Netstat button?
Re: Tomcat can not be started via Eclipse and XAMPP [message #1740565 is a reply to message #1740533] Mon, 15 August 2016 18:04 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08/15/2016 07:10 AM, Rebecca Kraus wrote:
> But how to find out what it is?
> Furthermore i am interested why the old value hasnt changed to the new
> values after clicking on Netstat button?

Google is your friend:

"what's running on port {linux,windows, mac}"
Re: Tomcat can not be started via Eclipse and XAMPP [message #1740657 is a reply to message #1740507] Tue, 16 August 2016 17:23 Go to previous messageGo to next message
Rebecca Kraus is currently offline Rebecca KrausFriend
Messages: 4
Registered: August 2016
Junior Member
Hello,

it seems to be that I set now all ports correctly.

But now when I start the tomcat server via the green button then I get following logs in the console:

Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Server version: Apache Tomcat/7.0.70
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Server built: Jun 15 2016 16:27:45 UTC
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Server number: 7.0.70.0
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: OS Name: Windows 10
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: OS Version: 10.0
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Architecture: x86
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Java Home: C:\Program Files\Java\jre1.8.0_101
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: JVM Version: 1.8.0_101-b13
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: JVM Vendor: Oracle Corporation
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dwtp.deploy=C:\Program Files\Apache Software Foundation\Tomcat 7.0\wtpwebapps
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
Aug 16, 2016 7:22:16 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMATION: Command line argument: -Dfile.encoding=Cp1252
Aug 16, 2016 7:22:16 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMATION: 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\jre1.8.0_101\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_101/bin/client;C:/Program Files/Java/jre1.8.0_101/bin;C:/Program Files/Java/jre1.8.0_101/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\C:\Program Files\Java\jdk1.8.0_102;C:\Program Files\Skype\Phone\;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\apache-ant-1.9.7-bin\apache-ant-1.9.7;C:\Users\Rebecca\Desktop;;.
Aug 16, 2016 7:22:18 PM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["http-bio-8080"]
Aug 16, 2016 7:22:18 PM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 16, 2016 7:22:18 PM org.apache.catalina.startup.Catalina load
INFORMATION: Initialization processed in 4408 ms
Aug 16, 2016 7:22:18 PM org.apache.catalina.core.StandardService startInternal
INFORMATION: Starting service Catalina
Aug 16, 2016 7:22:18 PM org.apache.catalina.core.StandardEngine startInternal
INFORMATION: Starting Servlet Engine: Apache Tomcat/7.0.70
Aug 16, 2016 7:22:18 PM org.apache.catalina.valves.AccessLogValve open
SCHWERWIEGEND: Failed to open access log file [C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs\localhost_access_log.2016-08-16.txt]
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs\localhost_access_log.2016-08-16.txt (Zugriff verweigert)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1206)
at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1267)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
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)

Aug 16, 2016 7:22:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs
Aug 16, 2016 7:22:20 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFORMATION: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [274] milliseconds.
Aug 16, 2016 7:22:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs has finished in 1,849 ms
Aug 16, 2016 7:22:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples
Aug 16, 2016 7:22:23 PM org.apache.catalina.core.ApplicationContext log
INFORMATION: ContextListener: contextInitialized()
Aug 16, 2016 7:22:23 PM org.apache.catalina.core.ApplicationContext log
INFORMATION: SessionListener: contextInitialized()
Aug 16, 2016 7:22:23 PM org.apache.catalina.core.ApplicationContext log
INFORMATION: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@295a03')
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples has finished in 2,421 ms
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\host-manager
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\host-manager has finished in 330 ms
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager has finished in 228 ms
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT has finished in 229 ms
Aug 16, 2016 7:22:23 PM org.apache.coyote.AbstractProtocol start
INFORMATION: Starting ProtocolHandler ["http-bio-8080"]
Aug 16, 2016 7:22:23 PM org.apache.coyote.AbstractProtocol start
INFORMATION: Starting ProtocolHandler ["ajp-bio-8009"]
Aug 16, 2016 7:22:23 PM org.apache.catalina.startup.Catalina start
INFORMATION: Server startup in 5407 ms
Aug 16, 2016 7:22:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Servlet.service() for servlet [jsp] in context with path [] threw exception [java.lang.IllegalStateException: No output folder] with root cause
java.lang.IllegalStateException: No output folder
at org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:754)
at org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:203)
at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:597)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:459)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:423)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:655)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

Furthermore when I try to open http://localhost:8080/ then I get the 404-http-status.

What is still wrong?

Thank you.

Regards
Re: Tomcat can not be started via Eclipse and XAMPP [message #1740658 is a reply to message #1740657] Tue, 16 August 2016 18:22 Go to previous message
Rebecca Kraus is currently offline Rebecca KrausFriend
Messages: 4
Registered: August 2016
Junior Member
hi,
it is ok now. Reason were the rights to tomcat.
Greets
Previous Topic:Eclipse Neon constantly freezing
Next Topic:http preview starts the wrong jdk (and then aborts)
Goto Forum:
  


Current Time: Sat Jun 15 21:16:06 GMT 2019

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top