0 Replies Latest reply on Oct 25, 2006 11:22 PM by poonwingyee

    Jboss 3.0.8 upgrade to 4.0.5 problem

    poonwingyee

      Hi All,
      i want to upgrade the jboss from 3.0.8 to 4.0.5.
      In 3.0.8, it is using jetty not tomcat.
      the setting configuration is difference to the 4.0.5.

      My Database is using hypersonic.
      how to setting connect my database.
      i try to change the file "hsqldb-ds.xml"
      <connection-url>jdbc:hsqldb:hsql://localhost:4467</connection-url>
      when i change the this connection-url. many error message is prompted.

      when i change the DefaultDS change to other <jndi-name>xxxDB</jndi-name>, it also many error message about create XX table.

      http-invoker.sar, jms folder is it required in the default folder?
      jms create the user table and time ... table .

      [question] if i need to connect the new database is it make the new file xxx-hsqldb-ds.xml. and keep the original hsqldb-ds.xml (which is connect localDB.script?

      on the other hand,
      i try to keep the original file. and then add the new file xxx-hsqldb-ds.xml,
      it allow me to try <connection-url>jdbc:hsqldb:hsql://localhost:4467</connection-url>, no error is occured.
      i can connect my dbtools to get some data from db. (it don't need connect from ejb)

      however, my web application server need to connect ejb, the error is occured.
      when my program run to this statement the error is occured.
      "home = (EJBHome) PortableRemoteObject.narrow(objref,homeClass);"
      error="10:54:18,210 ERROR [STDERR] ServerConfig getServerConfig exception: java.lang.ClassCastException"
      my system have many ejb.jar.
      is it ejb-jar.xml setting is wrong. each ejb.jar is packaged by ejb-jar.xml which is using the jboss 3.0.8 setting. is it jboss 4.0.5 is difference setting to package the ejb jar?

      <?xml version="1.0" encoding="UTF-8"?>
      
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
      
      <ejb-jar>
       <display-name>AuditTrailEJB</display-name>
       <enterprise-beans>
       <entity>
       <display-name>AuditTrail</display-name>
       <ejb-name>AuditTrail</ejb-name>
       <home>com.bpmaware.docaware.entitybean.AuditHome</home>
       <remote>com.bpmaware.docaware.entitybean.Audit</remote>
       <ejb-class>com.bpmaware.docaware.entitybean.impl.AuditTrailBean</ejb-class>
       <persistence-type>Bean</persistence-type>
       <prim-key-class>com.bpmaware.docaware.entitybean.AuditPK</prim-key-class>
       <reentrant>False</reentrant>
       <security-identity>
       <description></description>
       <use-caller-identity></use-caller-identity>
       </security-identity>
       </entity>
       </enterprise-beans>
       <assembly-descriptor>
       <container-transaction>
       <method>
       <ejb-name>AuditTrail</ejb-name>
       <method-intf>Home</method-intf>
       <method-name>*</method-name>
       </method>
       <method>
       <ejb-name>AuditTrail</ejb-name>
       <method-intf>Remote</method-intf>
       <method-name>*</method-name>
       </method>
       <trans-attribute>Required</trans-attribute>
       </container-transaction>
       </assembly-descriptor>
      </ejb-jar>
      
      


      is it wrong?

      please help, i need to upgrade the jboss.