JPDK Samples? Nothing in my Portlets!

Server: UNIX
DB: 8.1.7
Portal: 3.08
Installed the JPDK according to the instructions and have got the sample to work as well as registered the Provider.
I can see all of the sample portlets with descriptions in the repository but when the portlet is added to a page it is blank. The only portlet that displays anything is SampleRenderer example.
I have not seen any errors in the portal but have noticed the following errors reoccuring in the jserv.log file:
1. ajp12: Servlet Error: ClassNotFoundException:
jpdk]
2. sample/Not Found: NoClassDefFoundError: oracle.jsp
.JspServlet
Does anyone have any ideas as to what could be the problem?
Thanks, Michael
null

Michael,
You are seeing this error message because the servlet container cannot find the classes necessary to parse and compile JSPs.
I suggest you ensure your server's classpath caontains the ojsp.jar file from the Oracle JSP Engine (required for the JPDK).
If you are using iAS (or Apache/JServ) you can verify the server's classpath by going to the JServ statuc page at http://your.server.name/jserv/
Regards,
Gareth

Similar Messages

  • JPDK Sample Provider compile error

    Hi
    I have installed 'OracleAS Containers for J2EE Pre-configured PDK', version 9.0.4.
    The Portlal tools are running fine, but the 'JPDK Sample Provider' fails with a compile error:
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\pdk-container2\j2ee\home\application-deployments\jpdk\jpdk\persistence\_pages\_htdocs\_testpage\_TestPage.java.
    I have set the PART and JAVA_HOME environment to point to a jsdk:
    java -version
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode).
    Any ideas???

    By setting the home, are you setting the JAVA_HOME to a proper JDK installation, and not to the JRE installation?
    thanks,
    Harsha

  • Problems in pdk and jpdk samples?

    Any known problems in the samples externalApp and iFame that comes with the latest PDK and JPDK?
    I tried to install these samples by following exactly the steps in the installation html files. But, when trying to test the installation in the last step. The error messages showed up:
    "Forbidden
    You don't have permission to access /servlet/flightsprov on this server."
    "Forbidden
    You don't have permission to access
    /servlet/iframe on this server."
    By the way, there is no "externalApp.jar in the jpdk
    Do I miss any thing? Are there walkaround?
    null

    This post is best suited to the Oracle Portal Development Kit (PDK) forum.
    thanks

  • Repository does not display JPDK samples

    Hello,
    I've seen several threads for people having the same issue as me, where registering a web provider appears to work, but it ends up not being displayed in the repository and the Refresh Errors page displays an HTTP_PROV_EXEC_EXCEPTION, however I am still unable to get it to work. I have tried both the JPDK and the URLServices samples. I have tried registering with hostname.domain, hostname, localhost, IP address. Does anyone have any advice for what to try next?
    Thanks,
    Damian

    Hi Aradhana ,
    1) On the menu bar, select Help->Check for updates.
    2) Select the ‘Skip This Page Next Time’ checkbox and then click Next.
    3) Select the ‘Install From Local File’ radio button and click the Browse button.
    4) Browse to ‘/apps/middleware/Oracle_ECM1/ucm/Distribution/RIDC/jdev’ directory, select the oracle.ucm.ridc.jdev-11.1.1.zip, and click Open.
    5) Click the Next button.
    6) Click the Finish button.
    7) On the Confirm Exit screen, click Yes.
    Follow these steps and then check if the issue still persists.
    Thanks
    Srinath

  • JPDK Samples

    When I test the IsItWorking servlet it works fine. I tried installing the PDK-Java Framework and Samples following the newest instructions. But when I try to put the URL http://servername/servlets/samples I get the following:
    NOT FOUND
    The request URL /servlets/sample was not found on this server.
    What could be causing this?
    I do have the debuglevel=1 in the servlet.sample.initArgs.
    I am using the provider.xml file found at D:\jpdk\providers\sample.
    Thanks.....JS

    Hi Julie,
    I know it's not very exciting, but try to go over the installation steps again.
    If it helps you, copy the corresponding parts of the config files here:
    1) jserv.properties: wrapper.classpath=<your_jar_file>
    2) zone.properties:
    Servlet Alias section: servlet.sample.code=oracle.portal.provider.v1.http.HttpProvider
    Aliased Servlet Init Parameters section:
    servlet.sample.initArgs=provider_root=D:\jpdk\providers\sample, sessiontimeout=1800000, debuglevel=1
    3) Have you modified the provider.xml file according to the physical location of the examples?
    What's the physical path your example directories (helloworld, lottery, etc.) are?
    Copy your provider.xml here.
    Regards,
    Peter

  • Sample Applications for Java Portlet Tools

    .

    Hello,
    You can find some 7.3 info here: http://help.sap.com/saphelp_nw73/helpdata/en/ca/6fbd35746dbd2de10000009b38f889/frameset.htm
    The examples @ http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproforJavaDemo+Kit should be fine even thought not 7.3 specific.
    WD API: http://help.sap.com/javadocs/NW73/SPS01/CE/wdr/com.sap.wdr/index.html
    Cheers,
    Trevor

  • Error while using the sample My Contacts portlet

    Hi,
    I am trying to use sample portlet "My Contacts" in my portal's page but getting
    the following error:
    Compilation of JSP File '/portlets/collaboration/nativedb/contact/Content/index.jsp'
    failed:
    Errors found in C:\bea\weblogic81\samples\portal\portalApp\AlFaris\portlets\collaboration\nativedb\contact\Content\index.jsp:
    Error at line 24 column 18:
    Description: No tag library could be found with this URI.
    Error at line 24 column 18:
    Description: This tag is not recognized.
    Error at line 60 column 10:
    Description: This tag is not recognized.
    Error at line 69 column 2:
    Description: This tag is not recognized.
    Error at line 70 column 2:
    Description: This tag is not recognized.
    Error at line 79 column 5:
    Description: This tag is not recognized.
    Error at line 81 column 60:
    Description: No variable or field with this name could be found at this location.
    Error at line 86 column 88:
    Description: This tag is not recognized.
    Error at line 140 column 8:
    Description: This tag is not recognized.
    Error at line 148 column 6:
    Description: This tag is not recognized.
    Error at line 152 column 6:
    Description: This tag is not recognized.
    Error at line 155 column 69:
    Description: No variable or field with this name could be found at this location.
    Error at line 171 column 6:
    Description: This tag is not recognized.
    Error at line 175 column 6:
    Description: This tag is not recognized.
    Error at line 184 column 40:
    Description: This tag is not recognized.
    Error at line 185 column 40:
    Description: This tag is not recognized.
    Error at line 186 column 42:
    Description: This tag is not recognized.
    Found 17 error(s) and 0 warning(s).
    I could use the above sample portlet in weblogic 8.1 without any problms but
    in weblogic 8.1 with SP2 I am getting the above error.
    Can anyone help me out of this situation.
    Thanks in advance

    Check the below link for a sample code.
    [http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm|http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]
    Hope this helps.
    Thanks,
    Balaji

  • PUBLISHING OC4J JSP as web portlet

    I have developed a JSP page in OC4j and want to publish this page on portal 3.0.9 as web portlet. I have created web provider and registered this page as portlet. When I view the portlet it comes as a Blank Page.
    Can anyone tell me how to publish a JSP page developed in OC4J as a web portlet? Can I publish JSP web pages developed in OC4J as web portlet without modifying any JSP code?
    I have installed all JPDK samples and they are working fine.
    Regards

    Here is what we are forced to do, because V2 has had a great delay in the time scheduling.
    Hope it helps. Anyone better ideas?
    Michael.
    ------------8<----------------8<----------------8<-----------
    1. use mod_proxy in httpd.conf
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /pof/ http://localhost:7779/pof/
    ProxyPassReverse /pof/ http://localhost:7779/pof/
    </IfModule>
    2. create JSP under JServ, use hidden fields to transfer parameter
    <%
    try{
    PortletRenderRequest portletRequest = (PortletRenderRequest) request.getAttribute(HttpPro
    vider.PORTLET_RENDER_REQUEST);
    ProviderUser pUser = (ProviderUser) portletRequest.getUser();
    String vUser = pUser.getName();
    if ( !vUser.equalsIgnoreCase("PUBLIC") )
    %>
    <input type="hidden" name="user" value="<%= vUser %>">
    <%
    3. in the action-Tag, use the mapped URL to connect to OC4J
    <form action="/pof/ ....

  • Configuring News Portlet

    Hi
    I have my Oracle 9ias Rel 2 with Infrastructure running on a Windows 2000 Server. i am trying to configure News Portlet(Downloaded from OTN), i already have my JPDK and Url services infrastructure installed on the machine.
    Have made the entries in jserv.properties and Zone.properties as reffered in the README Doc available with this portlet's ZIP file , now the problem is, unlike other Portlets this doc doesnt tell me how to test the sample(using an url), instead the DOC has some HTTP link under the heading 'Moreover.com news feed links '
    Can any one help me as to how to Register this provider, in that case what URL should i specify?
    is there any way of testing any Sample for the news Portlet?
    TIA
    Bijesh

    The registration process is simarly to any Web provider as shown below.
    1. On the Build tab of the Portal Design-Time Pages root page, click on Register a Portlet Provider within the portlet called Provider.
    2. Enter Provider information for the Sample.
    1. Name: NewsPortlet
    2. Display Name: News Portlet Portlet Samples
    3. Timeout: 300
    4. Timeout Message: News portlet Timed Out
    5. Implementation Style: Web
    6. URL:
    1. http://myhost.com:port/servlet/newsportlet (if you're using Oracle9iAS Portal 3.0.9)
    2. http://myhost.com:port/jpdk/providers/newsportlet (if you're using Oracle9iAS Portal 9.0.2)
    7. Login Frequency: Never
    3. Click Finish.

  • How to enable invalidation cache in struts portlet?

    Dear Friends,
    I am in need of implementing invalidation based caching in my pdk struts portlet application. The sample in the jpdk is for normal pdk portlets (not struts.) and the code did not work for my application. Plz help.
    Many thanks,
    Alvi

    In the [Licensing document|http://download.oracle.com/docs/cd/E11882_01/license.112/e10594/editions.htm#CJACGHEB] , in the 'performance' section of the table, the result cache is only available on Enterprise and not Standard, so I wouldn't expect it to work in Express Edition

  • 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

  • Supressing Portlet Header programatically

    All,
    I need to supress the Portlet header. I would like to do this without using the customize tab. The API says that the portlet_runtime_record has the has_title_region attribute. How can I set this value to false, so that the header is suppressed automatically.
    Rgds
    Sanjay

    That's right because you have multiple provider instances deployed. Each provider has its provider.xml for its configuration. To locate the appropriate provider.xml you need to identify the provider instance. For instance if you use the JPDK sample provider in your portal installation (http://host:port/jpdk/providers sample) then the location of the provider.xml will be $ORACLE_HOME/j2ee/OC4J_Portal/applications/jpdk/jpdk/WEB-INF/providers/sample.
    Note that the location of the provider.xml within the deployed provider application is defined in the sample.properties located in $ORACLE_HOME/j2ee/OC4J_Portal/applications/jpdk/jpdk/WEB-INF/deployment.
    You now have access to the provider settings and you can set the renderer for each portlet of the provider individually. By default the standard portlet renderer class is used. You need to write you own renderer class. For more information about portlet development you need to look at the documentation. Starting point is http://www.oracle.com/technology/products/ias/portal/index.html

  • Spring MVC Portlet in Weblogic Portal

    Is there any sample application for Spring MVC Portlet(JSR 168) in Weblogic Portal ? If so, where can I download it from ?

    you can get spring source code,then open spring samples folder,and spring portlet can transplant to weblogic portal

  • Backing file init method always called for proxy portlets

    Hello,
    We are currently using Weblogic Portal 10 MP1. Deployed within our Portal EAR is a local proxy portlet and attached to this proxy portlet is a backing file, which currently implements the init() and prerender() methods from the backing interface.
    When this is placed in a page that is within a desktop, the init() method is always invoked no matter which page you access within the desktop. As I understand it from the documentation, if you have "tree optimization" turned on, then the init() method will only be called when rendering the actual page the proxy portlet is in. But this doesn't seem to be the case. However, if I define a standard Java portlet within the EAR and attach a backing file, then the init() follows the rules when tree optimization is turned on or off.
    Does anyone know if this is a defect within the portal framework, or is this expected and proxy portlets do not follow this rule?
    And I guess, if it is a defect or known limitation, is there a possible workaround? I assume the simplest workaround will be to move the logic into the prerender() method.
    Regards,
    Jonathan

    Hello Jonathan,
    Tree optimization is a tricky thing- some portlets may still be initialized even when the page they are on isn't visible. The rules for which get initialized and which don't are very complicated and depend on a number of things, so it is just best to not rely on the init() method not getting called.
    By far the best option for your use-case is to have the proxy portlet listen to the "onRefresh" event, and move the logic from the backing file's init() method into an event-handling method in the backing file, then have this method called when the refresh event is received. Here's a sample portion of the .portlet file for doing this:
    <netuix:handlePortalEvent event="onRefresh" eventLabel="onRefreshEvent">
        <netuix:invokeBackingFileMethod method="handleRefreshEvent"/>
    </netuix:handlePortalEvent>The "onRefresh" event is sent to the portlet only when it is visible on the page, so it should work perfectly for your use-case.
    Kevin

  • Default implementations of JPDK V2 classes and interfaces - is the source code?

    Hi
    Is the source code for all the default implementations of the JPDK interfaces, renderers etc. available somewhere?
    Regards
    Harry

    Please find jpdk samples sources for jpdk implementation under src.zip inside PDK.zip
    In addition, one can many articles related to PDK under articles folder.

Maybe you are looking for