Xindice and Cocoon

2002-08-18 Thread praktikant

I get this when I go to the site. Source code (xml) instead of data (also
xml)
I use Win 2k, Tomcat 4.0.4, Cocoon 2.0.3 (compiled on Java 1.3.x), Xindice
1.0, Java SDK 1.3.1_04 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: Xindice and Cocoon

2002-06-28 Thread Cenk Uysal

Here is the error:

SAXException JspGenerator.generate()

org.apache.cocoon.ProcessingException: SAXException
JspGenerator.generate()

org.apache.cocoon.ProcessingException: SAXException
JspGenerator.generate()
at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:132)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
at
org.apache.cocoon.www.erhan.sitemap_xmap.matchN1002E(/usr/local/jakarta-tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/erhan/sitemap_xmap.java:482)
at
org.apache.cocoon.www.erhan.sitemap_xmap.process(/usr/local/jakarta-tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/erhan/sitemap_xmap.java:390)
at
org.apache.cocoon.www.erhan.sitemap_xmap.process(/usr/local/jakarta-tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/erhan/sitemap_xmap.java:334)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.www.sitemap_xmap.matchN1038F(/usr/local/jakarta-tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:4230)
at
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3254)
at
org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-tomcat/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3121)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)


Usually Cocoon gives this error when JSP can not generate valid XML.
So I think Xindice is unreachable. Also how can I try if XSP can
reach Xindice? Has Cocoon samples this kind of example? 

_

RE: Xindice and Cocoon

2002-06-28 Thread Piroumian Konstantin

> From: Cenk Uysal [mailto:[EMAIL PROTECTED]] 
> 
> Hi,
> 
> I try to use Xindice as my XML source database. I know that Cocoon
> has special generators for this purpose. But I try to do this by the
> help of JSP(don't ask why :)). So we prepared a library which allows
> us to connect Xindice from JSP and get XML content by Xpath function
> that we enter.
> Here is a sample JSP:
> 
> <%@ page language='java'%>
> <%@ taglib uri="deu-taglib.tld" prefix="deu"%>
> 
>   
>   
>   
> 
> 
> Here  and  tags are defined by us. They
> make a connection to Xindice and get the XML with restrictions given
> in  tag. 
> 
> Normally, this code runs in ROOT directory of Tomcat. But I want to
> run this JSP code by the help of JSP generator. But I get
> JSPGenerator problem from Cocoon.
> 
> I think I can't reach Xindice because this time JSP must be under
> Cocoon directory. I know normally JspGenerator runs without problem.

What is the exact problem you get? Have you looked at the log? Is Xindice
reachable from other places in Cocoon, e.g. from XSP?

(The question is not hard to answer, but almost impossible if you don't
provide enough details. And also, please, have patience to wait until the
earth will turn arround a little, so the people from the other time zones
could get your question in the morning ;))

> 
> What can be the problem?

Error messages, log snippets, other relevant details...

Konstantin

> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Xindice and Cocoon

2002-06-27 Thread daniel robinson

Cenk,

Try posting to cocoon-dev.

Dan

Cenk Uysal wrote:

>Is it difficult question? Why does nobody answer?
>
>__
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Xindice and Cocoon

2002-06-27 Thread Cenk Uysal

Is it difficult question? Why does nobody answer?

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Xindice and Cocoon

2002-06-27 Thread Cenk Uysal

Hi,

I try to use Xindice as my XML source database. I know that Cocoon
has special generators for this purpose. But I try to do this by the
help of JSP(don't ask why :)). So we prepared a library which allows
us to connect Xindice from JSP and get XML content by Xpath function
that we enter.
Here is a sample JSP:

<%@ page language='java'%>
<%@ taglib uri="deu-taglib.tld" prefix="deu"%>

  

  


Here  and  tags are defined by us. They
make a connection to Xindice and get the XML with restrictions given
in  tag. 

Normally, this code runs in ROOT directory of Tomcat. But I want to
run this JSP code by the help of JSP generator. But I get
JSPGenerator problem from Cocoon.

I think I can't reach Xindice because this time JSP must be under
Cocoon directory. I know normally JspGenerator runs without problem.

What can be the problem?

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: OT: Anybody successfully using XIndice and Cocoon?

2002-05-10 Thread Alex McLintock

At 10:30 03/05/2002, Jörn Heid wrote:

>If there's anybody with good knowledge and some time to answer some of my
>questions, please let me know.
>I'm looking for some help regarding XUpdate and application development
>using Xindice...


There seem to be occasional mention of people with XUpdate problems and no 
one to solve them. Perhaps we should band together with a mailing list just 
for Xindice and Cocoon

Alex







Openweb Analysts Ltd, London: Software For Complex Websites 
http://www.OWAL.co.uk/
Free Consultancy for London Companies thinking of Open Source Software.


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




OT: Anybody successfully using XIndice and Cocoon?

2002-05-03 Thread Jörn Heid


If there's anybody with good knowledge and some time to answer some of my
questions, please let me know.
I'm looking for some help regarding XUpdate and application development
using Xindice...


Thanks in advance.
JOERN


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Xindice and Cocoon How To

2002-02-21 Thread Perry Molendijk

Infexions (WA) Pty LtdHope this is useful to anyone

Finally got around to attempt to make xindice / dbxml work with C2.
Checked the FAQ's and archive and ended up very confused.
Anyway I kind of summarised all the advice / postings I found and got it to
work [in the end].

Here is a rundown on what I did / modified to cocoon to get it to work.

The environment Win2K, Cocoon 2.0.1, Tomcat 4.0.1 and xindice-1.0rc1

Assumption: xindice is running on localhost:4080 and the addressbook example
db has been created.

There are apparently two ways of doing this:
1. using a generator
2. using a source-handler

In a recent posting it was noted however that the generator will be
deprecated shortly, so first I got rid of the bits in sitemap.xmap that deal
with the generator:

First comment out this section (it's near the top of sitemap.xmap)


org.dbxml.client.xmldb.DatabaseImpl
xmldb:dbxml:///db/
   
   
org.dbxml.client.xmldb.DatabaseImpl
xmldb:dbxml:///db/
   

Next comment out these lines (near the end of sitemap.xmap):

   


   
   


   

Now modify the remaining map:match entry:

   

 
 



   

so it looks like this:

   

 
 



   

Replace:
xmldb:dbxml://localhost:4080/
With:
xmldb:xindice://localhost:4080/db/

Untill I added the "db/" at the end I was getting an error saying a file
named:
_bootstrap.ior not found. Where  is the collection name used in the
request. In fact if you look in %XINDICE_HOME%/docs there is only one .ior
file and it's called db_bootstrap.ior.

Next to cocoon.xconf. Modify the following lines:

 
  
  
   
   
   
  
 

so they look like this:

 
  
  
   
   
   
  
 

Copy xindice.jar into the cocoon\WEB-INF\lib directory.

Start xindice, if it isn't running yet.

Start Tomcat.

And try: http://localhost:8080/cocoon/xmldb/addressbook/

The result looks something like this [I have three entries in the
addressbook db]:


http://apache.org/cocoon/xmldb/1.0";>
 
 
 


To see all the entries in you addressbook db try:
http://localhost:8080/cocoon/xmldb/addressbook/?xpath=//person

Although all this is working sweet, I do get this error in error.log:

ERROR   (2002-02-22) 13:51.08:468   [sitemap.generator.velocity]
(/cocoon/xmldb/addressbook/) HttpProcessor[82][4]/VelocityGenerator:
ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.
ERROR   (2002-02-22) 13:51.08:578   [sitemap.generator.velocity]
(/cocoon/xmldb/addressbook/) HttpProcessor[82][4]/VelocityGenerator:
ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.

Always 2 entries like this but all seems to running fine.

I have written this in StyleBook format. You can download it from:
http://members.iinet.net.au/~xions/dev/xindice.zip
Unzip it to %PATH_TO_SERVLET_ENGINE%\webapps\cocoon\documentation\xdocs
Access it via:
http://localhost:8080/cocoon/documents/xindice/index.html


Inflexions (WA) Pty Ltd
to
body
Perry Molendijk

Inflexions (WA) Pty Ltd
PO Box 57
Inglewood
WA 6052
Australia
Tel: (+61) 0401 677 453

IMPORTANT INFORMATION: This message and any files transmitted with it are
confidential and should be read only by those persons to whom it is
addressed. If you have received this message in error, please notify us
immediately by way of reply. Please also destroy and delete the message from
your computer. Any unauthorised form of reproduction of this message is
strictly prohibited. It is the duty of the recipient to virus scan and
otherwise test the information provided before loading onto any computer
system. Inflexions (WA) Pty Ltd does not warrant that the information is
free of a virus or any other defect or error. Inflexions (WA) Pty Ltd is not
liable for the proper and complete transmission of the information contained
in this communication, nor for any delay in its receipt. Any views expressed
in this message are those of the individual sender, except where the sender
specifically states them to be the views of Inflexions (WA) Pty Ltd.


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>