You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Francois Jannin <fr...@etu.enseeiht.fr> on 2004/10/08 15:11:36 UTC

problem with dasl query

Hi all,

I want to make DASL queries following the cocoon 2.1 samples and I got a 
NullPointerException in return.

my sample-based query looks like :

<dasl:query xmlns:dasl="http://cocoon.apache.org/webdav/dasl/1.0"
  target="webdav://localhost:8080/slide/">
<D:searchrequest xmlns:D="DAV:">
  <D:basicsearch>
    <D:select>
      <D:allprop/>
    </D:select>
    <D:from>
      <D:scope>
        <D:href>slide</D:href>
        <D:depth>infinity</D:depth>
      </D:scope>
    </D:from>
  </D:basicsearch>
</D:searchrequest>
</dasl:query>

And in my sitemap :

<map:match pattern="DASLProp">
                <map:generate src="context://injac/queries/test-dasl.xml" />
                <map:transform type="dasl" />
                <map:serialize type="xml"/>
</map:match>

Exception message is not very explicit :

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.cocoon.ProcessingException: Could not read resource 
file:/E:/Java/jakarta-tomcat-5.0.28/webapps/cocoon/injac/queries/test-dasl.xml: 
java.lang.NullPointerException


Thanks for any suggestions, i'm really stuck.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: problem with dasl query

Posted by Guido Casper <gc...@s-und-n.de>.
Are you using Tomcat? I THINK this may be caused by wrong version of XML 
libraries. Try putting Cocoon's xalan, xerces and xml-api jars into 
endorsed lib directory.

HTH
Guido


Francois Jannin wrote:
> Hi all,
> 
> I want to make DASL queries following the cocoon 2.1 samples and I got a 
> NullPointerException in return.
> 
> my sample-based query looks like :
> 
> <dasl:query xmlns:dasl="http://cocoon.apache.org/webdav/dasl/1.0"
>  target="webdav://localhost:8080/slide/">
> <D:searchrequest xmlns:D="DAV:">
>  <D:basicsearch>
>    <D:select>
>      <D:allprop/>
>    </D:select>
>    <D:from>
>      <D:scope>
>        <D:href>slide</D:href>
>        <D:depth>infinity</D:depth>
>      </D:scope>
>    </D:from>
>  </D:basicsearch>
> </D:searchrequest>
> </dasl:query>
> 
> And in my sitemap :
> 
> <map:match pattern="DASLProp">
>                <map:generate src="context://injac/queries/test-dasl.xml" />
>                <map:transform type="dasl" />
>                <map:serialize type="xml"/>
> </map:match>
> 
> Exception message is not very explicit :
> 
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> org.apache.cocoon.ProcessingException: Could not read resource 
> file:/E:/Java/jakarta-tomcat-5.0.28/webapps/cocoon/injac/queries/test-dasl.xml: 
> java.lang.NullPointerException
> 
> 
> Thanks for any suggestions, i'm really stuck.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org