4 Replies Latest reply on Dec 18, 2003 1:57 AM by milowe

    strange problem - please help

    dafei

      it is strange: everything was great when i was using jboss 3.2.2/3.2.3 within eClipse with jdk1.4.2. then when i tried to run the run.bat, i realized i need to set java_home, ok, strange things start happening after setting java_home, i am now getting this exception:

      java.lang.NoClassDefFoundError: org/jboss/system/server/NoAnnotationURLClassLoader
      at org.jboss.Main.boot(Main.java:118)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:534)

      i dont know why this is happening. i have similar settings on my laptop with no problem, i even successfully set it to run as service. of course my notebook is running win xp, this one is running win2k. please help. it is driving me nuts!

        • 1. Re: strange problem - please help
          dafei

          i just downloaded the src code and took a brief look at it. i didnt see anything that helps understand this strange thing. there must have something happened to my computer during the weekend. the err appears to be like once i set the java_home, it somehow took the control somewhere else witht the class path being lost... very weired.

          • 2. Re: strange problem - please help
            milowe

            Does your JAVA_HOME path include any spaces?

            • 3. Re: strange problem - please help
              dafei

              i finally figured out what the problem was today - it was a stupid error:
              i have a swing client using the same j2sdk, and i have the jboss all client jar in the lib ext. this did not cause a problem untill i set the java_home, the exception was thrown when the all client jar was being started.

              of course in a real situation, the client is run on a seperate jvm, this should not be a concern, but it is good to know this, after all it took/wasted me two days!

              by the way, where do you think is the best place to place the jboss all client jar for the client?

              • 4. Re: strange problem - please help
                milowe

                Believe me, the client is always run in a separate JVM ;)
                I usually don’t mess with the java sdk installation since I have several different version installed. That way I can just change the JAVA_HOME to use another java version. I have a similar setup for external jars as well, just a main directory and different version of jars in sub-directories to allow changing jar to include by changing an env variable.