0 Replies Latest reply on Jun 20, 2003 12:50 PM by edouard

    Enabling -Djava.security.manager in jboss-3.0.6_tomcat-4.1.1

      jboss-3.0.6_tomcat-4.1.18

      When i try to enable Java 2 security in the launch script

      set OPTS=-Djava.security.manager
      @if "%CONFIG%" == "" set CONFIG=default
      set PF=../server/%CONFIG%/conf/server.policy
      set OPTS=%OPTS% -Djava.security.policy==%PF%

      ...

      java %OPTS% ... org.jboss.Main ...

      im getting a huge stack trace starting with

      18:41:20,796 INFO [Server] JBoss Release: JBoss-3.0.6 CVSTag=JBoss_3_0_6
      java.lang.StackOverflowError
      at java.net.URLClassLoader$2.run(URLClassLoader.java:344)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findResource(URLClassLoader.java:341)
      at java.lang.ClassLoader.getResource(ClassLoader.java:766)
      at java.lang.ClassLoader.getResource(ClassLoader.java:761)
      at java.lang.ClassLoader.getResource(ClassLoader.java:761)
      at org.jboss.net.protocol.URLStreamHandlerFactory.createURLStreamHandle
      (URLStreamHandlerFactory.java:134)
      at java.net.URL.getURLStreamHandler(URL.java:886)
      at java.net.URL.(URL.java:473)
      at java.net.URL.(URL.java:371)
      at java.net.URL.(URL.java:325)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:153)
      at java.net.JarURLConnection.(JarURLConnection.java:136)


      ....

      at java.net.URL.(URL.java:325)
      at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:153)
      at java.net.JarURLConnection.(JarURLConnection.java:136)
      at sun.net.www.protocol.jar.JarURLConnection.(JarURLConnection.jav
      a:59)
      at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:22)
      at java.net.URL.openConnection(URL.java:776)


      This is not in the FAQ. What should i check first , please ?