4 Replies Latest reply on Mar 28, 2007 1:21 PM by starksm64

    how to build/test VFS

    bill.burke

      I was able to build VFS by deleting the parent entry in the pom.xml file. What I"m finding though is that I"m getting a lot of errors (hundreds) when running the testsuite with

      $ mvn test

      But, when running inside an IDE, I get only a handeful(like 5).

      Thanks

      Bill

        • 1. Re: how to build/test VFS
          starksm64

          I have mentioned this to Paul. Clearly the tests run by mvn are not picking up the url handler protocol packages as vfs* urls are not being recognized. I create this isse for Paul to look into why this is:
          http://jira.jboss.com/jira/browse/JBBUILD-352

          • 2. Re: how to build/test VFS
            starksm64

            Paul thinks this could be due to the following jdk bug:
            http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4648098

            We don't put the vfs into the system class loader when running the server or under eclipse so I don't see that this directly applies. Since the bug is old, it could be that the handlers must be int he application class loader and mvn test harness is creating a child class loader of that, and the handlers are only visible from the thread context class loader, and so some form of this bug applies.

            We need to see what class loaders exist when the first call to resolve a vfs* url is made. This will require hacking the jdk source and running with -Xboostrap/p:/path-to-jdk-source-classes to override the handler loading code.

            • 3. Re: how to build/test VFS
              pgier

              The problem went away when I added

              <useSystemClassLoader>true</useSystemClassLoader>
              

              to the maven surefire plugin configuration.
              More info here: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

              The change doesn't seem to break anything, so I think it's ok. There is still one test failure and one error, but they are happening when running from eclipse also.

              • 4. Re: how to build/test VFS
                starksm64

                Ok, good.