tomcat /manager not working

I downloaded tomcat 5.5.29 and tried to access an application http://:8080/manager which the doc says http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html that it is included and deployed by default it did not showed me any thing did I miss any thing.

listener initialized twice

Hi We have a web application running on Tomcat as a service and because of historical reasons this web app is using ROOT folder (it is ugly but i can’t change it). Recently we have added and initializing listener that (implements ServletContextListener)

here its definition in web.xml

com.nextnine.web.ComServerConfigListener cs-root Q:/CommunicationServer

This web app runs fine on 2003 server, but when i try to run it on server 2008 it fails to initialize listener (see the log below).

*tomcat log* Jul 7, 2010 10:43:39 AM org.apache.coyote.http11.Http11NioProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:39 AM org.apache.coyote.http11.Http11NioProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:40 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jul 7, 2010 10:43:40 AM org.apache.coyote.http11.Http11NioProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:41 AM org.apache.coyote.http11.Http11NioProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:43 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:Program FilesNextNineCommunicationServerapache-tomcat-6.0.20bin;.;C:WindowsSunJavabin;C:Windowssystem32;C:Windows;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem Jul 7, 2010 10:43:43 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: Using a shared selector for servlet write/read Jul 7, 2010 10:43:43 AM org.apache.coyote.http11.Http11NioProtocol init INFO: Initializing Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:43 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: Using a shared selector for servlet write/read Jul 7, 2010 10:43:43 AM org.apache.coyote.http11.Http11NioProtocol init INFO: Initializing Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:43 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1589 ms Jul 7, 2010 10:43:43 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 7, 2010 10:43:44 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Jul 7, 2010 10:43:45 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Jul 7, 2010 10:43:45 AM org.apache.catalina.core.StandardContext start SEVERE: Context [] startup failed due to previous errors Jul 7, 2010 10:43:45 AM org.apache.coyote.http11.Http11NioProtocol start INFO: Starting Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:45 AM org.apache.coyote.http11.Http11NioProtocol start INFO: Starting Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:45 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 7, 2010 10:43:45 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Jul 7, 2010 10:43:45 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1721 ms

*in development * on server 2003 when running under tomcat 6.0.16, i am getting the following info INFO: The listener “com.nextnine.web.ComServerConfigListener” is already configured for this context. The duplicate definition has been ignored.

while when running on same machine under tomcat 6.0.26 the console is clean

if it may help i can send the whole project structure as a zip

thx in advance Daniel

How to call an external class from a webapp (i.e. – implement a plugin)

Goren Il wrote: Basically, I believe that this is what Chuck meant. The “plugin” would be another separate webapp, and your webapp would make a HTTP request to it.

In Apache httpd, there is a concept of an “internal sub-request”. This allows one “context” (the concept is a bit different there), to momentarily suspend its own execution while it is itself making an internal request to the server for another URL/resource, then collecting the result of this “sub-request”, and continue its own execution. Because this sub-request is purely internal to the webserver, it avoids a lot of the overhead that would result from a separate full HTTP request for instance (such as having to create its own HTTP loopback connection etc..).

It would be interesting to learn from the experts here, if there would exist an efficient and servlet-spec compatible way to implement such a mechanism in Tomcat.

FW: problem with org.apache.catalina.core.ApplicationHttpRequest method.

On 30/06/2010 16:23, Ranjix R wrote:

Cross-posting to both lists is poor netiquette. That will not have encouraged anyone to respond. The correct form, particularly when explicitly directed to post to the users list, is to do exactly that. If it is decided that a thread has become off-topic for the users list and should be on the dev list then it can always be moved there later.

Overriding without calling super is asking for trouble unless you are sure you are taking care of all the things that the super class is handling. As I already told you in the invalid Bugzilla entry you created, you should be calling super.getAttribute()

There is nothing in the spec that says the container has to call setAttribute(). The only requirement is that these are made available via getAttribute() and they are.

Nope. The fault is in your wrapper code.

No idea. If you want to make a local change, you’ll need to do the analysis and the testing. I can tell you such a change is highly unlikely to make it into the Tomcat source code.

At a guess, to prevent applications changing request attributes they shouldn’t but I haven’t checked that is what it is actually doing.

Mark

java.lang.IllegalStateException: Timer already cancelled

Thanks, I’ll do that. What about “minEvictableIdleTimeMillis” ? Just delete it ?

2010/7/6 Konstantin Kolinko

How to split the default stdout log?

Thanks Andre!

But when tomcat5 starts, it will generate a file like stdout_yyyymmdd.log, but when it runs for a couple of days, there will be only one file, and all the infos are appended to that file. What I want is that tomcat can automatic generate multiple files such as one file one day so that the single log file will not be so large. Like in log4j, I can set the parameter like “log4j.appender.R=org.apache.log4j.DailyRollingFileAppender” so that everyday it will generate a new file.

in the “logging” tab page, I can only redirect the stdout to a single file.

Does it support parameters like “D:Tomcat 5.5logs{%date%}.log”?

On Tue, Jul 6, 2010 at 4:13 PM, André Warnier wrote:

jstl 1.1.0 x:forEach recompilation problem – Is it solved in jstl 1.2?

Hi

I remember a while ago I had to downgrade the jstl version because of the way that x:forEach tag is implemented, which recompiles the xpath at every iteration, slowing down the xml processing.

The bug is open since 2004: https://issues.apache.org/bugzilla/show_bug.cgi?id=27717

Does anyone know if the latest version of jstl (1.2) still have this performance problem?

http://download.java.net/maven/glassfish/javax/servlet/jsp/jstl/jstl-api/1.2/jstl-api-1.2.jar

Thanks Emerson

what is document root in Tomcat

On Mon, Jul 5, 2010 at 5:35 PM, Pid wrote:

That is the problem on this page http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7) section 3.0 It says “If you wish to configure a binary installation you’ll need to manually create a /sakai folder in $CATALINA_HOME to hold your sakai.properties file.”

Now I created /sakai in $CATALINIA_HOME

as the doc says in $CATALINIA_HOME/bin/startup.sh I execute this script and then check echo $CATALINA_HOME

I do not get any thing as output.

How to call an external class from a webapp (i.e. – implement a plugin)

I would like my webapp to call an external class, which will be provided (as a name) in an XML file at run time. The external class will be developed by 3rd party, and might include additional JARs. I will refer to the external class and JARs as the “plugin”. My webapp is provided as a WAR, so it is not possible to add the plugin into the same WAR (unless the customer performs it himself). I do not want to put the plugin’s JARs in the common lib of Tomcat, so that it will not affect other webapps (the plugin might include JARs of different versions than the webapps use). I considered putting the plugin in a separate folder, and implement my own class loader that will look at that folder as well. It seems like too much of an effort for a simple task. What is the recommended way to achieve “plugin” capabilities for a webapp? Thanks G.

Rewrite context part in URL

You can’t configure Tomcat directly, but you can use this filter: http://www.tuckey.org/urlrewrite/

– Chuck

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.