[
https://jira.jboss.org/jira/browse/JBPM-2546?page=com.atlassian.jira.plug...
]
Hans Guldager Knudsen updated JBPM-2546:
----------------------------------------
Attachment: Handler.java
ProtocolResourceURLConnection.java
LoadResouce.java
When running inside JBoss AS the 'Handler' will be looked up automatically - as
these are looked for by
"org.jboss.net.protocol" + <protocol>
in this case
org.jboss.net.protocol.processresource
I do not know where the code belong - either here in JBPM or AS
I have attached a small example which causes the problem ..
Building with maven you need the following dependency :
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-common-core</artifactId>
<version>2.2.10.GA</version>
</dependency>
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
Attachments: Handler.java, LoadResouce.java, ProtocolResourceURLConnection.java
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