8 Replies Latest reply on Mar 8, 2012 6:17 AM by Tomaz Cerar

    Domain mode user.dir property setting

    Prasad Deshpande Expert

      Hi Guys,

       

      I'm facing this strange problem where I'm setting user.dir as system property (required for my application). But as soon as I add it, servers in the domain throws exception saying :

       

      [Server:server-one] java.lang.NoClassDefFoundError: org/jboss/modules/Main

      [Server:server-one] Caused by: java.lang.ClassNotFoundException: org.jboss.modules.Main

      [Server:server-one]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

      [Server:server-one]     at java.security.AccessController.doPrivileged(Native Method)

      [Server:server-one]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

      [Server:server-one]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

      [Server:server-one]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

      [Server:server-one]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      [Server:server-one] Could not find the main class: org.jboss.modules.Main. Program will exit.

       

       

      [Server:server-two] java.lang.NoClassDefFoundError: org/jboss/modules/Main

      [Server:server-two] Caused by: java.lang.ClassNotFoundException: org.jboss.modules.Main

      [Server:server-two]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

      [Server:server-two]     at java.security.AccessController.doPrivileged(Native Method)

      [Server:server-two]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

      [Server:server-two]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

      [Server:server-two]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

      [Server:server-two]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      [Server:server-two] Could not find the main class: org.jboss.modules.Main. Program will exit.

       

      Is there any way to set -Duser.dir=<........> up?

       

      Thanks,

      Prasad