11 Replies Latest reply on May 24, 2005 8:32 AM by Benjamin bratkus

    problems with my own portlet

    Benjamin bratkus Newbie

      hello folks,

      i've successfully developed a portlet in pluto and jetspeed2. Now i want to run the same portlet in JBoss Portal. I've downloaded your helloworld example and read the two .pdf in the docs folder. So i've written the desciptors. Actually i'm using JBoss Portal 2.0b1 + JBoss AS 4.0.1sp1 Bundle for my first steps with your portal. after deploying the portlet in the /deploy folder it appears in the menue of the portal as "calculator" but "onClick" the following exceptions are thrown:
      ____________________________________
      javax.portlet.PortletException: org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.pluto.tags.DefineObjectsTag$TEI
      at org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:127)
      at de.oio.portlets.CalculatorPortlet.doView(CalculatorPortlet.java:41)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:154)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:394)
      at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeRequest(DispatcherInterceptor.java:143)
      at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:171)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(PreferencesInterceptor.java:93)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94)
      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:585)
      at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:49)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:552)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
      at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:103)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      at org.jboss.portal.server.Component.invoke(Component.java:173)
      at org.jboss.portal.server.invocation.portal.MainDispatcherInterceptor.invoke(MainDispatcherInterceptor.java:93)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.core.invocation.ViewInterceptor.invoke(ViewInterceptor.java:114)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:153)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:91)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
      at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
      at org.jboss.portal.server.PortalServer.invoke(PortalServer.java:195)
      at org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:62)
      at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:55)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.portal.core.servlet.TransactionFilter$1.run(TransactionFilter.java:78)
      at org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:75)
      at org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:74)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:595)
      _______________________________

      at de.oio.portlets.CalculatorPortlet.doView(CalculatorPortlet.java:41) is at the end of my doView-Method in the line: "prd.include(req, res);" which is my RequestDispatcher.

      Thanks for reading,

      ben

        • 1. Re: problems with my own portlet
          Viet Master

          you need to remove the portlet JSP tag TLD file from the war file you are deploying.

          • 2. Re: problems with my own portlet
            Benjamin bratkus Newbie

            i suggest that you mean the

            <taglib-uri>http://java.sun.com/portlet</taglib-uri>
            <taglib-location>/WEB-INF/tlds/portlet.tld</taglib-location>


            in my web.xml and the

            <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %> in my jsp

            correct?

            • 3. Re: problems with my own portlet
              Viet Master

              yes, you should use remove it and use in your JSP :

              <%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>

              you don't need to put the taglib as it is automatically imported in the war file when you deploy your web app.

              • 4. Re: problems with my own portlet
                Benjamin bratkus Newbie

                thanks for your help, but after editing the jsp and the web.xml the, means i've removed
                <taglib-uri>http://java.sun.com/portlet</taglib-uri>
                <taglib-location>/WEB-INF/tlds/portlet.tld</taglib-location>
                in the web.xml and the
                <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %> in my jsp

                the portal can't find the portlet components in the jsp for example:

                An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/view.jsp
                Generated servlet error:
                D:\jboss_portal_2.0-jboss_4.0.1sp1\jboss_portal_2.0-jboss_4.0.1sp1\server\default\work\jboss.web\localhost\OioCalculator\org\apache\jsp\WEB_002dINF\jsp\view_jsp.java:52: cannot find symbol
                symbol : variable renderResponse
                location: class org.apache.jsp.WEB_002dINF.jsp.view_jsp
                PortletURL jaURL = renderResponse.createActionURL();
                which i use for my calculator.

                • 5. Re: problems with my own portlet
                  Roy Russo Master

                  The error above, is because you are missing:

                  <portlet:defineObjects/>
                  


                  • 6. Re: problems with my own portlet
                    Benjamin bratkus Newbie

                    dear roy,

                    you mean, that in my jsp your posted tag is missing? for a better understanding i've added my jsp:

                    <%@ page session="false"%>
                    <%@ page import="de.oio.data.*" %>
                    <%@ page import="javax.portlet.*"%>
                    <%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n"%>
                    <portlet:defineObjects/>
                    <% PortletURL jaURL = renderResponse.createActionURL();
                    PortletSession session = renderRequest.getPortletSession();
                    String calcAction = (String)session.getAttribute("calcAction");
                    String calcbin = (String)session.getAttribute("calcbin");
                    %>
                    This is a very simple calculator (can only add).


                    Result : <%= ((Calculator)session.getAttribute("testBean")).getSResult()%>











                    <input name="calcbin" type="radio" value="bin" <%=calcbin.equals("bin") ? "CHECKED" : ""%>/>bin
                    <input name="calcbin" type="radio" value="hex" <%=calcbin.equals("hex") ? "CHECKED" : ""%>/>hex
                    <input name="calcbin" type="radio" value="oct" <%=calcbin.equals("oct") ? "CHECKED" : ""%>/>oct
                    <input name="calcbin" type="radio" value="fac" <%=calcbin.equals("fac") ? "CHECKED" : ""%>/>n!













                    • 7. Re: problems with my own portlet
                      Benjamin bratkus Newbie

                      and where can i edit my posts?

                      • 8. Re: problems with my own portlet
                        Roy Russo Master

                        Use the code tags in the forums when posting code.

                        Are you still getting the same error after adding this?

                        • 9. Re: problems with my own portlet
                          Benjamin bratkus Newbie

                          right, the hole jsp looks like this:

                          <%@ page session="false"%>
                          <%@ page import="de.oio.data.*" %>
                          <%@ page import="javax.portlet.*"%>
                          <%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n"%>
                          <portlet:defineObjects/>
                          <% PortletURL jaURL = renderResponse.createActionURL();
                          PortletSession session = renderRequest.getPortletSession();
                          String calcAction = (String)session.getAttribute("calcAction");
                          String calcbin = (String)session.getAttribute("calcbin");
                          %>
                          <P>This is a very simple calculator (can only add).</P>
                          <div>
                          <br />
                          Result : <%= ((Calculator)session.getAttribute("testBean")).getSResult()%>
                          <br />
                          <br />
                          <br />
                          </div>
                          <form method="POST" action="<%=jaURL.toString()%>">
                          <div>
                          <INPUT TYPE="TEXT" NAME="sNumber1" id="sNumber1" VALUE="0" />
                          <INPUT TYPE="TEXT" NAME="sNumber2" id="sNumber2" VALUE="0" />
                          </div>
                          <br />
                          <div>
                          <input name="calcbin" type="radio" value="bin" <%=calcbin.equals("bin") ? "CHECKED" : ""%>/>bin
                          <input name="calcbin" type="radio" value="hex" <%=calcbin.equals("hex") ? "CHECKED" : ""%>/>hex
                          <input name="calcbin" type="radio" value="oct" <%=calcbin.equals("oct") ? "CHECKED" : ""%>/>oct
                          <input name="calcbin" type="radio" value="fac" <%=calcbin.equals("fac") ? "CHECKED" : ""%>/>n!
                          <br />
                          <br />
                          </div>
                          <div>
                          <INPUT TYPE="SUBMIT" name="calcAction" id="1" value="sub"/>
                          <INPUT TYPE="SUBMIT" name="calcAction" id="2" value="add"/>
                          <INPUT TYPE="SUBMIT" name="calcAction" id="3" value="div"/>
                          <INPUT TYPE="SUBMIT" name="calcAction" id="4" value="multi"/>
                          <INPUT TYPE="SUBMIT" name="calcAction" id="5" value="mod" />
                          <Input type="submit" name="do" value="resolve" />
                          </div>
                          
                          </form>
                          



                          the portaloutput follows:


                          javax.portlet.PortletException: org.apache.jasper.JasperException: Unable to compile class for JSP

                          An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/view.jsp
                          Generated servlet error:
                          D:\jboss_portal_2.0-jboss_4.0.1sp1\jboss_portal_2.0-jboss_4.0.1sp1\server\default\work\jboss.web\localhost\OioCalculator\org\apache\jsp\WEB_002dINF\jsp\view_jsp.java:52: cannot find symbol
                          symbol : variable renderResponse
                          location: class org.apache.jsp.WEB_002dINF.jsp.view_jsp
                          PortletURL jaURL = renderResponse.createActionURL();
                          ^


                          An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/view.jsp
                          Generated servlet error:
                          D:\jboss_portal_2.0-jboss_4.0.1sp1\jboss_portal_2.0-jboss_4.0.1sp1\server\default\work\jboss.web\localhost\OioCalculator\org\apache\jsp\WEB_002dINF\jsp\view_jsp.java:53: cannot find symbol
                          symbol : variable renderRequest
                          location: class org.apache.jsp.WEB_002dINF.jsp.view_jsp
                          PortletSession session = renderRequest.getPortletSession();
                          ^


                          An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/view.jsp
                          Generated servlet error:
                          Note: D:\jboss_portal_2.0-jboss_4.0.1sp1\jboss_portal_2.0-jboss_4.0.1sp1\server\default\work\jboss.web\localhost\OioCalculator\org\apache\jsp\WEB_002dINF\jsp\view_jsp.java uses unchecked or unsafe operations.


                          An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/view.jsp
                          Generated servlet error:
                          Note: Recompile with -Xlint:unchecked for details.
                          2 errors



                          at org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:127)
                          at de.oio.portlets.CalculatorPortlet.doView(CalculatorPortlet.java:41)
                          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:154)
                          at javax.portlet.GenericPortlet.render(GenericPortlet.java:394)
                          at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeRequest(DispatcherInterceptor.java:143)
                          at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:171)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(PreferencesInterceptor.java:93)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94)
                          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:585)
                          at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:49)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
                          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
                          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:552)
                          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
                          at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.server.invocation.component.CacheInterceptor.invoke(CacheInterceptor.java:103)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
                          at org.jboss.portal.server.Component.invoke(Component.java:173)
                          at org.jboss.portal.server.invocation.portal.MainDispatcherInterceptor.invoke(MainDispatcherInterceptor.java:93)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.core.invocation.ViewInterceptor.invoke(ViewInterceptor.java:114)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:153)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:91)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)
                          at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)
                          at org.jboss.portal.server.PortalServer.invoke(PortalServer.java:195)
                          at org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:62)
                          at org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:55)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
                          at org.jboss.portal.core.servlet.TransactionFilter$1.run(TransactionFilter.java:78)
                          at org.jboss.portal.common.transaction.Transactions.requiresNew(Transactions.java:75)
                          at org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:74)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
                          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
                          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                          at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                          at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
                          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
                          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
                          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
                          at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
                          at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
                          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
                          at java.lang.Thread.run(Thread.java:595)

                          and as i said before it works in the pluto container and in the jedspeed2 portal

                          • 10. Re: problems with my own portlet
                            echoi1975 Newbie

                            hi, in your jsp,
                            did you include the following to initialize the portlet objects (renderrequest, renderresponse)?

                            <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

                            <portlet:defineObjects/>

                            then you should be able to reference renderrequest/response inside your scriplets...

                            • 11. Re: problems with my own portlet
                              Benjamin bratkus Newbie

                              thx for your tips, but the jsp is already fixed.

                              here is the running version

                              <%@ page import="de.oio.data.*" %>
                              <%@ page import="javax.portlet.*"%>
                              <%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="m"%>
                              <%@ taglib uri="/WEB-INF/portlet.tld" prefix="portlet"%>
                              <portlet:defineObjects/>
                              <%
                              String calcAction = (String)session.getAttribute("calcAction");
                              String calcbin = (String)session.getAttribute("calcbin");
                              %>
                              <P>This is a very simple calculator (can only add).</P>
                              <div>
                              <br />
                              Result : <%= ((Calculator)session.getAttribute("testBean")).getSResult()%>
                              <br />
                              <br />
                              <br />
                              </div>
                              <form method="POST" action="<portlet:actionURL></portlet:actionURL>">
                              <div>
                              <INPUT TYPE="TEXT" NAME="sNumber1" id="sNumber1" VALUE="0" />
                              <INPUT TYPE="TEXT" NAME="sNumber2" id="sNumber2" VALUE="0" />
                              </div>
                              <br />
                              <div>
                              <input name="calcbin" type="radio" value="bin" <%=calcbin.equals("bin") ? "CHECKED" : ""%>/>bin
                              <input name="calcbin" type="radio" value="hex" <%=calcbin.equals("hex") ? "CHECKED" : ""%>/>hex
                              <input name="calcbin" type="radio" value="oct" <%=calcbin.equals("oct") ? "CHECKED" : ""%>/>oct
                              <input name="calcbin" type="radio" value="fac" <%=calcbin.equals("fac") ? "CHECKED" : ""%>/>n!
                              <br />
                              <br />
                              </div>
                              <div>
                              <INPUT TYPE="SUBMIT" name="calcAction" id="1" value="sub"/>
                              <INPUT TYPE="SUBMIT" name="calcAction" id="2" value="add"/>
                              <INPUT TYPE="SUBMIT" name="calcAction" id="3" value="div"/>
                              <INPUT TYPE="SUBMIT" name="calcAction" id="4" value="multi"/>
                              <INPUT TYPE="SUBMIT" name="calcAction" id="5" value="mod" />
                              <Input type="submit" name="do" value="resolve" />
                              </div>
                              
                              </form>


                              thanks to roy for helping me
                              ben