4 Replies Latest reply on Aug 1, 2013 11:46 PM by Stephen Coy

    JBoss 7.1.1 doesn't start because of unexpected element “pool”

    Rob Johnsen Newbie

      I get the following error message when I add the pool element:

       

      Caused by: org.jboss.as.connector.util.ParserException: IJ010061:

      Unexpected element: pool

       

      If I remove the pool element it works. I have checked the XSD in the docs folder and I am pretty sure this is right? Why does it fail?

       

              <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

                  <resource-adapters>

                      <resource-adapter>

                          <archive>

                              jackrabbit-jca-2.6.2.rar

                          </archive>

                          <transaction-support>XATransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory" jndi-name="java:/jca/JcrRepository" enabled="true" use-java-context="true" pool-name="jackrabbit-jca-2_6_2_rar-Pool" use-ccm="true"/>

                              <pool>

                                  <min-pool-size>1</min-pool-size>

                                  <max-pool-size>4</max-pool-size>

                              </pool>

                          </connection-definitions>

                      </resource-adapter>

                  </resource-adapters>

              </subsystem>

        • 1. Re: JBoss 7.1.1 doesn't start because of unexpected element “pool”
          Stephen Coy Master

          The <pool> element should be a sub-element of the <connection-definition> element:

          {code:xml}<connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory" jndi-name="java:/jca/JcrRepository" enabled="true" use-java-context="true" pool-name="jackrabbit-jca-2_6_2_rar-Pool" use-ccm="true">

               <pool>

                    <min-pool-size>1</min-pool-size>

                    <max-pool-size>4</max-pool-size>

               </pool>

          </connection-definition>{code}

           

          Looks like eyeball failure .

          • 2. Re: JBoss 7.1.1 doesn't start because of unexpected element “pool”
            Rob Johnsen Newbie

            Changed, but still doesn't start due to: Caused by: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: POOL

             

            <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

                        <resource-adapters>

                            <resource-adapter>

                                <archive>

                                    jackrabbit-jca-2.6.2.rar

                                </archive>

                                <transaction-support>XATransaction</transaction-support>

                                <connection-definitions>

                                    <connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory" jndi-name="java:/jca/JcrRepository" enabled="true" use-java-context="true" pool-name="jackrabbit-jca-2_6_2_rar-Pool" use-ccm="true">

                                        <pool>

                                            <min-pool-size>1</min-pool-size>

                                            <max-pool-size>4</max-pool-size>

                                        </pool>

                                    </connection-definition>

                                </connection-definitions>

                            </resource-adapter>

                        </resource-adapters>

                    </subsystem>

            • 3. Re: JBoss 7.1.1 doesn't start because of unexpected element “pool”
              Rob Johnsen Newbie

              Hmm....seems like using xa-pool works.

               

              However, editing pool settings from webadmin fails:

               

               

              Unexpected HTTP response: 500  Request { "operation" => "composite", "address" => [], "steps" => [{ "address" => [ ("subsystem" => "resource-adapters"), ("resource-adapter" => "jackrabbit-jca-2.6.2.rar"), ("connection-definitions" => "java:/jca/JcrRepository") ], "operation" => "write-attribute", "name" => "max-pool-size", "value" => 5 }] }  Response  Internal Server Error { "outcome" => "failed", "result" => {"step-1" => { "outcome" => "failed", "failure-description" => "JBAS014807: Management resource '[ (\"subsystem\" => \"resource-adapters\"), (\"resource-adapter\" => \"jackrabbit-jca-2.6.2.rar\"), (\"connection-definitions\" => \"java:/jca/JcrRepository\") ]' not found", "rolled-back" => true }}, "failure-description" => {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014807: Management resource '[ (\"subsystem\" => \"resource-adapters\"), (\"resource-adapter\" => \"jackrabbit-jca-2.6.2.rar\"), (\"connection-definitions\" => \"java:/jca/JcrRepository\") ]' not found"}}, "rolled-back" => true }

               


              • 4. Re: JBoss 7.1.1 doesn't start because of unexpected element “pool”
                Stephen Coy Master

                Can you please show a stack trace for the IJ010061 message? The uppercase "POOL" looks suspiciously bug like.

                 

                It may be worthwhile trying a newer release such as the EAP 6.1.0 download.