0 Replies Latest reply on Oct 25, 2006 11:22 PM by poon wing yee

    Jboss 3.0.8 upgrade to 4.0.5 problem

    poon wing yee Newbie

      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"
      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">

      is it wrong?

      please help, i need to upgrade the jboss.