The cause of this error is method
org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(...) in
Release 4.5.2 of OpenEJB. Here the URLs of all JARs loaded by the given
ClassLoader are collected. Then the system JARs get removed from the list.
Normally also the OpenEJB JARs should be removed from list, but as the URL
of the OpenEJB bundle JAR is bundle://185.0:1/ it does not match any of the
regular expressions of the filter. The URL is not removed and the exception
is thrown.

There is a workaround for this error: OpenEJB allows to add custom filter
expressions by setting the parameter openejb.deployments.classpath.exclude
in <Karaf Home>/etc/system.properties. Add the following line in your
system.properties:

openejb.deployments.classpath.exclude = bundle:.*

When you update your bundle now, the OpenEJB bundle JAR is also removed from
list of URLs and it works.

Should I open a Karaf bug ticket?

Regards,
Jochen



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Unsupported-URL-scheme-using-bundle-watch-tp4033596p4033708.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to