[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with OzoenEnv.bat and some XML:DB questions



On Sun, 06 May 2001, Per Nyfelt wrote:
> I checked out and build Ozone from friday's CVS version and found a minor
> problem in OzoneEnv.bat
> When starting the server one gets an error message about a class not found
> error regarding Layout from Log4J. When looking into it i found that when
> using the new build dir, Ozoneenv.bat needs to be changed from:
> 
> 	for %%i in (%OZONE_HOME%\bin\*.jar) do call %OZONE_HOME%\bin\lcp.bat %%i
> 
> to:
> 	for %%i in (%OZONE_HOME%\lib\*.jar) do call %OZONE_HOME%\bin\lcp.bat %%i
> 
> i.e. change the location of jar files from bin to lib. The sh script version
> does not have this problem. As i do not have RW i hope someone could fix
> this.

I fixed this in CVS. Thanks!


Falko

> 
> 
> On another note: I've found some problems with the XML:DB api. Hopefully
> Lars or someone else has some ideas on this:
> 
> In org.xmldb.api.modules.XMLResource the getter and setter for SAX is
> flipped
> 	void getContentAsSAX( ContentHandler handler ) throws XMLDBException;
> should be
> 	void setContentAsSAX( ContentHandler handler ) throws XMLDBException;
> and
> 	ContentHandler setContentAsSAX() throws XMLDBException; should be
> 	ContentHandler getContentAsSAX() throws XMLDBException;
> 
> The org.ozoneDB.xml.cli.resources.XMLResourceImpl should be changed
> accordingly.
> 
> What happened to org.xmldb.api.modules.SAXResource and
> org.xmldb.api.modules.DOMNodeResource? In the use case description they had
> the idea of doing:
> 	DOMNodeResource resource = (DOMNodeResource) uc.collection.getResource(id);
> 	Document doc = (Document) resource.getContent();
> 
> but since DOMNodeResource is gone how are you supposed to do to get a
> org.w3c.dom.Document?
> 
> For SAX, what about:
> 	SAXResource resource = (SAXResource) collection.getResource(id);
> 	ContentHandler handler = new MyContentHandler();
> 	resource.setContentHandler(handler);
> 
> with SAXResource gone are you supposed to now do something like:
> 	XMLResource resource = (XMLResource) collection.getResource(id);
> 	ContentHandler handler = new MyContentHandler();
> 	resource.setContentAsSAX(handler);
> ?
> 
> Best regards,
> Per
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com