You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Eric White <ew...@rocksteady.com> on 2002/12/18 23:10:01 UTC

minimal psml for empty anon user page

I'm using the following PSML for the anon user because I don't want
anything displayed until the portal visitor logs in. However, this
(portlet) empty psml is generating java stack exceptions in my
jetspeed.log, so clearly I've not got this correct. Any suggestions are
welcome:



<?xml version="1.0" encoding="iso-8859-1"?>
<portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
    <metainfo>
      <title>Default Jetspeed Page</title>
    </metainfo>

  <control name="TabControl"/>

  <controller name="CardPortletController">
    <parameter name="parameter" value="pane"/>
  </controller>

</portlets>


and it's generating these errors in the log:

[Wed Dec 18 21:25:25 GMT 2002] -- INFO -- RegistryService: Failed to
retrieve 0 from Portlet
[Wed Dec 18 21:25:25 GMT 2002] -- DEBUG -- User "anon" is authorized to
portlet set 100
[Wed Dec 18 21:25:25 GMT 2002] -- ERROR -- 
	Exception:  java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
	Stack Trace follows:
	java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
	at java.util.Vector.elementAt(Vector.java:427)
	at
org.apache.jetspeed.portal.BasePortletSet.getPortletAt(BasePortletSet.java:199)
	at
org.apache.jetspeed.portal.controllers.VelocityPanedPortletController.retrievePaneIDFromSession(VelocityPanedPortletController.java:265)
	at
org.apache.jetspeed.portal.controllers.VelocityPanedPortletController.retrievePaneID(VelocityPanedPortletController.java:228)
	at
org.apache.jetspeed.modules.actions.controllers.PanedControllerAction.buildNormalContext(PanedControllerAction.java:122)
	at
org.apache.jetspeed.modules.actions.controllers.VelocityControllerAction.doPerform(VelocityControllerAction.java:157)
	at
org.apache.turbine.modules.actions.VelocityAction.doPerform(VelocityAction.java:84)
	at
org.apache.jetspeed.modules.actions.controllers.VelocityControllerAction.perform(VelocityCon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Build jportal.jar

Posted by Sangam Dash <sr...@rippleimpact.com>.
Hi

I am just starting the jportal tutorial.
I downloaded the jportal.jar file.
Build the by ant tutorial-1 and then it created a war file i put that 
war file in the tomcat webapps folder.
Are there any other step to do?
It says the page cannot be displayed when i try to access 
http://localhost:8080/jportal
i am on windows 2000, using tomcat 4.0.6 and java 1.4
the other jetspeed and my own website portal works fine.
Thanks
Sangam Dash




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: minimal psml for empty anon user page

Posted by Eric White <ew...@rocksteady.com>.
this works perfectly (got rid of the stack trace in the log).

thanks

On Wed, 2002-12-18 at 17:07, David Sean Taylor wrote:
> > -----Original Message-----
> > From: Eric White [mailto:ewhite@rocksteady.com]
> > Sent: Wednesday, December 18, 2002 2:10 PM
> > To: Jetspeed Users List
> > Subject: minimal psml for empty anon user page
> >
> >
> > I'm using the following PSML for the anon user because I don't want
> > anything displayed until the portal visitor logs in. However, this
> > (portlet) empty psml is generating java stack exceptions in my
> > jetspeed.log, so clearly I've not got this correct. Any suggestions are
> > welcome:
> >
> >
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
> >     <metainfo>
> >       <title>Default Jetspeed Page</title>
> >     </metainfo>
> >
> >   <control name="TabControl"/>
> >
> >   <controller name="CardPortletController">
> >     <parameter name="parameter" value="pane"/>
> >   </controller>
> >
> > </portlets>
> >
> 
> Why don't you drop the control and controller?
> This works fine for me, and is how the customizer would write it out if you
> deleted all portlets and tabs:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
>     <metainfo>
>       <title>Default Jetspeed Page</title>
>     </metainfo>
> </portlets>
> 
> remove this:
> 
>   <control name="TabControl"/>
> 
>   <controller name="CardPortletController">
>     <parameter name="parameter" value="pane"/>
>   </controller>
> 
> David Sean Taylor
> Bluesunrise.com
> david@bluesunrise.com
> +01 (707) 773 4646
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: minimal psml for empty anon user page

Posted by David Sean Taylor <da...@bluesunrise.com>.
> -----Original Message-----
> From: Eric White [mailto:ewhite@rocksteady.com]
> Sent: Wednesday, December 18, 2002 2:10 PM
> To: Jetspeed Users List
> Subject: minimal psml for empty anon user page
>
>
> I'm using the following PSML for the anon user because I don't want
> anything displayed until the portal visitor logs in. However, this
> (portlet) empty psml is generating java stack exceptions in my
> jetspeed.log, so clearly I've not got this correct. Any suggestions are
> welcome:
>
>
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
>     <metainfo>
>       <title>Default Jetspeed Page</title>
>     </metainfo>
>
>   <control name="TabControl"/>
>
>   <controller name="CardPortletController">
>     <parameter name="parameter" value="pane"/>
>   </controller>
>
> </portlets>
>

Why don't you drop the control and controller?
This works fine for me, and is how the customizer would write it out if you
deleted all portlets and tabs:

<?xml version="1.0" encoding="iso-8859-1"?>
<portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
    <metainfo>
      <title>Default Jetspeed Page</title>
    </metainfo>
</portlets>

remove this:

  <control name="TabControl"/>

  <controller name="CardPortletController">
    <parameter name="parameter" value="pane"/>
  </controller>

David Sean Taylor
Bluesunrise.com
david@bluesunrise.com
+01 (707) 773 4646



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: minimal psml for empty anon user page

Posted by Gary Lawrence Murphy <ga...@canada.com>.
I had that error as well; I had removed many of the predefined
portlets and my guess is that some template or some config file was
still referencing a portlet that no longer existed.  

Instead of boldly editing by hand, I opted to leave the default
portlets in the config files (ie demo-portlets) and then, after the
app was running, use the psgml editor to remove them, then back-port
those psgml files back into my source tree.  It was all voodoo, but
seems to have worked because I eventually removed all the portlets
from the pages and the error went away.

-- 
Gary Lawrence Murphy - garym@teledyn.com - TeleDynamics Communications
   - blog: http://www.teledyn.com/mt/ - biz: http://teledyn.com/ -
  "Computers are useless. They can only give you answers." (Picasso)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: minimal psml for empty anon user page

Posted by Eric White <ew...@rocksteady.com>.
sorry, I should have noted the platform:

Jetspeed 1.4b3 (from the CVS tag) on Linux, against a MySQL backend

On Wed, 2002-12-18 at 16:17, David Sean Taylor wrote:
> 
> > -----Original Message-----
> > From: Eric White [mailto:ewhite@rocksteady.com]
> > Sent: Wednesday, December 18, 2002 2:10 PM
> > To: Jetspeed Users List
> > Subject: minimal psml for empty anon user page
> >
> >
> > I'm using the following PSML for the anon user because I don't want
> > anything displayed until the portal visitor logs in. However, this
> > (portlet) empty psml is generating java stack exceptions in my
> > jetspeed.log, so clearly I've not got this correct. Any suggestions are
> > welcome:
> >
> >
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
> >     <metainfo>
> >       <title>Default Jetspeed Page</title>
> >     </metainfo>
> >
> >   <control name="TabControl"/>
> >
> >   <controller name="CardPortletController">
> >     <parameter name="parameter" value="pane"/>
> >   </controller>
> >
> > </portlets>
> >
> You don't have any portlets defined.
> But still that should be ok. Im sure I tested that scenario not too long
> ago.
> (We obviously need more Cactus unit tests)
> 
> > 	Exception:  java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
> 
> I haven't seen that error in a long time.
> What version are you using?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: minimal psml for empty anon user page

Posted by David Sean Taylor <da...@bluesunrise.com>.
> -----Original Message-----
> From: Eric White [mailto:ewhite@rocksteady.com]
> Sent: Wednesday, December 18, 2002 2:10 PM
> To: Jetspeed Users List
> Subject: minimal psml for empty anon user page
>
>
> I'm using the following PSML for the anon user because I don't want
> anything displayed until the portal visitor logs in. However, this
> (portlet) empty psml is generating java stack exceptions in my
> jetspeed.log, so clearly I've not got this correct. Any suggestions are
> welcome:
>
>
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml">
>     <metainfo>
>       <title>Default Jetspeed Page</title>
>     </metainfo>
>
>   <control name="TabControl"/>
>
>   <controller name="CardPortletController">
>     <parameter name="parameter" value="pane"/>
>   </controller>
>
> </portlets>
>
You don't have any portlets defined.
But still that should be ok. Im sure I tested that scenario not too long
ago.
(We obviously need more Cactus unit tests)

> 	Exception:  java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

I haven't seen that error in a long time.
What version are you using?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>