1 Reply Latest reply on Jan 16, 2004 12:22 AM by supernovasoftware

    Can't get OfBiz deployed with JBoss/Tomcat

    Wolfgang Sacharzki Newbie

      I'm trying to deploy OfBiz 1.0 beta1 with JBoss 2.4.4/Tomcat 4.01.

      After copying necessary files to appropriate directories (I think I got it) and building core components, i was able to deploy ofbcore-ejb.jar.

      But after building commonapp files (jar, war, ear - got difficulties with the ear file: no jboss.xml and ejb-jar.xml in OFBIZ_HOME/commonapp/etc - wrote my own) I'm not able to deploy the war-file (ofbcommonapp.jar is already in the classpath).

      Here's the output:

      1 - for ofbcore-ejb.jar:

      [INFO,AutoDeployer] Auto deploy of file:/C:/Development/JBoss-2.4.4/ofbiz/j2eedeploy/ofbcore-ejb.jar
      [INFO,J2eeDeployer] Deploy J2EE application: file:/C:/Development/JBoss-2.4.4/ofbiz/j2eedeploy/ofbcore-ejb.jar
      [INFO,J2eeDeployer] Create application ofbcore-ejb.jar
      [INFO,J2eeDeployer] install EJB module ofbcore-ejb.jar
      [INFO,ContainerFactory] Deploying:file:/C:/Development/JBoss-2.4.4/jboss/tmp/deploy/Default/ofbcore-ejb.jar/
      [INFO,ContainerFactory] Deploying GenericEntity
      [INFO,GenericEntity] Initializing
      [INFO,GenericEntity] Initialized
      [INFO,GenericEntity] Starting
      [INFO,GenericEntity] Started
      [INFO,ContainerFactory] Deployed application: file:/C:/Development/JBoss-2.4.4/jboss/tmp/deploy/Default/ofbcore-ejb.jar/
      [INFO,J2eeDeployer] J2EE application: file:/C:/Development/JBoss-2.4.4/ofbiz/j2eedeploy/ofbcore-ejb.jar is deployed.

      2 - for ofbcommonapp.war:

      [INFO,AutoDeployer] Auto deploy of file:/C:/Development/JBoss-2.4.4/ofbiz/j2eedeploy/ofbcommonapp.war
      [INFO,J2eeDeployer] Deploy J2EE application: file:/C:/Development/JBoss-2.4.4/ofbiz/j2eedeploy/ofbcommonapp.war
      [INFO,J2eeDeployer] Create application ofbcommonapp.war
      [INFO,J2eeDeployer] inflate and install WEB module ofbcommonapp.war
      [INFO,ContainerFactory] Deploying:file:/C:/Development/JBoss-2.4.4/jboss/tmp/deploy/Default/ofbcommonapp.war
      [INFO,ContainerFactory] Deployed application: file:/C:/Development/JBoss-2.4.4/jboss/tmp/deploy/Default/ofbcommonapp.war
      [INFO,J2eeDeployer] Starting module ofbcommonapp.war
      [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/ofbcommonapp, warUrl=file:/C:/Development/JBoss-2.4.4/jboss/tmp/deploy/Default/ofbcommonapp.war/web1008/
      [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/ofbcommonapp]: Deploying class repositories to work directory C:\Development\JBoss-2.4.4\catalina\work\localhost\ofbcommonapp
      [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/ofbcommonapp]: Deploy JAR /WEB-INF/lib/ofbcommonapp.jar to C:\Development\JBoss-2.4.4\jboss\tmp\deploy\Default\ofbcommonapp.war\web1008\WEB-INF\lib\ofbcommonapp.jar
      [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/ofbcommonapp]: Deploy JAR /WEB-INF/lib/ofbcore-webapp.jar to C:\Development\JBoss-2.4.4\jboss\tmp\deploy\Default\ofbcommonapp.war\web1008\WEB-INF\lib\ofbcore-webapp.jar
      [INFO,EmbeddedCatalinaServiceSX] StandardManager[/ofbcommonapp]: Seeding random number generator class java.security.SecureRandom
      [INFO,EmbeddedCatalinaServiceSX] StandardManager[/ofbcommonapp]: Seeding of random number generatorhas been completed
      [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/ofbcommonapp]: Added certificates -> request attribute Valve
      [INFO,EmbeddedCatalinaServiceSX] ControlServlet: init
      [INFO,Default] 1012206205576 : [ControlServlet.init] Loading Control Servlet mounted on path C:\Development\JBoss-2.4.4\jboss\tmp\deploy\Default\ofbcommonapp.war\web1008\
      [INFO,Default] 1012206205617 : Loading RequestManager...
      [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/ofbcommonapp]: Servlet /ofbcommonapp threw load() exception
      javax.servlet.ServletException: Servlet.init() for servlet ControlServlet 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 java.lang.Thread.run(Thread.java:484)
      [ERROR,EmbeddedCatalinaServiceSX] ----- Root Cause -----
      java.lang.NoSuchMethodError
      at org.ofbiz.core.control.RequestManager.(RequestManager.java:89)
      at org.ofbiz.core.control.RequestHandler.init(RequestHandler.java:110)
      at org.ofbiz.core.control.ControlServlet.getRequestHandler(ControlServlet.java:225)
      at org.ofbiz.core.control.ControlServlet.init(ControlServlet.java:128)
      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(EmbeddedCatalinaService
      SX.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 java.lang.Thread.run(Thread.java:484)
      [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/ofbcommonapp:default]: Loading container servlet d
      efault
      [INFO,EmbeddedCatalinaServiceSX] default: init
      [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/ofbcommonapp:invoker]: Loading container servlet i
      nvoker
      [INFO,EmbeddedCatalinaServiceSX] invoker: init
      [INFO,EmbeddedCatalinaServiceSX] jsp: init
      [INFO,J2eeDeployer] J2EE application: file:/C:/Development/JBoss-2.4.4/ofbiz/j2eedeploy/ofbcommonapp
      .war is deployed.

      Who has some experiences with OfBiz/JBoss???