From: <rar...@ui...> - 2004-03-22 13:07:11
|
I posted this two weeks ago. If anybody knows how to solve this, please let me know. I'm going live=20 in two weeks, and this might be a stopper bug. Thanks in advance, Ricardo Arg=FCello -------- Original Message -------- Subject: Re: [Exist-open] eXist running inside JBoss Date: Sun, 07 Mar 2004 22:06:19 -0500 From: Ricardo Arg=FCello <rar...@ui...> To: exi...@li... References: <404...@ui...>=20 <200...@re...> Per Nyfelt wrote: > Hi Ricardo, > > I have a hard time undrestanding what you mean: > You say: > "If I stop JBoss, delete the data/exist directory containing the datab= ase > files, and restart JBoss it works ok. I cant create resources and dele= te > them normally." > > How can i work OK if you cant create and delete resources? Sorry, me bad. It's a typo. It should have said: "I CAN create resources and delete them normally." > Later you say: > "If I don=B4t do this, I can=B4t delete a Resource that was previously= saved > into the xmldb previous to the JBoss restart." > > This contains a double negation so i guess this means that : > - If you do this, you CAN delete a resource that was prevoiusly saved.= .. > so i guess everything is OK then? Exactly, if I delete the data/exist directory I can create a Resource and then delete it normally. If I restart the JBoss server, I CAN NOT delete previously inserted Resources. > I guess you mean the following: > 1. As long as the server is running everything is OK and works normal > 2. You find issues when restarting the server: you cannot delete a=20 resource > that was created and saved last time exist was running embedded=20 inside JBoss. That's correct. > Please confirm. > > Best regards, > Per Thanks a lot for your interest in this. Ricardo Arg=FCello > fredagen den 5 mars 2004 16.33 skrev Ricardo Arg=FCello: > >>Hi, >> >>I=B4m running the JBoss SAR to embed eXist into JBoss and it works ok. >>The only problem is when I restart the server, if I want to delete a >>previously saved XML document from the database, it gives me this >>exception. I=B4m calling removeResource('any_doc.xml'): >> >>.... >>Caused by: ec.gov.sri.xml.xmldb.XMLDatabaseException: >>org.xmldb.api.base.XMLDBException: Permission to remove document denie= d >> at=20 ec.gov.sri.xml.xmldb.XMLDatabase.guardarDocumento(XMLDatabase.java:99) >> at >>ec.gov.sri.anexo.ice.recepcion.dao.AnexoICEXmlDbDAO.guardar(AnexoICEXm= lDbDA >>O.java:49) ... 78 more >>Caused by: org.xmldb.api.base.XMLDBException: Permission to remove >>document denied >> at >>org.exist.xmldb.LocalCollection.removeResource(LocalCollection.java:42= 1) at >>ec.gov.sri.xml.xmldb.XMLDatabase.crearResource(XMLDatabase.java:299) a= t >>ec.gov.sri.xml.xmldb.XMLDatabase.guardarDocumento(XMLDatabase.java:86)= ... >>79 more >>Caused by: org.exist.security.PermissionDeniedException: Permission to >>remove document denied >> at org.exist.collections.Collection.removeDocument(Collection.java:56= 4) >> at >>org.exist.xmldb.LocalCollection.removeResource(LocalCollection.java:41= 5) >>... 81 more >> >>Where any_doc.xml was uploaded to the database before shutting down >>JBoss and starting it again. >> >>If I stop JBoss, delete the data/exist directory containing the databa= se >>files, and restart JBoss it works ok. I cant create resources and dele= te >>them normally. I create a doc, and delete it with removeResource(). >> >>If I don=B4t do this, I can=B4t delete a Resource that was previously = saved >>into the xmldb previous to the JBoss restart. >> >>Any idea why this happens? >> >> >>Thanks in advance, >> >>Ricardo Arg=FCello |