Yes, I have the the JNDI DataSource that comes with Appfuse by default

 <!-- JNDI DataSource for J2EE environments -->
<!--<jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/executive_db"/>-->

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
       <property name="driverClassName" value="@DB-DRIVERNAME@"/>
       <property name="url" value="@DB-URL@"/>
       <property name="username" value="@DB-USERNAME@"/>
       <property name="password" value="@DB-PASSWORD@"/>
       <property name="maxActive" value="100"/>
       <property name="maxIdle" value="30"/>
       <property name="maxWait" value="1000"/>
       <property name="defaultAutoCommit" value="true"/>
       <property name="removeAbandoned" value="true"/>
       <property name="removeAbandonedTimeout" value="60"/>
   </bean>

Can you see what's wrong there?

Haotian

Matt Raible wrote:
Are you using a JNDI DataSource? If so, it's possible the syntax for the context.xml file has changed.

Matt

On Mar 18, 2008, at 10:04 AM, Haotian Sun wrote:

No, it doesn't. Appologize if it's not the problem from UserCounterListener. I aslo checked the Tomcat migration guide from http://tomcat.apache.org/migration.html, which does not seem useful for me.
Btw, I'm using JDK 1.5 as following

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

Haotian

Matt Raible wrote:
If you remove UserCounterListener, does it solve any initialization problems?

Matt

On Mar 18, 2008, at 9:19 AM, Haotian Sun wrote:

I'm afraid that's the only error message I can get from the log. The followings are all my listeners defined in web.xml. And I have tried to print something from UserCounterListener and it fails to get printout from the incrementUserCounter().

   <listener>
<listener-class>com.opensymphony.clickstream.ClickstreamListener</listener-class>
   </listener>
   <listener>
<listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>
   </listener>
   <listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
   </listener>
   <listener>
<listener-class>gleam.executive.webapp.listener.StartupListener</listener-class>
   </listener>
   <listener>
<listener-class>gleam.executive.webapp.listener.UserCounterListener</listener-class>
   </listener>

   <listener>
<listener-class>org.directwebremoting.servlet.EfficientShutdownServletContextAttributeListener</listener-class>
 </listener>
 <listener>
<listener-class>org.directwebremoting.servlet.EfficientShutdownServletContextListener</listener-class>
 </listener>

Haotian

Matt Raible wrote:
Can you look in $CATALINA_HOME/logs/localhost*.log to see if there's
more information on why initialization failed?

Thanks,

Matt

On 3/18/08, Haotian Sun <[EMAIL PROTECTED]> wrote:

Hi Matt,

My project uses Appfuse 1.9.4 and is not able to deploy under Tomcat 6,
 where it gets

 17-Mar-2008 20:00:19 org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 17-Mar-2008 20:00:19 org.apache.catalina.core.StandardContext start
SEVERE: Context [/dev/executive] startup failed due to previous errors

 I looked into the web.xml and found that it was caused by the
 UserCounterListener, which seems to be the method
incrementUserCounter(), but I don't see anything wrong there. Can you
 please help?

 Cheers

 Haotian

---------------------------------------------------------------------
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to