Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-604

Tomcat containers does not handle multiline javaVmArguments

XMLWordPrintable

      Suppose user passes:

          <container qualifier="tomcat" default="true">
              <configuration>
              ...
                  <property name="javaVmArguments">-Xms512m -Xmx512m -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true
                  -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8
                  -Djavax.servlet.request.encoding=UTF-8 </property>
              ...
              </configuration>
          </container>
      

      Than startup of the container would fail with:

      Exception in thread "main" java.lang.NoClassDefFoundError: 
      Caused by: java.lang.ClassNotFoundException: 
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      Could not find the main class: .  Program will exit.
      

              jhuska_jira Juraj Húska (Inactive)
              kpiwko Karel Piwko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: