[JBoss Portal] - PortalObjectContainer Object is getting null
by tekulapallinaresh
Hi Everyone,
I wrote a portlet where I need PortalObjectContainer reference. So in my init method I wrote the below code in the init method of my portlet. Please note that I have extended the JBossPortlet class
PortalObjectContainer container = (PortalObjectContainer) getPortletContext().getAttribute("PortalObjectContainer")
and
in jboss-portlet.xml I kept
<portlet-name>MenuPortlet</portlet-name>
<trans-attribute>Required</trans-attribute>
<service-name>PortalObjectContainer</service-name>
<service-class>org.jboss.portal.core.model.portal.PortalObjectContainer</service-class>
<service-ref>:container=PortalObject</service-ref>
I deployed the application and while running the server I able to see the below exception in the log
ERROR [dependency.AbstractKernelController] [2006-09-21 13:34:32,539] [main] [AbstractController.java:350] - Error installing to Start: name=portal:container=Portlet,id=supplierportal.MenuPortlet state=Create
org.jboss.portal.portlet.container.PortletInitializationException: The portlet MenuPortlet threw a runtime exception during init
at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:287)
at org.jboss.portal.portlet.container.PortletContainerAdapter.start(PortletContainerAdapter.java:74)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:92)
at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:452)
at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:74)
at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:232)
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:79)
at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:211)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:242)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Please can anybody have idea on this.
Thanks in advance
Naresh Kumar Tekulapalli
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973213#3973213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973213
19 years, 7 months
[Beginners Corner] - Embed flash in jsp served in jboss Application Server
by ssemog
Hello everyone!
I'm trying to embed a flash movie in a jsp that also loads an applet. I need to serve the jsp in jboss application server due to the application requirements.
I've tried different solutions using the object and embed tags and the flash movie loads without problems in firefox, but I can't make it to load in Internet Explorer.
If I serve the same jsp code in apache web server, the flash movie loads right away in both browsers (but then the applet doesn't).
I read that Internet explorer embeds the flash movie as an active-X control in opposite to firefox that does it as a netscape-style plugin. Is this the problem? If yes, is there a workaround? or can I some how delegate the flash movie to be served by apache web server?
I would be very appreciated for any suggestion.
Thank you in advance.
Regards,
Sandra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973211#3973211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973211
19 years, 7 months