1 Reply Latest reply on Jan 11, 2002 8:47 AM by Steve Liu

    EmbeddedCatalina  Exception, please help

    Steve Liu Newbie

      I got a exception with JBoss 2.4.4 and embedded Catalina 4.0.1 :

      [INFO,ContainerFactory] Deployed application: file:/G:/bizsphere/JBossTomcat/jboss/tmp/deploy/Default/bizsphere.ear
      [INFO,J2eeDeployer] Starting module bsWAR.war
      [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/bizsphere, warUrl=file:/G:/bizsphere/JBossTomcat/jboss/tmp/deploy/Defa
      ult/bizsphere.ear/web1001/
      [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/bizsphere]: Deploying class repositories to work directory G:\bizsphere\J
      BossTomcat\catalina\work\localhost\bizsphere
      [INFO,EmbeddedCatalinaServiceSX] StandardManager[/bizsphere]: Seeding random number generator class java.security.Secure
      Random
      [INFO,EmbeddedCatalinaServiceSX] StandardManager[/bizsphere]: Seeding of random number generator has been completed
      [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/bizsphere]: Added certificates -> request attribute Valve
      [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/bizsphere]: Configured an authenticator for method BASIC
      [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/bizsphere:default]: Loading container servlet default
      [INFO,EmbeddedCatalinaServiceSX] default: init
      [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/bizsphere:invoker]: Loading container servlet invoker
      [INFO,EmbeddedCatalinaServiceSX] invoker: init
      [INFO,EmbeddedCatalinaServiceSX] jsp: init
      [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/bizsphere]: Servlet /bizsphere threw load() exception
      javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:282)
      at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:191)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:505)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [ERROR,EmbeddedCatalinaServiceSX] ----- Root Cause -----
      java.lang.NoSuchMethodError
      at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
      at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
      at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
      at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:428)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:282)
      at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:191)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:505)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [INFO,J2eeDeployer] J2EE application: file:/G:/bizsphere/JBossTomcat/jboss/deploy/bizsphere.ear is deployed.


      ========web.xml==============================
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">


      <web-app>
      <display-name>BizsphereWAR</display-name>
      Bizsphere Web Application


      <servlet-name>doReport</servlet-name>
      <display-name>doReportServlet</display-name>
      <servlet-class>bs.report.doReportServlet</servlet-class>



      <servlet-name>bsDownload</servlet-name>
      <display-name>bsDownloadServlet</display-name>
      <servlet-class>bs.fc.bsDownload</servlet-class>


      <servlet-mapping>
      <servlet-name>doReport</servlet-name>
      <url-pattern>/doReport</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>bsDownload</servlet-name>
      <url-pattern>/doDownload</url-pattern>
      </servlet-mapping>

      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>

      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>index.html</welcome-file>
      </welcome-file-list>

      <security-constraint>
      <web-resource-collection>
      <web-resource-name>Bizsphere</web-resource-name>
      <url-pattern>/*</url-pattern>
      </web-resource-collection>
      <auth-constraint>
      <role-name>user</role-name>
      </auth-constraint>
      <user-data-constraint>
      <transport-guarantee>NONE</transport-guarantee>
      </user-data-constraint>
      </security-constraint>

      <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Bizsphere</realm-name>
      <form-login-config>
      <form-login-page>/login.html</form-login-page>
      <form-error-page>/loginerror.html</form-error-page>
      </form-login-config>
      </login-config>

      <security-role>

      This role includes all users who are authorized to access
      the bizsphere application.

      <role-name>user</role-name>
      </security-role>

      <!-- ### EJB References (java:/comp/env/ejb) -->
      <ejb-ref>
      <ejb-ref-name>bizsphere/SimpleBizsphere</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      BizsphereHome
      Bizsphere
      </ejb-ref>

      </web-app>

      =========jboss-web.xml============
      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>
      <security-domain>java:/jaas/bizsphere</security-domain>

      <ejb-ref>
      <ejb-ref-name>bizsphere/SimpleBizsphere</ejb-ref-name>
      <jndi-name>bizsphere/SimpleBizsphere</jndi-name>
      </ejb-ref>
      </jboss-web>



      Anybody can help? thanks in advance.