Re: problem deploying cayenne-web app tutorial on sun app server

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jun 14 2005 - 16:01:46 EDT

  • Next message: Nick Stuart: "Re: Record counts..."

    Not sure why you are getting this error (do you have multiple JVMs with
    different versions on your machine?), but try replacing the listener
    section in the web.xml file with this entry:

    <listener>
     <listener-class>org.objectstyle.cayenne.conf.WebApplicationListener</listener-class>
    </listener>

    It may fix it.

    Andrus

    > OK, to reply to Andrus, I have all the jar files in the lib dir, as per
    > the tutorial as well as the *.tld files and the validator-rules.xml in
    > the WEB-INF dir
    >
    >
    > in reply to Joshua,
    >
    > I went to the jakarta site and followed the link for version 3.1/2.1.1 on
    > http://jakarta.apache.org/commons/collections/
    >
    > I downloaded replacement jar files, they were all labed 1.7 or 1.1.4 or
    > 1.0.4 ??
    >
    > anyway, it seems to deploy ok now, but I can't get to it from the
    > browser, the application server log shows this
    >
    > WebModule[/cayenne-web-app]Error configuring application listener of
    > class webtest.CustomConfiguration java.lang.UnsupportedClassVersionError
    >
    > webtest/CustomConfiguration (Unsupported major.minor version 49.0)
    > at java.lang.ClassLoader.defineClass0(Native Method)
    > at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    > at
    > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    > at
    > org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1732)
    > at
    > org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:904)
    > at
    > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)
    > at
    > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    > at
    > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3607)
    > at
    > org.apache.catalina.core.StandardContext.start(StandardContext.java:4120)
    > at
    > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:830)
    > at
    > org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:128)
    > at
    > org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at
    > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:812)
    > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:580)
    > at
    > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:947)
    > at
    > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:729)
    > at
    > com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:148)
    > at
    > com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:226)
    > at
    > com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:488)
    > at
    > com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:475)
    > at
    > com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:302)
    > at
    > com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:107)
    > at
    > com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.multicastEvent(ManagedServerInstance.java:3880)
    > 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:324)
    > at
    > com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:181)
    > at
    > com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.java:86)
    > at
    > com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(ConfigMBeanBase.java:680)
    > at
    > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
    > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
    > at
    > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
    > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
    > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    > at $Proxy1.invoke(Unknown Source)
    > at
    > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
    > at
    > com.sun.enterprise.deployment.phasing.DeploymentService.multicastEvent(DeploymentService.java:341)
    > at
    > com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:284)
    > at
    > com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:115)
    > at
    > com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:74)
    > at
    > com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:233)
    > at
    > com.sun.enterprise.deployment.phasing.DeploymentService.deploy(DeploymentService.java:150)
    > at
    > com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:275)
    > 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:324)
    > at
    > com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:287)
    > at
    > com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:280)
    > at
    > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
    > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
    > at
    > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
    > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
    > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at
    > com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    > at $Proxy1.invoke(Unknown Source)
    > at
    > com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
    > at
    > com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    > at
    > com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
    > at
    > com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
    > at
    > com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    > at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
    > at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:324)
    > at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    > at
    > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    > at
    > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    > at
    > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    > at java.security.AccessController.doPrivileged(Native Method)
    > at
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    > at
    > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    > at
    > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    > at
    > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    > at
    > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:536)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    > at
    > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    > at
    > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    > at
    > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    > at
    > com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    > at
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    > at
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    > at
    > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    > at
    > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    > at
    > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    > at
    > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    > at
    > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    > at java.lang.Thread.run(Thread.java:534)
    >
    >
    >
    >
    > any ideas ???
    >
    >
    > -cheryl
    >



    This archive was generated by hypermail 2.0.0 : Tue Jun 14 2005 - 16:01:47 EDT