1 2 3 Previous Next 41 Replies Latest reply on Oct 26, 2004 9:56 AM by terryxian Go to original post
      • 30. Re: Help about  SPECjAppServer2002 and jboss.
        terryxian

        I check the download site. jboss-4.0.0RC1.tar.gz is the newest version. I am using this version now.

        • 31. Re: Help about  SPECjAppServer2002 and jboss.
          aloubyansky

          It is the oldest in JBoss-4.0.0 list. The newest is jboss-4.0.0.zip.

          • 32. Re: Help about  SPECjAppServer2002 and jboss.
            terryxian

            I just tried jboss-4.0.zip. After executing deploy-all comand, then ran specj.
            The errors disappeared, but got another error:

            2004-10-26 05:26:59,052 INFO [org.jboss.web.WebService] Using RMI server codebase: http://pcp060362pcs.unl.edu:8083/
            2004-10-26 05:27:00,696 INFO [org.jboss.naming.NamingService] Started jnpPort=1100, rmiPort=0, backlog=50, bindAddress=null, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
            2004-10-26 05:27:03,239 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/usr/java/jboss/server/specj/deploy/ear-deployer.xml
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.j2ee:service=EARDeployer
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:71)
            .....................

            Thanks a lot for your help. I think I am close to success!

            • 33. Re: Help about  SPECjAppServer2002 and jboss.
              terryxian

              I dont know the whether or not the above error is neglible.

              I used grep and found EARDeployer is included in both boss-service.xml and ear-deployer.xml

              [oracle@pcp060362pcs specj]$ grep "EARDeployer" */*
              conf/jboss-service.xml:
              deploy/ear-deployer.xml: <mbean code="org.jboss.deployment.EARDeployer"
              deploy/ear-deployer.xml: name="jboss.j2ee:service=EARDeployer">

              I guess specj/conf/jboss-service.xml already registered such service, so deploy/ear-deployer.xml cannot register again: Is that true?

              • 34. Re: Help about  SPECjAppServer2002 and jboss.
                aloubyansky

                So now remove the deployers you added to jboss40-service.xml.

                • 35. Re: Help about  SPECjAppServer2002 and jboss.
                  terryxian

                  Okay, Now I removed the deployers I just added in jboss-service.xml. Now I got the errors like:
                  2004-10-26 06:40:28,609 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
                  org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: oracle.jdbc.driver.OracleDriver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.jdbc.driver.OracleDriver))
                  at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:161)


                  I guess it is caused by that I modified *db.properties in a wrong way:

                  dbURL = jdbc:oracle:oci:@SPEC.UNL.EDU
                  dbDriver = oracle.jdbc.driver.OracleDriver
                  jdbcVersion = 2

                  where SPEC.UNL.EDU is tnsname to the actual database (localhost:1521:spec)
                  I dont know the parameter 'dbDriver' should be 'oracle.jdbc.driver.OracleDriver' or 'oracle.jdbc.OracleDriver'


                  • 36. Re: Help about  SPECjAppServer2002 and jboss.
                    terryxian

                    Oops, I forgot copying jdbc driver files into $JBOSS_HOME......

                    • 37. Re: Help about  SPECjAppServer2002 and jboss.
                      terryxian

                      I just copied jdbc drivers to specj/lib. Now ClassNotFound didnt come out anymore. But a new errors appears:

                      004-10-26 07:09:34,658 ERROR [org.jboss.ejb.txtimer.DatabasePersistencePolicy] Starting failed jboss.ejb:persistencePolicy=
                      database,service=EJBTimerService
                      java.sql.SQLException: ORA-00902: invalid datatype

                      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
                      at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:2337)
                      ..................................

                      l have modified *db.properties as follows:

                      dbURL = jdbc:oracle:thin@localhost:1521:spec
                      dbDriver = oracle.jdbc.driver.OracleDriver
                      jdbcVersion = 2

                      And jboss40-oracle-ds.xml is changed as follows:

                      <connection-url>jdbc:oracle:thin:@localhost:1521:spec</connection-url>
                      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                      <user-name>spec</user-name>
                      spec
                      (The database's SID is spec, username and passwd are both "spec")
                      How to solve the problem?
                      Thank you very much!

                      • 38. Re: Help about  SPECjAppServer2002 and jboss.
                        aloubyansky

                        This is EJB timer service issue that should be looked at. You can ignore it. It does not affect the benchmark.
                        Or you can open the ejb-deployer.xml and configure the timer service with noop persistence policy (follow the comments in the deployer.xml).

                        • 39. Re: Help about  SPECjAppServer2002 and jboss.
                          terryxian

                          Sorry, a typo at my last post

                          l have modified *db.properties as follows:

                          dbURL = jdbc:oracle:thin@localhost:1521:spec

                          should be
                          dbURL = jdbc:oracle:thin:@localhost:1521:spec

                          The problem is still unsolved. I searched many related literature by google and found it seems a problem of jboss itself. You can refer to the following link:
                          http://sourceforge.net/tracker/index.php?func=detail&aid=1029232&group_id=22866&atid=376685

                          • 40. Re: Help about  SPECjAppServer2002 and jboss.
                            terryxian

                            Let me explain more detailed.
                            After I ran:
                            > $ANT_HOME/bin/ant -Dappserver=jboss40 driver
                            Then execute driver.sh under the directory SPECjAppServer2002/bin , I got the IO error:
                            java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/Supplier/DeliveryServlet?cmd=switchlog
                            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800)

                            Then I observed the jboss server. There are some error outputs, like:
                            2004-10-26 08:28:41,532 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[Delivery]: Allocate exception for servlet Delivery
                            javax.servlet.ServletException: Could not dereference object
                            at org.spec.jappserver.supplier.web.SupplierDomainServlet.init(SupplierDomainServlet.java:132)


                            Root exception is javax.naming.NameNotFoundException: ReceiverSes not bound..

                            Any suggestions??? Thanks

                            • 41. Re: Help about  SPECjAppServer2002 and jboss.
                              terryxian

                               

                              "loubyansky" wrote:
                              Under what name do you deploy the datasource for specj?


                              I dont know? I guess should be "DefaultDS" because it was given by default in SPECjAppServer/config/jboss40-oracle-ds.xml.

                              1 2 3 Previous Next