6 Replies Latest reply on Sep 25, 2007 11:32 AM by viswnadh vadlamannati

    problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1

    viswnadh vadlamannati Newbie

      Hi all, I am a new bie in JBoss world. I am trying to run a small application which prints current time .

      I am trying to do this work using EJB 2.0 and JSP.

      I created a jar file which is having EJB class files as well as ejb deployment descriptors, JBoss required DDs. (i.e., ejb-jar.xml and jboss.xml)

      Then I made a jsp page which contains a JNDI call from that to access the EJB Home interface (normal EJB client call).With this I prepared a war file with all the required DD files (web.xml etc).

      Now I prepared a ear file with jar file and war file , application.xml file and trying to deploy the application in JBoss. Once it was deployed in the server (deploying properly with out throwing any error), and trying to call the jsp page from browser

      http://localhost:8080/test/firstEJB.jsp

      it is throwing error at the browser as

      -----------------------------------------------------------------------------
      org.apache.jasper.JasperException: An exception occurred processing JSP page /firstEJB.jsp at line 14

      11: props.put(Context.PROVIDER_URL, "localhost:1099");
      12:
      13: Context ctx = new InitialContext(props);
      14: FirstHome home = (FirstHome)ctx.lookup("ejb/First");
      15: First bean = home.create();
      16: String time = bean.getTime();
      17: bean.remove();


      Stacktrace:
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:518)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      javax.servlet.ServletException: java.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class
      org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
      org.apache.jsp.firstEJB_jsp._jspService(firstEJB_jsp.java:94)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      java.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class
      java.lang.Class.getDeclaredFields0(Native Method)
      java.lang.Class.privateGetDeclaredFields(Class.java:2232)
      java.lang.Class.getDeclaredField(Class.java:1852)
      java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1555)
      java.io.ObjectStreamClass.access$600(ObjectStreamClass.java:47)
      java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:381)
      java.security.AccessController.doPrivileged(Native Method)
      java.io.ObjectStreamClass.(ObjectStreamClass.java:373)
      java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:268)
      java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:464)
      java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1502)
      java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
      java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
      java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      javax.naming.InitialContext.lookup(InitialContext.java:351)
      org.apache.jsp.firstEJB_jsp._jspService(firstEJB_jsp.java:68)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      -----------------------------------------------------------------------------------

      my EJBHOme is
      ------------------
      package com.stardeveloper.ejb.session;

      import java.rmi.RemoteException;
      import javax.ejb.CreateException;
      import javax.ejb.EJBHome;

      // Referenced classes of package com.stardeveloper.ejb.session:
      // First

      public interface FirstHome
      extends EJBHome
      {

      public abstract First create()
      throws CreateException, RemoteException;
      }
      ------------------------------------------------------------
      my Remote Interface is

      package com.stardeveloper.ejb.session;

      import java.rmi.RemoteException;
      import javax.ejb.EJBObject;

      public interface First
      extends EJBObject
      {

      public abstract String getTime()
      throws RemoteException;
      }
      --------------------------------------------------------
      my EJB Sesion Bean is

      package com.stardeveloper.ejb.session;

      import java.util.Date;
      import javax.ejb.SessionBean;
      import javax.ejb.SessionContext;

      public class FirstEJB
      implements SessionBean
      {

      public FirstEJB()
      {
      }

      public String getTime()
      {
      return "Time is : " + (new Date()).toString();
      }

      public void ejbCreate()
      {
      }

      public void ejbPassivate()
      {
      }

      public void ejbActivate()
      {
      }

      public void ejbRemove()
      {
      }

      public void setSessionContext(SessionContext sessioncontext)
      {
      }
      }
      -------------------------------------------------

      My JSP page which is trying to access the EJB is

      <%@ page import="javax.naming.InitialContext,
      javax.naming.Context,
      java.util.Properties,
      com.stardeveloper.ejb.session.First,
      com.stardeveloper.ejb.session.FirstHome"%>
      <%
      long t1 = System.currentTimeMillis();
      Properties props = new Properties();
      props.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      props.put(Context.PROVIDER_URL, "localhost:1099");

      Context ctx = new InitialContext(props);
      FirstHome home = (FirstHome)ctx.lookup("ejb/First");
      First bean = home.create();
      String time = bean.getTime();
      bean.remove();
      ctx.close();
      long t2 = System.currentTimeMillis();
      %>


      p { font-family:Verdana;font-size:12px; }


      Message received from bean = "<%= time %>".Time taken :
      <%= (t2 - t1) %> ms.


      ---------------------------------
      my ejb-jar.xml is

      <?xml version="1.0"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">

      <ejb-jar>

      <enterprise-beans>

      <display-name>FirstEJB</display-name>
      <ejb-name>First</ejb-name>
      com.stardeveloper.ejb.session.FirstHome
      com.stardeveloper.ejb.session.First
      <ejb-class>com.stardeveloper.ejb.session.FirstEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      </enterprise-beans>

      <assembly-descriptor>
      <container-transaction>

      <ejb-name>First</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Supports</trans-attribute>
      </container-transaction>

      <security-role>
      Users
      <role-name>users</role-name>
      </security-role>
      </assembly-descriptor>
      </ejb-jar>
      ----------------------------------------
      my jboss.xml is

      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN"
      "http://www.jboss.org/j2ee/dtd/jboss.dtd">

      <enterprise-beans>

      <ejb-name>First</ejb-name>
      <jndi-name>ejb/First</jndi-name>

      </enterprise-beans>



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

      One of the solution for this would be , if I put the EJB jar file (the jar file which is having all the ejb classes as well as deployment descriptors inside that ) inside the war file WEB-INF\lib folder. Then it is working fine , showing the page at the browser.

      Suppose if it is a very big application and I can't put that at war\WEB-INF\lib folder. This is not the way to put.

      SO any body please put some light on this...What I need to do to work with out putting my ejb jar file inside the war file.

      Thanks!
      vvk



        • 1. Re: problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1
          jaikiran pai Master

          Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions, specifically the jmx-console method mentioned over there. Have you packaged jboss-j2ee.jar or other jboss related jar files in your application?

          • 2. Re: problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1
            viswnadh vadlamannati Newbie

            Hi Thanks a lot for your reply

            (1) I went thru you provided link.

            I saw the below "MBean Name: Domain Name: JMImplementation
            service: LoaderRepository
            "


            file:/C:/jboss-4.2.1.GA/server/default/lib/jnpserver.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-httpil.sar/
            file:/C:/jboss-4.2.1.GA/server/default/lib/autonumber-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/commons-codec.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jpl-pattern.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7498jbossweb-service.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7491trove.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7515wsdl4j.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/antlr.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jpl-util.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-remoting-int.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/xmlentitymgr.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-bean.deployer/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7538jboss-ha-local-jdbc.rar-contents/jboss-ha-local-jdbc.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/uuid-key-generator.sar/
            file:/C:/jboss-4.2.1.GA/server/default/lib/properties-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jbossjta.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7508jaxb-api.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-aop-jdk50.deployer/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7489jboss-aop-jdk50.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/bsh.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/scheduler-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7487jboss-annotations-ejb3.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-web.deployer/ROOT.war/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7542jms-ra.rar
            file:/C:/jboss-4.2.1.GA/server/default/lib/bsh-deployer.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jmx-console.war/
            file:/C:/jboss-4.2.1.GA/server/default/lib/jbossmq.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jaxen.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7541jboss-xa-jdbc.rar-contents/jboss-xa-jdbc.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jbossws-integration.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7499jbossweb.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/hsqldb.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7497jbossweb-extras.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7539jboss-ha-xa-jdbc.rar-contents/jboss-ha-xa-jdbc.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7516xmlsec.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7501jsf-api.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jca.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/bcel.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7510jboss-jaxws.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jbossws.sar/jbossws.beans/
            file:/C:/jboss-4.2.1.GA/server/default/lib/javassist.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7538jboss-ha-local-jdbc.rar
            file:/C:/jboss-4.2.1.GA/server/default/conf/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7494jboss-dependency.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-serialization.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/commons-httpclient.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7488jboss-ejb3.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/hibernate3.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/log4j.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/hibernate-entitymanager.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/http-invoker.sar/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7509jaxb-impl.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/mail-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7517jbossws-context-exp.war/
            file:/C:/jboss-4.2.1.GA/server/default/lib/hibernate-annotations.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-srp.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jsp-api.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-vfs.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-remoting.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/log4j-snmp-appender.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-transaction.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jaxrpc.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jmx-adaptor-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/http-invoker.sar/invoker.war/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7513policy.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7514stax-api.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jbossjta-integration.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7511jbossws-core.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-ejb3x.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/cglib.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jbossws.sar/
            file:/C:/jboss-4.2.1.GA/server/default/lib/el-api.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7500jboss-faces.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/ejb3-persistence.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7543quartz-ra.rar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-j2ee.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-monitoring.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7492jboss-bean-deployer.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7502jsf-impl.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-saaj.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/bsf.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7541jboss-xa-jdbc.rar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-management.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/hsqldb-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jsr88.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7493jboss-container.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7542jms-ra.rar-contents/jms-ra.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jsr77.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7490jboss-aspect-library-jdk50.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7540jboss-local-jdbc.rar-contents/jboss-local-jdbc.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7539jboss-ha-xa-jdbc.rar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7495jboss-microcontainer.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7540jboss-local-jdbc.rar
            file:/C:/jboss-4.2.1.GA/server/default/lib/commons-collections.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/ejb3.deployer/
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7496jasper-jdt.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/dom4j.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7543quartz-ra.rar-contents/quartz-ra.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7503jstl.jar
            file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-web.deployer/
            file:/C:/jboss-4.2.1.GA/server/default/lib/scheduler-plugin-example.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-hibernate.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-common-jdbc-wrapper.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/mail.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/quartz.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/bindingservice-plugin.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/servlet-api.jar
            file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7512jbossws-jboss42-integration.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/activation.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-cache-jdk50.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jbosssx.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/jbossts-common.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/commons-logging.jar
            file:/C:/jboss-4.2.1.GA/server/default/lib/joesnmp.jar



            Instance org.jboss.mx.loading.LoaderRepository R org.jboss.mx.loading.UnifiedLoaderRepository3@134a7d8 MBean Attribute.


            I am sorry that I pasted all the jmx-stuff here , since I didn't understand from that .

            (2) jboss related jar files inside my war\WEB-INF\lib
            folder are...

            firstVisEJB.jar
            jbossall-client.jar
            jboss-client.jar
            jboss-j2ee.jar
            jnp-client.jar



            Thanks
            vvk

            • 3. Re: problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1
              viswnadh vadlamannati Newbie

              sorry I pasted wrong jmx MImplementation LoaderRepository in my previous reply

              Please find the correct jmx MImplementation LoaderRepository in this

              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21022jboss-ha-xa-jdbc.rar-contents/jboss-ha-xa-jdbc.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jnpserver.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-httpil.sar/
              file:/C:/jboss-4.2.1.GA/server/default/lib/autonumber-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/commons-codec.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jpl-pattern.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20978jboss-microcontainer.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/antlr.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jpl-util.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21022jboss-ha-xa-jdbc.rar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-remoting-int.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/xmlentitymgr.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-bean.deployer/
              file:/C:/jboss-4.2.1.GA/server/default/deploy/uuid-key-generator.sar/
              file:/C:/jboss-4.2.1.GA/server/default/lib/properties-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jbossjta.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21025jms-ra.rar-contents/jms-ra.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21000jbossws-context-exp.war/
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20973jboss-aspect-library-jdk50.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20992jaxb-impl.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-aop-jdk50.deployer/
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20971jboss-ejb3.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21024jboss-xa-jdbc.rar-contents/jboss-xa-jdbc.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/bsh.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/scheduler-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20995jbossws-jboss42-integration.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21021jboss-ha-local-jdbc.rar-contents/jboss-ha-local-jdbc.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-web.deployer/ROOT.war/
              file:/C:/jboss-4.2.1.GA/server/default/lib/bsh-deployer.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jmx-console.war/
              file:/C:/jboss-4.2.1.GA/server/default/lib/jbossmq.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jaxen.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jbossws-integration.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/hsqldb.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20976jboss-container.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jca.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/bcel.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20983jboss-faces.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20994jbossws-core.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20998wsdl4j.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20980jbossweb-extras.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jbossws.sar/jbossws.beans/
              file:/C:/jboss-4.2.1.GA/server/default/lib/javassist.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20972jboss-aop-jdk50.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21023jboss-local-jdbc.rar
              file:/C:/jboss-4.2.1.GA/server/default/conf/
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21029firstEJB.ear
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-serialization.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/commons-httpclient.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20985jsf-impl.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/hibernate3.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/log4j.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/hibernate-entitymanager.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/http-invoker.sar/
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21025jms-ra.rar
              file:/C:/jboss-4.2.1.GA/server/default/lib/mail-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20982jbossweb.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/hibernate-annotations.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20991jaxb-api.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-srp.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21029firstEJB.ear-contents/firstVisEJB.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20975jboss-bean-deployer.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jsp-api.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21021jboss-ha-local-jdbc.rar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-vfs.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21026quartz-ra.rar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20970jboss-annotations-ejb3.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21029firstEJB.ear-contents/firstVisjsp-exp.war/
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-remoting.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/log4j-snmp-appender.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-transaction.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jaxrpc.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jmx-adaptor-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/http-invoker.sar/invoker.war/
              file:/C:/jboss-4.2.1.GA/server/default/lib/jbossjta-integration.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21023jboss-local-jdbc.rar-contents/jboss-local-jdbc.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20996policy.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20979jasper-jdt.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-ejb3x.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/cglib.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jbossws.sar/
              file:/C:/jboss-4.2.1.GA/server/default/lib/el-api.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20999xmlsec.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/ejb3-persistence.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-j2ee.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-monitoring.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20974trove.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-saaj.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/bsf.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-management.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/hsqldb-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jsr88.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20993jboss-jaxws.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20986jstl.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-jsr77.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/commons-collections.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20984jsf-api.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/ejb3.deployer/
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21026quartz-ra.rar-contents/quartz-ra.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20997stax-api.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/dom4j.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20981jbossweb-service.jar
              file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-web.deployer/
              file:/C:/jboss-4.2.1.GA/server/default/lib/scheduler-plugin-example.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-hibernate.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-common-jdbc-wrapper.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/mail.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp21024jboss-xa-jdbc.rar
              file:/C:/jboss-4.2.1.GA/server/default/lib/quartz.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/bindingservice-plugin.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/servlet-api.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/activation.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jboss-cache-jdk50.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jbosssx.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/jbossts-common.jar
              file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp20977jboss-dependency.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/commons-logging.jar
              file:/C:/jboss-4.2.1.GA/server/default/lib/joesnmp.jar


              Please find the lines which are in bold...those are the ear , jar and war files which we can see in the jmx-console...

              as I said in my below reply the JBoss related jar files are

              the below jar files are inside the war\WEB-INF\lib folder


              firstVisEJB.jar
              jbossall-client.jar
              jboss-client.jar
              jboss-j2ee.jar
              jnp-client.jar

              • 4. Re: problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1
                viswnadh vadlamannati Newbie

                my application.xml is shown below

                <?xml version="1.0" encoding="ISO-8859-1"?>
                <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
                <application>
                 <display-name>Stateless Session Bean Example</display-name>
                 <module>
                 <web>
                 <web-uri>firstVisjsp.war</web-uri>
                 <context-root>/firstVisjsp</context-root>
                 </web>
                 </module>
                 <module>
                 <ejb>firstVisEJB.jar</ejb>
                 </module>
                </application>
                


                Thanks!
                VVK

                • 5. Re: problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1
                  jaikiran pai Master

                   

                  "vkviswanadh" wrote:
                  (2) jboss related jar files inside my war\WEB-INF\lib
                  folder are...

                  firstVisEJB.jar
                  jbossall-client.jar
                  jboss-client.jar
                  jboss-j2ee.jar
                  jnp-client.jar






                  Remove the jbossall-client.jar, jboss-client.jar, jboss-j2ee.jar, jnp-client.jar jars from the WEB-INF/lib folder. They are already there in the server/< servername>/lib folder. After removing them from your WEB-INF/lib folder, restart the server

                  • 6. Re: problem in EJB example in JBoss 4.0.5 or JBoss 4.2.1
                    viswnadh vadlamannati Newbie

                    Thanks a lot jaikiran...it is working fine for me.

                    Thanks a lot.

                    vvk