4 Replies Latest reply on May 23, 2006 3:05 PM by tlgates

    java.lang.NoSuchMethodError on run

    tlgates

      I am trying to install JBoss on a RedHat Es 3.0 server with Apache/Tomcat running. I downloaded the jboss-4.0.4.GA.zip file, unzipped it to my /usr/share/jboss directory. As per the installation instructions for OhioedgeC CRM, it tells me to add "set JAVA_HOME=your_JDK_install_location" as the first line in the run.bar and the shutdown.bat files. Since I am running on Linux, I added that line to my run.sh and shutdown.sh files. I then tried running the run.sh and got the following error:


      ]# ./run.sh
      =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /usr/share/jboss/jboss-4.0.4.GA
      
       JAVA: /usr/java/j2sdk1.4.2_06/bin/java
      
       JAVA_OPTS: -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh
      
       CLASSPATH: /usr/share/jboss/jboss-4.0.4.GA/bin/run.jar:/usr/java/j2sdk1.4.2_06/lib/tools.jar
      
      =========================================================================
      
      Error occurred during initialization of VM
      java.lang.NoSuchMethodError: java.lang.Thread.start()V
      


      What is causing this and how do I fix it?

      I have Tomcat running on port 8080. Do I need to reconfigure Tomcat to run on a different port or can I have JBoss run on a different port?

        • 1. Re: java.lang.NoSuchMethodError on run
          peterj

          Two possibilities.

          1) Your JVM installation is corrupt, in which case downloading and installing the JVM again should fix it.

          2) The JVM level is incompatible with the OS level, the most likely cause being incompatible library versions, in which case you would have to resolve the library versions. Though RPM should have complained during the JDK install about incompatible library versions. ( I have run JBoss with JDK 1.4.2 on RedHat Ent. 4 with no problems, but not on 3. Has anyone else out there run this combo?)

          • 2. Re: java.lang.NoSuchMethodError on run
            tlgates

            Thanks PeterJ. I reinstalled the jdk and then did a run.

            I get a couple of exceptions. One is about the port 8080 already in use. That's what Tomcat runs on. Do I change the port on Tomcat or can I change the port on Jboss? I have about 20 tomcat contexts and would hate to reconfigure Tomcat for all of these because everytime I do, Tomcat takes a dump.

            Can I set JBoss to run on a different port like 8081?

            Thanks.

            • 3. Re: java.lang.NoSuchMethodError on run
              peterj

              You can change the port number in deploy/jbossweb-tomcat55.sar/server.xml.

              You can also search the configuration XML files for the string 8080.

              • 4. Re: java.lang.NoSuchMethodError on run
                tlgates

                Thanks PeterJ. I changed the deploy/jbossweb-tomcat55.sar/server.xml file to be 8081 and then ran run.sh and it worked. Now I just need to run it as a service in the background and see what happens with my OhioEdge CRM application.