You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sasa Rakic <sa...@gmail.com> on 2010/12/30 20:31:34 UTC

Tomcat 5.5 problem

I have problem with this version of Tomcat 5.5.31 on Windows XP SP3 and also
on Windows 7. I use jdk.

Here is print screen of netstat -ano from cmd prompt like netstat -ano.jpg!

And here is server.xml without comments!


<?xml version="1.0" encoding="UTF-8"?>

<Server port="8005" shutdown="SHUTDOWN">

   <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

    <GlobalNamingResources>

      <Environment name="simpleValue" type="java.lang.Integer" value="30"/>


    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />

  </GlobalNamingResources>


  <Service name="Catalina">

   <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

    <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>



    <Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>




      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">


        </Host>

    </Engine>

  </Service>

</Server>


I hope someone hava idea what is the problem!


Thanks a lot
                  Sasa!

Re: Tomcat 5.5 problem

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/12/30 Sasa Rakic <sa...@gmail.com>:
> 1.I put .war file from my JSF project in to webapps folder of my apache

What version of JSF?
Please show us your web.xml

Maybe you will need Tomcat 6 for your application. (See "Which
version?" link on the main page of tomcat.apache.org).

Can you use Tomcat 6?


> tomcat 5.5.31 directory.
> .../apache tomcat 5.5.31/webapps/MyProject.WAR
> 2.From the command prompt i start startup.bat file which is positioned in
> .../apache tomcat 5.5.31/bin/startup.bat.
>
> And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine.
> When i try to repeat all this useing NetBeans the result is the same.
>
> In Tomcat command window i get message:
>

What message? You did not wrote.

> My catalina out looks like this:
>
> Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
> Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> [false], random [true].

The above message means that Tomcat-Native is used. (It seems
irrelevant to your problem. Just noting).


> Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> (skipping..., everything is OK)

> Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive TestATom5.war
> Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/TestATom5] startup failed due to previous errors

You should look into localhost*.log files as well. Those "previous
errors" should be there.

Best regards,
Konstantin Kolinko

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


Re: Tomcat 5.5 problem

Posted by Sasa Rakic <sa...@gmail.com>.
1.I put .war file from my JSF project in to webapps folder of my apache
tomcat 5.5.31 directory.
.../apache tomcat 5.5.31/webapps/MyProject.WAR
2.From the command prompt i start startup.bat file which is positioned in
.../apache tomcat 5.5.31/bin/startup.bat.

And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine.
When i try to repeat all this useing NetBeans the result is the same.

In Tomcat command window i get message:

My catalina out looks like this:

Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1594 ms
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 6:55:41 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:55:42 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:55:42 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2031 ms
Dec 30, 2010 6:56:29 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:56:29 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:56:30 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 30, 2010 6:56:30 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:56:30 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 6:57:12 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:12 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1625 ms
Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 6:57:13 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:14 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:14 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 6:57:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1906 ms
Dec 30, 2010 6:57:38 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:38 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:39 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 30, 2010 6:57:39 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:39 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 7:15:57 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 7:15:57 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 7:15:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1782 ms
Dec 30, 2010 7:15:57 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 7:15:57 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 7:15:57 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TestATom5.war
Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestATom5] startup failed due to previous errors
Dec 30, 2010 7:16:00 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 7:16:00 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 7:16:00 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 7:16:00 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2875 ms
Dec 30, 2010 7:26:50 PM org.apache.catalina.startup.HostConfig
checkResources
INFO: Undeploying context [/TestATom5]
Dec 30, 2010 7:26:50 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TestATom5.war
Dec 30, 2010 7:26:51 PM org.apache.catalina.core.StandardContext start
*SEVERE: Error listenerStart
*Dec 30, 2010 7:26:51 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestATom5] startup failed due to previous errors
Dec 30, 2010 7:26:58 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 7:26:58 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 7:26:59 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 30, 2010 7:26:59 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 30, 2010 7:26:59 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 9:08:14 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 9:08:14 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 9:08:15 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 9:08:15 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 9:08:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2422 ms
Dec 30, 2010 9:08:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 9:08:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 9:08:16 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 9:08:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 30, 2010 9:08:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestATom5] startup failed due to previous errors
Dec 30, 2010 9:08:19 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 9:08:19 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 9:08:19 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 9:08:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4282 ms
Dec 30, 2010 9:10:12 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 9:10:12 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 9:15:58 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 9:15:58 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 9:15:59 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 9:15:59 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 9:15:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2359 ms
Dec 30, 2010 9:16:00 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 9:16:00 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 9:16:00 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 9:16:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 30, 2010 9:16:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestATom5] startup failed due to previous errors
Dec 30, 2010 9:16:03 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 9:16:03 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 9:16:03 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 9:16:03 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3782 ms


I also tried JDK 5 but the problem is same !


Thank you very much,

                                Sasa!

Re: Tomcat 5.5 problem

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/12/30 Sasa Rakic <sa...@gmail.com>:
> I have problem with this version of Tomcat 5.5.31 on Windows XP SP3 and also
> on Windows 7. I use jdk.
> Here is print screen of netstat -ano from cmd prompt like netstat -ano.jpg!

> I hope someone hava idea what is the problem!
>

This mailing list does not allow images. (or any other attachments)
Either post it somewhere else and give us a link,  or describe your
problem by words. What you are trying to do and what step fails?

Without any description it is hard to guess what your problem is.

Without knowing what your problem is:
- If you have Tomcat-Native installed  (that is /bin/tcnative-1.dll)
-- try to run without it (e.g., rename the dll file).
- Is there anything in the logs?

Best regards,
Konstantin Kolinko

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