You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ken Bowen <kb...@als.com> on 2008/08/06 18:23:56 UTC
[NOT-FIXED]SEVERE: Error listenerStart -- without entering the listener
Ok, I fixed that (see below), but that does seem to change the problem
at all. The catalina.out trace is the same.
Current web.xml:
<web-app>
<listener>
<listener-class>com.connectedtrading.listener.AppListener</
listener-class>
</listener>
<listener>
<listener-class>com.connectedtrading.database.HibernateListener</
listener-class>
</listener>
<listener>
<listener-class>com.connectedtrading.listener.SessionListener</
listener-class>
</listener>
......
--Ken
On Aug 6, 2008, at 11:58 AM, David Smith wrote:
> Each listener should be in it's own <listener> ... </listener>
> element block. Don't try to put all three in one.
>
> --David
>
> Ken Bowen wrote:
>> Hi all,
>>
>> Using: Mac OS X 10.4.5 running Tomcat 5.5.26 -- this is a brand-new
>> copy downloaded from Apache & unzipped; no changes.
>>
>> This project used to work; I'm trying to figure out what got broken.
>>
>> Symptom: listenerStart fails without even getting to the first
>> line of the AppListener (catalina.out trace below).
>>
>> From web.xml:
>>
>> <web-app>
>> <listener>
>> <listener-class>com.connectedtrading.listener.AppListener</
>> listener-class>
>> <listener-class>com.connectedtrading.database.HibernateListener</
>> listener-class>
>> <listener-class>com.connectedtrading.listener.SessionListener</
>> listener-class>
>> </listener>
>> .......
>>
>> I've tried swapping the first two lines; neither works anymore.
>> Both listener classes are present in WEB-INF/classes.
>>
>> My application context.xml is in META-INF:
>>
>> <Context path="" debug="5" reloadable="true" crossContext="true">
>>
>> <Resource name="jdbc/ct_alerts" auth="Container"
>> type="javax.sql.DataSource"
>> maxActive="100" maxIdle="30" maxWait="10000"
>> username="xxxxx" password="xxxxx"
>> driverClassName="com.mysql.jdbc.Driver"
>> url="jdbc:mysql://localhost:3306/ct_alerts"
>> validationQuery="select 1"
>> />
>> </Context>
>>
>> I've dropped raw println's at the beginning of the listeners, e.g.:
>>
>> public void contextInitialized(ServletContextEvent
>> servletContextEvent)
>> {
>> System.out.println("++++++++++++++++++");
>> .......
>>
>> But as you can see from the catalina.out trace below, these are not
>> being executed.
>>
>>
>> To eliminate possible permission problems, I've made the entire app
>> tree in webapps
>> universally read-write-executable (anyway, it's all owned by me and
>> tomcat is running
>> as me -- started both from startup.sh or from Eclipse).
>>
>> Any thoughts or pointers about working this out will be greatly
>> appreciated:
>>
>> Here's the startup trace from catalina.out:
>>
>> Aug 6, 2008 11:07:40 AM
>> 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: /System/Library/Frameworks/JavaVM.framework/
>> Versions/1.5.0/Home/bin:/Users/ken/Projects/bin/apache-
>> tomcat-5.5.26/bin
>> Aug 6, 2008 11:07:40 AM org.apache.coyote.http11.Http11BaseProtocol
>> init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> Aug 6, 2008 11:07:40 AM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 673 ms
>> Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardService
>> start
>> INFO: Starting service Catalina
>> Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
>> Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardHost start
>> INFO: XML validation disabled
>> Aug 6, 2008 11:07:41 AM org.apache.catalina.core.ApplicationContext
>> log
>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>> [org.apache.webapp.balancer.RuleChain:
>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target
>> string: News / Redirect URL: http://www.cnn.com],
>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target
>> param name: paramName / Target param value: paramValue / Redirect
>> URL: http://www.yahoo.com],
>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect
>> URL: http://jakarta.apache.org]]
>> log4j:WARN No appenders could be found for logger
>> (org.apache.commons.digester.Digester.sax).
>> log4j:WARN Please initialize the log4j system properly.
>> Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext
>> start
>> SEVERE: Error listenerStart
>> Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext
>> start
>> SEVERE: Context [/connectedtrading] startup failed due to previous
>> errors
>> Aug 6, 2008 11:07:42 AM org.apache.catalina.core.ApplicationContext
>> log
>> INFO: ContextListener: contextInitialized()
>> ......
>>
>> Thanks,
>> Ken
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[??-FIXED: Yes, but]SEVERE: Error listenerStart -- without entering the listener
Posted by Ken Bowen <kb...@als.com>.
Mark,
Somewhat odd. I've been slowly reworking the app (significant
rebuilding) for a couple of months, and have routinely been
seeing that log4j complaint, although everything was working ok -- so
of course I wasn't even seeing the complaint anymore,
expecting that everything would clean up as I worked my way through
the app.
A base class that the listener extends contained
private Log log = LogFactory.getLog(BaseAction.class);
and one call on log. Commenting these out seems to allow the listener
to run (again). I can see how it might produce the
behavior I was seeing today. But then I don't see how it was working
for the past couple of months.
Sigh....math & computing are supposed to be deterministic, but that's
relative to what I can wrap my head around. LaGrange thought he could
compute the position of everything for all time, but then he never got
around to carrying out the computations.
Thanks for putting me on the right path,
--Ken
On Aug 6, 2008, at 2:16 PM, Mark Thomas wrote:
> Ken Bowen wrote:
>> That's what's frustrating. I'm using a new Tomcat unzip with
>> simple JULI logging
>
> So what is the log4j message doing in this trace?
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: [NOT-FIXED]SEVERE: Error listenerStart -- without entering the
listener
Posted by Mark Thomas <ma...@apache.org>.
Ken Bowen wrote:
> That's what's frustrating. I'm using a new Tomcat unzip with simple
> JULI logging
So what is the log4j message doing in this trace?
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [NOT-FIXED]SEVERE: Error listenerStart -- without entering the listener
Posted by Ken Bowen <kb...@als.com>.
That's what's frustrating. I'm using a new Tomcat unzip with simple
JULI logging, so the files of interest are catalina.out
and catalina.2008-08-06.log, which are essentially identical.
Normally when a listener class fails, the trace is
shown in catalina.out, before/after the "Error listenerStart" line.
But nothing like that is appearing now.
That's why I threw in a System.out.println at the very beginning of
the listener to see that it was being entered.
But that print to out doesn't appear to being executed. I also think
that (in the past) when the listener class was
missing or not accessible, a "Class Not Found" exception was thrown
(and visible). But that isn't occurring either.
At the risk of repetition, here's the start up trace (repeated a few
minutes ago):
Aug 6, 2008 1:51:19 PM 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: .:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java
Aug 6, 2008 1:51:19 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 6, 2008 1:51:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 485 ms
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/connectedtrading] startup failed due to previous
errors
Aug 6, 2008 1:51:20 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 6, 2008 1:51:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 6, 2008 1:51:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/11 config=null
Aug 6, 2008 1:51:21 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 6, 2008 1:51:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1141 ms
--Ken
On Aug 6, 2008, at 1:09 PM, Mark Thomas wrote:
> Ken Bowen wrote:
>> Ok, I fixed that (see below), but that does seem to change the
>> problem at all. The catalina.out trace is the same.
>
> Have a look at the files in the logs directory. One of them should
> have more information (like the stacktrace from the failed listener).
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [NOT-FIXED]SEVERE: Error listenerStart -- without entering the
listener
Posted by Mark Thomas <ma...@apache.org>.
Ken Bowen wrote:
> Ok, I fixed that (see below), but that does seem to change the problem
> at all. The catalina.out trace is the same.
Have a look at the files in the logs directory. One of them should have
more information (like the stacktrace from the failed listener).
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org