hello everybody,
i work with C2.2, and tomcat 5.5
i have a simple sitemap with streamgenerator
<map:match pattern="GET">
<map:generate type="stream">
<map:parameter name="form-name" value="myrequest"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
when i run this with jetty; i could test it with curl and post xml data
curl -v -F "[EMAIL PROTECTED]" http://myMachine:8888/myUri/GET
it returns the xml data of my file file.xml
when i deploy it in apache and test with curl
curl -v -F "[EMAIL PROTECTED]"
http://myMachine:8080/myApplication/myUri/GET
cocoon raise an exception and said that myrequest parameter is not set !!!
org.apache.cocoon.ProcessingException: Unknown request object
encountered named gwprequest : null
org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:121)
Any idea what's going on with tomcat deployement ???
it seems that request.get("myrequest") gives null with tomcat.....
thank you.
in the generator code
if (contentType
.startsWith("application/x-www-form-urlencoded")
||
contentType.startsWith("multipart/form-data")) {
String parameter =
parameters.getParameter(FORM_NAME,
null);
if (parameter == null) {
throw new ProcessingException(
"StreamGenerator expects a sitemap
parameter called '"
+ FORM_NAME
+ "' for handling form data");
}
Object xmlObject = request.get(parameter);
Reader xmlReader = null;
if (xmlObject instanceof String) {
xmlReader = new StringReader((String)
xmlObject);
} else if (xmlObject instanceof Part) {
xmlReader = new InputStreamReader(
((Part) xmlObject).getInputStream());
} else {
throw new ProcessingException(
"Unknown request object encountered
named "
+ parameter + " : " +
xmlObject);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]