Can see the test page, Can register the provider but error in portlet

Hi all,
I have done the following settings in my web.xml
web.xml
<servlet>
<servlet-name>calsample</servlet-name>
<servlet-class>oracle.portal.provider.v1.http.HttpProvider</servlet-class>
<init-param>
<param-name>provider_root</param-name>
<param-value>D:\pdk\pdkoct\pdk\urlservices\providers\calsample</param-value>
</init-param>
<init-param>
<param-name>sessiontimeout</param-name>
<param-value>1800000</param-value>
</init-param>
<init-param>
<param-name>debuglevel</param-name>
<param-value>3</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>calsample</servlet-name>
<url-pattern>/calsample/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CalendarServlet</servlet-name>
<servlet-class>com.jsos.calendar.CalendarServlet</servlet-class>
<init-param>
<param-name>config</param-name>
     <param-value>d:/tomcat/conf/calconf.txt</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>CalendarServlet</servlet-name>
<url-pattern>calendar</url-pattern>
</servlet-mapping>
provider.xml
<provider class="oracle.portal.provider.v1.http.DefaultProvider" session="true">
<portlet class="oracle.portal.provider.v1.http.DefaultPortlet" version="1">
<id>1</id>
<name>CalendarServlet</name>
<title>My Calendar Servlet</title>
<description>This is my Calendar Servlet implemented as a ServletRenderer.</description>
<timeout>5</timeout>
<timeoutMsg>Calendar Servlet Renderer example timed out</timeoutMsg>
<hasHelp>true</hasHelp>
<hasAbout>true</hasAbout>
<showDetails>true</showDetails>
<showEdit>true</showEdit>
<showEditDefault>true</showEditDefault>
<acceptContentTypes>
<item>text/html</item>
</acceptContentTypes>
<portletRenderer class="oracle.portal.provider.v1.http.ServletPageRenderer">
<appPath>/pdk/calendar</appPath>
<appRoot>D:\tomcat\webapps\pdk\WEB-INF\lib</appRoot>
     <showServlet>com.jsos.calendar.CalendarServlet</showServlet>
</portletRenderer>
</portlet>
</provider>
With the above settings, I can see the test page at http://<server_ip>:port/pdk/calsample.
I am able to register the provider on the Portal server as well.
While adding the portlet to the portal page, the Calendar Portlet is listed there.
But, when I press the preview button next to it, It shows "Error: The listener returned the following Message: 500 Internal Server Error".
Please give me a clue where I am going wrong.
Thanks in advance.

Well, over the past few days while desparately trying to make my portlets work, I have tried several things. I started initially with a downloaded version of pdk that contains samples of v1. My first message above reflects the setup I used with v1. While trying to figure-out the problem for error 500, I tried v2 but the same problem persisted.
However, the clue by Mr. Peter Moskovits to check the application.log has helped me to finally resolve the problem.
Here is my new WORKING setup:
\WEB-INF\web.xml:
<context-param>
<param-name>oracle.portal.log.LoggerClass</param-name>
<param-value>oracle.webdb.log.ServletLogger</param-value>
</context-param>
<context-param>
<param-name>oracle.portal.log.LogLevel</param-name>
<param-value>7</param-value>
</context-param>
<!--
Define the JPDK servlets and their parameters
-->
<servlet>
<servlet-name>SOAPServlet</servlet-name>
<display-name>SOAPServlet</display-name>
<description>Extended Portal SOAP Server</description>
<servlet-class>oracle.webdb.provider.v2.adapter.SOAPServlet</servlet-class>
<!-- The following parameter enables invalidation caching -->
<init-param>
<param-name>invalidation_caching</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>SOAPServlet</servlet-name>
<url-pattern>/providers</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SOAPServlet</servlet-name>
<url-pattern>/providers/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CalendarServlet</servlet-name>
<servlet-class>com.jsos.calendar.CalendarServlet</servlet-class>
     <init-param>
     <param-name>config</param-name>
     <param-value>d:/conf/calconf.txt</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>CalendarServlet</servlet-name>
<url-pattern>/calendar</url-pattern>
</servlet-mapping>
\WEB-INF\providers\calendar\provider.xml :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<session>true</session>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition" >
<id>1</id>
<name>Calendar</name>
<title>Calendar Portlet</title>
<shortTitle>Calendar</shortTitle>
<description>This portlet is my calendar portlet.</description>
<timeout>30</timeout>
<timeoutMessage>Calendar Portlet timed out</timeoutMessage>
<renderer class="oracle.portal.provider.v2.render.RenderManager" >
<showPage/calendar</showPage>
</renderer>
</portlet>
</provider>
\WEB-INF\deployment\calendar.properties
serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
showTestPage=true
definition=providers/calendar/provider.xml
autoReload=true
debugLevel=7
With the above setup, I am able to access the test page successfully at:
http://[server-ip]:port/jpdk/providers/calendar
Which lists my portlet, Calendar.
Upon registering the portlet provider with the above URL, the portlet provider lists my Calendar portlet there and it shows-up the portlet successfully there.
Thank you all.

Similar Messages

  • How can I print the test page with the Arabic type from the command line

    Hi,
    I have been trying to make the tool for printing the test page from the command line on the Arabic OS. I used "rundll32 printui dll printuientry" with "/k /n" options. My tool is to print the test page in all OS when pushing the
    button.
    Normally, in the Arabic Windows, the test page is printed with RTL type when printing the test page in the "Devices and Printers". But in my tool, the test page is printed with LTR type. I'm confused because of this result.
    Is it possilbe to print the test page with RTL type when using the "rundll32 printui dll printuientry"? If it is possible, could anyone give me the hint or information for resolving?
    Please check for me.

    Hello,
    Thank you for your post.
    Your issue is out of support range of Test Tools in Visual Studio 2010 and 2012 forum which discusses Visual Studio Test issues.
    I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The RAW setting in Bridge is not working. When I open Bridge I can see only icons, no images. The RA

    The RAW setting in Bridge is not working. When I open Bridge I can see only icons, no images. The RAW tool icon is grey, not active. I am going on a trip Tomorrow and I need Bridge to be working. It was working earlier.

    I never notied that icon before, and I've been using Bridge for 7 years.
    Usually, when you have no image previews for raw files, this means that your Camera Raw plug-in is older than your camera. People always come across this problem when they use a new camera with older software.
    To be sure, we need to know which camera you are using, and which version of Camera Raw. To save typing this out for the three-thousandth time, please follow this page which I wrote earlier:
    http://yphotography.co.uk/articles/get-adobe-camera-raw-acr-open-photos/
    This covers the subject, which is by far the most commonly asked question about opening raw files by a country mile.
    If everything checks out fine, let us know. If not, give us more information and we may be able to fix this for you.
    PS. Please just open one discussion per problem. There are three threads on this now. It makes it difficult to follow.

  • How can I insert multiple page contents in the page layout properly?

    I wanted to create 4 columns on the page layout. These 4 columns are of page contents.
    After creating new web page based on that page layout, I attempted to enter 4 different inputs on all 4 columns.
    Then, the result (from all columns) becomes the same.
    Image - edit the web page based on 4 columns page layout:
    Image - after edit & save:
    How can I insert multiple page contents in the page layout properly?

    First, I copied the HTML snippet for the Page Content on Sharepoint's Design Manger. The code of Page Content HTML snippet is shown below:
    <div data-name="Page Field: Page Content">
    <!--CS: Start Page Field: Page Content Snippet-->
    <!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField"
    Namespace="Microsoft.SharePoint.Publishing.WebControls"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--MS:<PageFieldRichHtmlField:RichHtmlField
    FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify)-->
    <div id="ctl02_label" style="display:none">Page Content</div>
    <div id="ctl02__ControlWrapper_RichHtmlField" class="ms-rtestate-field"
    style="display:inline" aria-labelledby="ctl02_label"><div align="left"
    class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer"
    nowrap="nowrap"><span class="ms-formfieldlabel"
    nowrap="nowrap">Page Content</span></div>
    <div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">
    Page Content field value. Lorem ipsum dolor sit incididuntet dolore.</div>
    </div></div></div><!--PE: End of READ-ONLY PREVIEW-->
    <!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
    <!--CE: End Page Field: Page Content Snippet-->
    </div>
    After I published the page layout, I found the code for Page Content from its ASPX page. The code is shown below:
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/></div>
    So, I attempted to create 4 columns by using 4 HTML snippets of Page Content on the same page layout. The page layout is generated from HTML file to ASPX file.
    Then I edited some parts in ASPX page layout:
    <asp:Content runat="server" ContentPlaceHolderID="PlaceHolderMain">
    <table>
    <tr>
    <td style="width:70px;">&nbsp;</td>
    <td style="width:250px; text-align:right;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:40px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:175px;">&nbsp;</td>
    </tr>
    </table>
    </asp:Content>
    The 4 columns for Page Contents appeared on the web page when I created new page using that page layout. But the problem is that all 4 columns displayed the same result from 4th column.

  • All my icons are enlarged, how do you get them back to the regular size so you can see them all and you have the slide bar to get into it?

    all my icons are enlarged, how do you get them back to the regular size so you can see them all and you have the slide bar to get into it?

    This is asked and answered often.  The forum search bar is on the right side of this page.
    It is also covered in the manual - zoom feature.
    iPod touch User Guide (For iOS 4.3 Software)
    Double tap with three fingers

  • My iPhone 4S can't support camera 360 apps.Once I open the apps 3 sec it will auto jump out to the home page.Look likes the apps crashed.Isn't my iPhone problem or the apps got bug?Please help me.TQ

    My iPhone 4S can't support camera 360 apps.Once I open the apps 3 sec it will auto jump out to the home page.Look likes the apps crashed.Isn't my iPhone problem or the apps got bug?Please help me.TQ

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • Hi. I just downloaded "angry birds" from the iTunes store. It says it was successfully downloaded and that I can use it on the two mac products I have. I can see an icon for it in the finder on the mac, but I can't figure out how to play the game. Anyone?

    Hi. I just downloaded "angry birds" from the iTunes store. It says it was successfully downloaded and that I can use it on the two mac products I have. I can see an icon for it in the finder on the mac, but I can't figure out how to play the game. Anyone?

    Thank you for your reply. After a lot of fruitless searches, I hit on a page that offered the same wisdom you did. I feel like rather a fool for not knowing that. Grr. I really appreciate your answer, and that you didn't end it with "dummy." Cheers to you. Hope someone does something kind for you today.

  • I am used to the home page icon on the left of the page. Now it is on the right. How can I move it back to the left?

    I see the home page icon on the right side of the page. How do I move it to the left side?

    Right-click on a toolbar, select Customize. You can then drag and drop the Home icon to the right side of the toolbar. Click Done to complete the process.
    https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • My iphone is stuck on an app and it wont let me go back to the home page can you help

    my iphone is stuck on an app and it wont let me go back to the home page can you help

    Force close the app following these steps
    1. Hold the Sleep/Wake button on the top edge until the "Slide to Power Off" screen appears
    2. Hold the Home button on the front of the device
    While holding the Home button, you should see the screen go back to your Home screen
    If this doesn't happen, do a hardware reset by holding the Sleep/Wake and Home buttons at the same time until the white apple appears on the screen

  • How can i print all the tab pages not just the first page (tab)

    how can i print all the tab pages not just the first page (tab)

    You would need to do this programmatically. Here's one way:
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • I am trying to attach multiple photos to an email from my ipad 2. I can see how to do it from the camera and camera roll option,but not from the photos program. What am I missing? Thanx so much!

    I am trying to attach multiple photos to an email using ipad 2. I can see how to do it using the camera and camera roll ap...
    But not using the photos ap..which is where the photos are. Any help would be appreciated.!

    In an album in Photos touch the Edit button and then touch the desired photos (up to 5). A blue check appears in each selected photo. Next touch the Share button at the upper left and select Mail. This starts a email with the photos attached.

  • I can see my thumbnails for my events in iphoto, but when I click to open the folder, no photos show up. However, when I hover over the thumbnail, it shows the flicker of images that should be inside the folder, as well as

    I can see my thumbnails for my events in iphoto, but when I click to open the folder, no photos show up. However, when I hover over the thumbnail, it shows the flicker of images
    that should be inside the folder, as well as # of images in each folder. It also occasionally says the following when I try to even open iphoto:  "Your photo library will not be readable by previous versions of iPhoto after the upgrade. The upgrade process for very large libraries may take an hour or more to complete." So, I am scared to hit "upgrade" for fear I will never recover any of the images as the wording in this quote seems odd. The photos are not in the trash. Did I lose them all? Do you know if/how I can retrieve them?

    iPhoto 08?
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • Opening a new file in photoshopcc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    Graphics card is the problem.
    Trying to update drivers now.
    Thanks for your help
    john

  • Just installed os x maverick and updated my version of pages now when I try to open a document stored in pages format from old version get message "The Application "pages" can't be opened -1712  What is wrong?

    Just updated to new version of pages.  Now can not open stored documents created under al pages.  Get message "the application pages can' be opened -1712"  hat do I do?

    Apple released Pages 5.0 to run on Maverics only. They completely rewrote the program for Maverics and 64 bit compatibility. They failed to explain that this version is missing much of the previous version's capability and that it cannot read older Pages files. When they install it they leave the older Pages 4.3 in place because it is the only way to read the older Pages files and upgrade them to a level that can be read by Pages 5!
    If you still have Pages 4.3 on your computer it will tell you what to do. If you do not then go into your backups and retrieve it.
    Because of the deficiences of Pages 5 I have removed it from my Mac and gone back to working with Pages 4.3. I have also removed Pages 2 from my iPad and found Pages 1.7 in the Time Machinew backups and brought it forward and droped it onto the iTunes icon to restore it and then synced the iPad to get the Pages 1.7 running again - it is compatible with Pages 4.3 on the Mac so all is back to normal for me.
    Apple say that they will fix many of the deficiences in Pages 5 in the next six months. I suggest you wait until then and keep an eye on these communities beforte considering the "upgrade".
    Incedentaly Pages 5.0 writes files that cannot be read by anything else including Pages 4.3 - better hope no one sends you one! It does not save RTF either - what where they thinking!

  • HT201272 I can see my previously purchase music, it says downloaded but why can't i download the music? The were accidentally deleted from the itune folder?

    I can see my previously purchase music, it says downloaded but why can't i download the music? The were accidentally deleted from the itune folder?

    Do I have to have icloud to download previously purchased music?

Maybe you are looking for

  • Relationship b/w tables and table fields

    Dear Experts, I have a requirement where I need to display... userid, username, Broadcasting setting name, Workbook/Report name, Variable Inpur parameters, Broadcasting frequency, Recipients email-ids, status and scheduled date...... User input would

  • SQL Query with MS-Access Database

    Hi, I have linked my oracle database with MS-Access via a DB LINK. i can access the data from MS-ACCESS, but i have a problem that when i specify the column name or define a where clause in my query it gives me the error ORA-00904: invalid identfier

  • Unable to sign in. The iCloud Terms of Service have changed.

    Anyome else getting this message? It provides no way to accept the new terms of service. Help?

  • Marking Audio stream as EF in Video-Conferencing?

    Hi, Traditionally I have marked both the audio and video streams as AF41/CS4 but increasingly I have seen VC vendors marking the audio streams as EF. According to the Telepresence SRND both streams should be marked as CS4 - is there any benefit is cl

  • T430 Ultrabay or HDD Caddy and mSATA

    Hi, I just ordered my T430 and waiting for delivery. I was wondering if it is possible to use built-in HDD and add a second HDD with UltraBay or HDD Caddy for storage and programs and also add a mSATA SSD for OS installation. 3 Hard Drives on a lapto