Re: Using a servlet as source for a generator
Of course, when i type the same url in my browser, it works (http://localhost:8080/myApp/myServlet;). Cocoon and my servlet are in the same webApp (and same Tomcat's Context). Does it really work for you ? sitemap.xmap is standard and i had just added this : map:pipelines map:pipeline match=myApp/test map:generate uri=/myApp/myServlet/!-- return XML -- map:serialize / /map:pipeline /map:pipelines I think it doesn't fit your servlet mapping. Try map:generate uri=myServlet/ If this doesn't work either and you are using 2.1 you can also try map:generate uri=http://{request:serverName}:{request:serverPort}{request:contextPath}/m yServlet/ I believe this also works for 2.0.5-dev HTH Guido - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a servlet as source for a generator
I think it doesn't fit your servlet mapping. Try map:generate uri=myServlet/ It doesn't work ... It couldn't setup pipeline with an org.apache.cocoon.ProcessingException: Could not setup pipeline.: org.xml.sax.SAXException: Invalid System ID If this doesn't work either and you are using 2.1 you can also try map:generate uri=http://{request:serverName}:{request:serverPort}{request:contextPath}/ m yServlet/ Doesn't work with 2.0.4 ... I believe this also works for 2.0.5-dev Did not tried yet. Regards. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a servlet as source for a generator
I think it doesn't fit your servlet mapping. Try map:generate uri=myServlet/ It doesn't work ... It couldn't setup pipeline with an org.apache.cocoon.ProcessingException: Could not setup pipeline.: org.xml.sax.SAXException: Invalid System ID Sorry, it should be map:generate src=myServlet/ Guido - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a servlet as source for a generator
Sorry, it should be map:generate src=myServlet/ I've tried also, but in this case, it looks the ressource on the file system (FileNotFoundException) ... Laurent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a servlet as source for a generator
OK, one last guess: map:generate src=/myServlet/ If this does not work I would go with: map:generate src=http://{request:serverName}:{request:serverPort}{request:contextPath}/m yServlet/ AFAIK input modules have been backported to 2.0.5-dev Guido - Original Message - From: Laurent Comte [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 14, 2003 11:12 AM Subject: RE: Using a servlet as source for a generator Sorry, it should be map:generate src=myServlet/ I've tried also, but in this case, it looks the ressource on the file system (FileNotFoundException) ... Laurent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html 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. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a servlet as source for a generator
OK, one last guess: map:generate src=/myServlet/ I tried for 2 hours all sorts of things :(( ... The only one working is with the full url ... I think that for Cocoon: 1/ there's some confusion between src and uri attribute for the generator 2/ there's some confusion on how to know if uri is internet-uri or filesystem-uri ... It seems that it check if uri begin with http. Does it work with https ??? If this does not work I would go with: map:generate src=http://{request:serverName}:{request:serverPort}{request:contextPath}/ m yServlet/ AFAIK input modules have been backported to 2.0.5-dev I use only 2.0.4 prod version, i have enough problems with it :) Regards, Laurent - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a servlet as source for a generator
It seems that it check if uri begin with http. That is what I thought as well. But http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet seems to indicate otherwise. Does it work with https ??? I don't think FileGenerator supports this. But you can try WebServiceProxyGenerator which uses commons-http client which supports https. HTH Guido - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a servlet as source for a generator
It seems that it check if uri begin with http. That is what I thought as well. But http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet seems to indicate otherwise. Yes, but the author of this article told me that he didn't test it ! :-/ He will going to change his article ... Does it work with https ??? I don't think FileGenerator supports this. But you can try WebServiceProxyGenerator which uses commons-http client which supports https. In this case, i've got an SSL exception (certainly because i didn't configure SSL on my server), so it seems to look the ressource in the good place ... Laurent. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]