2 Replies Latest reply on Nov 14, 2008 9:49 PM by jbalunas.jbalunas.jboss.org

    SEAM ON WEBLOGIC 10.3

    diana.diana.gomez.heinsohn.com.co

      Im trying to run Seam on WebLogic 10.3


      The version of SEAM is 2.1.0SP1


      Appears the following exception in the deployment:



      java.lang.RuntimeException: error while reading /WEB-INF/components.xml
              at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:221)
              at org.jboss.seam.init.Initialization.create(Initialization.java:124)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
              at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              Truncated. see log file for complete stacktrace
      org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
              at org.dom4j.io.SAXReader.read(SAXReader.java:484)
              at org.dom4j.io.SAXReader.read(SAXReader.java:343)
              at org.jboss.seam.util.XML.getRootElement(XML.java:24)
              at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:217)
              at org.jboss.seam.init.Initialization.create(Initialization.java:124)
              Truncated. see log file for complete stacktrace

      Also appears other exception:



      weblogic.application.ModuleException:
              at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
              at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
              at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
              at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
              Truncated. see log file for complete stacktrace
      org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
              at org.dom4j.io.SAXReader.read(SAXReader.java:484)
              at org.dom4j.io.SAXReader.read(SAXReader.java:343)
              at org.jboss.seam.util.XML.getRootElement(XML.java:24)
              at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:217)
              at org.jboss.seam.init.Initialization.create(Initialization.java:124)
              Truncated. see log file for complete stacktrace

      The file /WEB-INF/components.xml have the following configuration



      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
                  xmlns:core="http://jboss.com/products/seam/core"
                  xmlns:persistence="http://jboss.com/products/seam/persistence"
                  xmlns:transaction="http://jboss.com/products/seam/transaction"
                  xmlns:security="http://jboss.com/products/seam/security"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation=
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd
                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
                       http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">

          <core:manager conversation-timeout="120000"
                        concurrent-request-timeout="500"
                        conversation-id-parameter="cid"/>
        
          <transaction:entity-transaction entity-manager="#{em}"/>
                       
          <persistence:entity-manager-factory name="wlogic_recursoshsh" />
         
          <persistence:managed-persistence-context name="em"
                                     auto-create="true"
                          entity-manager-factory="#{wlogic_recursoshsh}" />
                         
          <security:identity authenticate-method="#{authenticator.authenticate}"/> 
         
      </components>

        • 1. Re: SEAM ON WEBLOGIC 10.3

          Are you following the directions here on seamframework?  What about EJB...are you using it?  Have you tried to deploy the JEE examples first?  If not, I would do so to work out the kinks in the build scripts and then apply what you learned to your own project.

          • 2. Re: SEAM ON WEBLOGIC 10.3
            jbalunas.jbalunas.jboss.org

            I agree completly and ask that you use code blocks, not quotes when pasting in XML, code, or what ever. 


            This ` mark used like this:


            `
                <core:init jndi-pattern="@jndiPattern@" debug="true"/>


                <core:manager conversation-timeout="120000"
                              concurrent-request-timeout="500"
                              conversation-id-parameter="cid"/>


                <transaction:ejb-transaction/>


                <security:identity authenticate-method="#{authenticator.authenticate}"/>


            `


            Will produce this:


                <core:init jndi-pattern="@jndiPattern@" debug="true"/>
            
                <core:manager conversation-timeout="120000"
                              concurrent-request-timeout="500"
                              conversation-id-parameter="cid"/>
            
                <transaction:ejb-transaction/>
            
                <security:identity authenticate-method="#{authenticator.authenticate}"/>
            



            which is much easier to read :-)