You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Francesco Viscomi <fv...@gmail.com> on 2014/06/11 15:30:30 UTC

starting tomcat

I'm using tomcat 5.5.25 on a windows machine;

Start the script located in bin (startup.bat):
On the screen appear that the server is running as reported but when i try
to get the console at http://localhost:8081/
i just see a white page;

can some one telling me ho to solve this issue;




Listening for transport dt_socket at address: 8000
11-Jun-2014 15:20:31 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.6.0_37\bi
n;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\OracleHome2\product\11.2.0\client_1\BIN;C:\OracleHome2\product\11.2.0\client_1\bin;C:\Oracle_Home;C:\Oracle_Home\bi
n;C:\Users\francesco\ProgrammiInstallati\clientOracle\ODAC1120320Xcopy_32bit\instantclient_11_2;C:\Program
Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\I
ntel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86
)\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files (x86)\
Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\P
rogram Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Enterprise Backup 3.8.2;.
11-Jun-2014 15:20:31 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
11-Jun-2014 15:20:31 org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:284)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
        at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
        at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
        at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
        at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
        at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
        at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11-Jun-2014 15:20:31 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
cannot find the file specified)
        at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
        at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
        at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
11-Jun-2014 15:20:31 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 500 ms
11-Jun-2014 15:20:32 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-Jun-2014 15:20:32 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
11-Jun-2014 15:20:32 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
11-Jun-2014 15:20:32 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
11-Jun-2014 15:20:32 org.apache.coyote.http11.Http11BaseProtocol start
SEVERE: Error starting endpoint
java.io.FileNotFoundException: C:\Users\francesco\.keystore (The system
cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:284)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
        at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
        at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:313)
        at
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:151)
        at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:76)
        at
org.apache.catalina.connector.Connector.start(Connector.java:1090)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:457)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
11-Jun-2014 15:20:32 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start
failed: java.io.FileNotFoundException: C:\Users\francesco\.keystore (The
system cannot find the fil
e specified)
        at
org.apache.catalina.connector.Connector.start(Connector.java:1097)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:457)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
11-Jun-2014 15:20:32 org.apache.catalina.startup.Catalina start
INFO: Server startup in 672 ms


-- 
Ing. Viscomi Francesco

Re: starting tomcat

Posted by Neven Cvetkovic <ne...@gmail.com>.
On Thu, Jun 12, 2014 at 5:10 AM, Francesco Viscomi <fv...@gmail.com>
wrote:

> Hi,
> in this other case tomcat has started without the .keystore file:
>
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> 12-Jun-2014 11:07:52 org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler start
> failed: java.io.FileNotFoundException: C:\Users\francesco\.keystore (The
> system cannot find the fil
> e specified)
>         at
> org.apache.catalina.connector.Connector.start(Connector.java:1097)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:457)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> 12-Jun-2014 11:07:52 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 10657 ms
>
>
Francesco,

Your Tomcat server "started" in both cases:

"INFO: Server startup in 10657 ms"
"INFO: Server startup in 672 ms"

What did not start is your HTTPS connector (Coyote), as illustrated in your
first log files:
"INFO: Starting Coyote HTTP/1.1 on http-8081"

Your HTTPS connector failed because it did not find the proper keystore
file. Can you post relevant portion of your server.xml, e.g.

<Connector port="8081" ...>
</Connector>

See how to enable SSL properly:
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

However, more importantly - why are you using this old and unsupported
version of Tomcat?

As pointed many times on this mailing list, you should definitely look into
upgrading this to the newer versions of Tomcat. Tomcat 5.x is old project,
that is not being patched, and probably has some serious security risks. It
is recommended that you upgrade to at least Tomcat 6.x, but you should look
into Tomcat 7.x and Tomcat 8.x.

See the list here:
http://wiki.apache.org/tomcat/TomcatVersions

Good luck.

Re: starting tomcat

Posted by Francesco Viscomi <fv...@gmail.com>.
Hi,
in this other case tomcat has started without the .keystore file:

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
12-Jun-2014 11:07:52 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start
failed: java.io.FileNotFoundException: C:\Users\francesco\.keystore (The
system cannot find the fil
e specified)
        at
org.apache.catalina.connector.Connector.start(Connector.java:1097)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:457)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
12-Jun-2014 11:07:52 org.apache.catalina.startup.Catalina start
INFO: Server startup in 10657 ms


2014-06-12 4:20 GMT+02:00 tomcat <14...@qq.com>:

>
> Check this file C:\Users\francesco\.keystore exist or not ?
>
> 在 2014年6月11日,下午9:30,Francesco Viscomi <fv...@gmail.com> 写道:
>
> > C:\Users\francesco\.keystore
>
>


-- 
Ing. Viscomi Francesco

Re: starting tomcat

Posted by tomcat <14...@qq.com>.
Check this file C:\Users\francesco\.keystore exist or not ?

在 2014年6月11日,下午9:30,Francesco Viscomi <fv...@gmail.com> 写道:

> C:\Users\francesco\.keystore