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 Michael Burschik <Bu...@lotto-berlin.de> on 2004/01/29 13:57:33 UTC

RegistryService: Failed to retrieve null from Portlet

Dear list members,

I have been trying to move my test site from Jetspeed 1.4-b4 to 1.4, but I
am unable to do so. The portlets contained in the jetspeed.war seem to work,
but none of my own portlets do. I get nothing except hundreds of
"RegistryService: Failed to retrieve null from Portlet" messages in my log
files. Some kind soul suggested that my registry files might be mixed up,
but I fail to see where I made a mistake.

I have narrowed my local-portlets.xreg down to:

<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="NewsBrowser" hidden="false"
        parent="Velocity" type="ref" application="false">

<classname>org.apache.jetspeed.portal.portlets.VelocityPortlet</classname>
        <security-ref parent="owner-only"/>
        <parameter name="action" value="portlets.NewsBrowserAction"
            hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="template" value="newsbrowser.vm"
            hidden="true" cachedOnName="true" cachedOnValue="true"/>
    </portlet-entry>
</registry>

and my default.psml down to:

<?xml version="1.0" encoding="iso-8859-1"?>
  <portlets id="12">
    <metainfo>
      <title>Neuigkeiten</title>
    </metainfo>

        <entry id="121" parent="NewsBrowser"/>

  </portlets>

Are these files incorrect?

Regards

Michael Burschik


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Jetspeed and Serializable configuration

Posted by Garrett James <ga...@bah.com>.
I am using Jetspeed 1.4 in conjunction with an Oracle9iAS Application Server
and need to have it setup as part of a cluster of app servers.  One of the
requirements for Oracle9iAs is that all objects stored/retrieved from the
HttpSession must be Serializable.  When I attempt to use Jetspeed in a
clustered environment I get error messages back from the app server stating
that the Session Objects in Jetspeed are not Serializable.  Here is the
stack trace I receive:

[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/html/Home.vm: Invocation of method 'setMode' in  class
org.apache.jetspeed.services.rundata.DefaultJetspeedRunData threw exception
class java.lang.IllegalArgumentException : Only java.io.Serializable,
javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound to a
session in a distributable web-application, not:
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
ateEntry@fe30af (class
org.apache.jetspeed.services.statemanager.JetspeedHttpStateManagerService$St
ateEntry)
[29 Jan 2004 07:36:59 ERROR] - Error rendering Velocity template:
screens/ShowError: Unable to find resource 'screens/ShowError'
[29 Jan 2004 07:36:59 ERROR] -
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'screens/ShowError'
	at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
ceManagerImpl.java:501)
	at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
eManagerImpl.java:384)
	at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:814)
	at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:355)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:482)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)

Has anyone encountered this before?  Is there any workaround in Jetspeed to
make this work.  Would using the JSP implementation work instead of using
Velocity?  Any help you could give is greatly appreciated.

Thanks

Jim Garrett


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org