You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by DdC <at...@yahoo.com.INVALID> on 2024/04/23 02:31:43 UTC

Installation on Win 10 failure.

I have installed tomcat originally with version 4.04 on winxp andlater on win7, ubuntu, and another linux box - many times by now.Trouble now with win10 and version 9.0.88.Yes, there is a jdk, CLASSPATH is set, j2ee.jar is in lib.Running in a cmd window with bin startup triggers another cmd windowto popup, shows errors flashing by and the 2nd window disappers. Running subsequently shutdown gives: Tomcat may not be running.Thanks a lot ...
Each next window version made installation more difficult - or i gotolder :-)
Is win10 creating trouble? Or ?
Thanks for help ...

--------------------------------------------------------------
Home page:      rs6.risingnet.net/~ddccMarketing site:  www . OntoOO.comKindle books:   Side Effects: Impacts on the 21st Century::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48   Even if not true::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7   9/11:: They had the Sun in their Eyeshttps://www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9



Re: Installation on Win 10 failure.

Posted by Stephanie Panah <st...@gmail.com>.
ack. I meant fire off under Eclipse, not tomcat.
....if that helps....


On Mon, Apr 22, 2024 at 9:03 PM Stephanie Panah <st...@gmail.com>
wrote:

>
> Perhaps I am misunderstanding, but if not, I had something similar.
> be sure that tomcat is not running under Services.
> then fire it off under tomcat.
> and, of course, I may have just said nonsense.
>
>
> On Mon, Apr 22, 2024 at 7:33 PM DdC <at...@yahoo.com.invalid>
> wrote:
>
>>
>> I have installed tomcat originally with version 4.04 on winxp andlater on
>> win7, ubuntu, and another linux box - many times by now.Trouble now with
>> win10 and version 9.0.88.Yes, there is a jdk, CLASSPATH is set, j2ee.jar is
>> in lib.Running in a cmd window with bin startup triggers another cmd
>> windowto popup, shows errors flashing by and the 2nd window
>> disappers. Running subsequently shutdown gives: Tomcat may not be
>> running.Thanks a lot ...
>> Each next window version made installation more difficult - or i gotolder
>> :-)
>> Is win10 creating trouble? Or ?
>> Thanks for help ...
>>
>> --------------------------------------------------------------
>> Home page:      rs6.risingnet.net/~ddccMarketing site:  www .
>> OntoOO.comKindle books:   Side Effects: Impacts on the 21st Century::
>> https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48   Even
>> if not true::
>> https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7
>>  9/11:: They had the Sun in their Eyeshttps://
>> www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9
>>
>>
>>

Re: Installation on Win 10 failure.

Posted by Stephanie Panah <st...@gmail.com>.
Perhaps I am misunderstanding, but if not, I had something similar.
be sure that tomcat is not running under Services.
then fire it off under tomcat.
and, of course, I may have just said nonsense.


On Mon, Apr 22, 2024 at 7:33 PM DdC <at...@yahoo.com.invalid> wrote:

>
> I have installed tomcat originally with version 4.04 on winxp andlater on
> win7, ubuntu, and another linux box - many times by now.Trouble now with
> win10 and version 9.0.88.Yes, there is a jdk, CLASSPATH is set, j2ee.jar is
> in lib.Running in a cmd window with bin startup triggers another cmd
> windowto popup, shows errors flashing by and the 2nd window
> disappers. Running subsequently shutdown gives: Tomcat may not be
> running.Thanks a lot ...
> Each next window version made installation more difficult - or i gotolder
> :-)
> Is win10 creating trouble? Or ?
> Thanks for help ...
>
> --------------------------------------------------------------
> Home page:      rs6.risingnet.net/~ddccMarketing site:  www .
> OntoOO.comKindle books:   Side Effects: Impacts on the 21st Century::
> https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48   Even
> if not true::
> https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7   9/11::
> They had the Sun in their Eyeshttps://
> www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9
>
>
>

Re: Installation on Win 10 failure.

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Hello,

A few things.

1. Are you really coming from Tomcat 4.04?

2. Are you really using Java 18? It's basically dead. Use Java 17 or 21, 
which are both Long Term Support (LTS) versions, especially if you are 
only going to upgrade once every 20 years.

3. You should not have CLASSPATH set.

4. What is j2ee.jar and why have you included it anywhere?

See below...

On 4/23/24 15:04, DdC wrote:
> Thanks for the advice!Did two runs: regular cmd and one with admin privileges::The cmd window looks good:
> C:\tomcat8\bin>startupUsing CATALINA_BASE:   "C:\tomcat8"Using CATALINA_HOME:   "C:\tomcat8"Using CATALINA_TMPDIR: "C:\tomcat8\temp"Using JRE_HOME:        "C:\Program Files\Java\jdk-18.0.2.1"Using CLASSPATH:       "C:\tomcat8\bin\bootstrap.jar;C:\tomcat8\bin\tomcat-juli.jar"Using CATALINA_OPTS:   ""
> The catalina log has good stuff and then:
> 23-Apr-2024 11:29:24.152 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.3.0] using APR version [1.7.4].23-Apr-2024 11:29:24.153 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].23-Apr-2024 11:29:24.153 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]23-Apr-2024 11:29:24.194 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.13 30 Jan 2024]23-Apr-2024 11:29:24.967 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]23-Apr-2024 11:29:25.000 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector["http-nio-8080"]] org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:1012) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:578) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1068) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.startup.Catalina.load(Catalina.java:686) at org.apache.catalina.startup.Catalina.load(Catalina.java:709) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472) Caused by: java.net.BindException: Address already in use: bind


What a mess. Here's the error, just above: "address already in use" 
which means "this port is already owned by another process".

Is Tomcat already running?

-chris

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


Re: Installation on Win 10 failure.

Posted by DdC <at...@yahoo.com.INVALID>.
Thanks for the advice!Did two runs: regular cmd and one with admin privileges::The cmd window looks good:
C:\tomcat8\bin>startupUsing CATALINA_BASE:   "C:\tomcat8"Using CATALINA_HOME:   "C:\tomcat8"Using CATALINA_TMPDIR: "C:\tomcat8\temp"Using JRE_HOME:        "C:\Program Files\Java\jdk-18.0.2.1"Using CLASSPATH:       "C:\tomcat8\bin\bootstrap.jar;C:\tomcat8\bin\tomcat-juli.jar"Using CATALINA_OPTS:   ""
The catalina log has good stuff and then:
23-Apr-2024 11:29:24.152 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.3.0] using APR version [1.7.4].23-Apr-2024 11:29:24.153 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].23-Apr-2024 11:29:24.153 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]23-Apr-2024 11:29:24.194 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.13 30 Jan 2024]23-Apr-2024 11:29:24.967 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]23-Apr-2024 11:29:25.000 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector["http-nio-8080"]] org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:1012) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:578) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1068) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) at org.apache.catalina.startup.Catalina.load(Catalina.java:686) at org.apache.catalina.startup.Catalina.load(Catalina.java:709) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472) Caused by: java.net.BindException: Address already in use: bind at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:555) at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:268) at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:223) at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1359) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1372) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:654) at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:75) at org.apache.catalina.connector.Connector.initInternal(Connector.java:1010) ... 11 more
So now what?At 2am I wondered whether I should use a cmd with admin privileges.Hence subsequently ::::No difference, as far as I can tell:
23-Apr-2024 11:46:07.657 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\tomcat823-Apr-2024 11:46:07.658 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\tomcat8\temp23-Apr-2024 11:46:07.941 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.3.0] using APR version [1.7.4].23-Apr-2024 11:46:07.942 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].23-Apr-2024 11:46:07.943 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]23-Apr-2024 11:46:07.955 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.13 30 Jan 2024]23-Apr-2024 11:46:08.505 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]23-Apr-2024 11:46:08.534 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector["http-nio-8080"]] org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:1012)---
I still suspect that win10 is messing things up; but what?
dennis de champeaux

--------------------------------------------------------------
Home page:      rs6.risingnet.net/~ddccMarketing site:  www . OntoOO.comKindle books:   Side Effects: Impacts on the 21st Century::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48   Even if not true::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7   9/11:: They had the Sun in their Eyeshttps://www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9


 

    On Tuesday, April 23, 2024 at 12:46:56 AM PDT, Mark Thomas <ma...@apache.org> wrote:  
 
 

On 23/04/2024 03:31, DdC wrote:
> 
> I have installed tomcat originally with version 4.04 on winxp andlater on win7, ubuntu, and another linux box - many times by now.Trouble now with win10 and version 9.0.88.Yes, there is a jdk, CLASSPATH is set, j2ee.jar is in lib.Running in a cmd window with bin startup triggers another cmd windowto popup, shows errors flashing by and the 2nd window disappers.

Rather than running "startup.bat" use "catalina.bat run" which will keep 
the process in the same window and you'll be able to read any error message.

Alternatively, you could look in the logs directory. It is usually 
easiest if you empty the logs directory, attempt to start Tomcat and 
then check the log files for errors.

Mark



> Running subsequently shutdown gives: Tomcat may not be running.Thanks a lot ...
> Each next window version made installation more difficult - or i gotolder :-)
> Is win10 creating trouble? Or ?
> Thanks for help ...
> 
> --------------------------------------------------------------
> Home page:      rs6.risingnet.net/~ddccMarketing site:  www . OntoOO.comKindle books:   Side Effects: Impacts on the 21st Century::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48   Even if not true::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7   9/11:: They had the Sun in their Eyeshttps://www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9
> 
> 
> 

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

  

Re: Installation on Win 10 failure.

Posted by Mark Thomas <ma...@apache.org>.

On 23/04/2024 03:31, DdC wrote:
> 
> I have installed tomcat originally with version 4.04 on winxp andlater on win7, ubuntu, and another linux box - many times by now.Trouble now with win10 and version 9.0.88.Yes, there is a jdk, CLASSPATH is set, j2ee.jar is in lib.Running in a cmd window with bin startup triggers another cmd windowto popup, shows errors flashing by and the 2nd window disappers.

Rather than running "startup.bat" use "catalina.bat run" which will keep 
the process in the same window and you'll be able to read any error message.

Alternatively, you could look in the logs directory. It is usually 
easiest if you empty the logs directory, attempt to start Tomcat and 
then check the log files for errors.

Mark



> Running subsequently shutdown gives: Tomcat may not be running.Thanks a lot ...
> Each next window version made installation more difficult - or i gotolder :-)
> Is win10 creating trouble? Or ?
> Thanks for help ...
> 
> --------------------------------------------------------------
> Home page:      rs6.risingnet.net/~ddccMarketing site:  www . OntoOO.comKindle books:   Side Effects: Impacts on the 21st Century::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09MHJ5W48   Even if not true::https://www.amazon.com/-/es/Dennis-Champeaux-ebook/dp/B09Y4WR9J7   9/11:: They had the Sun in their Eyeshttps://www.amazon.com/11-They-had-their-Eyes-ebook/dp/B0CMQ2WSK9https://www.amazon.nl/dp/B0CMQ2WSK9
> 
> 
> 

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