TomcatExpert

Developers

Blog : Apache Tomcat 7.0.11 Released

posted by Stacey Schneider on March 11, 2011 09:17 AM

Announced this afternoon by the Apache Tomcat team:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.11.

Apache Tomcat 7.0.11 is primarily a security fix release with a small number of additional bug fixes compared to 7.0.10.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures.

Downloads:
http://tomcat.apache.org/download-70.cgi

Migration guide from Apache Tomcat 5.5.x and 6.0.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

Read More

1 comments   |  

0
Rating
  |  

Developers, Security | Tomcat 7

Blog : Apache Tomcat 7.0.10 Released

posted by Stacey Schneider on March 8, 2011 02:10 PM

Announced this afternoon by the Apache Tomcat team:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.10.

Apache Tomcat 7.0.8 is primarily a security and bug fix release with numerous fixes compared to 7.0.8.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures.

Downloads:
http://tomcat.apache.org/download-70.cgi

Migration guide from Apache Tomcat 5.5.x and 6.0.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

Read More

0 comments   |  

0
Rating
  |  

Developers | Tomcat 7

Ask the Experts : Application logging locations with multiple Apache Tomcat instances?

I am about to install an extra tomcat instance on our test server

- I like to know how you configure the location of your application log files? Where do you put these and how to configure these?

I am thinking about the following on our linux machine: 
Have one central app log location: /applog/ that contains sub dir's demo and test:

/applog/demo
/applog/test
 

asked by edbras

question

Application logging is not something that is tied to Apache Tomcat itself. Apache Tomcat has no knowledge about where these logs go, how they are written and how they are configured. It would require knowledge about the application logging framework to understand how to configure this in your environment.

As for the catalina.home variable, this points to Apache Tomcat's binaries. There is another variable, catalina.base, this points to your actual Apache Tomcat's instance, and that is the variable you could use.

It would not be good for you to rename these variables, as Apache Tomcat itself depends on them.

answered by fhanik on June 16, 2011 11:32 AM

Read More

answer

0 comments   |  

0
Rating
  |  

Developers | logging

Blog : Apache Tomcat 7.0.8 Released

posted by Stacey Schneider on February 7, 2011 08:24 AM

Announced this morning by the Apache Tomcat team:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.8.

Apache Tomcat 7.0.8 is primarily a security and bug fix release with numerous fixes compared to 7.0.6.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures.

Downloads:
http://tomcat.apache.org/download-70.cgi

Migration guide from Apache Tomcat 5.5.x and 6.0.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

Read More

0 comments   |  

0
Rating
  |  

Developers, Executives | Tomcat 7

Blog : Apache Tomcat 6.0.32 Released

posted by Stacey Schneider on February 3, 2011 09:28 AM

Announced this morning by the Apache Tomcat team:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.32 stable..

Apache Tomcat 6.0.32 is primarily a security and bug fix release. All users of older versions of the Tomcat 6.0 family should upgrade to 6.0.32.

Note that is version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for different CPU architectures.

Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a refactored clustering implementation, advanced IO features, and improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

Read More

1 comments   |  

0
Rating
  |  

Developers, Executives | Tomcat 6

Ask the Experts : DATAGUARD Oracle

How do you configure Tomcat 6 for use Oracle Dataguard? We have one physical database in site1 up and one  physical database in site2 down. 

asked by tomtomcat

question

The Data Guard configuration is something you do on the Oracle server itself. For the Oracle Dataguard documentation online go here: http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm

How the application accesses this is by using Oracle's JDBC driver.  This you configure as a JNDI resource, and using Oracle's configuration.

answered by fhanik on January 31, 2011 12:22 PM

Read More

answer

0 comments   |  

0
Rating
  |  

Developers | dataguard jdbc oracle

Ask the Experts : Apache Tomcat hang after a random period of time

Hello,

I'm coping with a problem for more than two years now. We even hired a specialist who were unable to pinpoint what the problem was.

After a random period of time (may be 2 hours or 2 weeks), Tomcat simply stops responding. The memory utilization seems pretty normal, CPU is high (100%). We get full of "Socket write error" in the logfiles but this seems to be due to the fact that endusers keep hitting reload or stop button on their browser because of the slow /no response of the server.

We use mod_jk within Apache to connect to Tomcat. When this happens, we get a "Service temporarily unavailable" on the webpage which is fired by Apache when it can't connect to Tomcat.

The only way we found out to make this work again is to reboot the whole server! Even when restarting Tomcat or Apache HTTP server, Tomcat keep using 100% CPU and no requests are serviced. We noticed, when this happens, that when opening a webpage directly on the failing server (a webpage of www.google.com for instance), the page doesn't show up correctly, some elements (images) are missing. When hitting "reload", the images are loaded, if hitting "reload" again "images" are missing again and so on.

I performed a Thread Dump when the server was in this kind of situation and didn't find anything of interest. The only thing that differs from a Thread Dump in a regular behaviour is that all TP-Processor threads are in "Object.wait()", locking a ThreadPool$ControlRunnable and waiting a ThreadPool$ControlRunnable. Is that a deadlock? I didn't find anything useful about ThreadPool$ControlRunnable.

asked by eric

question

The good news is that problems like this are not that hard to figure out what is going on.

The first symptom you see is the 100% CPU usage. Your first step would be to narrow that down.

Steps
  1. What process is using the CPU
  2. What thread within that process is using the CPU
  3. What is that thread doing at the time the CPU is being consumed

Threads in Object.wait() are not spinning the CPU. So it is not that. However, you don't have to guess what thread is using the CPU. There are tools out there that can tell you. On Linux, for example, you can simply look this up in "top" (as just one example)

That's where I would look, but before you spend another year trying to guess, I would upgrade your Tomcat server. 6.0.10 is extremely old, it is also early in the 6.0.x series of Tomcat, so yes, it will have several bugs in it, and you could be hitting one of them.

After that, track down the thread that is causing the jump in CPU and you can move on from there.

answered by fhanik on June 16, 2011 11:33 AM

Read More

answer

2 comments   |  

0
Rating
  |  

Developers, Operations | mod_jk, Thread Hang, Tomcat 6

Ask the Experts : Setting default page in Apache Tomcat

I'm doing work on Tomcat and inside of tomcat->webapps->my project is there but when i start the Tomcat first always open tomcat page and I have to given the user name and password then its showing my project, then there is jsp folder its show and when i click on jsp folder its open the my index.jsp.

Can i directly open my index.jsp page without given Tomcat user id and password and after clicking on my project??

asked by

question

I guess from your description that you're probably inadvertently logging into the Manager Application.

Your project is deployed in Tomcat under whatever name you gave it. Tomcat assigns the path to an application, based on the .war file, or deployed directory, name.

If your application is a .war file called myproject.war or a directory called "myproject", then you'll find it at: http://localhost:8080/myproject. The "index.jsp" file must be located in the project directory, rather than a sub-directory (in your case /myproject/jsp).

If you want the project to respond without displaying it's path name, call it ROOT - this is a special name for the default application. If you rename the app and place the index file, as below:

tomcat/webapps/ROOT/index.jsp

your app will be displayed at:

http://localhost:8080/index.jsp

 

 

answered by pidster on January 7, 2013 04:47 PM

Read More

answer

0 comments   |  

0
Rating
  |  

Developers |

Ask the Experts : Cannot invoke Apache Tomcat manager

We are using tcServer in a maven environment to do software builds with Bamboo.  Yesterday morning the builds were doing fine.  Yesterday afternoon I started getting this error in the logs:

 

asked by wtb1

question

hi wtb1,
Looks like Bamboo is starting up a tomcat/tcserver instance, and then connecting to the manager application.

05-Jan-2011 09:05:13     [INFO] Cannot invoke Tomcat manager
05-Jan-2011 09:05:13     
05-Jan-2011 09:05:13     Embedded error: Connection refused

The last line of this error, indicates that there is no process listening on this port. This could be because

1. The server it tried to start failed to start
Resolution: Look in the server logs and find out why the server failed to start

2. The build is failing to launch the server
Resolution: look at bamboo logs to see what is going on

3. The server is started, but listening on a different port
Resolution: Correct the port in the server or in bamboo

best
Filip
 

answered by fhanik on June 16, 2011 11:36 AM

Read More

answer

0 comments   |  

0
Rating
  |  

Developers |

Blog : Apache Tomcat 7.0.6 Released - First Stable Build

posted by Stacey Schneider on January 14, 2011 08:02 AM

Announced this morning by the Apache Tomcat team:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.6.

This is the first stable release of the Tomcat 7 branch.

Apache Tomcat 7.0.6 contains further performance improvements in session management, a new binary distribution targeted at users embedding Tomcat in other applications and several enhancements to the memory leak detection and prevention features.

The 7.0.6 release also contains numerous bug fixes compared to 7.0.5.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures.

Downloads:
http://tomcat.apache.org/download-70.cgi

Migration guide from Apache Tomcat 5.5.x and 6.0.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

Read More

0 comments   |  

0
Rating
  |  

Developers | Tomcat 7

Syndicate content