1 Reply Latest reply on Apr 9, 2002 11:34 AM by babar33

    Strange bean problem in Jboss 2.4.4

    babar33

      Hi

      I must migrate a weblogic server to jboss.
      My program is running very well in weblogic

      I took my archive from weblogic, added a jboss.xml files, removing weblogic stub.
      I deployed the application.

      I get the EJBObject with a lookup...
      But when I want to call method on the bean, I have this error:
      [ERROR,EmployeService] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:166)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.ejb.EJBException: null
      Embedded Exception
      null
      at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:61)
      at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:62)
      at org.jboss.ejb.plugins.AbstractInstancePool.add(AbstractInstancePool.java:153)
      at org.jboss.ejb.plugins.AbstractInstancePool.internalGet(AbstractInstancePool.java:216)
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:191)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:74)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      ... 17 more


      I ve seen one other people having this error on the forum, but it was a null he forgot (I think it's not that, the code was running fine with weblogic).
      I have no idea of what the matter is, so if somebody could help me

      I put my ejb-jar.xml and jboss.xml file below

      Thank you for your help



      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
      <ejb-jar id="ejb-jar_ID">
      <description>Generated by Export Tool for Enterprise Java Beans 1.1 version 1.0 from IBM VisualAge for Java version 4.0.</description>
      <display-name>fwc1_Struts_Applitest_2</display-name>
      <enterprise-beans>
      <session id="DepartementService">
      <ejb-name>DepartementService</ejb-name>
      <home>fwc1Struts.appliTest.serveur.ejb.DepartementServiceHome</home>
      <remote>fwc1Struts.appliTest.serveur.ejb.DepartementService</remote>
      <ejb-class>fwc1Struts.appliTest.serveur.ejb.DepartementServiceBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      </session>
      <session id="EmployeDepartementService">
      <ejb-name>EmployeDepartementService</ejb-name>
      <home>fwc1Struts.appliTest.serveur.ejb.EmployeDepartementServiceHome</home>
      <remote>fwc1Struts.appliTest.serveur.ejb.EmployeDepartementService</remote>
      <ejb-class>fwc1Struts.appliTest.serveur.ejb.EmployeDepartementServiceBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      </session>
      <session id="EmployeService">
      <ejb-name>EmployeService</ejb-name>
      <home>fwc1Struts.appliTest.serveur.ejb.EmployeServiceHome</home>
      <remote>fwc1Struts.appliTest.serveur.ejb.EmployeService</remote>
      <ejb-class>fwc1Struts.appliTest.serveur.ejb.EmployeServiceBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      </session>
      </enterprise-beans>
      <assembly-descriptor id="AssemblyDescriptor_ID">
      <container-transaction id="MethodTransaction_1">
      <method id="MethodElement_1">
      <ejb-name>DepartementService</ejb-name>
      <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction id="MethodTransaction_2">
      <method id="MethodElement_2">
      <ejb-name>EmployeDepartementService</ejb-name>
      <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction id="MethodTransaction_3">
      <method id="MethodElement_3">
      <ejb-name>EmployeService</ejb-name>
      <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>


      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
      <jboss>
      <enterprise-beans>
      <session id="DepartementService">
      <ejb-name>DepartementService</ejb-name>
      <jndi-name>ejb/DepartementServiceHome</jndi-name>
      </session>
      <session id="EmployeDepartementService">
      <ejb-name>EmployeDepartementService</ejb-name>
      <jndi-name>ejb/EmployeDepartementServiceHome</jndi-name>
      </session>
      <session id="EmployeService">
      <ejb-name>EmployeService</ejb-name>
      <jndi-name>ejb/EmployeServiceHome</jndi-name>
      </session>
      </enterprise-beans>

      </jboss>

        • 1. Re: Strange bean problem in Jboss 2.4.4
          babar33

          I've found the problem

          It was in the create Method. I use log4j in my project, and my log file was log.properties (the same as in /log/log.properties)
          It's quite strange that the fact it come from the exception don't say it was in the creating method