On Tue, 26 Jun 2001, Morrison, John wrote:

> Hi All.
>
> I've a match along the lines of (with some validation removed ;)...
>
> <map:match pattern="*/*.xml">
>  <map:generate type="serverpages" src="docs/public/{3}.xml">
>   <map:parameter name="param1" value="{1}"/>
>  </map:generate>
>  <map:serialize type="xml"/>
> </map:match>
>
> Assume I have a file called docs/public/test.xml, which contains some xsp
> code.  If I call this with the url http://xxx/context/john/test.xml I
> (correctly) get the results.  If I (or, more likely somebody else) then call
> http://xxx/context/john/Test.xml, I get errors...

Where do you see ERRORs, you've posted only DEBUG messages.

>
> DEBUG   99355   [cocoon  ] (/context/john/Test.xml): UnnamedSelector:
> ComponentSelector could not find the component for hint:
> org\apache\cocoon\www\docs\public_\Test_xml
> DEBUG   99355   [cocoon  ] (/context/john/Test.xml): Could not access
> component for hint: org\apache\cocoon\www\docs\public_\Test_xml
> java.lang.NullPointerException:
>       at
> org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
> eratorSelector.java:82)
>       at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
> ProgramGeneratorImpl.java:269)
>
> I think that the name for the java code should be taken from the file name
> of the xml *not* the url name.  Where should I look for this?

I don't get this. Aren't the path names of the java code produces from
the file names? I don't know your os platform but case is significant
for cocoon urls as it is for any *nix type os as well.

Giacomo


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

Reply via email to