0 Replies Latest reply on Sep 20, 2002 9:07 AM by Jayakumar

    Problem using SAXON with JBoss/Jetty

    Jayakumar Newbie

      Hi all,

      Did any one tried using SAXON with JBoss/Jetty instead of default Xalan XSLT processor? I am getting the following exception while trying to use SAXON instead of Xalan. I am running JBoss with "-Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactoryImpl" flag. Because of this, Jetty is not getting started.

      17:00:35,576 INFO [URLDeploymentScanner] Starting
      17:00:35,596 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.0/server/default/deploy/jetty-plugin.sar
      17:00:39,541 INFO [Jetty] Registered jboss.web:Jetty=0
      17:00:39,882 INFO [Jetty] Registered jboss.web:Jetty=Debug
      17:00:39,922 INFO [Jetty] Registered jboss.web:Jetty=Log
      17:00:40,122 INFO [Jetty] Registered jboss.web:Jetty=Log,sink=0
      17:00:40,633 WARN [Jetty] WARNING: ERROR@null line:2 col:-1 : org.xml.sax.SAXParseException: Element type "server" is not declared.
      17:00:40,633 WARN [Jetty] WARNING: ERROR@null line:2 col:-1 : org.xml.sax.SAXParseException: Root element type is "server", but was declared to be "Configure".
      17:00:40,653 WARN [Jetty] WARNING: ERROR@null line:13 col:-1 : org.xml.sax.SAXParseException: Element type "mbean" is not declared.
      17:00:40,653 WARN [Jetty] WARNING: ERROR@null line:13 col:-1 : org.xml.sax.SAXParseException: Attribute "code" is not declared for element "mbean".
      17:00:40,663 WARN [Jetty] WARNING: ERROR@null line:13 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "mbean".
      17:00:40,673 WARN [Jetty] WARNING: ERROR@null line:31 col:-1 : org.xml.sax.SAXParseException: Element type "attribute" is not declared.
      17:00:40,683 WARN [Jetty] WARNING: ERROR@null line:31 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,693 WARN [Jetty] WARNING: ERROR@null line:40 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,703 WARN [Jetty] WARNING: ERROR@null line:52 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,713 WARN [Jetty] WARNING: ERROR@null line:117 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,723 WARN [Jetty] WARNING: ERROR@null line:124 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,733 WARN [Jetty] WARNING: ERROR@null line:135 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,743 WARN [Jetty] WARNING: ERROR@null line:144 col:-1 : org.xml.sax.SAXParseException: Attribute "name" is not declared for element "attribute".
      17:00:40,753 ERROR [Jetty] problem configuring Jetty:
      org.xml.sax.SAXParseException: Element type "server" is not declared.

      at org.apache.crimson.parser.Parser2.error(Parser2.java:3086)
      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1316)
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:357)
      at org.mortbay.xml.XmlParser.parse(XmlParser.java:123)
      at org.mortbay.xml.XmlConfiguration.(XmlConfiguration.java:140)
      at org.jboss.jetty.Jetty.setXMLConfiguration(Jetty.java:353)
      at org.jboss.jetty.Jetty.setConfigurationElement(Jetty.java:327)
      at org.jboss.jetty.JettyService.setConfigurationElement(JettyService.java:388)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:186)
      at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:445)
      at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:482)
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:356)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:208)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
      at org.jboss.system.ServiceController.install(ServiceController.java:194)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:206)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:637)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:512)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:340)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)


      Can anybody point me what I am missing?

      Thanks in advance.