I have a BIG problem:
When I compile and run Example1.java that comes in the Developer's Guide, it's OK. (a basic query with the XMLDB API).
Now I want to do the same thing from a servlet, because this is the way I want to use it.
BUT... the same code doesn't even compile !!!
 
Compile error:
XMLDBQuery.java:40: registerDatabase(org.xmldb.api.base.Database) in org.xmldb.api.DatabaseManager cannot be applied to (Database)
                                DatabaseManager.registerDatabase(db);
 
I checked the API but all seems OK, tried with JDK1.3 and 1.4, with different versions of servlet.jar, doesn't help.
I have a servlet that does the same thing using XML-RPC and it works.
Attached is the damn servlet.
 
 
 
Florin Tudor
 
Web Application Developer / Consultant
Middleware & Programming Dept.
Integrator /SAP Romania
www.sap.ro, www.integrare.ro

Attachment: XMLDBQuery.java
Description: Binary data

Reply via email to