Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10064

Unable to deploy any blueprint.xml file due to "IllegalArgumentException: Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: fuse-7.3
    • Fix Version/s: fuse-7.3
    • Component/s: Karaf
    • Labels:
      None
    • Environment:

      7.3.0.fuse-730032

    • Sprint:
      Fuse 7.3 Sprint 40 - Dev #1
    • Steps to Reproduce:
      Hide

      start fuse 7.3 and copy some blueprint.xml into deploy folder

      Show
      start fuse 7.3 and copy some blueprint.xml into deploy folder

      Description

      Copying following file into deploy folder of fuse-karaf does not work in 7.3 version:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
      		xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0">
      
      	<jaas:config name="karaf" rank="10">
      
      		<jaas:module className="org.apache.karaf.jaas.modules.ldap.LDAPLoginModule" flags="required">
      			initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
      			debug=true
      
      			<!--openshift: -->
      			<!--https://master.sos.fuse-qe.eng.rdu2.redhat.com:8443-->
      			<!--avano/ldap -->
      			connection.url=ldap://master.sos.fuse-qe.eng.rdu2.redhat.com:30279
      			connection.username=cn=admin,dc=example,dc=org
      			connection.password=admin
      			connection.protocol=
      			authentication=simple
      
      			user.base.dn=ou=users,ou=jboss_fuse_qa,dc=example,dc=org
      			user.role.name.attribute=cn
      			user.filter=(uid=%u)
      			user.search.subtree=true
      
      			role.base.dn=ou=groups,ou=jboss_fuse_qa,dc=example,dc=org
      			role.name.attribute=cn
      			role.filter=(member=%fqdn)
      			role.search.subtree=true
      		</jaas:module>
      
      	</jaas:config>
      </blueprint>
      

      In fact, I couldn't deploy any other blueprint with the same exception:

      10:23:32.702 ERROR [fileinstall-/tmp/fuse-karaf-7.3.0.fuse-730032/deploy] Failed to install artifact: /tmp/fuse-karaf-7.3.0.fuse-730032/deploy/openldap.xml
      java.io.IOException: Error opening blueprint xml url
      	at org.apache.karaf.deployer.blueprint.BlueprintURLHandler$Connection.getInputStream(BlueprintURLHandler.java:78) ~[?:?]
      	at java.net.URL.openStream(URL.java:1045) ~[?:?]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:962) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [11:org.apache.felix.fileinstall:3.6.4]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [11:org.apache.felix.fileinstall:3.6.4]
      Caused by: java.lang.IllegalArgumentException: Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD
      	at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:571) ~[?:?]
      	at org.apache.karaf.util.XmlUtils.transformer(XmlUtils.java:150) ~[?:?]
      	at org.apache.karaf.util.XmlUtils.transform(XmlUtils.java:96) ~[?:?]
      	at org.apache.karaf.deployer.blueprint.BlueprintTransformer.analyze(BlueprintTransformer.java:129) ~[?:?]
      	at org.apache.karaf.deployer.blueprint.BlueprintTransformer.transform(BlueprintTransformer.java:71) ~[?:?]
      	at org.apache.karaf.deployer.blueprint.BlueprintURLHandler$Connection.getInputStream(BlueprintURLHandler.java:73) ~[?:?]
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  grgrzybek Grzegorz Grzybek
                  Reporter:
                  avano Andrej Vano
                  Tester:
                  Vratislav Hais
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: