6 Replies Latest reply: Jan 19, 2011 2:13 PM by Nicklas Karlsson RSS

Schema validation disabling not honored?

Nicklas Karlsson Master

   <bean name="TldParsingDeployer" class="org.jboss.deployment.TldParsingDeployer">
      <property name="relativeOrder">2002</property>
   <property name="useSchemaValidation">false</property>

   </bean>

 

I have something like

 

  <bean name="TldParsingDeployer" class="org.jboss.deployment.TldParsingDeployer">

      <property name="relativeOrder">2002</property>

      <property name="useSchemaValidation">false</property>

   </bean>

 

but I still get a deployment error when deploying a 3rd party lib with a malformed tld. Known issue? AS 6 M4 and snapshot tested

  • 1. Re: Schema validation disabling not honored?
    jaikiran pai Master

    Could you please post the entire exception stacktrace which you see even after disabling validation?

  • 2. Re: Schema validation disabling not honored?
    Nicklas Karlsson Master

    I get a

     

    DEPLOYMENTS IN ERROR:
      Deployment "vfs:///C:/Java/as/jboss-6.0.0-SNAPSHOT/server/default/deploy/ace-showcase.war" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema binding for QName taglib with schemaLocation=taglib
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha7]
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha7]
    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0-SNAPSHOT]
    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118) [:0.1.0.Alpha1]
    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133) [:6.0.0-SNAPSHOT]
    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]
    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
    at java.lang.Thread.run(Thread.java:619) [:1.6.0_17]

    DEPLOYMENTS IN ERROR:

      Deployment "vfs:///C:/Java/as/jboss-6.0.0-SNAPSHOT/server/default/deploy/ace-showcase.war" is in error due to the following reason(s): org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema binding for QName taglib with schemaLocation=taglib

     

    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha7]

    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha7]

    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0-SNAPSHOT]

    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118) [:0.1.0.Alpha1]

    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133) [:6.0.0-SNAPSHOT]

    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]

    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

    at java.lang.Thread.run(Thread.java:619) [:1.6.0_17]

     

    with

     

       <bean name="TldParsingDeployer" class="org.jboss.deployment.TldParsingDeployer">

          <property name="relativeOrder">2002</property>

      <property name="useSchemaValidation">false</property>

       </bean>

  • 3. Re: Schema validation disabling not honored?
    jaikiran pai Master

    Moved to JBoss XB forum.

     

    Alexey might know better about this issue.

  • 4. Re: Schema validation disabling not honored?
    Alexey Loubyansky Master

    This is not a schema validation issue, it's SchemaBinding resolution one, i.e. SchemaBinding cannot be resolved based on the schemaLocation attribute value. Looking at metadata-deployer-jboss-beans.xml, 'taglib' is not good enough, it has to be a complete schema file name (xsd or dtd).

  • 5. Schema validation disabling not honored?
    dee bharam Newbie

    Hi Nicklas,

     

    are you able to resolve this issue? how? I am having similar issue with jboss6.0.

  • 6. Schema validation disabling not honored?
    Nicklas Karlsson Master

    I added the schemas to the top level element, they still need to resolve even if validation can then be disabled.