Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
Det er åbenbart allerede i første linie - DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); at fejlen opstår.
Det virkede heller ikke. Har fundet flg. info om DocumentBuilderFactory. Det kunne godt se ud som om det er det der går galt, men hvad er det lige det betyder??
Obtain a new instance of a DocumentBuilderFactory. This static method creates a new factory instance. This method uses the following ordered lookup procedure to determine the DocumentBuilderFactory implementation class to load: Use the javax.xml.parsers.DocumentBuilderFactory system property. Use the properties file "lib/jaxp.properties" in the JRE directory. This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above. Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.parsers.DocumentBuilderFactory in jars available to the runtime. Platform default DocumentBuilderFactory instance. Once an application has obtained a reference to a DocumentBuilderFactory it can use the factory to configure and obtain parser instances.
Har nu prøvet at lave en nyt projekt som kører fint som du nævnte. Problemet er bare at jeg skal afvikle det på en SAP Portal server, hvilket den åbenbart ikke er helt interesseret i ;o(
Kender du en anden god parser jeg evt. kan benytte (og evt. et lille eks. på hvordan jeg laver samme med den) ??
Og af ren nysgerrighed, hvordan får jeg så trukket indholdet ud af en node. Se min kode nedenfor:
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.