3 Replies Latest reply on Dec 7, 2007 1:38 AM by jaikiran pai

    engineOptionsClass (ClassCastException)

    Brian Ray Newbie

      I get this exception when I am trying to deploy my .war file. I can't seem to find anything about engineOptionsClass on these boards or Google. Does anyone have any idea what caused this?

      15:57:51,390 WARN [JspServlet] Failed to load engineOptionsClass
      java.lang.ClassCastException: org.jboss.web.tomcat.service.jasper.JspServletOptions
      at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:90)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
      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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy46.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

        • 2. Re: engineOptionsClass (ClassCastException)
          Nandox Newbie

          I'm getting the very same error. My application was developed on Eclipse ant tested in Tomcat 5.0 without troubles. The application's WEB-INF\lib folder contains the following libraries, if it help somehow:

          antlr-2.7.5H3.jar
          antlr.jar.gz
          aopalliance.jar
          batik-awt-util-1.6.jar
          batik-dom-1.6.jar
          batik-svggen-1.6.jar
          batik-util-1.6.jar
          batik-xml-1.6.jar
          cglib-2.0-rc2.jar
          commons-beanutils.jar
          commons-collections-2.1.jar
          commons-collections-3.2.jar
          commons-collections-3 2 tar
          commons-collections.jar
          commons-dbcp-1.1.jar
          commons-digester.jar
          commons-el.jar
          commons-fileupload-1.0.jar
          commons-fileupload.jar
          commons-javaflow-20060411.jar
          commons-lang-2.0.jar
          commons-logging-1.0.4.jar.gz
          commons-logging.jar.gz
          commons-pool-1.1.jar
          commons-validator.jar
          displaytag-1.0.jar
          dom4j-1.6.jar
          dwr__.jar
          dwr.jar
          entirex.jar
          hibernate3.jar
          input-1.0.jar
          itext-1.3.1.jar
          jakarta-oro.jar.gz
          jasper-compiler.jar
          jasper-compiler-jdt.jar
          jasperreports-1.2.0.jar.gz
          jasperreports-1.2.3.jar
          jasper-runtime.jar
          javaActivation.jar
          javaMail1.2.jar
          jcommon-1.0.0.jar
          jdbc2_0-stdext.jar
          jdbcpool-0.99.jar
          jfreechart-1.0.0.jar
          jfreechart-demo-1.0.0.jar
          jsp-api.jar.gz
          jstl.jar
          jta.jar
          naming-factory-dbcp.jar
          naming-factory.jar
          naming-resources.jar
          ojdbc14.jar
          poi-3.0-rc4-20070503.jar
          rowset-new.jar
          spring.jar
          standard.jar
          struts_08082007.jar
          struts.jar
          velocity-1.4.jar
          velocity-dep-1.2.jar
          velocity-dep-1.4.jar
          velocityInstanceSEFAZ.jar
          vssver.scc
          xdoclet-1.2.3.jar
          xdoclet-apache-module-1.2.3.jar
          xdoclet-ejb-module-1.2.3.jar
          xdoclet-hibernate-module-1.2.3.jar
          xdoclet-spring-module-1.2.3.jar
          xdoclet-web-module-1.2.3.jar
          xdoclet-xdoclet-module-1.2.3.jar
          xjavadoc-1.5-snapshot050611.jar

          Thaks!

          • 3. Re: engineOptionsClass (ClassCastException)
            jaikiran pai Master

            Your WEB-INF/lib contains many jars which already are present in the server/< serverName>/lib folder of JBoss. If you want to retain them, then you can go for classloader isolation for your application as explained in these wiki articles:

            http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

            http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases

            http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingOverview

            The other option is to remove the jars which are causing problem, from your application's lib folder. I guess, for this specific exception you might have to remove (or go for classloader isolation) the following jars from WEB-INF/lib folder:

            jasper-compiler.jar
            jasper-compiler-jdt.jar