Opps, I seemed to miss this log from localhost*.log yesterday. Checked
log again this morning and found that. I have myfaces-api-1.1.4.jar and
myfaces-impl-1.1.4.jar in my WEB-INF/lib. What else jars am I missing there?
SEVERE: Exception sending context initialized event to listener instance
of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/el/Logger
at
org.apache.myfaces.shared_impl.util.ClassUtils.<clinit>(ClassUtils.java:41)
at
org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:149)
at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:126)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:69)
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:52)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Cheers
Haotian
Matt Raible wrote:
This means that AppFuse contains the DataSource instead of configuring
it in Tomcat, so you should be OK.
Unfortunately, w/o any logging information, it's difficult for me to
solve this problem for you.
Matt
On 3/18/08, Haotian Sun <[EMAIL PROTECTED]> wrote:
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]
---------------------------------------------------------------------
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]