1 Reply Latest reply on Sep 28, 2009 9:09 PM by first last

    Eclipse, xmlns:transaction, and <transaction:ejb-transaction> error

    first last Newbie

      I got these exceptions (under Eclipse Galileo)

      javax.faces.FacesException: javax.el.ELException:
      /clientList_Results.xhtml @17,62 rendered="#{empty clientList.resultList}":
      Error reading resultList on type org.sens.crm.session.ClientList_$$_javassist_seam_2
      ... many more ...
      Caused by: javax.persistence.TransactionRequiredException:
      No active JTA transaction on joinTransaction call

      So as suggested in
      this post, I tried disabling Seam-manged transactions and configuring a Seam transaction manager (as also explained here).
      I don't really understand the meaning of these operations,

      but I added these to components.xml :

      <core:init debug="true"
      <transaction:ejb-transaction />

      This worked (after I added @Transactional to my db methods),
      BUT - Eclipse shows this error message near the transaction:ejb-transaction line :

      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
      can be found for element transaction:ejb-transaction.

      Components.xml namespace is :

      <components xmlns="http://jboss.com/products/seam/components"
                  ... >

      Does anyone know what may be wrong, and how can this be overcome ??
      Thanks a bunch for any info.

        • 1. Re: Eclipse, xmlns:transaction, and <transaction:ejb-transaction> error
          first last Newbie

          Ok, it was a dumb ass question.

          If anyone ever comes across this:

          make sure you also add a URL to the xsi:schemaLocation property of the components tag, resulting in the following :

          <components xmlns="http://jboss.com/products/seam/components"
                      xsi:schemaLocation= "http://jboss.com/products/seam/core http://jboss.com/product/seam/core-2.2.xsd
                                           http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.2.xsd
                                ... >