creating URL with processresource failes
----------------------------------------
Key: JBPM-2546
URL:
https://jira.jboss.org/jira/browse/JBPM-2546
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 3.2.x
Environment: jBPM 3.2.X, ESB 4.6, AS 5.1
Reporter: Hans Guldager Knudsen
Hi!
If I load a resouce inside an ActionHandler i get an URL with the
"protocolresouce" protocol - eg :
URL resouceUrl =
Thread.currentThread().getContextClassLoader().getResource("resource.txt");
gives me :
processresource://recieve_bussiness_msg/classes/classes/resource.txt
But if I try to create an URL with the same form
URL recreatedUri = new URL(
"processresource://recieve_bussiness_msg/classes/classes/resource.txt" );
I get an :
java.net.MalformedURLException: unknown protocol: processresource
at java.net.URL.<init>(URL.java:574)
It seems that there is no
java.net.URLStreamHandler
to handle the protocol..
I will attach example of how this could be implemented.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira