During getLoader() method, the listeners/filters configured in the web.xml
is not populated yet. listenerStart() is where Tomcat begins to start the
listeners and filters.
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Friday, May 29, 2009 12:58 AM
To: <[email protected]>
Subject: Re: svn commit: r779348 -
/tuscany/java/sca/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyStandardContext.java
On Wed, May 27, 2009 at 11:45 PM, <[email protected]> wrote:
Author: rfeng
Date: Wed May 27 22:45:29 2009
New Revision: 779348
URL: http://svn.apache.org/viewvc?rev=779348&view=rev
Log:
Add check to test the webapp has already been configured with Tuscany
listner/filter/jar
+ @Override
+ public boolean listenerStart() {
+ if (tuscanyClassLoader != null) {
+ enableTuscany();
+ }
+ return super.listenerStart();
+ }
Could you say why you moved the tuscany initilization into the
listenerStart method? I'm doing some refactoring and can't tell if
this was to fix a problem i don't know about and might be inadvertenly
breaking in the refactoring?
...ant