Hi Philip,
I have renamed portlet.xml in jetspeed-portlet.xml and have added next lines:
<js:services>
<js:service name='PageManager'/>
</js:services>
After deploy Tomcat writes:
ERROR: java.lang.IllegalArgumentException: WEB-INF/portlet.xml
org.apache.jetspeed.deployment.DeploymentException:
java.lang.IllegalArgumentException: WEB-INF/portlet.xml
at
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:173)
at
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:158)
at
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:257)
at
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:168)
at
org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:202)
at
org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:342)
Caused by: java.lang.IllegalArgumentException: WEB-INF/portlet.xml
at
org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy.java:142)
at
org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:168)
... 5 more
ERROR: Failure deploying
C:\Entwicklung\Programme\apache-tomcat-5.5.17\webapps\jetspeed\WEB-INF\deploy\dbportlet.war
What do I do wrong?
Does can something necessary to consider additionally?
Thank you
Michael
2006/9/13, Philip Mark Donaghy <[EMAIL PROTECTED]>:
Hi Michael,
The jetspeed-portlet.xml is reserved for jetspeed specific
configurations. If you want your portlet to be pure jsr-168 then don't
use jetspeed-portlet.xml .
Although if your portlet will be running only on jetspeed then using
jetspeed-portlet.xml will give you access to portal services. For
example the UserManager or PageManager services are accessed this way
from the j2-admin portlets.
Philip
On 9/12/06, Michael Boss <[EMAIL PROTECTED]> wrote:
> Hi Philip,
>
> Where a difference between portlet.xml and jetspeed-portlet.xml?
> Can I add it so in portlet.xml ?
>
> Thank you
> Michael
>
> 2006/9/10, Philip Mark Donaghy <[EMAIL PROTECTED]>:
> > Hi Michael,
> >
> > Try accessing the page manager with something like this,
> >
> > PortletContext context = getPortletContext();
> > pageManager =
> >
(PageManager)context.getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
> >
> > I believe that you have to define a Jetspeed Service in a
> > jetspeed-portlet.xml for this to work.
> >
> > <js:services>
> > <js:service name='PageManager'/>
> > </js:services>
> >
> > Philip
> >
> > On 9/10/06, Michael Boss <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > I develop administrative Portlet. I wish to add and delete data from
> > > PSML. How I can get access to PSML in a Portlet?
> > > I have tried so:
> > >
> > > PageManager pm;
> > > Page p;
> > > Fragment f;
> > >
> > > try {
> > > p = pm.getPage("/Public/test.psml");
> > > f = p.getFragmentById("P-10001");
> > > System.out.println("Fragment name: "+f.getName());
> > > }
> > > catch (PageNotFoundException e) {
> > > System.out.println("ppp: No page found");
> > > }
> > > catch (NodeException e) {
> > > System.out.println("ppp: Node error");
> > > }
> > >
> > > But I receive a NullPointerException.
> > >
> > > Many Thanks
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Philip Donaghy
> > donaghy.blogspot.com del.icio.us/donaghy/philip
> > Skype: philipmarkdonaghy
> > Office: +33 5 56 60 88 02
> > Mobile: +33 6 20 83 22 62
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]