4 Replies Latest reply on Aug 6, 2007 7:58 AM by shausch

    Update to jdk 1.5.0_12 causes package does not exists in sar

    eagnes

      I have jboss 4.0.1sp1 running under jdk 1.5.0_06. When I update to jdk 1.5.0_12 (ou 11), my ear application don't find a package in the sar or har file. The error occurs in jsp file compilation:

      2007-07-30 11:08:23,816 ERROR [org.apache.jasper.compiler.Compiler] Error compiling file: /D:/Desenv/jboss-4.0.1sp1/server/local/work/jboss.web/localhost/app//org/apache/jsp/decorators\default_jsp.java [javac] Compiling 1 source file

      D:\Desenv\jboss-4.0.1sp1\server\local\work\jboss.web\localhost\app\org\apache\jsp\decorators\default_jsp.java:6: package com.app.model.beans does not exist
      import com.app.model.beans.Constants;
      ^
      Note: D:\Desenv\jboss-4.0.1sp1\server\local\work\jboss.web\localhost\app\org\apache\jsp\decorators\default_jsp.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 error


      My applications:
      app.ear
      |-app.jar
      |-app.war

      app.sar

      Sorry for english...

        • 1. Re: Update to jdk 1.5.0_12 causes package does not exists in
          shausch

          I've the same symptoms since yesterday.

          I've updated from jdk 1.5.0_06 to 1.5.0_12 and Eclipse 3.3 with wtp 2.0.
          I deinstalled 1.5.0_06 first.

          Since that the deployed jsp files are not able to get my hibernate-packages.

          I tested it with parallel installations of jdk 1.5.0_10 and 1.5.0_06.
          I builded and deployed my sources and started the JBoss several times with completely different JDK but I've still this problem.

          I also get my old backup of eclipse-workspace and switched completely backwards to 3.2. No change.

          I started the JBoss through eclipse debug mode and from the console with run.bat.

          Now I'm going to reinstall a backup of my jboss-directory. Mayby there is a wrong configuration.

          • 2. Re: Update to jdk 1.5.0_12 causes package does not exists in
            jaikiran

            Not sure what the issue is. See if this works - delete the contents of the %JBOSS_HOME%/server//work folder and restart JBoss.



            • 3. Re: Update to jdk 1.5.0_12 causes package does not exists in
              jaikiran

              Not sure what the issue is. See if this works - delete the contents of the %JBOSS_HOME%/server/<< theServerYouAreUsing>>/work folder and restart JBoss.

              • 4. Re: Update to jdk 1.5.0_12 causes package does not exists in
                shausch

                First of all: on windows you have to restart the system after changing the environment variables (like JAVA_HOME, CLASSPATH,...). ;-)

                To ensure having a clean new build I deleted /work and /tmp of JBoss-server.
                After each reboot I rebuild and redeployed the whole project.

                So far I can say: _06 is working. _10 and _12 don't.

                I didn't test more jdk-versions.

                It's stupid.

                So be aware of the risks of changing jdk-versions without any tangible need.
                Never change a running system.