cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Web deployment Filter problem with Vaadin and IcePush
Date Wed, 15 Feb 2012 17:14:30 GMT
Hi Andrew,

>From what I'm reading here:

Feb 15, 2012 10:26:32 AM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter CayenneFilter
java.lang.ClassNotFoundException:
org.apache.cayenne.conf.WebApplicationContextFilter
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)


Tomcat is not finding the Cayenne classes.  Can you double-check that
the Cayenne JAR is included and available to Tomcat?

mrg


On Wed, Feb 15, 2012 at 10:44 AM, Andrew Willerding
<awillerding@itsurcom.com> wrote:
> I know this is a very specific problem to my configuration but I'm a bit at
> a loss to figure out how to get around this error.  I have used Vaadin on
> quite a few projects quite successfully with Cayenne and this is the first
> time I'm using the IcePush module that lets you push updates to the client.
>  When I add the usual Cayenne filter in the web.xml file the application
> fails to deploy with the following error message which I understand to mean
> that the cayenne library is not being located in a timely manner by
> "something" where the something probably has to do with the Icepush module.
>  So my question is what do I need to do to get the Cayenne library loaded
> before whatever is not finding it ;-)  I've tried adding the
> cayenne-client-3.0.2.jar file to the tomcat lib directory and to the java
> jre/lib folder but it doesn't seem to make a difference.
>
> Any guidance would be appreciated.
>
> Thanks,
>
>
> Andrew
>
> Here's the error log
>
> Feb 15, 2012 10:26:32 AM org.apache.catalina.core.StandardContext
> filterStart
> SEVERE: Exception starting filter CayenneFilter
> java.lang.ClassNotFoundException:
> org.apache.cayenne.conf.WebApplicationContextFilter
>    at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
>    at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
>    at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269)
>    at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
>    at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
>    at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
>    at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
>    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:546)
>    at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
>    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:521)
>    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359)
>    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:597)
>    at
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
>    at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>    at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
>    at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849)
>    at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>    at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>    at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>    at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:199)
>    at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>    at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>    at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>    at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>    at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
>    at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>    at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>    at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>    at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>    at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>    at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>    at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>    at java.lang.Thread.run(Thread.java:662)
>
>
> Here is my web.xml file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
> <servlet>
> <servlet-name>VaadinApplication</servlet-name>
> <servlet-class>org.vaadin.artur.icepush.ICEPushServlet</servlet-class>
> <init-param>
> <param-name>application</param-name>
> <param-value>com.callistacti.quest.CTIDesktopServer.MyApplication</param-value>
> </init-param>
> <init-param>
> <param-name>widgetset</param-name>
> <param-value>com.callistacti.quest.CTIDesktopServer.widgetset.MyAppWidgetSet</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>VaadinApplication</servlet-name>
> <url-pattern>/VAADIN/*</url-pattern>
> <url-pattern>/vaadin/*</url-pattern>
> <url-pattern>/callistacti/*</url-pattern>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
> <session-config>
> <session-timeout>
>            30
> </session-timeout>
> </session-config>
> <welcome-file-list>
> <welcome-file/>
> </welcome-file-list>
> <context-param>
> <param-name>productionMode</param-name>
> <param-value>false</param-value>
> <description>Vaadin production mode</description>
> </context-param>
> <filter>
> <filter-name>CayenneFilter</filter-name>
> <filter-class>org.apache.cayenne.conf.WebApplicationContextFilter</filter-class>
> </filter>
> <filter-mapping>
> <filter-name>CayenneFilter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
>
> </web-app>
>
>
> And here's my deployment failure message
>
> Feb 15, 2012 10:40:16 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1236 ms
> Feb 15, 2012 10:40:20 AM org.apache.catalina.core.StandardContext stop
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/WebQuestPatientCTIDesktopServer]
> has not been started
> Feb 15, 2012 10:40:21 AM org.apache.catalina.startup.HostConfig
> checkResources
> INFO: Undeploying context [/WebQuestPatientCTIDesktopServer]
> Feb 15, 2012 10:40:21 AM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor WebQuestPatientCTIDesktopServer.xml
> Feb 15, 2012 10:40:21 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Feb 15, 2012 10:40:21 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/WebQuestPatientCTIDesktopServer] startup failed due to
> previous errors
>
>
>

Mime
View raw message