3 Replies Latest reply on May 15, 2003 7:22 PM by Jon Barnett

    EJB errors

    substring Newbie

      Hello All,

      I am trying to run a tutorial Hello World EJB program on JBoss3.2.1_Tomcat4.1.24 bundle.
      When I run "ant all" from my project folder, there is no compile error. But on the JBoss
      console, I saw these error messages:

      //messages start------------------------------------
      08:02:29,161 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@416616b2{
      url=file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/HelloEJB.jar,
      deployedLastModified=0 }org.jboss.deployment.DeploymentException:
      The processing instruction target matching "[xX][mM][lL]" is not allowed.;
      - nested throwable: (org.xml.sax.SAXParseException: The processing instruction
      target matching "[xX][mM][lL]" is not allowed.)

      08:02:31,676 ERROR [Digester] Parse Error at line 13 column 10: The content
      of element type "taglib" is incomplete, it must match
      "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".org.xml.sax.SAXParseException:
      The content of element type "taglib" is incomplete, it must match
      "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
      //messages end------------------------------------

      What does that mean? The 2nd error message even point out the line of code where the error is,
      but where can I find that line of code? It seems most of these definition files are zipped
      up as jar files.

      Also, how can I check the status of the beans from the JBoss JMX Agent View?

      Any help will be very much appreciated.

        • 1. Re: EJB errors
          Jon Barnett Master

          In one of your deployment descriptors, you either have spaces or some elements before your <?xml ...> tag. This is upsetting the parser. This tag must be the first element in the XML document. So check your ejb-jar.xml and your jboss.xml if you have one.

          When you go to the main page of jmx-console, under the jboss.j2ee, you'll get a bunch of lines identifying your EJB by its bound JNDI name.

          e.g.

          jndiName=ejb/BinaryRetriever,plugin=pool,service=EJB
          jndiName=ejb/BinaryRetriever,service=EJB

          You can drill down to look at the MBean view - the first shows in this case the pool characteristics of this stateless session bean, the second shows the individual characteristics of a bean from this pool.

          Under jboss from the main menu, you will also find service=jndiView which you can go to and invoke the list action which lists all bound JNDI names.

          • 2. Re: EJB errors
            substring Newbie

            There was a comment line on the top of my ejb-jar.xml file. I deleted it and it fixed my first error message. However, my 2nd error message remains the same.

            //message start--------------------------------------
            09:41:15,694 INFO [Engine] WebappLoader[/HelloClient]: Deploy JAR /WEB-INF/lib/struts.jar to C:\jboss-3.2.1_tomcat-4.1.24\server\default\tmp\deploy\server\default\deploy\work\MainEngine\localhost\HelloClient\WEB-INF\lib\struts.jar
            09:41:17,804 ERROR [Digester] Parse Error at line 13 column 10: The content of element type "taglib" is incomplete, it must match "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".org.xml.sax.SAXParseException: The content of element type "taglib" is incomplete, it must match "(tlibversion,jspversion?,shortname,uri?,info?,tag+)".
            //message end-----------------------------------------

            How can I fix that one? I don't know where to find that "line 13 column 10" to debug it. Thank you very much.

            • 3. Re: EJB errors
              Jon Barnett Master

              This second error is related to Tomcat having difficulty with parsing your tag library definitions. This is beyond the scope of this forum to handle specifically. You would need to examine the mapping of the included tag libraries specified in your WAR's web.xml, and then check the existence and content of the *.tld files defined in the mapping.

              Go here for more references to tag libraries:
              http://www.idg.net/ic_1188109_9700_1-5062.html