You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Adrian (JIRA)" <ji...@codehaus.org> on 2007/02/22 18:07:28 UTC

[jira] Commented: (SUREFIRE-104) unable to establish my own http protocol handler for unit tests

    [ http://jira.codehaus.org/browse/SUREFIRE-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88258 ] 

Adrian commented on SUREFIRE-104:
---------------------------------

I'm experiencing the same error trying to start up the embedded jboss container within surefire.

I get

java.net.MalformedURLException: unknown protocol: vfsfile
at java.net.URL.<init>(URL.java:365)
at java.net.URL.<init>(URL.java:253)
at java.net.URL.<init>(URL.java:276)
.....



> unable to establish my own http protocol handler for unit tests
> ---------------------------------------------------------------
>
>                 Key: SUREFIRE-104
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-104
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: jse 5.0 (osx)
>            Reporter: Andy Fyfe
>             Fix For: 2.3
>
>         Attachments: protocol.zip
>
>
> In order to establish my own http protocol handler, I set the system property java.protocol.handler.pkgs and ensure that the tests require a fork.  The test runs fine under maven 1.0.2, but fails under maven 2.0.4.  I have tried both surefire 2.1.3 and 2.2, and both with the childDelegation option.
> The test sees the system property properly set, but the test's protocol handler is not actually used.
> The attached zip file demonstrates this problem (run "maven test" and "mvn test").

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira