[rules-users] Schema Error with Drools spring xsd

Mohod, Akash Akash.Mohod at morganstanley.com
Mon Sep 20 10:04:15 EDT 2010


It's failing on the second part trying to run xjc.

If I want to run this in eclipse what do I need to do ? Do I need to include some jar (jaxb or something) or do I need to run xjc on the schema first 
And then include those generated files in the path .


Regards,
Akash 

-----Original Message-----
From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Monday, September 20, 2010 3:53 PM
To: Rules Users List
Subject: Re: [rules-users] Schema Error with Drools spring xsd

Verifiy that you can access this XML schema without Eclipse.

- Do you get the file in your browser?
- Can you call xjc with this file?
   mkdir xxx
   cd xxx
   xjc http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.0.0.xsd

Both works for me.

-W


2010/9/20 Mohod, Akash <Akash.Mohod at morganstanley.com>:
> Hi ,
>
>
>
> I am using Drools 5.1  with Srping 3.0 . I am getting these errors working
> in Eclipse :-
>
>
>
> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
> document
> 'http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.0.0.xsd',
> because 1) could not find the document; 2) the document could not be read;
> 3) the root element of the document is not <xsd:schema>.
>
>       at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:96)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:380)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2532)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1836)
> [na:1.6.0_19]
>
>       at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531)
> [na:1.6.0_19]
>
>
>
> Any help is appreciated.
>
>
>
> Regards,
>
> Akash
>
>
>
>
>
> ________________________________
> NOTICE: If you have received this communication in error, please destroy all
> electronic and paper copies and notify the sender immediately.
> Mistransmission is not intended to waive confidentiality or privilege.
> Morgan Stanley reserves the right, to the extent permitted under applicable
> law, to monitor electronic communications. This message is subject to terms
> available at the following link: http://www.morganstanley.com/disclaimers.
> If you cannot access these links, please notify us by reply message and we
> will send the contents to you. By messaging with Morgan Stanley you consent
> to the foregoing.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

--------------------------------------------------------------------------
NOTICE: If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.




More information about the rules-users mailing list