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

Similar Messages

  • I am using macbook air and thrying to print wireless over time capsule with a lexmark 5600/6600 series, i can print test page but only this. Anyone can help?

    I am using macbook air and thrying to print wireless over time capsule with a lexmark 5600/6600 series, i can print test page but only this. Anyone can help?

    Check here, if this can help:
    http://support.apple.com/kb/HT4670?viewlocale=en_US

  • HT5361 suddenly I cannot see my gmail in my inbox on my macbook.  I deleted the gmail account and added it back but I cannot see new gmail in my inbox.  I can see sent gmail but not incoming gmail.  The gmail is visible if I go to my google account on goo

    Suddenly I cannot see my gmail in my inbox on my macbook.  I tested it and I can see my gmail in google.  I deleted my gmail account on my macbook mail and re-added it and still cannot see incoming gmail.  I can see new icloud e-mail.  I have both a gmail account and an icloud account.    For my test e-mail in gmail, I can see sent gmail but not incoming gmail.  How do I fix this?

    Try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox
    Try re-indexing the mailbox. This can take awhile if you have a lot of mail.
    Reindex messages
    What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
    Troubleshooting sending and receiving email messages

  • Bonjour - Mac A can see Mac B but not vice versa

    Hi
    Very odd behaviour with Bonjour. Up until yesterday, my macbook pro (call it A) would see my mac pro (B) - it would appear automatically in A's sidebar, I could listen to B's iTunes library on A and so on. No problem and there hasn't been for a couple of years. B could not see A - but I didn't really need it to and this wasn't an issue.
    Suddenly, this morning, the situation is completely reversed. A can no longer see B at all, but B can see A.
    I can connect both ways by using 'Connect', I can ping both ways, but I can't get A to discover B using Bonjour.
    The only think I've done that I can think can have caused the changes is to use Omnifocus sync (with B holding the sync server) - it worked fine all day, but overnight Bonjour seems to have reversed itself as described above.
    Bonjour Browser shows me that B can see A, but A can't see B. I have identical settings on both machines for sharing, network, firewall (all everything).
    Bizarrely, for one two minute period a couple of hours ago, the situation reversed itself (A could see B but not vice versa), but then immediately went back to B can see A, but not vice versa.
    Both computers are running the same version of Leopard (10.5.7). I've reinstalled the OS on B, just to see, but this hasn't improved matters.
    I can find nothing on google or this discussions forum to explain this bizarre behaviour - most support threads seem to peter out without being resolved. Has anyone any idea what's going on please? I'm quite happy getting stuck into the command line, if that's needed.
    Many thanks
    David

    The Macbook Pro is connected wirelessly to the router, the Mac Pro connects to the same router by ethernet.
    As far as I'm aware, I'd made no changes to any of the setups (computers or router) before the problem occurred: bonjour worked fine, but in one direction only (the MBP could see the Mac Pro, but not vice versa). Now, the Mac Pro can see the MBP, but not vice versa - and this is a problem because my printer and itunes server both sit on the Mac Pro.
    I've set all the firewall and security settings I could find to transparent access - and (except for the obvious difference between the wired and wireless links), the setups are identical on both computers.
    By the way, I can connect to the Mac Pro easily enough and transfer files, I just can't see it via bonjour or use Screen Sharing (again the settings haven't changed since they were working!)
    Many thanks
    David
    Many thanks
    David

  • I CAN PRINT HP PAGES--- BUT NOT ON LINE PAGES

    I CAN PRINT HP PAGES BUT NOT ON LINE PAGES
    ERROR HAS OCCURRED IN SCRIPT ON THIS PAGE
    ERROR UNSPECIFIED

    Please read this post then provide some details.  What printer model? What operating system? How is the printer connected? 
    What browser are you using? Are you using HP Smart Printing or some similar program?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I have just downloaded itunes to my new laptop. I can see purchased music but not all my cds - do i needto reload them?

    I have just downloaded itunes to my new laptop. I can see purchased music but not all my cds - do i need to reload them?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • My HP Deskjet 1510 All-in-One Prints Test Page But not emails or Web Pages, ect

    My Deskjet 1510 All-in-One Printer is Hooked up. All tests show a Green Arrow, It is Turned on, and Online. It will Print a TEST PAGE, but nothing else. I have Run the HP DR Support program several times to no avail. No Error Codes or Signs appear. It simply will NOT WORK other than printing a TESTPAGE or Scanning Copies on the Printer/Copy Machine. Please Help. I have been trying to get it to work for a week. It IS a New Printer. I have tried it on 2 seperate Computers which work well with other Brands of Printers. One Runs Windows 7 Home Premium 64 Bit, Acer Aspire Desktop. The Other a Dell T5400 running Windows 7 Professional 64 Bit . Printer is set as DEFAULT. ALL SOFTWARE is UPDATED AND INSTALLED. It says it is installed properly, and that it is Hooked up Properly, Yet it will NOT work properly. Thank you.

    Welcome to the HP Community , I read through your post about the printing issues you have been having, and I hope to help you! Seeing how the printer will make copies and test print tells us that the printer itself is fine and there is no hardware issues. However, seeing how printing from two different computers will not work, flags a software problem on the computers. Please try out the steps below and get back to me with the results and we will go from there. If you did not install the Full Driver, run the HP Printer Install Wizard for Windows to search and install the complete driver and software. This will need to run on both computers individually. Manually restart the print spoolers on the computers:1. Click Start
    2. Type "Services" in the search field.
    3. Open SERVICES
    4. At the bottom, click "Extended View"
    5. Search for Print Spooler
    6. Right-click it and choose Properties
    7. Select as Automatic in the drop down box, close the Window
    8. Right click on Print Spooler and choose "Stop", wait until it stops and then right click again and "Start".
    9. Close out of Services and try printing from Notepad.10. Try printing from a web browser now, if there is a problem with the print, try a different web browser.  Show thanks for my reply to help you today by hitting the "thumbs up" icon below!I hope to hear from you, good luck! 

  • Document library: user can see the metadata but not the file itself

    Hello,
    For a specific document library certain users will have the right to see the metadata but not the file itself. The only solution I can  think of is using a http handler. But I don't know if I can get the user that requests the document.
    Are there any other approaches to this requirement?
    Can I get the username of the user that makes that request?
    I guess that http handler is deployed at the Web application level - am I right?
    Thank you
    Christos

    Nicolas, thank you for your answer.
    I think this this is not a strong protection. Everybody can istall sp designer or go through UNC path, like \\myserver\documentlibray or \\myserver\lists\mylist and see the documents- and we use unc paths a lot. I don't want to get into trouble when a (wiki)
    leak is made.
    Christos

  • HP Deskjet F4280 - can print test page but nothing else on new Windows 7 laptop on home network

    I hope you can help me.  I have an HP Deskjet F4280 set up on my desktop computer running Windows Vista Home Premium 64x.  I've also got a home network on a D-Link Wireless N router.
    My new laptop is a Toshiba with Windows 7.  I can connect to the network no problem and can add the printer (attached to my desktop via USB) and can print the test page.  My problem is that I can't print any other documents.  When I check the print queue all it says is "spooling" and then after a few seconds the job just disappers from the queue.
    I connected the printer directly to the laptop and dowloaded the drivers for Windows 7 and it works fine. I've uninstalled and reinstalled all software on both computers.  I've spent hours trying different solutions I've found on this web-site and others...and nothing works!  I am very frustrated to say the least.
    Is there any way you can help me???

    Hi Lisamcgack, 
    Print sharing is a Microsoft supported application. Since the printer is working on the computers independently. Then this would be an issue between the operating systems. Check out the following Microsoft document on print sharing.  
    http://windows.microsoft.com/en-US/windows-vista/Share-a-printer
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • HP Laserjet CP1525 printing test page but not other documents

    My laserjet printer is not printing any documents. When I got into the properties, the properties program freezes. For some reason the test page prints, but when I try to get anything else to print it won't do it. The IP address has not changed, but my wireless was down for a short time this AM. Can I disable to printer and then re-enable it again without having to hook up the ethernet cable to get the wireless to work correctly?

    Did that. Now I can't even print a test page. Do I have to reinstall using the ethernet cable because I do not know the steps to doing that and I just removed the printer and then reinstalled as a local printer. It doesn't seem to be connected at all now. It says its connected onthe LPT port and it is just on wireless. It still prints config pages so it's working.Can you tell me the steps to doing it with the ethernet cable?

  • In iPhoto, I can see the thumbnails but not the full-size photos

    In iPhoto, I can see the thumbnails along the bottom but I can't see the full-size photos - I just see a black screen. What should I do?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • In my .ipa viewer builder i can see free folio but not retail folio

    Hi,
    here's my prob: i am testing my viewer app for a multifolio subscription app. I can see the free issue but not the retail issue. I checked probably all the possible probs: in app purchase and retail folio have same ID, i logged out from iTunes and created a test account for the purchase. But after i tested and downloaded the free issue and loaded in the folio organizer the retail folio, nothing else appears in my .ipa...
    Any help would be soooooo appreciated

    ok, solved (but i'll leave the thread on, so it might be useful to anyone else): the problem was about IDs. Bundle ID was different from folio ID (i mean com.company.publication). They HAVE to be exactly the same

  • Deskjet 3052A printing test page, but not even recognized by any programs (Mac OSX 10.6.4)

    I recently purchased an HP Deskjet 3052A (using drivers via CD for Deskjet 3050A J611 Series from HP in package) for home printing.  It's been working great with the home Vista-based PC and my Win7 Laptop, but I'm having an issue with my wife's MacBook Pro (OSX 10.6.4).  I have installed the software several times and the printer is recognized wirelessly in the "Print & Fax" area through System Preferences.  I am able to print test pages galore in the "Show Printer Webpage" site.  But, no other programs (Office Suite, web browsers, etc.) allow me to select the printer to print to it.  I even have it set as my default printer, but when I File-Print, a different printer is shown.  I try to select my new printer from the drop-down and I get a brief popup that says "Setting Up Deskjet...Gathering Printer Information, but that goes away after about a second and the printer is not the highlighted one in the dropdown.  Like I said, I can print plugged in via USB and wirelessly through the HP webpages, but nothing else recognizes the printer properly.  I have installed and uninstalled this printer several times and the same issue keeps happening.  Please help!

    OK, let's do a couple of things:
    1. Repair Disk Permissions: in your Applictions > Utilities folder open Disk Utility.  Click once on your Macintosh HD, the click the "Repair Disk Permissions" button along the bottom of the window.
    2. Reset the printing system again:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Valid users can see a site, but not the document libraries they have permissions for

    Hello everybody,
    at a customer's site, there is SharePoint Foundation 2013 SP1 running, bound to both http and https. Seeminlgy out of nothing, a strange behavior occurred: Visting
    http://intranet/subsite showed the page headers (logo, global navigation etc.), but no content. The welcome text was missing as well as the links to the document libraries which should appear in the left navigation.
    After explicitely adding http://intranet as an alternate name (https://intranet was active only, don't know why), we can again reach content via http. Still strange appears, that
    http://intranet global navigation links get redirected to https (fine, but unexpected). If we change a deep link to a document library from https to http in the browser's address bar, we can reach the content fine.
    However, one problem still exists: This site gets published via TMG 2010 via https, and that also worked just fine for many months. But now, I can try what I want in TMG, valid authenticated users see only the top navigation, but no content at all.
    Can anyone give me a hint about what to check? Of course, I will provide any info you may need.
    Best Regards, Stefan Falk

    Hello Daniel,
    Thank you for your response. As to your questions:
    I just added http://intranet to the alternate access mappings of the intranet zone and did not extend a website.
    Besides SharePoint Central Administration, there is no other SharePoint web site collection on this server, and no other non-SharePoint-IIS-Site. This is a VM for nothing else than hosting this single intranet site collection.
    We do see the same issue under two sub-websites underneath
    http://intranet, namely http://intranet/Datenaustausch and
    http://intranet/Protokolle. In both sub-sites, there is some welcome text on the home page and there are several document libraries, each with permissions not interited, but explicitely granted to specific users.
    The first (solved) issue was, that we could not see the document libraries when using http, but could see them using https. This was solved by adding the alternate access mapping for
    http://intranet explicitely.
    We can successfully browse the sites (using http and https now) from the internal network. The one issue left is that the same does not work through TMG, that is, coming from the external network, we can see and call up the sites in a browser, but not any
    content in them. We do see the site title and logo, and the global navigation at the top of the page, but we do not see the welcome text, nor the document libraries. This did work last week, and we do not know nor could find, why it stopped working. The issue
    persists regardless of whether we use bridging to https or to http between TMG and SharePoint.
    We have already restarted the SharePoint box, with no success.
    If I can provide any further information needed, I will be glad to do so.
    Best Regards, Stefan Falk

  • My hp laserjet 6p prints test page, but not items in queue.

    My HP LaserJet 6P prints a test page when I push the button on the top, but does not print documents in the cueue.  I installed the latest drivers from HP to no avail.  I tried switching USB ports, also to no avail. I am able to delete documents from the queue.

    Please read this post then provide some details.  What operating system?  Are there any error messages on the printer or computer screen?
    If you are running Windows 7 or Windows 8 the diagnostics at http://www.hp.com/go/tools may help resolve the issue.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for

  • How can I get to home screen from car dock menu when an app is running?

    Just upgraded to the RAZR MAXX from a Droid 2 Global. When the phone is mounted in the car dock and an app is running (Navi, Music, etc.), how can you get to the main home screen of the phone rather than the car dock menu? Follow me...... * Phone is

  • Getting Error in tcode sxmb_moni??

    Hello All,                 Its giving error while PI picks the file and sends to BW. =================================================================================================== Registration failed What happened is?  The proclamation the URL h

  • GPU in Dual Core phones

    Hey guys I know this question is a tad stupid, but can anyone tell me if there's any difference between Mali 400MP and Mali 400 GPUs or are they the same?

  • Not able to save Objects  in Oraganisational management

    Dear Gurus, When i am creating Objects in OM system was given error message it is not saving objects, objects are creating in golden master server but unable to create objects in testing and quality. Please guide me how ti solve this issue.

  • Read customized table on PI using Java

    Hi, is it possible to read a local Y table on the PI System using Java? Thanks in advance.