Re: [Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-23 Thread Justin Deoliveira
Ahh, of course. This is how you set the xml parser explicitly... nice work, I will have to add this one to the xml faq!!! Thanks Ruben :) Ruben Pardo wrote: > Hi Justin, > I solve the problem adding > > java.lang.System.setProperty( > "javax.xml.parsers.DocumentBuilderFactory", >

Re: [Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-23 Thread Ruben Pardo
Hi Justin, I solve the problem adding java.lang.System.setProperty( "javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); to the Constructor of the org.geotools.xml.Parser , now it seems to work, to set the DocumentBuil

Re: [Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-21 Thread Ruben Pardo
Justin, I only change the parse method of the TransformerBase, forcing to produce the ContentHandler with SerializerFactory of Xerces, these works fine with Oracle Parser public void parse(InputSource in) throws SAXException { SerializerFactory s = SerializerFactory.getSerial

Re: [Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-21 Thread Justin Deoliveira
I see... yeah that makes sense. So it appears that the XSD library just will not work properly with the oracle xml parser that is being found. I will have to look into if it is possible to force xsd to use a particular sax implementation for parsing. Can you supply your patch for TransformerBase..

Re: [Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-21 Thread Ruben Pardo
thanks Justin, like you say, the problem was the order of the libraries in the classpath, I have in my classpath an Oracle Xml Parser library, that causes the error. I could not change the classpath, (the project doesn't work if i do it, only the geoespatial subsystem), I had the same problem when

Re: [Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-20 Thread Justin Deoliveira
Hi Ruben, Strange that the same code works in eclipse and not in JDeveloper. I have never used JDeveloper so I cant really comment. This failure seems to occur in the depths of the XSD library when the schema is actually being parsed. I wonder if its a sax parsing thing... like a different librar

[Geotools-gt2-users] Problem parsing GML with geotools in Jdeveloper + JDK 1.5

2007-08-20 Thread Ruben Pardo
Hi, when i try to parse a GML document in JDeveloper i get a Nullpointerexception. This work fine in eclipse. does anybody know how can i solve this? //the snipped code org.geotools.xml.Configuration configuration = new org.geotools.gml2.GMLConfiguration(); org.geotools.xml.Parser parser = new org