[JBoss Portal] - [JBoss Portal][2.4] Portlet method "processAction" not calle
by ephemeris-lappis
Hello.
I'm trying to write a very simple portlet that uses an action URL and process a request in its processAction method.
The same portlet and JSP work perfectly in Jetspeed, but with JBoss portal, the processAction is never called.
An idea ? Something missing ?
The code of the portlet, jsp and descriptor are at the end of the message
Thanks
PORTLET
| package my.portal.one.portlets;
|
| import java.io.IOException;
|
| import javax.portlet.ActionRequest;
| import javax.portlet.ActionResponse;
| import javax.portlet.PortletConfig;
| import javax.portlet.PortletException;
| import javax.portlet.RenderRequest;
| import javax.portlet.RenderResponse;
|
| import my.portal.one.tools.Tracer;
|
| public class JspPortlet extends javax.portlet.GenericPortlet {
|
| private int count;
|
| @Override
| public void doView(final RenderRequest request, final RenderResponse response) throws PortletException, IOException {
| Tracer.trace(this, "Begin doView : " + request.getWindowState());
| response.setContentType("text/html");
| getPortletContext().getRequestDispatcher("/WEB-INF/jsp/page1-view.jsp").include(request, response);
| Tracer.trace(this, "End doView.");
| }
|
| @Override
| protected void doHelp(final RenderRequest request, final RenderResponse response) throws PortletException, IOException {
| Tracer.trace(this, "Begin doHelp...");
| response.setContentType("text/html");
| getPortletContext().getRequestDispatcher("/WEB-INF/jsp/page1-help.jsp").include(request, response);
| Tracer.trace(this, "End doHelp.");
| }
|
| @Override
| public void processAction(final ActionRequest request, final ActionResponse response) throws PortletException, IOException {
| Tracer.trace(this, "Begin processAction...");
| count++;
| response.setRenderParameter("count", Integer.toString(count));
| Tracer.trace(this, "End processAction. Count = " + count);
| }
|
| @Override
| public void init(final PortletConfig portletConfig) throws PortletException {
| Tracer.trace(this, "Begin init...");
| super.init(portletConfig);
| Tracer.trace(this, "End init.");
| }
|
| @Override
| public void destroy() {
| Tracer.trace(this, "Begin destroy...");
| super.destroy();
| Tracer.trace(this, "End destroy.");
| }
|
| }
|
JSP
| <%@taglib prefix="p" uri="http://java.sun.com/portlet"%>
| <p:defineObjects/>
| Voici la <b>vue</b> !
| <br><br>
| Portal Info :
| <br><b>${renderRequest.portalContext.portalInfo}</b>
| <br><br>
| Namespace :
| <br><b><p:namespace/></b>
| <hr>
| <div align="center">
| <form action="<p:actionURL/>">
| <%
| String count = renderRequest.getParameter("count");
| %>
| Count : <b><%=count%></b>
| <br>
| <input type="submit" value="Action !">
| </form>
| </div>
|
portlet descriptor
| <portlet id="Felipe-1.E">
|
| <description>A portlet that uses JSP pages.</description>
|
| <portlet-name>Felipe-1#5</portlet-name>
| <display-name>Felipe JSP</display-name>
|
| <portlet-class>my.portal.one.portlets.JspPortlet</portlet-class>
|
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>HELP</portlet-mode>
| </supports>
|
| <portlet-info>
| <title>Felipe-1 JSP</title>
| <short-title>Portlet using JSP pages.</short-title>
| <keywords>felipe,ephemeris,lappis,jsp</keywords>
| </portlet-info>
|
| </portlet>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976024#3976024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976024
19 years, 7 months
[Tomcat, HTTPD, Servlets & JSP] - IIS configuration with JBOSS AS
by p.r.rana
Hi ,
I am trying to configure IIS 6.0 , Windows 2003 and Jboss , i can access my application without any issue using application server port. But it fails while trying to access it through IIS. I have configured IIS using isapi_redirect.dll, and steps mentioned in below link
But any how it is still not working...
http://lists.jboss.org/pipermail/jboss-user/2006-August/005705.html
My url is
http://localhost:8080/system/root.jsp
(System is context root for application )
after configuring it on IIS
Am i supposed to access it
http://localhost/system/root.jsp
How does IIS recognize system , do we need to create a virtual directory for system ,
I have downloaded isapi_redirect.dll , but above link mention isapi_redirect2.dll , does it make any difference ? I could also see different version of worker.properties or worker2.properites
Do we have a standard document which can provide steps...?
I would appreciate any help on this.
Thanks in advance
Rana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976023#3976023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976023
19 years, 7 months
[JBossWS] - SErviceAlreadyRegistered exception
by MmarcoM
hi all,
i have an app in which i am exposing an EJB as a webservice..
while deploying applicationi keep on receiving this exception
| 14:08:19,953 ERROR [MainDeployer] Could not create deployment: file:/D:/Sw/jboss
| -4.0.4.GA/server/default/tmp/deploy/tmp18651ngenMiddlewareEAR-1.0-SNAPSHOT.ear-c
| ontents/ngenMiddleware-1.0-SNAPSHOT.jar
| org.jboss.ws.WSException: Service already registerd: jboss.ws:context=ngenMiddle
| ware-1,endpoint=Responder
| at org.jboss.ws.server.ServiceEndpointManager.createServiceEndpoint(Serv
| iceEndpointManager.java:501)
| at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpoin
| tDeployer.java:120)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInt
| erceptor.java:80)
| at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(Deployer
| InterceptorEJB.java:44)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| ptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy31.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
| bstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
| upport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
| eanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
|
i have deleted all tmp and work directory.. i cannot figure out where htis excpeiton is coming from..
can anyone help pls?
thanks in advance and regards
marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976016#3976016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976016
19 years, 7 months