2 Replies Latest reply on Jan 9, 2009 10:35 AM by sachin1506

    Problem while migrating from weblogic to Jboss

      Hello Everyone
      I am using jboss 3.2.6
      with jdk 1.4
      i have a problem with deploying my module that was earlier deployed in weblogic
      i have a module named test1.ear ..this is deployed ..
      this module has a gui to login
      login and authentication is done ..after that there are some more modules represented by buttons
      when i click on one of the button for which ear is deployed like test2.ear then it is also successfulll but while working on test2.ear it requirtes test3.jar and test3.war files
      now while deploying these test3.jar and test3.war to deploy directory i get the following errors ...

      12:09:25,693 WARN [verifier] EJB spec violation:
      Bean : RaContactInfo
      Method : public Long ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,694 WARN [verifier] EJB spec violation:
      Bean : RaContactInfo
      Method : public Long ejbCreate(Long, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,694 WARN [verifier] EJB spec violation:
      Bean : RaContactInfo
      Method : public Long ejbCreate(Long, String, Long)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,706 WARN [verifier] EJB spec violation:
      Bean : RaDataInterchangeInfo
      Method : public Long ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,707 WARN [verifier] EJB spec violation:
      Bean : RaDataInterchangeInfo
      Method : public Long ejbCreate(Long, String, Long, Long, String, String, Long, Long, String, String, String, String, String, Long, Long, String, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,715 WARN [verifier] EJB spec violation:
      Bean : RaFileSeqNum
      Method : public RaFileSeqNumPK ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,715 WARN [verifier] EJB spec violation:
      Bean : RaFileSeqNum
      Method : public RaFileSeqNumPK ejbCreate(Integer, String, Integer)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,721 WARN [verifier] EJB spec violation:
      Bean : RaVpmnHpmnTriplet
      Method : public Integer ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,721 WARN [verifier] EJB spec violation:
      Bean : RaVpmnHpmnTriplet
      Method : public Integer ejbCreate(Integer, Long, String, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,729 WARN [verifier] EJB spec violation:
      Bean : RaEmergencyServicelist
      Method : public RaEmergencyServicelistPK ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,730 WARN [verifier] EJB spec violation:
      Bean : RaEmergencyServicelist
      Method : public RaEmergencyServicelistPK ejbCreate(Long, String, String, Long)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,739 WARN [verifier] EJB spec violation:
      Bean : RaFraudInfo
      Method : public RaFraudInfoPK ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,739 WARN [verifier] EJB spec violation:
      Bean : RaFraudInfo
      Method : public RaFraudInfoPK ejbCreate(Long, String, Long, String, Timestamp, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,739 WARN [verifier] EJB spec violation:
      Bean : RaFraudInfo
      Method : public RaFraudInfoPK ejbCreate(Long, String, Long, String, String, String, Timestamp, String, Float, Long, Long, Long, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,739 WARN [verifier] EJB spec violation:
      Bean : RaFraudInfo
      Method : public RaFraudInfoPK ejbCreate(Long, String, Long, String, String, String, Timestamp, String, Float, Long, Long, long)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,747 WARN [verifier] EJB spec violation:
      Bean : RaInvoiceInfo
      Method : public Long ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,748 WARN [verifier] EJB spec violation:
      Bean : RaInvoiceInfo
      Method : public Long ejbCreate(Long, String, Long, Long, String, Float, String, Float)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,748 WARN [verifier] EJB spec violation:
      Bean : RaInvoiceInfo
      Method : public Long ejbCreate(Long, String, Long, Long, Long, Long, Long, Long, String, Float, String, Float)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,756 WARN [verifier] EJB spec violation:
      Bean : RaPmnList
      Method : public RaPmnListPK ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,756 WARN [verifier] EJB spec violation:
      Bean : RaPmnList
      Method : public RaPmnListPK ejbCreate(Long, String, String, String, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,756 WARN [verifier] EJB spec violation:
      Bean : RaPmnList
      Method : public RaPmnListPK ejbCreate(Long, String, String, String, String, String, Long, String, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,771 WARN [verifier] EJB spec violation:
      Bean : RaRoamingAgreement
      Method : public Long ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,771 WARN [verifier] EJB spec violation:
      Bean : RaRoamingAgreement
      Method : public Long ejbCreate(Long, String, Long, Long, Long, Timestamp, Timestamp, Timestamp, Timestamp, Timestamp, Long, Long, Long, Long, Long, String, Long, Long, Long, Integer, String, String, Long, Timestamp, String)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,780 WARN [verifier] EJB spec violation:
      Bean : RaServicelistInfo
      Method : public RaServicelistInfoPK ejbCreate()
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,780 WARN [verifier] EJB spec violation:
      Bean : RaServicelistInfo
      Method : public RaServicelistInfoPK ejbCreate(Long, String, String, Long)
      Section: 10.6.4
      Warning: The throws clause must define the javax.ejb.CreateException.
      
      12:09:25,795 WARN [EJBVerifier20] Default instances of primary key: class cdot.oss.clh.ram.ejb.entity.RaVasListPK do not have the same hash, check your hashCode method
      12:09:25,804 WARN [EJBVerifier20] Default instances of primary key: class cdot.oss.clh.ram.ejb.entity.LocalAgreementPK do not have the same hash, check your hashCode method
      12:09:25,813 WARN [EJBVerifier20] Default instances of primary key: class cdot.oss.clh.ram.ejb.entity.RaBillingCyclePK do not have the same hash, check your hashCode method
      12:09:25,822 WARN [EJBVerifier20] Default instances of primary key: class cdot.oss.clh.ram.ejb.entity.LaTariffPK do not have the same hash, check your hashCode method
      12:09:25,978 ERROR [MainDeployer] could not create deployment: file:/sagit_1/sachin/Desktop/withoutConfigured/jboss-3.2.6/server/default/deploy/ram.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
       at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      
      
      

      as i get the warnings and then deployment fails
      so do i need to remove these warnings ..is it must ..is that causing the deployment to be fail...and
      when i tried putting test3.jar to my lib directory and added that to classpath also that doesn't work ....deployment works like test3.jar is no where present
      Plzz Help me ..i am stuck here for a long time
      do i need to make some configuration changes ..????
      Thnx in Advance
      Thnkyou

        • 1. Re: Problem while migrating from weblogic to Jboss

          Here I get some clue about my problem
          my session ejb's are deployed (as per i think ) bcoz warning msgs are for only entity beans and two other modules that are deployed earlier successfully dont use entity beans
          so i got at the point that some where i have problem with deploying Entity Beans



          I m putting one entity element

          Here my ejb-jar.xml is


          Entity Bean ( CMP )
          <display-name>RaContactInfo</display-name>
          <ejb-name>RaContactInfo</ejb-name>
          cdot.oss.clh.ram.ejb.entity.RaContactInfoHome
          cdot.oss.clh.ram.ejb.entity.RaContactInfo
          <local-home>cdot.oss.clh.ram.ejb.entity.RaContactInfoLocalHome</local-home>
          cdot.oss.clh.ram.ejb.entity.RaContactInfoLocal
          <ejb-class>cdot.oss.clh.ram.ejb.entity.RaContactInfoBean</ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>java.lang.Long</prim-key-class>
          False
          <cmp-version>2.x</cmp-version>
          <abstract-schema-name>RaContactInfo</abstract-schema-name>
          <cmp-field>
          <field-name>contactInfoId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>contactInfoName</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>roamingMngtAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>interPmnInvoiceAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>custCareAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>mktAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>simAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>fraudMngtAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <cmp-field>
          <field-name>dataInterchangeAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>pmnAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>tadigTestingAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>iregTestingAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>mapSignallingAddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>agreementMngt_AddrId</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>status</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>remarks</field-name>
          </cmp-field>
          <cmp-field>
          <field-name>internationalRoamingAddrId</field-name>
          </cmp-field>
          <primkey-field>contactInfoId</primkey-field>

          <query-method>
          <method-name>findAll</method-name>
          <method-params/>
          </query-method>
          <ejb-ql>select object(o) from RaContactInfo o</ejb-ql>



          <query-method>
          <method-name>findByMaxContactInfoId</method-name>
          <method-params/>
          </query-method>
          <ejb-ql><![CDATA[SELECT OBJECT(o) FROM RaContactInfo AS o WHERE o.contactInfoId IN (SELECT MAX(p.contactInfoId) FROM RaContactInfo AS p)]]>
          </ejb-ql>




          <query-method>
          <method-name>findByStatus</method-name>
          <method-params>
          <method-param>java.lang.String</method-param>
          </method-params>

          </query-method>
          <ejb-ql>SELECT OBJECT(o) FROM RaContactInfo AS o WHERE o.status=?1 </ejb-ql>








          • 2. Re: Problem while migrating from weblogic to Jboss

            Here my jboss.xml is

            <jboss>
            <enterprise-beans>
            <entity>
             <ejb-name>RaContactInfo</ejb-name>
             <entity-descriptor>
             <persistence>
             <persistence-use>
             <type-identifier>Jboss_CMP_JDBC</type-identifier>
             <type-version>6.0</type-version>
             <type-storage>META-INF/jbosscmp-jdbc.xml</type-storage>
             </persistence-use>
             </persistence>
             </entity-descriptor>
             <jndi-name>clh/ram/RaContactInfo</jndi-name>
             <local-jndi-name>clh/ram/RaContactInfoLocal</local-jndi-name>
             </entity>
            </enterprise-beans>
            </jboss>
            


            My jbosscmp-jdbc.xml
            <?xml version="1.0" encoding="UTF-8"?>
            
            <!DOCTYPE jbosscmp-jdbc PUBLIC
             "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN"
             "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd">
            
            
            
            <!-- ===================================================================== -->
            <!-- -->
            <!-- Standard JBossCMP-JDBC Configuration -->
            <!-- -->
            <!-- ===================================================================== -->
            
            <!-- $Id: jbosscmp-jdbc.xml,v 1.17 2008/04/10 11:22:15 swgen Exp $ -->
            
            <jbosscmp-jdbc>
            
             <defaults>
             <datasource>java:/RAM_DS</datasource>
             <datasource-mapping>Oracle8</datasource-mapping>
            
             <create-table>false</create-table>
             <remove-table>false</remove-table>
             <read-only>false</read-only>
             <read-time-out>300</read-time-out>
             <pk-constraint>true</pk-constraint>
             <fk-constraint>false</fk-constraint>
             <row-locking>false</row-locking>
             <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
             <read-ahead>
             <strategy>on-load</strategy>
             <page-size>1000</page-size>
             <eager-load-group>*</eager-load-group>
             </read-ahead>
             <list-cache-max>1000</list-cache-max>
             </defaults>
             <type-mapping>
             <name>Oracle8</name>
             <row-locking-template>SELECT ?1 FROM ?2 WHERE ?3 FOR UPDATE</row-locking-template>
             <pk-constraint-template>CONSTRAINT ?1 PRIMARY KEY (?2)</pk-constraint-template>
             <fk-constraint-template>ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5)</fk-constraint-template>
             <alias-header-prefix>t</alias-header-prefix>
             <alias-header-suffix>_</alias-header-suffix>
             <alias-max-length>30</alias-max-length>
             <subquery-supported>true</subquery-supported>
             <true-mapping>1</true-mapping>
             <false-mapping>0</false-mapping>
            
             <function-mapping>
             <function-name>concat</function-name>
             <function-sql>(?1 || ?2)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>substring</function-name>
             <function-sql>substr(?1, ?2, ?3)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>lcase</function-name>
             <function-sql>lower(?1)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>length</function-name>
             <function-sql>length(?1)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>locate</function-name>
             <function-sql>instr(?2, ?1, ?3)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>abs</function-name>
             <function-sql>abs(?1)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>sqrt</function-name>
             <function-sql>sqrt(?1)</function-sql>
             </function-mapping>
             <function-mapping>
             <function-name>ucase</function-name>
             <function-sql>upper(?1)</function-sql>
             </function-mapping>
            
             <mapping>
             <java-type>java.lang.Boolean</java-type>
             <jdbc-type>BIT</jdbc-type>
             <sql-type>NUMBER(1)</sql-type>
             </mapping>
             <mapping>
             <java-type>java.lang.Byte</java-type>
             <jdbc-type>NUMERIC</jdbc-type>
             <sql-type>NUMBER(3)</sql-type>
             </mapping>
             <mapping>
             <java-type>java.lang.Short</java-type>
             <jdbc-type>NUMERIC</jdbc-type>
             <sql-type>NUMBER(5)</sql-type>
             </mapping>
             <mapping>
             <java-type>java.lang.Integer</java-type>
             <jdbc-type>INTEGER</jdbc-type>
             <sql-type>NUMBER(10)</sql-type>
             </mapping>
             <mapping>
             <java-type>java.lang.Long</java-type>
             <jdbc-type>BIGINT</jdbc-type>
             <sql-type>NUMBER(19)</sql-type>
             </mapping>
             <mapping>
             <java-type>java.lang.Float</java-type>
             <jdbc-type>REAL</jdbc-type>
             <sql-type>NUMBER(38,7)</sql-type>
             </mapping>
             <mapping>
             <java-type>java.math.BigDecimal</java-type>
             <jdbc-type>DECIMAL</jdbc-type>
             <sql-type>NUMBER(38,15)</sql-type>
             <jdbc-type>DATE</jdbc-type>
             <sql-type>DATE</sql-type>
             </mapping>
             <mapping>
             <java-type>java.sql.Time</java-type>
             <jdbc-type>TIME</jdbc-type>
             <sql-type>DATE</sql-type>
             </mapping>
             <mapping>
             <!--
             | Note that you lose granularity here
             | Use a numeric type and store milliseconds if you really need it
             -->
             <java-type>java.sql.Timestamp</java-type>
             <jdbc-type>TIMESTAMP</jdbc-type>
             <sql-type>DATE</sql-type>
             </mapping>
             <mapping>
             <java-type>java.lang.Object</java-type>
             <jdbc-type>BLOB</jdbc-type>
             <sql-type>BLOB</sql-type>
             <!--
             | Change this from BLOB to RAW(n) if you know your
             | serialized object will be <= n bytes and n <= 2000
             -->
             </mapping>
            <enterprise-beans>
             <entity>
             <ejb-name>RaContactInfo</ejb-name>
             <table-name>RA_CONTACT_INFO</table-name>
             <cmp-field>
             <field-name>contactInfoId</field-name>
             <column-name>CONTACT_INFO_ID</column-name>
             </cmp-field>
            
             <cmp-field>
             <field-name>contactInfoName</field-name>
             <column-name>CONTACT_INFO_NAME</column-name>
             </cmp-field>
            
             <cmp-field>
             <field-name>roamingMngtAddrId</field-name>
             <column-name>ROAMING_MNGT_ADDR_ID</column-name>
             </cmp-field>
            
             <cmp-field>
             <field-name>interPmnInvoiceAddrId</field-name>
             <column-name>INTER_PMN_INVOICE_ADDR_ID</column-name>
             </cmp-field>
            
             <cmp-field>
             <field-name>custCareAddrId</field-name>
             <column-name>CUST_CARE_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>mktAddrId</field-name>
             <column-name>MKT_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>simAddrId</field-name>
             <column-name>SIM_ADDR_ID</column-name>
             <cmp-field>
             <cmp-field>
             <field-name>fraudMngtAddrId</field-name>
             </cmp-field>
             <cmp-field>
             <field-name>dataInterchangeAddrId</field-name>
             <column-name>DATA_INTERCHANGE_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>pmnAddrId</field-name>
             <column-name>PMN_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>tadigTestingAddrId</field-name>
             <column-name>TADIG_TESTING_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>iregTestingAddrId</field-name>
             <column-name>IREG_TESTING_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>mapSignallingAddrId</field-name>
             <column-name>MAP_SIGNALLING_ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>agreementMngt_AddrId</field-name>
             <column-name>AGREEMENT_MNGT__ADDR_ID</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>status</field-name>
             <column-name>STATUS</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>remarks</field-name>
             <column-name>REMARKS</column-name>
             </cmp-field>
             <cmp-field>
             <field-name>internationalRoamingAddrId</field-name>
             <column-name>INTERNATIONAL_ROAMING_ADDR_ID</column-name>
             </cmp-field>
             </cmp-field>
            
             </entity>
            </enterprise-beans>
            </jbosscmp-jdbc>