1 Reply Latest reply on Apr 20, 2009 8:17 PM by Michael Wohlfart

    Can't start my Seam app today because of dom4j 1.6.1 brew?

    Lucian Ooo Newbie

      Hello,


      I am working on a Seam app. The Seam version is 2.1.1.GA and in the dependencies I am using also


      <dependency>
          <groupId>dom4j</groupId>
                  <artifactId>dom4j</artifactId>
                  <version>1.6.1-brew</version>
                  <exclusions>
                      <exclusion>
                          <groupId>xml-apis</groupId>
                          <artifactId>xml-apis</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>



      Everything was working fine on Friday (April 17th 2009), but today(April 20th 2009) the app doesn't start anymore, giving me this error after it inserts the jbpm definitions in the database

       javax.servlet.ServletContextListener - Welcome to Seam 2.1.1.GA
      Hibernate: select processdef0_.ID_ as ID1_0_, processdef0_.NAME_ as NAME3_0_, processdef0_.DESCRIPTION_ as DESCRIPT4_0_, processdef0_.VERSION_ as VERSION5_0_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN6_0_, processdef0_.STARTSTATE_ as STARTSTATE7_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc limit ?
      Hibernate: insert into JBPM_PROCESSDEFINITION (NAME_, DESCRIPTION_, VERSION_, ISTERMINATIONIMPLICIT_, STARTSTATE_, CLASS_) values (?, ?, ?, ?, ?, 'P')
      Hibernate: insert into JBPM_NODE (NAME_, DESCRIPTION_, PROCESSDEFINITION_, ISASYNC_, ISASYNCEXCL_, ACTION_, SUPERSTATE_, CLASS_) values (?, ?, ?, ?, ?, ?, ?, 'R')
      Hibernate: insert into JBPM_TRANSITION (NAME_, DESCRIPTION_, PROCESSDEFINITION_, FROM_, TO_, CONDITION_) values (?, ?, ?, ?, ?, ?)
      Hibernate: insert into JBPM_NODE (NAME_, DESCRIPTION_, PROCESSDEFINITION_, ISASYNC_, ISASYNCEXCL_, ACTION_, SUPERSTATE_, SIGNAL_, CREATETASKS_, ENDTASKS_, CLASS_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'K')
      Hibernate: insert into JBPM_TRANSITION (NAME_, DESCRIPTION_, PROCESSDEFINITION_, FROM_, TO_, CONDITION_) values (?, ?, ?, ?, ?, ?)
      Hibernate: insert into JBPM_TRANSITION (NAME_, DESCRIPTION_, PROCESSDEFINITION_, FROM_, TO_, CONDITION_) values (?, ?, ?, ?, ?, ?)
      Hibernate: insert into JBPM_TASK (NAME_, DESCRIPTION_, PROCESSDEFINITION_, ISBLOCKING_, ISSIGNALLING_, CONDITION_, DUEDATE_, PRIORITY_, ACTORIDEXPRESSION_, POOLEDACTORSEXPRESSION_, TASKMGMTDEFINITION_, TASKNODE_, STARTSTATE_, ASSIGNMENTDELEGATION_, SWIMLANE_, TASKCONTROLLER_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
      Hibernate: insert into JBPM_NODE (NAME_, DESCRIPTION_, PROCESSDEFINITION_, ISASYNC_, ISASYNCEXCL_, ACTION_, SUPERSTATE_, SUBPROCNAME_, CLASS_) values (?, ?, ?, ?, ?, ?, ?, ?, 'E')
      Hibernate: insert into JBPM_NODE (NAME_, DESCRIPTION_, PROCESSDEFINITION_, ISASYNC_, ISASYNCEXCL_, ACTION_, SUPERSTATE_, SUBPROCNAME_, CLASS_) values (?, ?, ?, ?, ?, ?, ?, ?, 'E')
      Hibernate: insert into JBPM_MODULEDEFINITION (NAME_, PROCESSDEFINITION_, CLASS_) values (?, ?, 'C')
      Hibernate: insert into JBPM_MODULEDEFINITION (NAME_, PROCESSDEFINITION_, STARTTASK_, CLASS_) values (?, ?, ?, 'T')
      Hibernate: update JBPM_PROCESSDEFINITION set NAME_=?, DESCRIPTION_=?, VERSION_=?, ISTERMINATIONIMPLICIT_=?, STARTSTATE_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set NAME_=?, DESCRIPTION_=?, PROCESSDEFINITION_=?, FROM_=?, TO_=?, CONDITION_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set NAME_=?, DESCRIPTION_=?, PROCESSDEFINITION_=?, FROM_=?, TO_=?, CONDITION_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set NAME_=?, DESCRIPTION_=?, PROCESSDEFINITION_=?, FROM_=?, TO_=?, CONDITION_=? where ID_=?
      Hibernate: update JBPM_TASK set NAME_=?, DESCRIPTION_=?, PROCESSDEFINITION_=?, ISBLOCKING_=?, ISSIGNALLING_=?, CONDITION_=?, DUEDATE_=?, PRIORITY_=?, ACTORIDEXPRESSION_=?, POOLEDACTORSEXPRESSION_=?, TASKMGMTDEFINITION_=?, TASKNODE_=?, STARTSTATE_=?, ASSIGNMENTDELEGATION_=?, SWIMLANE_=?, TASKCONTROLLER_=? where ID_=?
      Hibernate: update JBPM_NODE set PROCESSDEFINITION_=?, NODECOLLECTIONINDEX_=? where ID_=?
      Hibernate: update JBPM_NODE set PROCESSDEFINITION_=?, NODECOLLECTIONINDEX_=? where ID_=?
      Hibernate: update JBPM_NODE set PROCESSDEFINITION_=?, NODECOLLECTIONINDEX_=? where ID_=?
      Hibernate: update JBPM_NODE set PROCESSDEFINITION_=?, NODECOLLECTIONINDEX_=? where ID_=?
      Hibernate: update JBPM_MODULEDEFINITION set PROCESSDEFINITION_=?, NAME_=? where ID_=?
      Hibernate: update JBPM_MODULEDEFINITION set PROCESSDEFINITION_=?, NAME_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set FROM_=?, FROMINDEX_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set FROM_=?, FROMINDEX_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set FROM_=?, FROMINDEX_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set TO_=? where ID_=?
      Hibernate: update JBPM_TASK set TASKNODE_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set TO_=? where ID_=?
      Hibernate: update JBPM_TRANSITION set TO_=? where ID_=?
      org.jbpm.jpdl.xml.JpdlXmlReader - couldn't parse process definition
      org.dom4j.DocumentException: Error on line 31 of document http://www.w3.org/TR/html4/loose.dtd : The declaration for the entity "HTML.Version" must end with '>'. Nested exception: The declaration for the entity "HTML.Version" must end with '>'.
           at org.dom4j.io.SAXReader.read(SAXReader.java:482)
           at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:66)
           at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:142)
           at org.jboss.seam.bpm.Jbpm.parseInputSource(Jbpm.java:359)
           at org.jboss.seam.bpm.Jbpm.getPageflowDefinitionFromResource(Jbpm.java:165)
           at org.jboss.seam.bpm.Jbpm.installPageflowDefinitions(Jbpm.java:278)
           at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:81)
           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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
           at org.jboss.seam.init.Initialization.init(Initialization.java:735)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
           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:525)
           at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
           at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
           at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
           at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
           at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:516)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
           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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Nested exception: 
      org.xml.sax.SAXParseException: The declaration for the entity "HTML.Version" must end with '>'.
           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
           at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
           at org.dom4j.io.SAXReader.read(SAXReader.java:465)
           at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:66)
           at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:142)
           at org.jboss.seam.bpm.Jbpm.parseInputSource(Jbpm.java:359)
           at org.jboss.seam.bpm.Jbpm.getPageflowDefinitionFromResource(Jbpm.java:165)
           at org.jboss.seam.bpm.Jbpm.installPageflowDefinitions(Jbpm.java:278)
           at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:81)
           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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
           at org.jboss.seam.init.Initialization.init(Initialization.java:735)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
           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:525)
           at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
           at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
           at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
           at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
           at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:516)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
           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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Apr 20, 2009 12:43:02 PM org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      



      If I disable my network(internet) connection, then it's starting up just fine.


      Your help is appreciated,


      Lucian