Testing a portlet developed in JDeveloper.

Dear All,
I am using JDeveloper to build the portlets with the help of PDK Software patched to JDeveloper. I want to test the portlets developed by me on the Standalone OC4J Server. Currently i dont have the access to the OracleAS application server, so i have to do all the testing on the OC4J itself.
Any little help would be of very use.
Thanks in advance.

A portal server such as OracleAS portal is required to run portlets.

Similar Messages

  • Error while deploying a JSR 168 portlet developed in JDeveloper 10.1.3.2

    When deploying a JSR 168 portlet created using JDeveloper 10.1.3.2 (Web Center Suite edition), I get the error :
    "Shared library "oracle.wsrp" could not be found."
    Error Log:
    ---- Deployment started. ---- Sep 20, 2007 9:31:42 AM
    Target platform is Oracle Application Server 10g 10.1.3 (PolestarAppServerConnection).
    Wrote WAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.war
    Wrote EAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.ear
    Backing up generic archive file :/C:/Projects/eAlliance/JSR168/ViewController/deploy/jsr168_generic.ear
    Creating WSDLs for the WSRP Application
    WSDLs for the WSRP Application have been created
    Uploading file jsr168.ear ...
    Uploading file jsr168.ear ...
    Application Deployer for jsr168 STARTS.
    Copy the archive to /home/soahome/orasoa/j2ee/home/applications/jsr168.ear
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear begins...
    Unpacking jsr168.ear
    Done unpacking jsr168.ear
    Unpacking jsr168.war
    Done unpacking jsr168.war
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear ends...
    Starting application : jsr168
    Initializing ClassLoader(s)
    application : jsr168 is in failed state
    Operation failed with error:
    Shared library "oracle.wsrp" could not be found.
    Deployment failed
    Elapsed time for deployment: 39 seconds
    #### Deployment incomplete. #### Sep 20, 2007 9:32:21 AM
    Steps To recreate the error:
    1)Create a new Application in JDeveloper
    2)Click "New" in "ViewController" and click on WebTier->Portlets->Standards based(JSR 168) from the wizard.
    3)Go thru JSR 168 Portlet wizard steps 1 thru' 8 accepting all defaults.
    4)Click "New" in "ViewController" and click on General->Deployment Profiles->WAR File from the wizard.
    5)Enter a name and hit OK. Then in the "WAR Deployment Profile Properties" page, select "Specify J2EE Web Context Root" and enter the name similar to what is in the "Enterprise application name" text box in the same screen. Hit OK.
    6)Right click on the deploy file created under "Resources" and select "Deploy to AppServer" (I am deploying to a remote 10.1.4 Portal Server that has already been configured in my connections tab.
    7)Note the above noted error message in the Deployment Log tab.
    Can you give me any suggestions?
    Thanks,
    Bipin Raj

    Does the \j2ee\home\shared-lib directory contain a directory oracle.wsrp?
    Does the <OC4J_HOME>/j2ee/home/config/server.xml file contain a shared-lib declaration for oracle.wsrp?
    <shared-library name="oracle.wsrp" version="1.0">
    <code-source path="wsrp-container.jar"/>
    <code-source path="wsrp-types.jar"/>
    <code-source path="wsrp-jaxb.jar"/>
    <code-source path="jaxb-api.jar"/>
    <code-source path="jaxb-impl.jar"/>
    <code-source path="jaxb-libs.jar"/>
    <code-source path="namespace.jar"/>
    <code-source path="xsdlib.jar"/>
    <code-source path="relaxngDatatype.jar"/>
    <import-shared-library name="oracle.gdk"/>
    <import-shared-library name="oracle.xml"/>
    <import-shared-library name="oracle.jdbc"/>
    <import-shared-library name="oracle.cache"/>
    </shared-library>

  • Newbie question - Portlet development in Portal using JDeveloper

    Hello.
    I've tried to develop a portlet using Oracle JDeveloper, then using it in an Oracle Portal-provided web page.
    I'm so really confused... I don't know where to start!
    Let'say the portlet is a very simple Hello World static html or jsp page.
    What could I do in order to use it in Portal?
    Have I to use jpdk? How?
    Or have I to deploy it in the Application Server home OC4J as a web application?
    Or have I to deploy it in the OC4J_Portal as a web application?
    Or....
    If this helps, here is my platform:
    I'm using Oracle Application Server 10g Portal as middle-tier. It is correlated to an OID/Infrastructure istance wich provides Single SignOn for the applications, based upon an Oracle 9i database, in which runs Oracle Workflow; my needs are to use a Workflow based Java applications in the Oracle Portal as portlets.
    Don't worry: by now, I'm interested in just knowing how to run in the Portal a simple Hello World portlet built with JDeveloper...
    Please, help me.
    Thank you in advance.
    - Umberto

    Hi Umberto,
    Did you have a chance to take a look at the Portal Developer's Guide?
    The Building Java Portlets chapter walks you through the steps you need to take.
    Good luck,
    Peter

  • JSP portlet built in Jdeveloper call stored procedure

    Hi,
    I have a simple jsp portlet built with Jdeveloper, now I'm trying to execute a stored
    procedure from the jsp. How can one access database and call a proc, in a jsp which is
    developed in Jdeveloper?
    Is JSTL required for it or a normal jdbc calls will suffice?
    Any help asap is appreciated.
    Thanks,
    Kavitha

    It is actually very simple. :)
    I suggest to create a Java bean containing the Java code with the PL/SQL call.
    This method can be invoked from JSP.
    A good pratice is to pass database connection to this methode and commit or rollack in the JSP.
    example:
    public void saveData(Connection conn,
    String param1,
    String param2) throws SQLException
    With this approach you can call several SQL statements in the same session.
    This will enable transaction handling.
    I suppose the db connect will be pooled in your application.

  • How to create JSF Portlet in Currrent JDeveloper Version

    Hello,
    Now there is no options to plugin Portlet in Current Jdeveloper Version.Anyone have any idea when Oracle Is going to Release the Portlets extension in Production Version???
    Is there any good documents for how to Create JSF Portlet in Oracle JDeveloper current new Version. IF So Please send me the link.
    Thanks
    Sona

    The OracleAS Portal is also required to deploy JSF Portlets. To Develop and deploy a JSF Portlet:
    1. Install the OracleAS application server.
    2. Install the portlet container.
    3. Install the OracleAS Portal Extension.
    4. Generate Portlet with Portal Extension in JDeveloper
    5. Connect to application server.
    6. Deploy Portlet to Application Server.
    7. Install OracleAS Portal
    8. Register Portlet with OracleAS Portal.
    9. View Portlet in OracleAS Portal.
    10. Add Portlet to a page.

  • Portlet development with pure Ajax without the Plumtree Web Control

    Has anybody successfully using pure Ajax for portlet development. We've tried to test a little ajax code sample out, and it worked outside of the portal but when we put in the portal it would not work. We are trying this approach because we are having problems with our Plumtree Web Control 2.2.
    Please help.
    The following is our code
    Test.aspx
    <script type="text/javascript" language="javascript"> var http_request = false; function makeRequest(url) {        if (window.XMLHttpRequest) { // [url=http://www.sitepoint.com/print/%5C%22/glossary.php?q=M#term_31%5C%22]Mozilla[11], Safari,... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE            http_request = new ActiveXObject("Microsoft.XMLHTTP");        } http_request.onreadystatechange = alertContents; http_request.open('GET', url, true); http_request.send(null); } function alertContents() {        if (http_request.readyState == 4) {            if (http_request.status == 200) {                alert(http_request.responseText);            } else {                alert('There was a problem with the request.');            } } } </script> Make a request
    test.htm file:
    I'm a test.
    When we run it outside the portal we get the alert message "I'm a test".
    But wehn we run it inside the portal we get the message "'There was a problem with the request."

    Absolutely, here's some code:
    function UpdateDealerInfo(d) {    dealerNumber = d.split(':')[0];
    document.getElementById('s_dealer').innerText = dealerName + ' (' + dealerNumber + ')'; var ajax = new ActiveXObject('Microsoft.XMLHTTP'); var urlASMX = "<pt:url pt:href='http://portletserver/webservice.asmx/WSServiceMethod' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>"; ajax.open ('POST', urlASMX, true)
    ajax.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded');
    ajax.onreadystatechange = function () {
    if (ajax.readyState == 4) {      var strResponseXml = ajax.responseXML;      var xmldoc = new ActiveXObject('MSXML.DOMDocument');
    xmldoc.async = false; xmldoc.load (strResponseXml); // read an element from the xml document var demoStock = xmldoc.documentElement.selectSingleNode('//DemoStock').text;
    // update the element in the portlet (aspx/html) document.getElementById('s_demo').innerText = demoStock
    var body = 'dealerNumber=' + dealerNumber;
    ajax.send (body); }

  • Error after deploying a JSP Application developed with jdeveloper

    Hi there
    Running Oracle Enterpride Edition 8.1.7
    including Oracle Http webserver
    I'm trying to run a JSP application developed with Jdeveloper
    through the oracle http server included in
    Oracle Enterpride Edition 8.1.7
    Think I have modified alle the .conf files correctly
    I get the message :
    "Error Message: java.lang.RuntimeException: JSP Registry could not locate runtime property file:ORDERS_ORDERS_PKG_ORDERS_PKGModule.properties"
    Of course I know ,this file should be deployed as well. I have done this.
    Any ideas what's wrong ?
    Or can anyone point me to a (proper) document that decribes (correctly and completely) alle the steps that need to be done ?
    Many Thanxs
    Regards TJ
    null

    Yep, I had the same problem deploying from JDeveloper 9.3.1, followed:
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_runtime_update_howto.html
    and it works! thanks for the clue! (now I only have to find out what ADF is now!)
    Carlos.

  • Can we have two R/3 Source Systems(Dev & Test) in BW Development....?

    Hi All,
    Till now we have only BW Development box..
    Our Landscape for R/3 side is R/3 Development, Testing and Production.....
    Already we have connected R/3 Development with BW Development... It is working fine as now... We have finished our task at Development...
    My doubt is <i><b>Can we Configure R/3 Testing to BW Development</b></i>....eventhough R/3 Development is already configured with BW Dev....
    <b>Can we have two R/3 Source Systems(Dev & Test) in BW Development....?</b>
    Please help me out in this issue....
    Your help will be appriciated...
    Regards,
    Kiran Telkar

    Hi Kiran,
    You can create second source system which will point to SAP R/3 Quality .
    If you have transported all datasource activation requests to QA environment then all datasources are available in R3QA as well.
    After creating source system , replicate datasources.
    Only thing you need to do is to replicate efforts of assigning source system (R3QA)-> creating transfer rule -> Create info package and load data.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • FOD schema installation with tutorial Database Development with JDeveloper

    I followed the instruction online at http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html to install FOD schema. Errors displayed when call "run ant target -> buildall" were below:
    populateImages:
    [java] 2010-9-26 14:56:01 oracle.as.jmx.framework.LoggerHelper log
    [java] SEVERE: Error initializing the JMX FRamework SPI "oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl"
    [java] java.lang.reflect.InvocationTargetException
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.initializeSPI(PortableMBeanFactory.java:1895)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.initializePlatformSPI(PortableMBeanFactory.java:1851)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.init(PortableMBeanFactory.java:1831)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:207)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:215)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [java]      at java.lang.Class.newInstance0(Class.java:355)
    [java]      at java.lang.Class.newInstance(Class.java:308)
    [java]      at oracle.mds.core.MDSInstance.lookupMBeanServer(MDSInstance.java:2061)
    [java]      at oracle.mds.core.MDSInstance.checkMDSDeployStatus(MDSInstance.java:950)
    [java]      at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1692)
    [java]      at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1666)
    [java]      at oracle.mds.core.MDSInstance.findAndStoreMDSInstance(MDSInstance.java:1962)
    [java]      at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:507)
    [java]      at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:470)
    [java]      at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:436)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    But still got message - "BUILD SUCCESSFUL" at the end. Does anyone know how to solve this problem?
    My intention of performing FOD schema installation was to follow the tutorial "Database Development with JDeveloper" at http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/databasedevelopment/obe_%20databasedevmt.htm. But I stopped at the last topic "Creating and Debugging PL/SQL Objects in the Database" ->"Running a SQL Script to Create an Object Type" when trying to create a object using script on the page.
    This is the script:
    ------------------------------------------------start
    REM
    REM Create object ORDER_ITEMS_REC
    REM
    CREATE or REPLACE type ORDER_ITEMS_REC as object
    ORDER_ID NUMBER(15),
    LINE_ITEM_ID NUMBER(3),
    PRODUCT_ID NUMBER(15),
    QUANTITY NUMBER(6),
    UNIT_PRICE NUMBER(8,2),
    CREATED_BY VARCHAR2(60),
    CREATION_DATE DATE,
    LAST_UPDATED_BY VARCHAR2(60),
    LAST_UPDATE_DATE DATE,
    OBJECT_VERSION_ID NUMBER(15)
    show errors;
    --------------------------------------------------end
    and the error message I got was
    ------------------------------------------------start
    Error report:
    ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    ------------------------------------------------end
    I was wandering whether the error of FOD installation could cause the error of the tutorial?
    Any response will be appreciated.

    1. you dont have to insall Oracle database at the BO machine side, you just need any database to hold the BO repository.
    2. you cant connect directly using BO, only Crystal reports can connect directly to R3 database, you need to have a BW in between.
    extract your data into the BW, and let BO connect to BW using the BO integration kit for SAP solutions.
    3. no you dont have to have 3 different machines, using one BO machine you connect to them all, but you may need build a  BO environment, (Development, Production servers)
    good luck

  • Database development with jdeveloper

    Hi
    Thank you for reading my post
    is it possible to use Jdeveloper to develop Mysql databases ?
    how i use its diagram <> database capabilities to forward a diagram to a mysql database ?
    thanks

    Hi,
    For information on how connect MySQl to JDev, look in the Help for 'Working with Non-Oracle Databases' under 'Using Application Development Tools | Database Tools'.
    And for Modeling Database Development with JDeveloper, you can find this tutorial useful :
    http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_%20dbasedevmt.htm
    Regards,
    Sunil..

  • Transporting an object from testing client to development client

    Hi,
                 This is Sekhar . My question is
      If i transported an object from development client to testing client .After transporting object to testing client i got a bug so that ABAP developer should work on that and how could i modify that bugs in testing client .Is it possible to modify in testing client? Is their any reverse transportation from testing client to development client?
    please give me reply for my question.
    Thanks & Regards
    Sekhar Rao

    Hi Ankesh,
    You said that
    "        If there is a bug then make appropriate changes in DEV and transport the object again.
            Reverse transports are not needed and such paths are not created.   "
    I am asking that my object is in TES client and i need it in my DEV client again to make appropriate changes for bugs i got.then what i had to do.
    please reply  me
    Thanks & Regards
    Sekhar

  • Registering Discoverer Portlet Provider with JDeveloper WebCenter

    Is it possible to register DPP with JDeveloper? What kind of portlet producer is DPP, WSRP or Oracle PDK? Can anyone tell me the specific steps (i.e., what to fill in for the URL, subscriber ID, etc.)?
    Thanks,
    -warren

    You might want to ask this on the Discoverer forum.
    It depends on the type of portlet DPP is - JDeveloper can register both WSRP and PDK portlets.

  • JSF 2.0 portlet development

    Hi there,
    I'm new in the world of J2EE and I'm trying to develop JSF 2.0 portlets to run on JBoss Portal 2.7.
    Unfortunately no JSF 2.0 portlet bridge standard exists (only for JSF 1.2), JBoss Portlet bridge still only supports JSF 1.2 and I didn't find any tutorial to make even a "Hello World" JSF 2.0 portlet.
    The only thing I found is the project portletfaces, a JSF 2.0 portlet bridge, but it can only make it work on Liferay (for wich it is optimized), not on JBoss Portal (or even GateIn). Unfortunately for my project I absolutely need to use JBoss Portal...
    Can anyone help me? Is it mandatory to use a portlet bridge for JSF 2.0 portlet development? Am I screwed?
    Thanks a lot!
    Nicolas!

    802101 wrote:
    Hi gimbal2, thank you for your answer :)
    So yeah, you confirm what I thought: it's to soon, better wait the maturity of the thing
    However, I still have this question: is it possible to develop portlets WITHOUT using a portlet bridge ? Don't I just have to add a few config files (like portlet.xml, jboss-web.xml) and it is on?
    Thanks a lotOf course you can. The bridge is there for interoperability between portlets and other (mostly JSF-based) frameworks. There is nothing stopping you from creating portlets without the bridge and you should just do that until you find you actually need it. My development take on 'management by exception' :)

  • Design patterns in portlet development

    Hello,
    I am a student at the Technical University in Munich, Germany and I am working on a university project on design patterns for portlets.
    The focus of my work is researching the best practices when developing a web portlet, especially which design patterns are the most suitable for portlets development.
    For example, the MVC pattern is one of the most popular design patterns for portlets.
    I am writing to you to ask which design patterns are used in the development of your portlets from the SAP Enterprise Portal.
    - What design patterns do you use for your portlets?
    - Do you use MVC among others?
    - Do you have your own design patterns?
    - Do you use any templates or guidelines for portlet development that involve design patterns?
    I am looking forward to your answer. Any answer would help with the research, as experts’ interviews are part of my work in the project.
    I appreciate any references you consider to be related to my search.
    Thank you,
    Julia Alexandrescu
    Department of Informatics
    Technical University Munich
    Email: [email protected]

    Hi raaj,
    I have a query related to this.
    I am a beginner to portlets.
    Say I have an existing struts application.What all do i need to modify or add to make a .portlet file out of it so as to make it deployable in Weblogic 8.1 SP3?
    Is adding a portlet.xml enough?
    if yes, what would the portlet.xml look like?
    Do i need to add a separate class as well?
    I couldnt get any sufficient answers from other forums.
    Can you please help?
    Thanks & Regards,
    Nishant

  • Portlets development: When to use the class that extends PortletBridge...

    When I create some Portlet (.jspx based) JDeveloper generate some resources. One of those is a class (with the name that I´ve configured) that extends PortletBridge...
    Ok. So, I want to know if I use JSF standards should I put my actions into this class or should I create another Managed bean to handle that? What to do with this generated class?
    Thank you.

    So you want to create a portlet that uses JSF instead of JSP?
    You can JDev do that for you. When you create a new portlet there is a step where you can specify the default page for the portlet mode (view, edit).
    On the right hand side you can select ADF JSF (or something like that).
    JDev will then create a class that extends the PortletBridge class and you don't have to do anything more. Just edit the jspx like it's a normal page.

Maybe you are looking for

  • Photo library and iphone pictures

    I have an Iphone 3gs. The problem is in Photos. I should be showing the following Camera roll Photo stream Iphone Pictures And I am But I am also showing Photo Library Which is a Duplicate of Iphone Pictures When I go into Itunes to the "select photo

  • Merging Hundreds of PDFs using a LIST OF FILES

    I need to merge -- in a very particular order -- several hundred PDFs. I have a spreadsheet (which could easily be made into a text file, CSV, etc.) containing the filenames in the order that I need to merge them. Unfortunately, the order that I need

  • Bursting with output in Body not as Attatchment

    Hi All, Just a quick one to find out if it is possible. I have a request to send an email to each salesperson with some data but they want this data in the email and not as an attatchment. I was wondering whether this is possible with bursting or if

  • Package not being found

    I need alittle help getting down the concept of a package, because somethings a skew and I keep getting these errors. ///ERROR C:\javastuff\cart>javac ShoppingCart.java ShoppingCart.java:62: cannot resolve symbol symbol : variable name location: clas

  • Display Problem - Has this happened to you?

    Well, I have the new 3rd gen 8GB iPod nano. About 4 days ago, I noticed that when I turn on my iPod and highlight 'Music' in the first Menu, it doesn't display the album artwork like its soppose to, it shows 794 songs. Also does this with Movies and