I'm following Ch. 12 in the reference guide to add admin mode to portlet. When I
deploy the portlet, I get the following error:
2009-03-13 16:50:08,131 ERROR [org.jboss.deployment.MainDeployer] Could not start
deployment:
file:/E:/Dev/Tools/jboss-portal-2.7.1/server/default/tmp/deploy/tmp9050440818682779072FlickrPortlet-0.0.1-exp.war/WEB-INF/
java.lang.IllegalArgumentException: Mode cannot be null
at org.jboss.portal.Mode.(Mode.java:70)
at org.jboss.portal.Mode.create(Mode.java:159)
at org.jboss.portal.Mode.create(Mode.java:126)
at
org.jboss.portal.portlet.impl.info.ContainerInfoBuilder.build(ContainerInfoBuilder.java:456)
at
org.jboss.portal.portlet.impl.info.ContainerInfoBuilder.build(ContainerInfoBuilder.java:368)
at
org.jboss.portal.core.impl.portlet.info.CoreInfoBuilder.build(CoreInfoBuilder.java:111)
at
org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:169)
.........
I added the following two lines to portlet.xml:
<portlet-mode>admin</portlet-mode>
<custom-portlet-mode>
admin
</custom-portlet-mode>
Any help would be appreciated.
Thanks,
Scott
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217993#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...