You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@portals.apache.org by Rangwala Hussain Shaukat <Hu...@infosys.com> on 2007/01/19 07:29:53 UTC
Unable to deploy a struts application as a portlet.
hi,
Thanks in advance for replying.....
i am trying to deploy a struts application as a portlet on jboss
portal 2.4.0.GA.
However the application gets deployed successfully and i see the
portal-page when i access http://localhost:8080/portal
However when i click on the portal page It gives an error "Object not
found SETLInstanceName".
[code]
2007-01-16 16:35:32,434 ERROR
[org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to Start:
name=portal:container=Portlet,id=SETLAppName.SETLPortletName
state=Create
org.jboss.portal.portlet.container.PortletInitializationException: The
portlet SETLPortletName threw a runtime exception during init
at
org.jboss.portal.portlet.container.PortletContainer.start(PortletContain
er.java:287)
at
org.jboss.portal.portlet.container.PortletContainerAdapter.start(Portlet
ContainerAdapter.java:74)
at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(Refl
ectMethodJoinPoint.java:72)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispa
tchJoinPoint(KernelControllerContextActions.java:92)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextActions$Lifec
ycleAction.installAction(KernelControllerContextActions.java:452)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextActions$Kerne
lControllerContextAction.install(KernelControllerContextActions.java:147
)
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(Ab
stractControllerContextActions.java:51)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractC
ontrollerContext.java:226)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractControll
er.java:593)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractC
ontroller.java:346)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstract
Controller.java:438)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstract
Controller.java:379)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractControll
er.java:225)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractControll
er.java:151)
at
org.jboss.kernel.plugins.dependency.AbstractKernelController.install(Abs
tractKernelController.java:74)
at
org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(Por
tletAppDeployment.java:232)
at
org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(Portle
tAppDeployment.java:79)
at
org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$Deployment
Context.start(PortalDeploymentInfo.java:211)
at
org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDepl
oyer.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)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
java:155)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea
nOperationInterceptor.java:142)
[/code]
below are the deployment descriptors:
1.jboss-app.xml
<jboss-app>
<app-name>SETLAppName</app-name>
</jboss-app>
2.jboss-portlet.xml
<portlet-app>
<portlet>
<portlet-name>SETLPortletName</portlet-name>
<!-- Use the specific struts container configuration -->
<config-name>StrutsPortlet</config-name>
</portlet>
</portlet-app>
3. portlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app id="SETLAppName"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.x
sd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0">
<portlet id="SETLPortletName">
<init-param>
<name>ServletContextProvider</name>
<value>org.jboss.portal.bridge.JBossServletContextProvider</value>
</init-param>
<init-param>
<name>ViewPage</name>
<value>/Login.do</value>
</init-param>
<init-param>
<name>HelpPage</name>
<value>/signIn.do</value>
</init-param>
<portlet-name>SETLPortletName</portlet-name>
<display-name>SETL Display Name</display-name>
<description>This is the SETLBAAAAAANK</description>
<portlet-class>org.apache.portals.bridges.struts.StrutsPortlet</portlet-
class>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>HELP</portlet-mode>
</supports>
<portlet-info>
<title>SETL Bank Demo</title>
<short-title>This is the short title</short-title>
<keywords>SETL</keywords>
</portlet-info>
</portlet>
</portlet-app>
4.portlet-instances.xml
<?xml version="1.0" standalone="yes"?>
<instances>
<instance>
<instance-name>SETLInstanceName</instance-name>
<component-ref>SETLPortletName</component-ref>
</instance>
</instances>
5.SETLAppName-object.xml
<?xml version="1.0" encoding="UTF-8"?>
<deployments>
<deployment>
<if-exists>overwrite</if-exists>
<parent-ref>default</parent-ref>
<page>
<page-name>SETLAppName</page-name>
<window>
<window-name>SETLWindowName</window-name>
<instance-ref>SETLInstanceName</instance-ref>
<region>center</region>
<height>1</height>
</window>
</page>
</deployment>
</deployments>
6.SETLAppName-pages.xml
<pages>
<portal-name>default</portal-name>
<page>
<page-name>SETLStruts</page-name>
<window>
<window-name>SETLBankWindowName</window-name>
<instance-ref>/SETLAppName.SETLPortletName.SETLInstanceName</instance-re
f>
<region>center</region>
<height>0</height>
</window>
</page>
</pages>
Any ideas and suggestions will be appreciated
Thanks
Hussain
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***