cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subrahmanya, Noida" <subrahma...@noida.hcltech.com>
Subject XMLDB psuedo Proptocol in cocoon2.0.4 failure in registering driv er DatabaseImpl.
Date Fri, 13 Dec 2002 07:27:48 GMT
 
Hi,
 
      I am setting up an application which reads from an XMLdatabase using
the XMLDB API's on cocoon 2.0.4 . This was running fine on cocoon 2.0.3. 
The problem i am having is when an XMLResource is being read from the XML
database. It throws an XMLDBException with the reason being could not read
XMLResource.
     I have seen that this occurs due to the DatabaseImpl not beeing
registered to DatabaseManager. In 2.0.3 It registers the database driver in
method public void connect() of XMLDBSource. Now in 2.0.4 it has been moved
to method public void configure(Configuration conf) of XMLDBSourceFactory
which is beeing i think not called internally by cocoon API. So failure in
getting instance of DatabaseImpl from DatabaseManager.
I am getting following Exception. Could u please correct me if i am wrong.?
What would be the solution for that?
 
ERROR   (2002-12-12) 13:07.02:361   [core.manager] (/cocoon/demodb/)
HttpProcessor[8080][4]/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Could not read resource
xmldb:totalxml:///demodb/Mytown University/Student applications/:
org.xmldb.api.base.XMLDBException: 
 at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:156)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.matchN400033(F:\jakarta-tomcat-4.0.6\work\Standalone\localho
st\cocoon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/w
ebapps/grad_publish_xmldb\sitemap_xmap.java:605)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Standalone\localhost\co
coon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/webapp
s/grad_publish_xmldb\sitemap_xmap.java:391)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Standalone\localhost\co
coon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/webapp
s/grad_publish_xmldb\sitemap_xmap.java:324)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at
org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308)
 at
org.apache.cocoon.www.sitemap_xmap.matchN400366(F:\jakarta-tomcat-4.0.6\work
\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap
.java:3944)
 at
org.apache.cocoon.www.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Stan
dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java
:3152)
 at
org.apache.cocoon.www.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Stan
dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java
:3097)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)
Caused by: org.xmldb.api.base.XMLDBException: 
 at org.xmldb.api.DatabaseManager.getDatabase(DatabaseManager.java:258)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:190)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
 at
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.
java:233)
 at
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:173)
 at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
 ... 47 more
org.xmldb.api.base.XMLDBException: 
 at org.xmldb.api.DatabaseManager.getDatabase(DatabaseManager.java:258)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:190)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
 at
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.
java:233)
 at
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:173)
 at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.matchN400033(F:\jakarta-tomcat-4.0.6\work\Standalone\localho
st\cocoon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/w
ebapps/grad_publish_xmldb\sitemap_xmap.java:605)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Standalone\localhost\co
coon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/webapp
s/grad_publish_xmldb\sitemap_xmap.java:391)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Standalone\localhost\co
coon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/webapp
s/grad_publish_xmldb\sitemap_xmap.java:324)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at
org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308)
 at
org.apache.cocoon.www.sitemap_xmap.matchN400366(F:\jakarta-tomcat-4.0.6\work
\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap
.java:3944)
 at
org.apache.cocoon.www.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Stan
dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java
:3152)
 at
org.apache.cocoon.www.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Stan
dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java
:3097)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)
org.xmldb.api.base.XMLDBException: 
 at org.xmldb.api.DatabaseManager.getDatabase(DatabaseManager.java:258)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:190)
 at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
 at
org.apache.cocoon.components.source.XMLDBSource.collectionToSAX(XMLDBSource.
java:233)
 at
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:173)
 at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.matchN400033(F:\jakarta-tomcat-4.0.6\work\Standalone\localho
st\cocoon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/w
ebapps/grad_publish_xmldb\sitemap_xmap.java:605)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Standalone\localhost\co
coon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/webapp
s/grad_publish_xmldb\sitemap_xmap.java:391)
 at
org.apache.cocoon.www.file_.F_.jakarta_tomcat_4_0_6.webapps.grad_publish_xml
db.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Standalone\localhost\co
coon\cocoon-files\org/apache/cocoon/www/file_/F_/jakarta_tomcat_4_0_6/webapp
s/grad_publish_xmldb\sitemap_xmap.java:324)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at
org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308)
 at
org.apache.cocoon.www.sitemap_xmap.matchN400366(F:\jakarta-tomcat-4.0.6\work
\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap
.java:3944)
 at
org.apache.cocoon.www.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Stan
dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java
:3152)
 at
org.apache.cocoon.www.sitemap_xmap.process(F:\jakarta-tomcat-4.0.6\work\Stan
dalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java
:3097)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)
 
With Thanks and Regards,
 
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>B. Subrahmanya Nayak
Member Technical Staff,
HCL Technologies Ltd.,
Net Centric Division,
B-41, A-11,Sector 16,
Noida - 201301
Ph: 118-4510701/702/813 Extn: 3028
 <http://www.subrahmanya.50megs.com/>  

Disclaimer:

This document is intended for transmission to the named recipient only. If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.


  _____  

 
<http://promos.hotbar.com/promos/promodll.dll?RunPromo&El=hotbar%5felement%3
bst%3b&SG=&RAND=11725> Upgrade Your Email - Click here! 

Mime
View raw message