[jboss-jira] [JBoss JIRA] Created: (JBVFS-144) vfs30 does not play well with 3rd party registering URLHandlers

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Fri Mar 5 08:35:10 EST 2010


vfs30 does not play well with 3rd party registering URLHandlers
---------------------------------------------------------------

                 Key: JBVFS-144
                 URL: https://jira.jboss.org/jira/browse/JBVFS-144
             Project: JBoss VFS
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 3.0.0.CR3
            Reporter: Thomas Diesler
            Assignee: John Bailey


The Felix OSGi Framework registers URLHandlers

http://svn.apache.org/repos/asf/felix/releases/org.apache.felix.framework-2.0.4/src/main/java/org/apache/felix/framework/URLHandlers.java

If it does so all access to file resources breaks and you should see 

14:00:38,361 INFO  [FelixIntegration] JBossOSGi Felix - 2.0.2.SP1-SNAPSHOT
14:01:52,483 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/dtd/web-app_2_3.dtd
14:02:00,703 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd
14:02:01,190 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://www.jboss.org/j2ee/dtd/service-ref_5_0.dtd
14:02:03,064 WARN  [JBossEntityResolver] Cannot load systemId from resource: connector_1_5.xsd
14:02:03,065 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd
14:02:04,243 WARN  [JBossEntityResolver] Cannot load systemId from resource: j2ee_1_4.xsd
14:02:04,245 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd
14:02:05,411 WARN  [JBossEntityResolver] Cannot load systemId from resource: xml.xsd

Later there are also various classloading issues.

The URLHandlers can be disabled like this

        <entry><key>felix.service.urlhandlers</key><value>false</value></entry>

However then, you'll see a variation of [JBVFS-142]

Caused by: java.lang.NullPointerException
	at org.jboss.vfs.VirtualJarInputStream.read(VirtualJarInputStream.java:149)
	at org.jboss.vfs.VirtualJarInputStream.read(VirtualJarInputStream.java:142)
	at org.apache.felix.framework.cache.BundleCache.copyStreamToFile(BundleCache.java:254)
	at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:167)
	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:80)
	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:58)
	at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:1020)
	at org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.java:631)
	at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:147)
	at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:176)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2317)



-- 
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

        



More information about the jboss-jira mailing list