3 Replies Latest reply on Feb 23, 2013 7:56 AM by Jim Wilson

    "Unable to validate using XSD" when trying to access to bladelogic via blcli

      Hi !

       

      I'm using bladelogic 8.2.0.

      The server is set up, running and widely used to deploy applications & settings in the company.

       

      I'm doing my firsts tests for Bladelogic Automation.

       

      Using the html documentation "Learn how to run your first BLCLI command", I've tried to do the following steps, using my own "values"

       

      blcred authprofile -add -profile myServiceProfile -host machine1:9840 -type SRP

      blcred cred -acquire -profile myServiceProfile -username Admin1 -password myPassword

       

      This is ok, the flow is open and no errors.

       

      But when i'm doing the next one:

       

      blcli -v myServiceProfile -r BLAdmins JobManagement getJobManagerFullStatus

       

      I've got a stacktrace:

       

       

      Exception in thread "main" java.lang.ExceptionInInitializerError

              at com.bladelogic.om.infra.cli.commands.UtilityCommandsFactory.initializeUtilityCommands(UtilityCommandsFactory.java:98)

              at com.bladelogic.om.infra.cli.commands.UtilityCommandsFactory.<init>(UtilityCommandsFactory.java:71)

              at com.bladelogic.om.infra.cli.commands.UtilityCommandsFactory.getInstance(UtilityCommandsFactory.java:67)

              at com.bladelogic.om.infra.cli.factory.CommandTemplateInventory.addUtilityCommands(CommandTemplateInventory.java:496)

              at com.bladelogic.om.infra.cli.factory.CommandTemplateInventory.<init>(CommandTemplateInventory.java:75)

              at com.bladelogic.om.infra.cli.CLIMain.initCommandFactory(CLIMain.java:431)

              at com.bladelogic.om.infra.cli.CLIMain.initialize(CLIMain.java:321)

              at com.bladelogic.om.infra.cli.CLIMain.<init>(CLIMain.java:236)

              at com.bladelogic.om.infra.cli.CLIMain.main(CLIMain.java:163)

      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from URL [jar:file:/C:/Program%20Files/BladeLogic/OM/NSH/br/stdlib/bladelogic_spring_beans.jar!/spring/model/acm-model-beans.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@913dc1] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)

              at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)

              at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)

              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)

              at com.bladelogic.om.infra.common.BeanUtil.initContext(BeanUtil.java:50)

              at com.bladelogic.om.infra.common.BeanUtil.<init>(BeanUtil.java:41)

              at com.bladelogic.om.infra.common.BeanUtil.<clinit>(BeanUtil.java:30)

              ... 9 more

      Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@913dc1] does not support XML Schema. Are you running on Java 1.4 with Apache Crim

      son? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDoc

      umentBuilderFactory(DefaultDocumentLoader.java:102)

              at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)

              ... 25 moreCaused by: java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)

              at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:99)

              ... 27 more

       

      Looking here, I didn't find help on this error.

      Looking on google, I've found some things about xerces.jar and so on. But I can't fix the pb.

       

      Is someone here can help me ?

       

      I'm using the CLI on a windows server.

      The jdk is 1.6

       

      Regards

      Olivier