You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roger Vaughn <rv...@sourcetrack.com> on 2000/04/06 19:22:13 UTC
[Fwd: Re: XSP Taglib frustrations]
Didn't work for me. I tried "file:/" instead of "file:///" as suggested
by others, tried dropping "file:" altogether, and even tried moving my
example.xsl to a new location. This is frustrating because the error
gives me so little context to go on.
I should have mentioned my config: Cocoon 1.7.2, Sun JDK 1.2.2, RedHat
6.1, Apache 1.3.11, JRun 2.3.3.
I can answer your question, though - it's Sun's problem. The JDK has
very weak handling for file: URLs, making it *very* sensitive to their
formatting. I think in this case, if you include the file: but no host
name, it tries to parse one out anyway, if I remember correctly. I have
run into this one before in other situations.
Keep the suggestions coming! Thanks!
Werner Guttmann wrote:
> Roger,
>
> I had the same problem the other day, and I kind of solved this issue
> by dropping the file:// protocol indicator from the relevant line in
> cocoon.properties. In other words, switching from ...
>
> processor.xsp.logicsheet.example.java =
> file:///home/httpd/html/example.xsl.
>
> to
>
> processor.xsp.logicsheet.example.java =
> /home/httpd/html/example.xsl.
>
> worked for me. Maybe somebody else could comment on why things do not
> work as intended.
>
> Regards
> Werner Guttmann
>
> Roger Vaughn wrote:
>
>> I'm having trouble with XSP taglibs.
>>
>> I first couldn't figure out how to associate an XSP sheet to a
>> source page -
>> I *finally* found the section in cocoon.properties for it. This
>> ought to
>> get doc'ed somewhere in the online XSP intros.
>>
>> After finding the section, I added this line to my
>> cocoon.properties:
>>
>> processor.xsp.logicsheet.example.java =
>> file:///home/httpd/html/example.xsl.
>>
>> Now, when I try to pull up my XML example, I get an exception from
>> Cocoon -
>> a NullPointerException at XSPProcessor.java:359 (in the process
>> method). (I
>> also tried putting "localhost" in the hostname slot.)
>>
>> Any hints why this is happening? I would guess that the processor
>> isn't
>> finding my file, but I would hope there would be an explicit check
>> for that
>> condition.
>>
>> Thanks for any help.
>>
>> rog
>>
>> ---
>> -----------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>