Servlet as Portlet

Hi,
I have a servlet called Fileupdown.class that I have placed in the Apache/Jserv/servlets directory. When I call it from outside of Portals it works fine. I have made it into a Portlet by:
1) adding to the zone.properties file the following:
servlet.Fileupdown.code=oracle.portal.provider.v1.http.HttpProvider
servlet.Fileupdown.initArgs=provider_root=D:\providers\fileupdown, sessiontimeout=1800000, debuglevel=1.
2) creating the following provider.xml file and placing it in D:\providers\Fileupdown:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?providerDefinition version="2.0"?>
<!DOCTYPE provider [
<!ENTITY virtualRoot "/servlets/">
<!ENTITY physicalRoot "D:\Oracle\iSuites\Apache\Jserv\servlets">
]>
<provider class="oracle.portal.provider.v1.http.DefaultProvider">
<session>true</session>
<useOldStyleHeaders>false</useOldStyleHeaders>
<portlet class="oracle.portal.provider.v1.http.DefaultPortlet">
<id>1</id>
<name>Fileupdown</name>
<title>Fileupdown</title>
<description>Fileupdown Portlet</description>
<timeout>30</timeout>
<timeoutMessage>FileUpdown timed out</timeoutMessage>
<acceptContentType>text/html</acceptContentType>
<showEdit>false</showEdit>
<showEditToPublic>false</showEditToPublic>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<renderer class="oracle.portal.provider.v1.RenderManager">
<appPath>/servlets</appPath>
<appRoot>D:\Oracle\iSuites\Apache\Jserv\servlets</appRoot>
<contentType>text/html</contentType>
<charSet>UTF-8</charSet>
<renderContainer>true</renderContainer>
<renderCustomize>false</renderCustomize>
<showPage class="oracle.portal.provider.v1.http.Servlet20Renderer">
<servletClass>Fileupdown</servletClass>
</showPage>
</renderer>
<personalizationManager class="oracle.portal.provider.v1.FilePersonalizationManager" >
<dataClass>oracle.portal.provider.v1.NameValuePersonalizationObject</dataClass>
</personalizationManager>
</portlet>
</provider>
3) I registered the provider with Portal and place the portlet on a page. When I view the Portlet I am getting the providers test page appearing in the portlet.
What else do I need to do or what am I doing wrong?
Thanks for any help you can provide.
JAS
null

There are a few differences between a servlet that runs on its own (in stand-alone mode), and a servlet that runs as a portlet.
Some of the changes you need to make to your original servlet: parameter passing, session handling, styles (CSS).
At the same time there are a number of services that the portal provides you: user management, security, caching, etc.
Peter

Similar Messages

  • Reuse servlet as portlet- limitations??

    I reuse servlet as portlet, by registrating the "portlet" and adding the line servlet/servletname in a provider.xml file.
    My questions is, how this limit the portlet. What's the difference between a portlet and a servlet acting as a portlet. And what's best practise if you want to use a servlet as a portlet?!
    Thanks!

    There are a few differences between a servlet that runs on its own (in stand-alone mode), and a servlet that runs as a portlet.
    Some of the changes you need to make to your original servlet: parameter passing, session handling, styles (CSS).
    At the same time there are a number of services that the portal provides you: user management, security, caching, etc.
    Peter

  • Servlet to Portlet

    Hi,
    I'm able to convert my simple servlets into portlets but I've a servlet which generates a lot of html code creates a frame also. I'm not getting any errors while running this portlet but it's not showing anything on the browser. Am I supposed to do anything else. Any help will be appreciated.
    Thanks,
    Chetan

    According to the Primer on Rendering Portlets,
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Some constructs cannot be used simply because they do not display correctly in a table cell. Frames, for example, do not appear when inserted in a table.<HR></BLOCKQUOTE>
    Regards,
    -rh
    null

  • Servlet in portlet

    i'm unable to include servlets in portlets.cud anyone suggest me how to go for it?

    There are several ways of doing it. One such way is to use JSP
    portlet with <jsp:include> tag in it.
    Syntax: <jsp:include page="{relativeURL}" />
    Use the following link to learn how to create portlets out of
    existing java components
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/pdk/articles/how.to.build.java.portlet.existing.component.html
    If you are new to portlet development, please use the following
    link to go to Table Of Contents page and decide where to head :
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&12678_PDKHOME902_39847486.p_subid=249438&12678_PDKHOME902_39847486.p_sub_siteid=73&12678_PDKHOME902_39847486.p_edit=0
    -AMJAD.

  • Differences between Java Servlet and Portlets

    Hello,
    May anyone let me know the differences between Java Servlet, JavaBeans and Portlets? It seems quite similar to each other... By the way, what are differences between a servlet container and portlet container? Thank you.
    Charoite

    JavaBeans are totally different from servlets or portlets. JavaBeans can be used in just about any environment. A JavaBean is basically a java class with a no-arg constructor which follows certain naming conventions for its get and set methods.
    Servlets can only function in an "web containers" which are provided by application servers which support servlets. The main function of servlets is to process requests (usually http requests) and generate output (usually web pages). They usually perform validation and other processing and then delegate the web page generation to a jsp.
    Portlets are similar to servlets but rather than generating an entire web page, their output is relegated to a portion of a page. A single web page may contain the output of several portlets. These portlets can communicate with each other. The portlet container provides the functionality to merge the output of the various portlets and the infastructure required to support the portlets.

  • How can we pass the control from servlet to portlet ?

    Hi,
    we use PortletRequestDispatcher.include method to call the servlet.
    In my servlet, I have the following form information.
    out.println("<form method=\"post\" action=\"http://abc 40acce5.3a.com/portal/dt?display=Command\">");
    out.println("Enter value: ");
    out.println("<input type=\"text\" name=\"UserName\" value=\"\">");
    out.println("<center> "); out.println("<input type=\"submit\" value=\"Go Back Portlet\"> ");
    out.println("</center> ");
    out.println("</form>");
    When user click the submit button, the servlet will go to portlet first, then go to another page.
    is the url (action="http://abc40acce5.3a.com/portal/dt?display=Command) correct ?
    if not, what url we should use ?
    Can you help ?
    Thanks!

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • Servlet to portlet. can see test page but not my servlet

    Hello all.
    -I'm trying to register a very basic servlet (it just write a message in get or post methods) named mpi_servlet.class
    -I followed the instructions of "Packaging and Deploying Your Provider" and made the changes to the files.
    -Copy mpi_servlet.class at <war working directory>\WEB-INF\classes.
    -Write the following to <war working directory>\WEB-INF\providers\mpi\provider.xml.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>false</session>
    <useOldStyleHeaders>false</useOldStyleHeaders>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>MPI</name>
    <title>MPI Portlet</title>
    <description>MPI Portlet.</description>
    <timeout>10000</timeout>
    <timeoutMessage>MPI Portlet timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <showPage>/mpi_servlet</showPage>
    </renderer>
    </portlet>
    </provider>
    -Write the following to <war working directory>\WEB-INF\deployment\mpi.properties
    serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
    loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
    showTestPage=true
    definition=providers/mpi/provider.xml
    autoReload=true
    -Zip and rename to mpi.war
    -Copy mpi.war to <ear working directory>
    -Write the following to <ear working directory>\META-INF\application.xml
    <?xml version="1.0"?>
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
    <display-name>Template Application</display-name>
    <description>This is a template application</description>
    <module>
    <web>
    <web-uri>mpi.war</web-uri>
    <context-root>/mpi</context-root>
    </web>
    </module>
    </application>
    - Zip and rename to mpi.ear
    -After deploy it at OEM Console and try "http://myhost:7777/mpi/providers/" I got the test page
    Congratulations! You have successfully reached your Provider's Test Page.
    Checking for components:
    Portlets are:
    MPI
    Recognizing initialization parameters.
    invalidation_caching : true
    - The problem is that I cannot access my servlet at "http://myhost:7777/mpi/mpi_servlet/"

    Hi Marko,
    You need to update the web.xml file in WEB-INF folder
    Add the following lines to it,
    <servlet>
    <servlet-name>mpilogin</servlet-name>
    <servlet-class>add the fully qualified class file name here</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>mpilogin</servlet-name>
    <url-pattern>/mpi_servlet</url-pattern>
    </servlet-mapping>
    - Abhinav

  • Is it possible to use servlets with portlets?

    I am building a Java portlet that will update a user's OID repository data. We are using it to provide a more user-friendly interface than the default Oracle "My Account" link on Portal.
    That portlet is made up by a JSP that submits the information to a Servlet that, in turn, forwards it to another servlet (using RequestDispatcher) that does the actual OID update and then it should redirect the page flow back to the original JSP to show the user a confirmation message.
    Things run fine up to where the OID entry is being updated correctly, but I am unable to redirect the flow back to the original JSP.
    JSP ----> Servlet ----> Servlet
    ^------------------------------|
    I did a little test and found out that after submitting the form to the 1st servlet, I cannot get a PortletRenderRequest object in that servlet.
    I have read the available documentation about building portlets but I cannot get a clear picture as to how I am supposed to build a portlet that uses servlets, or if it is possible at all.
    Is there a way to do this? Or if there isn't, can anyone provide an alternative?
    Thank you in advance.
    Best regards,
    Aldo Herrera

    If you mean the application AIM for Mac, it will depend on your download speed.
    If you mean "Can I use iChat with an AIM a screen name and does it cost anything ?" then the answer is Yes you can and no it does not cost and there is no download to do.
    If you mean "Can I use the AIM service with an @mac screen name and can this be done for free ? " then the answer is again yes.
    A trail account cost nothing and will work in ichat after the 60 days is up
    A Paid for but Lapsed account will also work in iChat and for this purpose can now be considered free.
    As I said and hinted at before your first question does not make it clear what you are actually asking.
    The Application AIM for Mac is stuck at version 4.7 and does not do Video or Audio Only chats.
    It has things that are useful in tweaking Buddy Lists in iChat but it is not specifically needed to contact AIM Buddies.
    9:00 PM Tuesday; June 24, 2008

  • Porting Servlets to Portlets

    Hi,
    I want to port a servlet application to a portlet application. In particular, I want to port this method, which works with Servlets so that it works with Portlets:
    public void jasperReport(String name, String type, ResultSet data, Map params) {
    // Look up the compiled report design resource
    ExternalContext econtext = getExternalContext();
    InputStream stream = econtext.getResourceAsStream(PREFIX + name + SUFFIX);
    // make sure cursor is in front of the first record
    try {
    data.beforeFirst();
    } catch (Exception e) {
    throw new FacesException(e);
    // Fill the requested report with the specified data
    JRResultSetDataSource ds = new JRResultSetDataSource(data);
    JasperPrint jasperPrint = null;
    try {
    jasperPrint = JasperFillManager.fillReport(stream, params, ds);
    } catch (RuntimeException e) {
    throw e;
    } catch (Exception e) {
    throw new FacesException(e);
    } finally {
    try {
    stream.close();
    } catch (IOException e) {
    // Configure the exporter to be used, along with the custom
    // parameters specific to the exporter type
    JRExporter exporter = null;
    HttpServletResponse response = (HttpServletResponse)
    econtext.getResponse();
    FacesContext fcontext = FacesContext.getCurrentInstance();
    try {
    response.setContentType(type);
    if ("application/pdf".equals(type)) {
    exporter = new JRPdfExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
    response.getOutputStream());
    } else if ("text/html".equals(type)) {
    exporter = new JRHtmlExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,
    response.getWriter());
    // Make images available for the HTML output
    HttpServletRequest request =
    (HttpServletRequest)
    fcontext.getExternalContext().getRequest();
    request.getSession().setAttribute(
    ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,
    jasperPrint);
    exporter.setParameter(
    JRHtmlExporterParameter.IMAGES_MAP, new HashMap());
    // Requires mapping /image to the imageServlet in the web.xml
    // This servlet serves up the px images for spacing
    exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image=");
    } catch (RuntimeException e) {
    throw e;
    } catch (Exception e) {
    throw new FacesException(e);
    // Enough with the preliminaries ... export the report already
    try {
    exporter.exportReport();
    } catch (RuntimeException e) {
    throw e;
    } catch (Exception e) {
    throw new FacesException(e);
    // Tell JavaServer Faces that no output is required
    fcontext.responseComplete();
    Thanks,
    Marc
    Message was edited by:
    marc_nikko

    so go ported! Please don't expect people to do work for you here.
    If you have problem describe it. If you need where to start google portlet, and if you are still lost on where to begin, be kind and ask "where do I start" here.

  • Convert existing servlet into portlet

    Hi
    We have a set of Java servlets running on apache and jserv and not using Portal. My task is to be able to convert these into Portal.All of the existing servlets are extends/use our existing set of classes. They display a list of rows in a table as HTML with a URL pointing back to the same servlet or different servlet based on logic, with set of parameter. With my current setup (all on a Win2000 system), I have installed the JPDK samples and it is working fine, but have now got stuck in applying the concepts to my own existing servlets. So can you help me how can i convert an existing Java servlet into Portal?
    First i tried the "how to build your own java portal exercise" and it runs fine. But when i tried to run simple servlet to convert into portlet, i got the following error. I am really confuse about Renderer. Is it nessessary to make Renderer or use Default Renderer? I will really thankful to you if you give me some idea.
    I changed the following in to conf/jserv properties.
    1. set the " <showPage class="AgeServlet"/> " in provider.xml
    2. in zone property
    servlet.AgeServlet.code=oracle.portal.provider.v1.http.HttpProvider
    servlet.AgeServlet.initArgs=provider_root=C:\MyProvider,sessiontimeout=1800000,debuglevel=1
    3. In jserv property
    wrapper.classpath=C:\MyProvider\MyClasses
    Where i put my AgeServlet.class
    4.Stop and Start the Oracle HTTP Server.
    When i try to run url(http://host.domain:port/servlet/AgeServlet) it gives me following error.
    Error!
    javax.servlet.ServletException: Unable to initialize new provider instance: java.lang.reflect.InvocationTargetException
    My servlet is
    // JDK1.2.2 module
    import java.io.*;
    import java.util.*;
    //JSDK modules
    import javax.servlet.*;
    import javax.servlet.http.*;
    * class to promt for the year of birth
    * and calculate the age.
    * @author Vipul Patel [email protected]
    public class AgeServlet extends HttpServlet {
    * method to call doPost
    * @param request
    * @param response
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    doPost(request, response);
    * method to call calculateAge
    * @param request
    * @param response
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    getAge(request, response);
    * method for display html form for get year
    * and calculate the age
    * @param request
    * @param response
    public void getAge(HttpServletRequest request,
    HttpServletResponse response) {
    response.setContentType("text/html");
    PrintWriter out = null;
    try {
    out = response.getWriter();
    } catch(IOException ex) {
    ex.printStackTrace();
    String age = calculateAge(request, response);
    // create and send html form to user
    out.println("<html>");
    out.println("<body>");
    out.println("<title>Age calculation</title>");
    out.println("<form action=\"/servlets/AgeServlet\" method=get>");
    out.println(age + "<br>");
    out.println("Enter the Year of Birth<input type=\"text\" name=ageyear><br>");
    out.println("<input type=submit value=submit>");
    out.println("<input type=\"reset\" value=\"reset\">");
    out.println(" </form>");
    out.println("</body>");
    out.println("</html> ");
    * calculate the age
    * @param request
    * @param response
    * @return age
    public String calculateAge(HttpServletRequest request,
    HttpServletResponse response) {
    String age= "";
    String year="";
    int curr_year;
    int count_year = 0;
    year = request.getParameter("ageyear");
    Date date = new Date();
    String today_date = date.toString();
    today_date = today_date.substring(24,29);
    curr_year = Integer.parseInt(today_date);
    if((year != null) && (!year.equals("")) ) {
    int get_year = Integer.parseInt(year);
    if(get_year > curr_year) {
    age = "You enterd wrong entry!!!!!";
    } else {
    for (int i=get_year; i<=curr_year; i++) {
    count_year++;
    age ="Your age is: " + String.valueOf(count_year);
    } else {
    age = "Enter the year of Birth";
    return age;
    Thank you very much!!
    Vipul Patel
    null

    Hi
    Now i changed my code and it display my contents on broweser. But when i submit the form i cannot able to forward my request to same page. Any suggestion please.
    Thanks.
    changed code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import oracle.portal.provider.v1.*;
    import oracle.portal.provider.v1.http.*;
    public class AgeServlet extends HttpServlet {
    * Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    * Process the HTTP Post request
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    doGet(request,response);
    * Get Servlet information
    * @return java.lang.String
    public String getServletInfo() {
    return "AgeServlet Information";
    * Process the HTTP Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,
    IOException {
    PortletRenderRequest pr = (PortletRenderRequest)request.getAttribute(HttpProvider.PORTLET_RENDER_REQUEST);
    try {
    renderShow(pr);
    } catch (Exception e) {
    private void renderShow(PortletRenderRequest pr)
    throws PortletException {
    try {
    /*HttpServletRequest request = (HttpServletRequest)
    pr.getAttribute(HttpProvider.SERVLET_REQUEST);
    HttpServletResponse response = (HttpServletResponse)
    pr.getAttribute(HttpProvider.SERVLET_RESPONSE); */
    PrintWriter out = pr.getWriter();
    pr.setContentType("text/html; charset=WINDOWS-1252");
    pr.setContentType("text/html");
    //PrintWriter out = response.getWriter();
    // create and send html form to user
    out.println("<html>");
    out.println("<body>");
    out.println("<title>Age calculation</title>");
    out.println("<form method=\"POST\" action=\""+HttpPortletRendererUtil.htmlFormActionLink(pr,PortletRendererUtil.PAGE_LINK) +"\">");
    HttpPortletRendererUtil.htmlFormHiddenFields(pr,PortletRendererUtil.PAGE_LINK);
    String ageParam = HttpPortletRendererUtil.portletParameter(pr, "ageyear");
    String submitParam = HttpPortletRendererUtil.portletParameter(pr, "mySubmit");
    out.println("Enter the Year of Birth<input type=\"text\" name=\" + ageParam + \"><br>");
    out.println("<input type=\"submit\" name=\" + submitParam + \" value=\"submit\">");
    out.println(" </form>");
    out.println("</body>");
    out.println("</html> ");
    if (pr.getParameter(submitParam) != null ) {
    out.println("You are "+ calculateAge(pr,out));
    } catch (Exception e) {
    * calculate the age
    * @param request
    * @param response
    * @return age
    public String calculateAge(PortletRenderRequest pr, PrintWriter out) {
    String age= "";
    String year="";
    int curr_year;
    int count_year = 0;
    year = pr.getParameter("ageParam");
    Calendar rightNow = Calendar.getInstance();
    curr_year = rightNow.get(Calendar.YEAR);
    if((year != null) && (!year.equals(""))) {
    int get_year = Integer.parseInt(year);
    if(get_year > curr_year) {
    age = "You enterd wrong entry!!!!!";
    } else {
    count_year = curr_year - get_year;
    age = String.valueOf(count_year);
    } else {
    age = "Enter the year of Birth";
    return age;
    Error message
    Wed, 08 Aug 2001 00:04:55 GMT
    No DAD configuration Found
    DAD name:
    PROCEDURE : !null.wwpob_page.show
    URL : http://ntserver:80/pls/null/!null.wwpob_page.show?_pageid=null
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=ntserver
    REQUEST_METHOD=POST
    QUERY_STRING=_pageid=null
    PATH_INFO=/null/!null.wwpob_page.show
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=172.16.0.27
    SERVER_P ROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=52
    HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) RPT-HTTPClient/0.3-2S
    HTTP_HOST=ntserver
    HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate, x-gzip, compress, x-compress
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=portal30=3.0,en,us,AMERICA,7044103775205D94AE891C2EB8EC88ECB9671CC56E5524FFBAE3419299B938639A5159BD1DF60D6A57362DA77173DED757521073FAB521072C6E83A9EDD32D5DD1E3859A48A75
    9C1537468FDD6B2AF6C36692DA501614F9B;
    portal30_sso=3.0,en,us,AMERICA,C62FD25D23E9A2D66948EDCD463B2CCD50050AD8D02B7EF55A61DBC14E253387C44B1A5D9668CC141CE38DD4455FEF3D28188817CC1678D8F0C1F642C95CB0E34406EFC41D4A36E1A2915
    182A5FC121377E258FA76480763
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=
    null

  • Error while using spring multipart in Oracle Weblogic 10.3.6 - org.springframework.web.portlet.dispatcherportlet - could not complete request

    Hi there,
    We were using the spring multipart for the purpose of uploading a file into our application running on Oracle Weblogic Server 10.3.2 using spring framework.
    It was working fine until we upgraded our server to the version 10.3.6
    After the upgrade, we started getting the below error while we try to submit the form after selecting the file to be uploaded.
    2013-11-20 06:11:29,923 ERROR||[[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)']||[email protected]||org.springframework.web.portlet.DispatcherPortlet||Could not complete request
    javax.portlet.PortletException: Error occured during request processing: javax/portlet/ActionRequest
            at org.springframework.web.portlet.DispatcherPortlet.doActionService(DispatcherPortlet.java:668)[org.springframework.web.portlet-3.0.2.RELEASE.jar:3.0.2.RELEASE]
            at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:519)[org.springframework.web.portlet-3.0.2.RELEASE.jar:3.0.2.RELEASE]
            at org.springframework.web.portlet.FrameworkPortlet.processAction(FrameworkPortlet.java:460)[org.springframework.web.portlet-3.0.2.RELEASE.jar:3.0.2.RELEASE]
            at com.bea.portlet.container.PortletStub.doAction(PortletStub.java:901)[portlet-container.jar:10.3.6 ]
            at com.bea.portlet.container.FilterChainGenerator.runFilterChain(FilterChainGenerator.java:96)[portlet-container.jar:10.3.6 ]
            at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:314)[portlet-container.jar:10.3.6 ]
            at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:679)[portlet-container.jar:10.3.6 ]
            at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireProcessAction(JavaPortletContent.java:209)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.controls.portlet.JavaPortlet.fireProcessAction(JavaPortlet.java:1299)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.controls.portlet.JavaPortlet.raiseChangeEvents(JavaPortlet.java:805)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:316)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:341)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:219)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)[netuix_servlet.jar:10.3.6 ]
            at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:731)[netuix_servlet-full.jar:10.3.6 ]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)[javax.servlet_1.0.0.0_2-5.jar:2.5]
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)[content_servlet.jar:10.3.6 ]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)[p13n_ejb.jar:10.3.6 ]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.rogers.business.servlet.filter.GenericContentFilter.doFilter(GenericContentFilter.java:50)[GenericContentFilter.class:]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.rogers.business.servlet.filter.SessionExpiryFilter.doFilter(SessionExpiryFilter.java:82)[SessionExpiryFilter.class:]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.rogers.business.servlet.filter.ServletExceptionFilter.doFilter(ServletExceptionFilter.java:54)[ServletExceptionFilter.class:]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.rogers.business.servlet.seo.SEOUrlFilter.doFilter(SEOUrlFilter.java:87)[SEOUrlFilter.class:]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.rogers.business.servlet.filter.BusinessContextDetectionFilter.doFilter(BusinessContextDetectionFilter.java:75)[BusinessContextDetectionFilter.class:]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.rogers.business.servlet.filter.LanguageProvinceSelectionFilter.doFilter(LanguageProvinceSelectionFilter.java:160)[LanguageProvinceSelectionFilter.class:]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)[content_servlet.jar:10.3.6 ]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)[weblogic.jar:10.3.6.0]
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)[com.bea.core.weblogic.security.identity_1.2.0.0.jar:1.2.0.0]
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)[com.bea.core.weblogic.security.wls_1.0.0.0_6-2-0-0.jar:6.2.0.0]
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)[weblogic.jar:10.3.6.0]
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)[weblogic.jar:10.3.6.0]
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)[com.bea.core.weblogic.workmanager_1.11.0.0.jar:1.11.0.0]
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)[com.bea.core.weblogic.workmanager_1.11.0.0.jar:1.11.0.0]
    We are using "ActionMapping" to call the action method in our controller from the JSP form.
    Have anyone faced this error before?
    Any help would be much appreciated.
    Thanks,
    Lan

    Hi Lan,
    Did you get any resolution for the above issue ?
    If yes can you share it as we also ran into this.
    Regards
    Manu

  • Problem Trying to minimize userlogin portlet

    Hi,
    I have a UserLogin portlet which is working, but I would like to have minimized initially. My index.jsp is shown below, where I have tried to use PortletBackingContext to do the minimize, but I am getting an error which seems to be occurring when I try to access the context:
    Errors found in C:\bea\user_projects\applications\myjlportal\app\portlets\userLogin\index.jsp:
    Error at line 63 column 34:
    Description: No variable, field, type, or package with this name could be found at this location.
    Warning at line 67 column 23:
    Description: This file does not exist.
    Found 1 error(s) and 1 warning(s).
    Can anyone tell me what the problem is?
    Perhaps using a backing context is not the right way to go about doing this. If so, can anyone tell me how I might do it?
    Thanks,
    Jim
    ===============================================
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ page import="com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext" %>
    <netui-template:template templatePage="/resources/jsp/template.jsp">
    <netui-template:setAttribute value="login" name="title"/>
    <netui-template:section name="bodySection">
    <netui:form action="login">
    <table class="tablebody">
    <tr class="tablebody">
    <td>Username:</td>
    <td>
    <netui:textBox dataSource="{actionForm.username}"/>
    </td>
    </tr>
    <tr class="tablebody">
    <td>Password:</td>
    <td>
    <netui:textBox dataSource="{actionForm.password}" password="true"/>
    </td>
    </tr>
    <tr>
    <td valign="top">
    Request:
    </td>
    <td class="prompt">
    You should see an indication that you're logged in below...
    <!---Fill this form with fields such as:xxx <netui:textBox dataSource="{actionForm.request.xxx}" />-->
    </td>
    </tr>
    </table>
     
    <netui:button value="Submit" type="submit"/>
    </netui:form>
    <%Object res = request.getAttribute ( "results" );%><%=(res == null ? "<i>none</i><br/>" : ( res + "<br/>"))%>
    <% if (request.getRemoteUser() != null) { %>
    <BR>you are logged in as: <%=request.getRemoteUser()%>
    <br> <%
    else
    {            %>
    <BR>you are not logged in
    <%
    %>
    <%
    PortletBackingContext contextjim = PortletBackingContext.getPortletBackingContext(request);
    //contextjim.setupModeChangeEvent(WindowCapabilities.VIEW.getName());
    contextjim.setupStateChangeEvent(WindowCapabilities.MINIMIZED.getName());
    %>
    <br>
    </netui-template:section>
    </netui-template:template><pre></pre>

    hi,
    to change page, change status of a portlet use backingfiles like this one:
    public boolean preRender(HttpServletRequest request, HttpServletResponse response) {
    //log("preRender called");
    PostbackURL url = PostbackURL.createPostbackURL(request, response);
    HttpSession session = request.getSession();
    String portletName = (String) session.getAttribute(PORTLET_NAME_PARAM);
    String pageName = (String) session.getAttribute(PAGE_NAME_PARAM);
    if (pageName != null) {
    session.removeAttribute(PAGE_NAME_PARAM);
    url.removeParameter(GenericURL.PAGE_LABEL_PARAM);
    url.addParameter(GenericURL.PAGE_LABEL_PARAM, (String)pages.get(pageName));
    if (portletName != null) {
    session.removeAttribute(PORTLET_NAME_PARAM);
    //url.removeParameter(GenericURL.PAGE_LABEL_PARAM);
    url.addParameter(GenericURL.WINDOW_LABEL_PARAM, portletName);
    if (session.getAttribute(MAXIMIZE_METHOD) != null) {
    log("maximize portlet: " + portletName + " and change page to: " + (String)pages.get(pageName));
    session.removeAttribute(MAXIMIZE_METHOD);
    //url.addParameter(GenericURL.PAGE_LABEL_PARAM, LOGIN_PAGE_LABEL);
    url.addParameter(GenericURL.STATE_PARAM, "maximized");
    } else {
    log("normalize portlet: " + portletName + " and change page to: " + (String)pages.get(pageName));
    session.removeAttribute(NORMAL_METHOD);
    url.addParameter(GenericURL.STATE_PARAM, "normal");
    //url.addParameter(GenericURL.PAGE_LABEL_PARAM, FIRST_PAGE_LABEL);
    try {
    response.sendRedirect(url.toString());
    } catch (Exception e) {
    e.printStackTrace();
    return true;
    hope this helps
    ciao

  • Coding for portlet

    Hi,
    I need to write the portlet for Sun Java System Portal Server 6 2005Q4, but our application
    will be used a lot servlets (servlet call servlet).
    How can we call the servlet from portlet ?
    Can someone help ?
    Thanks!

    Hi,
    Thanks a lot!
    It works for me, but I got another problem as below.
    We use "PortletRequestDispatcher" to call servlet from portlet, but how can we go back to portlet page from servlet after the servlet page finish it's action.
    I mean that how can we pass control from servlet to portlet page ?
    Can you help me ?
    Thanks!

  • JPF portlet and setupStateChangeEvent

    I have a JPF portlet as below
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet backingFile="com.wellsfargo.ws.weo.backing.EditBacking"
    definitionLabel="portlet_48" presentationClass="dashBoard" presentationId="dashBoard" title="test">
    <netuix:titlebar>
    <netuix:maximize/>
    <netuix:delete/>
    <netuix:edit contentUri="/content/presentation/test/test/TestController.jpf"/>
    </netuix:titlebar>
    <netuix:content>
    <netuix:pageflowContent action="start" refreshAction="refresh" contentUri="/content/presentation/test/test/TestController.jpf"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    JPF code:
    package content.presentation.test.test;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    import com.bea.netuix.servlets.controls.window.WindowCapabilities;
    import com.bea.netuix.servlets.controls.window.WindowState;
    import com.bea.wlw.netui.pageflow.Forward;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    * @jpf:controller
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
    * <view-properties>
    * <pageflow-object id="pageflow:/content/presentation/test/test/TestController.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property value="80" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="page:index.jsp">
    * <property value="160" name="x"/>
    * <property value="160" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="page:edit.jsp">
    * <property value="260" name="x"/>
    * <property value="160" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#edit.jsp#@action:begin.do@">
    * <property value="116,170,170,224" name="elbowsX"/>
    * <property value="52,52,152,152" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="action:start.do">
    * <property value="180" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#success#index.jsp#@action:start.do@">
    * <property value="144,144,160,160" name="elbowsX"/>
    * <property value="52,106,106,116" name="elbowsY"/>
    * <property value="West_1" name="fromPort"/>
    * <property value="North_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * </view-properties>
    public class TestController extends PageFlowController
    // Uncomment this declaration to access Global.app.
    // protected global.Global globalApp;
    // For an example of page flow exception handling see the example "catch" and "exception-handler"
    // annotations in {project}/WEB-INF/src/global/Global.app
    * This method represents the point of entry into the pageflow
    * @jpf:action
    * @jpf:forward name="success" path="edit.jsp"
    protected Forward begin()
    PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(getRequest());
    String state = WindowCapabilities.MAXIMIZED.getName();
    if(pbc != null)
    pbc.setupStateChangeEvent(state);
    String title = pbc.getTitle();
    getRequest().setAttribute("message", "In the edit page");
    return new Forward("success");
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    protected Forward start()
    PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(getRequest());
    pbc.setupStateChangeEvent(WindowCapabilities.NORMAL.getName());
    getRequest().setAttribute("message", "Hello");
    return new Forward("success");
    Question: The portlet is not getting maximized when I click on edit button in my portlet.

    Hi,
    The Solution is very straight forward.If you are creating a JavaPageFlow based portlet then in JSP you must use beehive netui tag.If you are using simple jsp tag then it will not fullfill your requirement.
    Create a pageflow ,in the index.jsp page create a form(with <netui:form action="submitData">) tag.Create two text boxes(<netui:text>) and then create a form bean in the controller which will be associated with the action of the form.
    In the controller's submitData action put the value in the request or session and forward to displayData.jsp.
    Now create a portlet out of this pageFlow and put on the portal file.
    Thanks
    Bishnu
    Regards
    Bishnu

  • Portlet error

    Hello,
    I have an application running with some portlets but when I try to drag couple
    of Documentum portlets, it throws the following error:
    Thanks for your time.
    Satish
    <Apr 20, 2004 1:29:06 PM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext(id=34
    87629,name=T3_POCPortal,context-path=/T3_POCPortal)] Servlet failed with Excepti
    on java.lang.NullPointerException
    at com.bea.netuix.servlets.controls.portlet.JavaPortlet.getPortletInfo(J
    avaPortlet.java:827)
    at com.bea.netuix.servlets.controls.portlet.JavaPortlet.init(JavaPortlet
    .java:168)
    at com.bea.netuix.nf.ControlLifecycle$1.visit(ControlLifecycle.java:149)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:281)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:117)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:165)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java
    :357)
    at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServle
    t.java:226)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.j
    ava:607)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6356)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

    I got that working. My web.xml file is missing some elements.
    Thanks
    "Satish" <[email protected]> wrote:
    >
    Hello,
    I have an application running with some portlets but when I try to drag
    couple
    of Documentum portlets, it throws the following error:
    Thanks for your time.
    Satish
    <Apr 20, 2004 1:29:06 PM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext(id=34
    87629,name=T3_POCPortal,context-path=/T3_POCPortal)] Servlet failed with
    Excepti
    on java.lang.NullPointerException
    at com.bea.netuix.servlets.controls.portlet.JavaPortlet.getPortletInfo(J
    avaPortlet.java:827)
    at com.bea.netuix.servlets.controls.portlet.JavaPortlet.init(JavaPortlet
    .java:168)
    at com.bea.netuix.nf.ControlLifecycle$1.visit(ControlLifecycle.java:149)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:281)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.j
    ava:290)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:117)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:165)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java
    :357)
    at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServle
    t.java:226)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.j
    ava:607)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6356)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

Maybe you are looking for

  • Accounting Entries for Materials Return from Production Order

    Dear Gurus, I have a scenario here that a raw material, valuated at moving average = 151 and qty = 100, was issued to a production order last month. Due to some issue the order was not completed for a while and 93 qty was  consumed for the order and

  • Flex mobile orientation: force portrait mode and then allow auto orientation

    I'm creating a flex mobile project and I want to force the app to portrait orientation when I click a button, and when I click other button allow again to change the orientation. This is my code when I click the first button, where I want to force po

  • Media objects - including external video?

    How can I insert a video file from external url in my adobe rome project, maybe by popup? Up to now I find only the way to include selected Youtube-videos or local videos on my computer. Thanks

  • Upgrading Robo 5.0 files to 7.0

    Hi, I need to upgrade the Robo files created in Robo 5.0 to 7.0. Can anyone please let me know what are the issues that would encounter while upgrading? As of now, I have not faced any problems with styles, links and others when I have upgraded. But

  • Finder-having files in mult folders w/o duplicating

    I have a multitude of files and photos that I would like to have in multiple folders in finder but do not want to copy/duplicate them and as such take up more disk space. Several of the photos are RAW format and the files contain several photos that