You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jnl1 <it...@yahoo.com> on 2008/07/05 07:07:25 UTC

sax parse error

hi all..

  trying to get my first servicemix example up and running.  ran into the
problem below.  i'm using servicemix 3.2.1.  ideas ?   i changed my pom.xml
to be:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>
        <version>${servicemix-version}</version>
        <extensions>true</extensions>
        <inherited>true</inherited>
        <configuration>
          <generateJbiDescriptor>false</generateJbiDescriptor>
        </configuration>
      </plugin>
    </plugins>
  </build>

but no luck.  


thanks

INFO  - DeploymentService              - Restoring service assemblies
ERROR - DeploymentService              - Failed to initialized service
assembly: serviceAssemblyTest
java.lang.RuntimeException: org.xml.sax.SAXParseException: The value of the
attribute "prefix="xmlns",localpart="test",r
awname="xmlns:test"" is invalid. Prefixed namespace bindings may not be
empty.
        at
org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:141)
        at
org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:80)
        at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.<init>(ServiceUnitLifeCycle.java:67)
        at
org.apache.servicemix.jbi.framework.Registry.registerServiceUnit(Registry.java:746)
        at
org.apache.servicemix.jbi.framework.ServiceAssemblyRegistry.register(ServiceAssemblyRegistry.java:103)
        at
org.apache.servicemix.jbi.framework.Registry.registerServiceAssembly(Registry.java:624)
        at
org.apache.servicemix.jbi.framework.DeploymentService.buildState(DeploymentService.java:710)
        at
org.apache.servicemix.jbi.framework.DeploymentService.init(DeploymentService.java:87)
        at
org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:596)
        at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:66)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
reCapableBeanFactory.java:1201)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC
apableBeanFactory.java:1171)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
leBeanFactory.java:425)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
try.java:156)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
BeanFactory.java:287)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161
)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)

        at org.apache.servicemix.Main.main(Main.java:54)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
Caused by: org.xml.sax.SAXParseException: The value of the attribute
"prefix="xmlns",localpart="test",rawname="xmlns:tes
t"" is invalid. Prefixed namespace bindings may not be empty.
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
        at
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:159)
        at javax.xml.validation.Validator.validate(Validator.java:82)
        at
org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:115)
        ... 28 more
INFO  - ComponentMBeanImpl             - Setting running state for
Component: servicemix-bean to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-bean
INFO  - ComponentMBeanImpl             - Setting running state for
Component: servicemix-camel to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-camel
INFO  - ComponentMBeanImpl             - Setting running state for
Component: servicemix-cxf-bc to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-cxf-bc
INFO  - ComponentMBeanImpl             - Setting running state for
Component: servicemix-cxf-se to Started
-- 
View this message in context: http://www.nabble.com/sax-parse-error-tp18289090p18289090.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: sax parse error

Posted by Guillaume Nodet <gn...@gmail.com>.
The problem comes from a SU descriptor which is not a valid xml.
Given the exception, it seems one of the namespace / prefix
declaration is wrong.  This may come from bad namespace declarations
in one of your xbean.xml, as the SU descritor is generated from those.
 Check your xbean, and especially your namespaces declaration for the
services names of your endpoints.

On Sun, Jul 6, 2008 at 7:54 PM, jnl1 <it...@yahoo.com> wrote:
>
> thanks for taking the time...here you go...
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>  <service-assembly>
>    <identification>
>      <name>serviceAssemblyTest</name>
>      <description>My JMS Test: serviceAssembly</description>
>    </identification>
>    <service-unit>
>      <identification>
>        <name>jms-su</name>
>        <description>jms-su</description>
>      </identification>
>      <target>
>        <artifacts-zip>jms-su-1.0-SNAPSHOT.zip</artifacts-zip>
>        <component-name>servicemix-jms</component-name>
>      </target>
>    </service-unit>
>    <service-unit>
>      <identification>
>        <name>staticRoutingSlip</name>
>        <description>staticRoutingSlip</description>
>      </identification>
>      <target>
>        <artifacts-zip>staticRoutingSlip-1.0-SNAPSHOT.zip</artifacts-zip>
>        <component-name>servicemix-eip</component-name>
>      </target>
>    </service-unit>
>    <service-unit>
>      <identification>
>        <name>serviceOnePojo</name>
>        <description>serviceOnePojo</description>
>      </identification>
>      <target>
>        <artifacts-zip>serviceOnePojo-1.0-SNAPSHOT.zip</artifacts-zip>
>        <component-name>servicemix-bean</component-name>
>      </target>
>    </service-unit>
>    <service-unit>
>      <identification>
>        <name>serviceTwoPojo</name>
>        <description>serviceTwoPojo</description>
>      </identification>
>      <target>
>        <artifacts-zip>serviceTwoPojo-1.0-SNAPSHOT.zip</artifacts-zip>
>        <component-name>servicemix-bean</component-name>
>      </target>
>    </service-unit>
>    <service-unit>
>      <identification>
>        <name>serviceThreePojo</name>
>        <description>serviceThreePojo</description>
>      </identification>
>      <target>
>        <artifacts-zip>serviceThreePojo-1.0-SNAPSHOT.zip</artifacts-zip>
>        <component-name>servicemix-bean</component-name>
>      </target>
>    </service-unit>
>  </service-assembly>
> </jbi>
>
>
>
> and for my su...there's 5, but they are the same (except for a few minor
> differences):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>  <services binding-component="false" xmlns:test="http://test">
>    <consumes service-name="test:MyStaticRoutingSlipService"
> endpoint-name="myStaticRoutingSlipSu"/>
>  </services>
> </jbi>
>
>
> thanks
>
>
>
>
> gnodet wrote:
>>
>> Could you paste the content of the jbi descriptor of your service unit
>> ? It seems to be bad somehow.
>>
>> On Sat, Jul 5, 2008 at 7:07 AM, jnl1 <it...@yahoo.com> wrote:
>>>
>>> hi all..
>>>
>>>  trying to get my first servicemix example up and running.  ran into the
>>> problem below.  i'm using servicemix 3.2.1.  ideas ?   i changed my
>>> pom.xml
>>> to be:
>>>
>>>  <build>
>>>    <plugins>
>>>      <plugin>
>>>        <groupId>org.apache.servicemix.tooling</groupId>
>>>        <artifactId>jbi-maven-plugin</artifactId>
>>>        <version>${servicemix-version}</version>
>>>        <extensions>true</extensions>
>>>        <inherited>true</inherited>
>>>        <configuration>
>>>          <generateJbiDescriptor>false</generateJbiDescriptor>
>>>        </configuration>
>>>      </plugin>
>>>    </plugins>
>>>  </build>
>>>
>>> but no luck.
>>>
>>>
>>> thanks
>>>
>>> INFO  - DeploymentService              - Restoring service assemblies
>>> ERROR - DeploymentService              - Failed to initialized service
>>> assembly: serviceAssemblyTest
>>> java.lang.RuntimeException: org.xml.sax.SAXParseException: The value of
>>> the
>>> attribute "prefix="xmlns",localpart="test",r
>>> awname="xmlns:test"" is invalid. Prefixed namespace bindings may not be
>>> empty.
>>>        at
>>> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:141)
>>>        at
>>> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:80)
>>>        at
>>> org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.<init>(ServiceUnitLifeCycle.java:67)
>>>        at
>>> org.apache.servicemix.jbi.framework.Registry.registerServiceUnit(Registry.java:746)
>>>        at
>>> org.apache.servicemix.jbi.framework.ServiceAssemblyRegistry.register(ServiceAssemblyRegistry.java:103)
>>>        at
>>> org.apache.servicemix.jbi.framework.Registry.registerServiceAssembly(Registry.java:624)
>>>        at
>>> org.apache.servicemix.jbi.framework.DeploymentService.buildState(DeploymentService.java:710)
>>>        at
>>> org.apache.servicemix.jbi.framework.DeploymentService.init(DeploymentService.java:87)
>>>        at
>>> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:596)
>>>        at
>>> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:66)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
>>> reCapableBeanFactory.java:1201)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC
>>> apableBeanFactory.java:1171)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
>>> leBeanFactory.java:425)
>>>        at
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>>>        at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
>>> try.java:156)
>>>        at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>>>        at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>>>        at
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
>>> BeanFactory.java:287)
>>>        at
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>>>        at
>>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161
>>> )
>>>        at
>>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>>>
>>>        at org.apache.servicemix.Main.main(Main.java:54)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>        at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>>        at
>>> org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
>>> Caused by: org.xml.sax.SAXParseException: The value of the attribute
>>> "prefix="xmlns",localpart="test",rawname="xmlns:tes
>>> t"" is invalid. Prefixed namespace bindings may not be empty.
>>>        at
>>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>>> Source)
>>>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
>>> Source)
>>>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>>> Source)
>>>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>>> Source)
>>>        at
>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
>>> Source)
>>>        at
>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>>> Source)
>>>        at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>>> Source)
>>>        at
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>>> Source)
>>>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>>> Source)
>>>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>>> Source)
>>>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>>> Source)
>>>        at
>>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>>> Source)
>>>        at
>>> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
>>>        at
>>> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:159)
>>>        at javax.xml.validation.Validator.validate(Validator.java:82)
>>>        at
>>> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:115)
>>>        ... 28 more
>>> INFO  - ComponentMBeanImpl             - Setting running state for
>>> Component: servicemix-bean to Started
>>> INFO  - ComponentMBeanImpl             - Initializing component:
>>> servicemix-bean
>>> INFO  - ComponentMBeanImpl             - Setting running state for
>>> Component: servicemix-camel to Started
>>> INFO  - ComponentMBeanImpl             - Initializing component:
>>> servicemix-camel
>>> INFO  - ComponentMBeanImpl             - Setting running state for
>>> Component: servicemix-cxf-bc to Started
>>> INFO  - ComponentMBeanImpl             - Initializing component:
>>> servicemix-cxf-bc
>>> INFO  - ComponentMBeanImpl             - Setting running state for
>>> Component: servicemix-cxf-se to Started
>>> --
>>> View this message in context:
>>> http://www.nabble.com/sax-parse-error-tp18289090p18289090.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/sax-parse-error-tp18289090p18304490.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: sax parse error

Posted by jnl1 <it...@yahoo.com>.
thanks for taking the time...here you go...


<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
  <service-assembly>
    <identification>
      <name>serviceAssemblyTest</name>
      <description>My JMS Test: serviceAssembly</description>
    </identification>
    <service-unit>
      <identification>
        <name>jms-su</name>
        <description>jms-su</description>
      </identification>
      <target>
        <artifacts-zip>jms-su-1.0-SNAPSHOT.zip</artifacts-zip>
        <component-name>servicemix-jms</component-name>
      </target>
    </service-unit>
    <service-unit>
      <identification>
        <name>staticRoutingSlip</name>
        <description>staticRoutingSlip</description>
      </identification>
      <target>
        <artifacts-zip>staticRoutingSlip-1.0-SNAPSHOT.zip</artifacts-zip>
        <component-name>servicemix-eip</component-name>
      </target>
    </service-unit>
    <service-unit>
      <identification>
        <name>serviceOnePojo</name>
        <description>serviceOnePojo</description>
      </identification>
      <target>
        <artifacts-zip>serviceOnePojo-1.0-SNAPSHOT.zip</artifacts-zip>
        <component-name>servicemix-bean</component-name>
      </target>
    </service-unit>
    <service-unit>
      <identification>
        <name>serviceTwoPojo</name>
        <description>serviceTwoPojo</description>
      </identification>
      <target>
        <artifacts-zip>serviceTwoPojo-1.0-SNAPSHOT.zip</artifacts-zip>
        <component-name>servicemix-bean</component-name>
      </target>
    </service-unit>
    <service-unit>
      <identification>
        <name>serviceThreePojo</name>
        <description>serviceThreePojo</description>
      </identification>
      <target>
        <artifacts-zip>serviceThreePojo-1.0-SNAPSHOT.zip</artifacts-zip>
        <component-name>servicemix-bean</component-name>
      </target>
    </service-unit>
  </service-assembly>
</jbi>



and for my su...there's 5, but they are the same (except for a few minor
differences):

<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
  <services binding-component="false" xmlns:test="http://test">
    <consumes service-name="test:MyStaticRoutingSlipService"
endpoint-name="myStaticRoutingSlipSu"/>
  </services>
</jbi>


thanks




gnodet wrote:
> 
> Could you paste the content of the jbi descriptor of your service unit
> ? It seems to be bad somehow.
> 
> On Sat, Jul 5, 2008 at 7:07 AM, jnl1 <it...@yahoo.com> wrote:
>>
>> hi all..
>>
>>  trying to get my first servicemix example up and running.  ran into the
>> problem below.  i'm using servicemix 3.2.1.  ideas ?   i changed my
>> pom.xml
>> to be:
>>
>>  <build>
>>    <plugins>
>>      <plugin>
>>        <groupId>org.apache.servicemix.tooling</groupId>
>>        <artifactId>jbi-maven-plugin</artifactId>
>>        <version>${servicemix-version}</version>
>>        <extensions>true</extensions>
>>        <inherited>true</inherited>
>>        <configuration>
>>          <generateJbiDescriptor>false</generateJbiDescriptor>
>>        </configuration>
>>      </plugin>
>>    </plugins>
>>  </build>
>>
>> but no luck.
>>
>>
>> thanks
>>
>> INFO  - DeploymentService              - Restoring service assemblies
>> ERROR - DeploymentService              - Failed to initialized service
>> assembly: serviceAssemblyTest
>> java.lang.RuntimeException: org.xml.sax.SAXParseException: The value of
>> the
>> attribute "prefix="xmlns",localpart="test",r
>> awname="xmlns:test"" is invalid. Prefixed namespace bindings may not be
>> empty.
>>        at
>> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:141)
>>        at
>> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:80)
>>        at
>> org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.<init>(ServiceUnitLifeCycle.java:67)
>>        at
>> org.apache.servicemix.jbi.framework.Registry.registerServiceUnit(Registry.java:746)
>>        at
>> org.apache.servicemix.jbi.framework.ServiceAssemblyRegistry.register(ServiceAssemblyRegistry.java:103)
>>        at
>> org.apache.servicemix.jbi.framework.Registry.registerServiceAssembly(Registry.java:624)
>>        at
>> org.apache.servicemix.jbi.framework.DeploymentService.buildState(DeploymentService.java:710)
>>        at
>> org.apache.servicemix.jbi.framework.DeploymentService.init(DeploymentService.java:87)
>>        at
>> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:596)
>>        at
>> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:66)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
>> reCapableBeanFactory.java:1201)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC
>> apableBeanFactory.java:1171)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
>> leBeanFactory.java:425)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>>        at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
>> try.java:156)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>>        at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
>> BeanFactory.java:287)
>>        at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>>        at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161
>> )
>>        at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>>
>>        at org.apache.servicemix.Main.main(Main.java:54)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        at
>> org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
>> Caused by: org.xml.sax.SAXParseException: The value of the attribute
>> "prefix="xmlns",localpart="test",rawname="xmlns:tes
>> t"" is invalid. Prefixed namespace bindings may not be empty.
>>        at
>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>> Source)
>>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
>> Source)
>>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>> Source)
>>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>> Source)
>>        at
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
>> Source)
>>        at
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>> Source)
>>        at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>> Source)
>>        at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>> Source)
>>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>> Source)
>>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>> Source)
>>        at
>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>>        at
>> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
>>        at
>> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:159)
>>        at javax.xml.validation.Validator.validate(Validator.java:82)
>>        at
>> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:115)
>>        ... 28 more
>> INFO  - ComponentMBeanImpl             - Setting running state for
>> Component: servicemix-bean to Started
>> INFO  - ComponentMBeanImpl             - Initializing component:
>> servicemix-bean
>> INFO  - ComponentMBeanImpl             - Setting running state for
>> Component: servicemix-camel to Started
>> INFO  - ComponentMBeanImpl             - Initializing component:
>> servicemix-camel
>> INFO  - ComponentMBeanImpl             - Setting running state for
>> Component: servicemix-cxf-bc to Started
>> INFO  - ComponentMBeanImpl             - Initializing component:
>> servicemix-cxf-bc
>> INFO  - ComponentMBeanImpl             - Setting running state for
>> Component: servicemix-cxf-se to Started
>> --
>> View this message in context:
>> http://www.nabble.com/sax-parse-error-tp18289090p18289090.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/sax-parse-error-tp18289090p18304490.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: sax parse error

Posted by Guillaume Nodet <gn...@gmail.com>.
Could you paste the content of the jbi descriptor of your service unit
? It seems to be bad somehow.

On Sat, Jul 5, 2008 at 7:07 AM, jnl1 <it...@yahoo.com> wrote:
>
> hi all..
>
>  trying to get my first servicemix example up and running.  ran into the
> problem below.  i'm using servicemix 3.2.1.  ideas ?   i changed my pom.xml
> to be:
>
>  <build>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.servicemix.tooling</groupId>
>        <artifactId>jbi-maven-plugin</artifactId>
>        <version>${servicemix-version}</version>
>        <extensions>true</extensions>
>        <inherited>true</inherited>
>        <configuration>
>          <generateJbiDescriptor>false</generateJbiDescriptor>
>        </configuration>
>      </plugin>
>    </plugins>
>  </build>
>
> but no luck.
>
>
> thanks
>
> INFO  - DeploymentService              - Restoring service assemblies
> ERROR - DeploymentService              - Failed to initialized service
> assembly: serviceAssemblyTest
> java.lang.RuntimeException: org.xml.sax.SAXParseException: The value of the
> attribute "prefix="xmlns",localpart="test",r
> awname="xmlns:test"" is invalid. Prefixed namespace bindings may not be
> empty.
>        at
> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:141)
>        at
> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:80)
>        at
> org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.<init>(ServiceUnitLifeCycle.java:67)
>        at
> org.apache.servicemix.jbi.framework.Registry.registerServiceUnit(Registry.java:746)
>        at
> org.apache.servicemix.jbi.framework.ServiceAssemblyRegistry.register(ServiceAssemblyRegistry.java:103)
>        at
> org.apache.servicemix.jbi.framework.Registry.registerServiceAssembly(Registry.java:624)
>        at
> org.apache.servicemix.jbi.framework.DeploymentService.buildState(DeploymentService.java:710)
>        at
> org.apache.servicemix.jbi.framework.DeploymentService.init(DeploymentService.java:87)
>        at
> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:596)
>        at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:66)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
> reCapableBeanFactory.java:1201)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC
> apableBeanFactory.java:1171)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
> leBeanFactory.java:425)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>        at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
> try.java:156)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>        at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
> BeanFactory.java:287)
>        at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>        at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161
> )
>        at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>
>        at org.apache.servicemix.Main.main(Main.java:54)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
> Caused by: org.xml.sax.SAXParseException: The value of the attribute
> "prefix="xmlns",localpart="test",rawname="xmlns:tes
> t"" is invalid. Prefixed namespace bindings may not be empty.
>        at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(ValidatorImpl.java:192)
>        at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:159)
>        at javax.xml.validation.Validator.validate(Validator.java:82)
>        at
> org.apache.servicemix.jbi.deployment.DescriptorFactory.buildDescriptor(DescriptorFactory.java:115)
>        ... 28 more
> INFO  - ComponentMBeanImpl             - Setting running state for
> Component: servicemix-bean to Started
> INFO  - ComponentMBeanImpl             - Initializing component:
> servicemix-bean
> INFO  - ComponentMBeanImpl             - Setting running state for
> Component: servicemix-camel to Started
> INFO  - ComponentMBeanImpl             - Initializing component:
> servicemix-camel
> INFO  - ComponentMBeanImpl             - Setting running state for
> Component: servicemix-cxf-bc to Started
> INFO  - ComponentMBeanImpl             - Initializing component:
> servicemix-cxf-bc
> INFO  - ComponentMBeanImpl             - Setting running state for
> Component: servicemix-cxf-se to Started
> --
> View this message in context: http://www.nabble.com/sax-parse-error-tp18289090p18289090.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/