> Hello
> I am a new pluto users.
> I try to insert into pluto portal a zk application.
> I used for the first time the zkdemo web application.
> I am not able to see the zk portlet inside the portal server.

>
> This is my portlet.xml file:
> ______________
...
> ______________
>
> This is the web.xml file
> ______________
...
>
> This is the error:
> The requested resource (/zkdemo/PlutoInvoker/zkdemoportletA) is not
> available

Matteo, this error is caused because you need to take an extra assembly
step in order to add some pluto-specific entries into web.xml before
installing your web application to the server.  There are plugins for Ant
and Maven 2 in order to do this.  This page has some more info:

http://portals.apache.org/pluto/v11/deploying.html

If you want to do it in Ant, it goes something like this:

<taskdef name="assemble" classname="org.apache.pluto.ant.AssembleTask">
        <classpath>
                <path refid="pluto-ant" />
                <path refid="pluto-cp" />
        </classpath>
</taskdef>
<assemble
        webxml="${web.dir}/WEB-INF/web.xml"
        portletxml="${web.dir}/WEB-INF/portlet.xml"
        destfile="${gen.dir}/pluto-web.xml" />
<war destfile="${dist.dir}/${ant.project.name}.war" basedir="${web.dir}"
        webxml="${gen.dir}/WEB-INF/pluto-web.xml">
        <classes dir="${classes.dir}">
                <include name="**/*" />
        </classes>
        <lib dir="${pluto.inc}">
                <include name="**/*.jar" />
        </lib>
        <exclude name="**/web.xml" />
</war>

Of course, modify this for your build environment as needed.  Hope it
works out.


-- Ben

Reply via email to