2 Replies Latest reply on Dec 31, 2012 12:15 PM by ahoehn

    JBoss AS7 with Oracle Java on Ubuntu

    ahoehn

      I have installed Java 7 (Oracle) on my Ubuntu server. I have also installed JBoss AS 7.1 on this server. When I start the server, i can see in the environment properties, that the sun.boot.class.path is pointing to the right place where my /usr/local/java/jdk1.7.0_07/jre/lib/rt.jar is placed. But when I deploy my war-file, it results with the following class not found error:

      java.lang.ClassNotFoundException: sun.awt.AppContext

       

      But this class is in the rt.jar. I'm totally lost. No idea where to search for such a configuration bug. Any helping ideas?

       

      java version "1.7.0_07"

      Java(TM) SE Runtime Environment (build 1.7.0_07-b10)

      Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

        • 1. Re: JBoss AS7 with Oracle Java on Ubuntu
          ctomc

          Hi,

           

          open jboss_home\modules\sun\jdk\main\module.xml

          and add sun\awt path

          that will fix problem for you.

           

          but on a side note, why is your application depedant on jdk's internal classes, that is not a good practice..

           

           

          --

          tomaz

          • 2. Re: JBoss AS7 with Oracle Java on Ubuntu
            ahoehn

            Thanks will try that.

            The answere for your side note is: it's not my application but a library from it: usertype.spi-3.0.0.CR3 where the class JavaTimeZoneWorkaroundHelper use this class for thread local binding. Really ugly