6 Replies Latest reply on Jul 1, 2003 2:40 AM by Victor Rotaru

    wrong verifier deployment error

    Victor Rotaru Newbie

      Coming back to my post in JMX forum. I am deploying an application on JBoss (3.2.1) 3.2.2RC1 which works well in JBoss 3.0.7. The application was deployed also in SunONE 7 without problems. The mesage I receive is:
      Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/EmployeeLocalHome found in jboss-web.xml but not in web.xml)
      The entity bean (EmployeeBean) is succesfully deployed and both the deployment descriptors (jboss-web.xml and web.xml) contain the entries for that bean. It is actually nothing special for this bean compared with the other entity beans. In 3.2.1 I was able to use the application even if the StrictVerifier was set to true. In JBoss 3.2.2RC1 I cannot check that because JBoss complains about "javax.naming.NameNotFoundException: env not bound". It might be connected with the warning in deployment...
      Any changes has been made in deployments descriptors between the two (3.0.7 and 3.2.1) releases? Any thoughts?

        • 1. Re: wrong verifier deployment error
          Juha Lindfors Master

          Please attach the relevant descriptors.

          • 2. Re: wrong verifier deployment error
            Victor Rotaru Newbie

            Hi Juha,

            I have noticed that all the time the first bean declared in jboss-web.xml is listed with the error. In jboss-web.xml the first bean is declared:
            ------------------------------------------------------------------
            <ejb-ref>
            <ejb-ref-name>ejb/EmployeeLocalHome</ejb-ref-name>
            <jndi-name>data/EmployeeBean</jndi-name>
            </ejb-ref>
            ------------------------------------------------------------------

            In web.xml

            ------------------------------------------------------------------
            <ejb-local-ref>
            <ejb-ref-name>ejb/EmployeeLocalHome</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>com.brightsoft.mobilemaster.ejb.data.EmployeeHome</local-home>
            com.brightsoft.mobilemaster.ejb.data.Employee
            <ejb-link>EmployeeBean</ejb-link>
            </ejb-local-ref>

            ------------------------------------------------------------------

            In jboss.xml
            ------------------------------------------------------------------

            <ejb-name>EmployeeBean</ejb-name>
            <local-jndi-name>data/EmployeeBean</local-jndi-name>
            <configuration-name>Instance Per Transaction CMP 2.x EntityBean</configuration-name>

            ------------------------------------------------------------------

            If I swap the place of the Employee entity bean with other bean then that bean is going to be flaged with that error (existing in jboss-web.xml but not in web.xml.
            I must stress that the ejb part of application is correctly deployed. This error occurs when the web part is deployed.

            • 3. Re: wrong verifier deployment error
              Juha Lindfors Master

              Hmm, mismatch between ejb-ref in jboss-web.xml and ejb-LOCAL-ref in web.xml ?

              • 4. Re: wrong verifier deployment error
                Victor Rotaru Newbie

                This might help.... Stack trace is:

                • 5. Re: wrong verifier deployment error
                  Juha Lindfors Master

                  Drop the jboss-web.xml part, the jndi name should be resolved through the link to ejb-jar.xml (no need for duplicate jndi name declaration in both jboss-web.xml and jboss.xml).

                  Let me know if it works.

                  • 6. Re: wrong verifier deployment error
                    Victor Rotaru Newbie

                    Juha, all OK now. Those warnings were generated because of that double definition in jboss.web and jboss-web.xml. Though the application was working OK ;)
                    Thanks for help.

                    Cheers,
                    Victor