NetBeans 6, portlet development made easy?

Couple years ago, I developed a JSF portlet in Sun Studio Creator. I was not satisfied with SSC, but it did its job, the development was rapid and the portlet is still running.
I was rather disappointed when I installed NetBeans 6.1, downloaded all PortalPack plugins and tried to do a simple Hello World example. After an hour of downloading different jars and browsing people's blogs, I gave up.
Is there any way how to easily in a few simple steps create a JSF Portlet in NetBeans? Or is it better to create all of the config files yourself?

>
...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
After all.. Garbage in, Garbage out!
* And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
<j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
Edit 2 - Added possible alternatives..
<j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
<j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

Similar Messages

  • Developer-Online Tutorial announcement :: Dynamic Mod_Rewrite Just Made Easy ::

    Dynamic Mod_Rewrite Just Made Easy
    Mod Rewrite Dynamic URL's into Static URL's The Issue at Hand, There are two types of URLs: dynamic and static. A dynamic URL is a page address that results from the search of a database-driven web site or the URL of a web site that runs a script. In contrast to static URLs, in which the contents of the web page stay the same unless the changes are hard-coded into the HTML, dynamic URLs are generated from specific queries to a site's database. The dynamic page is basically only a template in which to display the results of the database query. Instead of changing information in the HTML code, the data is changed in the database.
    Tags:
    ADDT |                                                                                       tips & trics |                                                                                       Search Engine Optimization |                                                                                       SEO |
    Votes:
    Not Rated!
    Viewed:
    [1] time(s)
    Rate This Tutorial:
    Posted on:
    2009-06-14 03:15:15
    Author:
    waleed

    Great info!!

  • Pl/sql portlet development; MODE_SHOW_EDIT_DEFAULTS

    Hiya, I've got my cool portlet up and running (provider and all), now I need to make it customizable.
    I'm having a hard time understanding the preference-stuff and how to utilize it.
    I understand to the point where we either show the portlet contents (MODE_SHOW) or one of the other options. specifically MODE_SHOW_EDIT_DEFAULTS.
    * How do I render the input form for updating the prefs? The input and the buttons for instance. What should be the target for the form?
    * where exactly are preferences stored and how? ok, I think I've got this bit. The preference path and name. Both have to be "initialized" in the register procedure of the portlet (and deleted in the deregister procedure). But at what point/what procedure do we save them after updating the defaults? How to define the default values, are they automatically overwritten when we save the form values?
    * when user clicks a button (apply) what to do then?
    I'm looking for a simple tutorial(s) or explanation of the basics, so I can get started. Portlet development guide examples went over my head (not very easy to understand), nor are they very plentiful.
    I looked at the example files (site_index_portlet), and had a hard time understanding those too... bit too complicated for a beginner.
    Thanks,
    Edited by: Baguette on 26-Apr-2009 23:48

    You could take a look at this, here you should find all the information you need to make your portlet customizable :
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_pdk_plsql.htm#CHDFDCFJ

  • Coming Soon! DNS Made Easy Client Success Stories

    As part of DNS Made Easy’s continued efforts to optimize our services for your needs, we’ve developed a series of Client Success Stories. These case studies are compiled from direct testimonials from our clients who were asked to explain how DNS Made Easy has helped them simplify their DNS services and optimize their websites for […]
    Read More
    This topic first appeared in the Spiceworks Community

    user10233638, did you install a 64 bit Oracle client or a 32 bit Oracle client? Your subject line says instant client which I would think you are using the EZconnect feature. To the best of my knowledge, which I admint is limited in regards to the instant client, I thought that the EZ connection like a java thin client connection supplied all the Oracle target information so not tnsnames.ora file was required.
    I found a EQ connection example in the following while researching your issue:
    ORA-12154 When Using Long SQLNET Alias in DBQ Property of ODBC Connection String or TNS Service Name of DSN [ID 1340407.1]
    Is there any reason you are not using a regular Oracle client or an ODAC client installation? The ODAC client installation does not come with the network configuration tools but I have copied a tnsnames.ora file into the appropriate directory my customer wanted installed so they could use the MS Visual Studio support provided by ODAC. We are using that client to support connections to Oracle.
    As far as I know Oracle does not care if you point to a network hosted tnsnames.ora file via the TNS_ADMIN environment variable. So long as the sqlnet software can open and read the tnsnames.ora file I am pretty sure Oracle does not care. We have been using a network hosted tnsnames.ora file to support desktop clients for over a decade and a half though we do not use this option from servers. I am pretty sure it was Oracle support that suggested using a commont client tnsnames.ora file to us to begin with.
    HTH -- Mark D Powell --

  • 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

  • Consuming a Portlet developed With Web center

    Hi,
    Please suggest if a portlet developed using web center can be consumed in any kind of web application(irrespective of tehnology..say.. asp.net)
    Thanks & regards

    HI,
    see
    http://blogs.oracle.com/middleware/entry/calling_web_services_using_adf_11g
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html
    http://www.devx.com/java/Article/35429/1954

  • 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.

  • Workshop IDE for WebLogic Platform - JSF Portlet Development

    Hello,
    I am trying to develop JSF based portlets using BEA Workshop for WebLogic Platform IDE. The capabilities of the IDE in terms of JSF is like a simple text editor. Since the IDE is eclipse based, I wanted to to use some Third Party Plugin for JSF development.
    I evaluated the following:
    1. Workshop Studio for JSF
    2. MyEclipse PlugIn for JSF
    Problem 1:
    Workshop Studio for JSF is a separate product and cannot be installed as an plugin over the Workshop IDE.
    Is this acheivable?
    Problem 2:
    I created a Portal application Workspace through Workshop for Platform and opened the same using Workshop Studio for JSF. It crashed saying some runtime exceptions.
    Problem 3:
    MyEclipse PlugIn for JSF doesnt integrate properly with Workshop IDE. The Faces navigational flow view is not working properly.
    Questions:
    1. What is BEA's recommendation for JSF development?
    2. Can you guide me how other developers are using the IDE for JSF development?
    Thanks and regards,
    Pazhanikanthan. P

    Hi Pazhanikanthan,
    Unfortunately, in the current release the JSF features cannot be used to create JSF portlets.
    Please check the following URL for additional information on JSF portlet creation
    http://e-docs.bea.com/wlp/docs92/portlets/building.html#wp1062147
    If you are planning on building JSF web applications, you can always evaluate and purchase a copy of Workshop for JSF or Workshop Studio.
    if you are planning on building JSF based pportlets, you will need to sue the tooling provided by Workshop for WebLogic 9.2
    Applications built in Workshop for WebLogic cannot be imported into Workshop Studio. On the other hand, you can always create a webapp in Workshop Studio,a nd then import it into Workshop for WebLogic as a component.
    hope this helps.
    cheers
    Raj
    If you have additional questions specific to portlet development, please post to the portal newsgroup at http://newsgroups.bea.com/bea/forum.jspa?forumID=2044

  • R/3 authorization made easy

    hi all,
    I need R/3 authorization made easy 4.5 A/B. if any one has pls forward it to
    <b><removed by moderator></b>

    Use this link to download:
    http://dl4.ohshare.com/d/9815564/1182678010/45_all.pdf
    Points are appreciated!
    Kind regards,
    Lodewijk

  • 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); }

  • Regarding Oracle ADF Enterprise Application Development - Made Simple book

    Hi guys,
    I am trying to do Sten Vesterli's Oracle ADF Enterprise Application Development - Made Simple
    book. But I am stuck setting up OTPC. When I am trying to run "tpcinstaller.jar" and give my database connection information I am given a TPC-90019 error.
    The log file says it is a "ORA-01882: timezone region not found" error.
    My timezone is 'Asia/Calcutta'.
    This is what tpcinstaller log file contains,
    -------------------------------------------------------------------------------------log_file
    oracle.alminternal.version.Version: file:/C:/install/tpcinstaller.jar!/META-INF/version.xml
    11.1.1.4.37.59.23
    Launched from jar:file:/C:/install/tpcinstaller.jar!/oracle/alminternal/installer/Installer.class
    Found installer jar file /C:/install/tpcinstaller.jar
    Installer jar file name: /C:/install/tpcinstaller.jar
    Created temporary directory: tpctemp
    Execute command[tpctemp]: [D:\Oracle\Middleware\jdk160_21\bin\jar.exe, -xf, /C:/install/tpcinstaller.jar, lib]
    Extracting files ...
    Launching installer wizard, it may take a minute or so, please wait ...
    Execute command[tpctemp\lib]: [D:\Oracle\Middleware\jdk160_21\bin\java.exe, -classpath, annotations.jar;commons-io-1.2.jar;dms.jar;forms-1.0.6.jar;ideimpl.jar;idert.jar;javatools-nodeps.jar;javatools.jar;javax-ide.jar;javax.persistence_1.0.0.0_2-0-0.jar;jewt4.jar;oicons.jar;ojdbc6dms.jar;ojdl.jar;ojmisc.jar;oracle.ide.jar;oracle.ide.webbrowser.jar;oracle.ide.webupdate.jar;org.eclipse.persistence_1.0.0.0_2-1.jar;share.jar;TimingFramework.jar;uic.jar;xercesImpl.jar;xmlparserv2.jar;/C:/install/tpcinstaller.jar, oracle.alminternal.installer.Installer, -W]
    Temporary directory: connector created
    C:\install\tpctemp\lib\otpc created
    Jan 5, 2013 11:38:33 PM oracle.alminternal.installer.ideimpl.webbrowser.ProxyAddin loadProxyNative
    WARNING: Unable to default HTTP proxy: Native support is not available.
    :::settingsInitialized = false
    jdbc.url = jdbc:oracle:thin:@localhost:1521:xe
    jdbc.user = BOOK
    jdbc.password = BOOK
    SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01882: timezone region not found
    -------------------------------------------------------------------------------------log_file
    Regards !
    Sameera
    Edited by: samme4life on Jan 5, 2013 9:10 PM

    I have the same problem, when I delete row and after that I use refresh button in internet explorer. What I do is I drag and drop button "removeEntity" and edit it in backing beans adding new bindigs that commit changes and referesh page. Code:
    public String commandButton2_action1() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("removeEntity");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    OperationBinding commit1 = bindings.getOperationBinding("Commit");
    commit1.execute();
    OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
    requery.execute();
    return null;
    In page definition I added "Commit" action and code with methodAction is:
    <methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" MethodName="removeEntity"
    RequiresUpdateModel="true" Action="999">
    <NamedData NDName="entity"
    NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
    NDType="java.lang.Object"/>
    </methodAction>
    <action id="Commit" IterBinding="findAllRezerwacja1Iter"
    InstanceName="SessionEJBLocal.dataProvider"
    DataControl="SessionEJBLocal" RequiresUpdateModel="true"
    Action="2"/>
    Can sb tell is there is normal that when I delete row in table, and after it I refresh manually by IE page is normal that I get error messages. I this is the same situation using Back in IE. Deleting row that is commited to database works fine, but the problem is with manually refreshing page?
    Next question is about using Delete action from node instead of removeEntity, what is the difference? As you can see, I use removeEntitity method. Choosing Delete action instead doesnt works. Why? Rest of the code is the same but instead of dropping method removeEntity I drop Delete action
    Sorry for my English, its not my native.
    Thank in advance

  • Portlet development tips page on oracle wiki

    http://wiki.oracle.com/page/Webcenter+Interaction+Portlet+Development
    mostly .net specific.

    sweet! A development page is a great idea for the Wiki!

  • 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

  • Portlets developed in JDev 10.1.2 and using JSF

    Hi,
    Is it possible in JDeveloper 10.1.2 to create a portlet that uses the standard JSF libraries (not using Oracle ADF Faces libraries etc...), which can then be consumed by Oracle Portal 10.1.4, without having to use the JSF-Portlet bridge that is part of the WebCentre Suite ?
    The reason I ask is that I would like to develop portlets in JDeveloper 10.1.2 using JSF but I don't have a WebCentre Suite license. I don't think there is much point in moving to JDeveloper 10.1.3.2 to develop my portlets as I would still be in the same situation, I would ultimately need a WebCentre Suite license in order for them to be consumed by Oracle Portal 10.1.4, or am I missing something ?
    Thanks.

    Is it possible in JDeveloper 10.1.2 to create a portlet that uses the standard JSF libraries (not using Oracle ADF Faces libraries etc...), which can then be consumed by Oracle Portal 10.1.4, without having to use the JSF-Portlet bridge that is part of the WebCentre Suite ?
    The JSF Portlet Bridge is available separately.
    https://jsfportletbridge.dev.java.net/

Maybe you are looking for

  • I deleted the app store app.  How do I get it back?

    The app store icon has disappeared from my iphone4s and I can't find anywhere to download It again.  I ve tried going to the search screen but it's been no help. Any answers?

  • How to compare two file differnces

    Hi All , I have two files on my presentation server one file will have some errors and another will conatine corrected , Now I have to compare those two files and display the differed recoreds as a list.Please provide me the required code. Thank you

  • Dynamic Proxy and OutOfMemoryError

    I ran into this problem before when working with Proxied objects. I am integrating iBatis into my framework and using Dynamic Proxies to allow a developer to pass in a DAO interface and the Dynamic Proxy will retrieve the correct iBatis SQL Map and r

  • Time Dependent MD data discrepancy

    Hello, I have turned on time dependency for an attribute of Project Definition.  The data looks correct in the master data table.  Also when i browse the table using different inputs in the "valid to" and "valid from" fields i get the expected result

  • Network problem LaserJet M1522 MFP

    faced with such a problem. attached to the printer through a network, install the driver on two computers, one working group. One Laptop prints all good, the second after restarting the printer does not see. OS 7 32 base. Tell me what you can do and