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 angeloimm <an...@libero.it> on 2004/12/28 10:38:00 UTC

HELP......Requested Action not found: portlets.NikkoInfoBeanAction

Hi all; i have a problem with my generic mvc portlet; i have written an action called: NikkoInfoBeanAction. This action is in the package: it.eng.nikko.delivery.modules.actions.portlets;
i have written my xreg file in this way:
<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="Nikko Portlet" hidden="false" type="ref" parent="GenericMVCPortlet" application="false">
        <meta-info>
            <title>Nikko Portlet</title>
            <description>Visualizza il contenuto di Info Beans</description>
        </meta-info>
        <classname>org.apache.jetspeed.portal.portlets.GenericMVCPortlet</classname>
        <parameter name="template" value="ib-view" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="viewtype" value="Velocity" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="action" value="portlets.NikkoInfoBeanAction" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="columns" value="4" type="int" hidden="false" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="editable" value="true" type="boolean" hidden="false" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view" value="condensed" type="style" hidden="false" cachedOnName="true" cachedOnValue="true">
            <meta-info>
                <title>View</title>
                <description>View links in condensed, expanded or JavaScriptPowered view.</description>
            </meta-info>
        </parameter>
        <parameter name="view.style" value="ListBox" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view.style.items" value="condensed,expanded, JavaScriptPowered" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view.style.layout" value="$combo" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="view.style.sort" value="true" hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <media-type ref="html"/>
        <url cachedOnURL="true"/>
        <category group="Jetspeed">example</category>
    </portlet-entry>
</registry>

I have added to the file my.properties this:

module.packages=it.eng.nikko.delivery.modules

#
# Filter OneStop Logging
#
log4j.category.it.eng.nikko = WARN, onestop, stdout
log4j.additivity.it.eng.nikko = false

#
# onestop.log
#
log4j.appender.onestop = org.apache.log4j.FileAppender
log4j.appender.onestop.file = ${webappRoot}/WEB-INF/log/onestop.log
log4j.appender.onestop.layout = org.apache.log4j.PatternLayout
log4j.appender.onestop.layout.conversionPattern = %d [%t] %-5p (%F:%L) - %m%n
log4j.appender.onestop.append = false


to the log4j.properties.merge i have added:

#
# Filter OneStop Logging
#
log4j.category.com.automateddocsys = DEBUG, nikko, stdout
log4j.additivity.com.automateddocsys = false

#
# NikkoPortlet.log
#
log4j.appender.nikko = org.apache.log4j.FileAppender
log4j.appender.nikko.file = ${webappRoot}/WEB-INF/log/NikkoPortlet.log
log4j.appender.nikko.layout = org.apache.log4j.PatternLayout
log4j.appender.nikko.layout.conversionPattern = %d [%t] %-5p (%F:%L) - %m%n
log4j.appender.nikko.append = false


#### Prima scrittura sulla console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 

# Pattern che deve avere l’output
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p (%F:%L) - %m%n 

to the TurbineResources i have added:
module.packages=it.eng.nikko.delivery.modules


Well i have added the portlet by using the PSML Browser.... but when i try to use it i have this error:
Requested Action not found: portlets.NikkoInfoBeanAction
	Turbine looked in the following modules.packages path: 
	[org.apache.jetspeed.modules, org.apache.turbine.modules, it.eng.portal.modules, it.eng.nikko.delivery.modules]

	at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
	at org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(GenericMVCPortlet.java:276)
	at org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(GenericMVCPortlet.java:207)
	at org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:119)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260)
	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
	at org.apache.velocity.Template.merge(Template.java:296)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
.
.

I have created a jar file and i have inserted it in the WEB-INF/lib directory, then i have restarted JBoss 3.2.5..... but i'm not able to use this portlet.
Any Idea??
Thanks





____________________________________________________________
Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, video e sport. 
Abbonati subito senza costi di attivazione su http://www.libero.it




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