Problems with Portlet projects

Hi,
Started using Java Studio Enterprise recently (now that it's free) since I am developing portlet applications for an organization running the enterprise system in production use.
The IDE is great (love the UML stuff) but I've run in to a couple of problems that are really slowing me down.
When I run a portlet project in the Application Server (using the Harness portlet provider/Portal Server simulator) I noticed that every request made to the Portlet is duplicated. So if I have a line like...
System.out.println("Portlet: doView()");
... in the Portlets doView method I get this in the server log:
[#|2006-01-13T12:09:27.093+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=31;|
Portlet: doView()|#]
[#|2006-01-13T12:09:27.109+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=31;|
Portlet: doView()|#]
Why is this happening and what can I do about it? I first noticed this when I was using a DAO from a portlet and all my sql statements got executed twice!
The other thing that's annoying me is that when i shutdown the ide, my datasource reference is whiped out from my web.xml file. So everytime I start Studio Enterprise I have to manually edit the web.xml file to get my datasource working. I have configured my datasource with the IDE (new File > Sun Resource -> JDBC resource...).
Any ideas?

Unfortunately this is a bug in in JSE 8.0. It will be fixed in the currently developed JSE 8.1, but for now there exists a work-around (quoting our portlet builder engineer):
1. Go to folder <userdir>/config/ps/Harness
(e.g.: "C:\Documents and Settings\<username>\.jstudio\Ent8\config\ps\Harness")
2. Open jsp file "PSSimTarget.jsp" in
<userdir>/config/ps/Harness/web/desktop/default/harness/PSSimTarget.jsp
3. Find next lines at the top of the file:
<i18n:set
var="locale"><%=ProviderHarness.getHarness(request,response,pageContext).getLocaleString()%></i18n:set>
<i18n:setLocale value="${locale}" scope="session"/>
<i18n:setBundle basename="i18n.Bundle" var="myBundle"/>
4. Replace it with next lines:
<%
HttpSession httpsession = request.getSession();
ProviderHarness tmpObj =
(ProviderHarness)httpsession.getAttribute("desktop.Simulator.ProviderHarness");
if (tmpObj == null) {
%>
<i18n:set var="locale"><%=ProviderHarness.getHarness(request,response,pageContext).getLocaleString()%></i18n:set>
<%
%>
<i18n:setLocale value="${locale}" scope="session"/>
<i18n:setBundle basename="i18n.Bundle" var="myBundle"/>
Every time when you start studio with new userdir, you should change PSSimTarget.jsp to avoid double requests.

Similar Messages

  • The timesheet creation failed, because of problems with the project I server or with data validation

    Hi,
    One of my user is facing issue in creating new time sheet,
    "The time sheet creation failed, because of problems with the project server or with data validations".
    This issue is coming to only few members out of 10000 members.
    Note: For the same user, can able to do in other machines. only the problem in his machine. Have ran the office diagnostics, but still the problem persists.
    Is any add-on's/any settings need to update in IE. Could any one please help me on how to fix this issue?
    Many thanks in advance.

    I would check the compatibility settings in IE etc, or try another browser (chrome, safari etc.)
    Ben Howard [MVP] | web |
    blog | book

  • Problem with Portlet Backing Context

    Hi,
    I am having problem with Portlet Backing context.
    I have on portlet and one JPF associated with this portlet.
    Now in JPF action method i have Portlet Backing context object, using this object
    i tried to get the previous portlet state using portletCtx.getPreviousWindowState().
    But It always gives me null.
    can anyone help me out ? its very urgent.
    or you can suggest me anyother option to do this....
    Thanks,
    Vijay Patel

    Vijay -
    You might want to post this to the Portal newsgroup.
    Regards,
    Kunal
    "vijay patel" <[email protected]> wrote:
    >
    Hi,
    I am having problem with Portlet Backing context.
    I have on portlet and one JPF associated with this portlet.
    Now in JPF action method i have Portlet Backing context object, using
    this object
    i tried to get the previous portlet state using portletCtx.getPreviousWindowState().
    But It always gives me null.
    can anyone help me out ? its very urgent.
    or you can suggest me anyother option to do this....
    Thanks,
    Vijay Patel

  • Problem with Multisim project

    Dear Community,
    I had a problem with a Multisim project. My project doesn't work, every time it generates a SPICE Error. I rebuild exactly the same circuit as the ThreePhaseInverter(Example from NI). For testing I add a Four channel oscilloscope and a measurment probe but they doesn't work.
    What did I wrong, can somebody Help me.
    PS: I know my english is not very well.
    Attachments:
    Aufgabe a.ms13 ‏204 KB

    Hello Turasis,
    I've changed something (don't know what) now it works
    see attached
    Regards,
    Stefan
    Attachments:
    Forum.ms13 ‏634 KB

  • Problem with DC project

    Hi All,
    I am using DC components for my projects.Recently I have encountered problems with my DC components.
    The "DCMetaData" in WebDynpro perspective is no longer getting reflected.
    Steps:- Open WebDynpro perspective -->WebDynpro Explorer --> Expand the project. DCMetaData should be present but for my components it is no longer present now.
    Also components are no longer in MyComponents list of DC perspective.
    Can anyone please tell how I can resolve it as I am not able to either delete old DC components and deploy new components.
    Looking forward for the reply.
    Regards,
    Pawan

    Hi,
    In Netweaver Studio, open Window-->Preferences. Then expand Workbench and select Workspace.
    Then make a note of the path of the default workspace.
    From the workspace either you can reimport/reload your project
    or
    close Netweaver Developer Studio.  go to the path of the default workspace. You should see a directory named ".metadata". Delete that directory
    Now restart Studio. This will recreate the '.metadata' directory
    before doing any of this try to export/copy your projects.
    Regards
    Ayyapparaj

  • Problem with trimmed project

    The project in Premiere Pro CC for Mac was trimmed by project mahager, then when I open trimmed project, clips in sequence was in nonexistent part of original video file.
    Like this:
    What is that? How can I fix it?
    thank you in advance.
    Yermek

    This is a problem I have from time to time with Trimmed Projects.  Even though the media is there, for some reason Premiere can't see it.  It's maddening because it's very hard to duplicate and thus troubleshoot.  But when it happens, there's no sensible explanation.
    Our discussion on this problem is here:
    Re: Trimmed Project sequence not working
    Here's one thing you can try that sometimes works:
    1. take all your media out of the trimmed project folder and put it in a different folder somewhere else
    2. launch the trimmed project
    3. the offline window comes up automatically with a list of missing clips. UNCHECK the align timecode box and manually reconnect all the trimmed clips.
    4. zebra stripes gone. sequence plays.

  • Problem with "View project-level information" permission when accessing build definition in Visual Studio Online

    Hi, 
    from some time all our team members are experiancing problems when acsessing list of builds on Visual Studio Online or when trying to edit build definition in Visual Studio. Error message suggests problem with missing View project-level information permission:
    "TF50309: The following account does not have sufficient permissions to complete the operation: XXXXXXXX. The following permissions are needed to perform this operation: View project-level information."
    I've checked permissions of my User account and Group. "View project-level information" is set to Allow on both levels. We didn't make any changes in security configuration recently. Does anyone faced similar problem?
    Short term solution was to add all users, to Project Collection Administrators Group, but it is not what we would like to live with.

    It seems that the problem was fixed and Project Collection Administrators permissions are no longer required. Great :-)

  • Problem with opening project file from my friend

    My friend save his project and gave me it on CD. Of course he gave me all needed files like source videos. It's videos from the same type of DSLR clips which I also have. So I making my own movies also with clips in this codes or similar. My DSLR is Canon 600D but DSLR of my friend is Canon 550D - clips from his DSLR are of course also written form my system. So everything seems to be OK.
    Now i try to open this project in my PC but it doesn't work at all. I can see only this message:
    My friend work on CS 5 but I work on CS 6. I don't believe that Adobe Premiere Pro can't open a older type of his project files. Please help.

    Mark Mapes wrote:
    What do you know about the sequence preset your friend used?
    Sequence preset? I don't know anything. But I think that is unneceserry even to know. Because why sequence preset can be important? Preset is only a preset. So I can't see any reason preset was a main problem with it.

  • PROBLEM WITH iMOVIE PROJECT CONVERSION TO QT

    I occasionally have strange things happen when converting iMovie (DV) projects to 'full quality' QT.dv files.
    Example: footage transferred from a visually pulsating image (originated on a 1920s 30 line mechanical TV scanner invented by J L Baird) has an acceptable rippling effect seen in iMovie. When converted to a QT (full quality) file the rippling becomes a rapid strobing flicker, ie something is changed in conversion. And, DVDs made from each - from the iMovie project and from its QT conversion - produce these same effects.
    Any info on what happens in conversion to QT causing this problem?

    Well...thanks a lot for ur help...!
    But...somehow, I feel the settings of my Top-Link Db-Adapter are fine...
    (B'coz as far as i can remember, i haven't meddled with it since creating/configuring the DB-Adapter in my ESb project...and there, i could specify my DB Connection ( say, DBConnection1, & could later import the Exact Table i wanted as an Offline Data source (for the routing rule..for Mapping the fields..) )
    ...i somehow believe there should be a problem with the <ORACLE_HOME>\j2ee\home\application-deployments\default\DbAdapter\oc4j-ra.xml
    B'coz as Marc pointed out, i couldn't see any data-source with JNDI name loc/DBConnection1DataSource in my EM console...
    So, i tried creating a new data-source there & pointed it to one of the existing connection-pools in the file :-
    <ORACLE_HOME>/j2ee/home/config/data-sources.xml
    In this connection-pool, i basically set the proper connection-string ("jdbc.thin.....") to point to the proper SID...( as i had set up & tested in my JDeveloper Database Connection..)
    Hope my approach is right..??
    Or..am i missing something here..??
    Thanks a lot again....!

  • Problem with opening project in NetBeans 5.0

    Hi,
    When i try to open an existing project in NetBeans 5.0 or try to add a new platform to a certain project, my computer is stack and i can't work with the NetBeans IDE ( i have to kill the process)
    How can i fix this problem?

    Hi
    Please ensure servlet can natural work.
    http://localhost:8080/one/Receive
    Please use actual path in form at best.
    /appname/uservletname
    just say:
    <form method="post" action="/one/Receive">
    Regards

  • Problem with portlets with XSLT generating dynamic portal compatible links

    Hi,
    We're using XSLT to transform XML data to HTML in a portlet. The problem is that
    the XML contains headlines and we need to create links to the complete article,
    which has to be displayed in the same portlet. How do I create a portal comaptible
    link with XSLT? In the JSP you can use the netui tag library like:
    <netui:anchor action="..">
    link
    <netui:parameter name="id" value="{id}"/>
    </netui:anchor>
    but how can I achieve this with XSLT? We tried generating the xsl with a jsp,
    but this doesn't work since the data entered in the value attribute of the netui:parameter
    tag will be encoded causing the XSL transformer to fail.
    Is there an easy solution to this? Or can XSLT only be used with very simple content?
    Ard

    We're trying to display some news headlines, clicking a headline has to invoke
    an action to display the complete article in the same portlet (using pageflow).
    When displaying the articles we use XSLT like (this is a JSP generating XSLT):
    <?xml version="1.0"?>
    <%@ page contentType="text/x-xslt"%>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="items">
    <xsl:apply-templates select="item"/>
    </xsl:template>
    <xsl:template match="item">
    <nobr>
    <%-- ###### Here we need an action link, with the title as a request parameter
    ###### --%>
    <xsl:value-of select="@title"/>
    </nobr>
    </xsl:template>
    </xsl:stylesheet>
    The XML is like:
    <items>
    <item title="some title"/>
    <item title="some other title"/>
    </items>
    We need to generate a portal compatible link which invokes an action (show_details)
    with the title of the article as a request parameter.
    I know how to do this in a JSP, but since the data is in XML we like to do this
    with XSLT.
    Can you help?
    Subbu Allamaraju <subbuATBeaDOTCom> wrote:
    Could you elaborate (perhaps with some xsl snippet generated by jsp)
    the
    failures you were getting with xslt?
    Subbu
    Ard van der Scheer wrote:
    Hi,
    We're using XSLT to transform XML data to HTML in a portlet. The problemis that
    the XML contains headlines and we need to create links to the completearticle,
    which has to be displayed in the same portlet. How do I create a portalcomaptible
    link with XSLT? In the JSP you can use the netui tag library like:
    <netui:anchor action="..">
    link
    <netui:parameter name="id" value="{id}"/>
    </netui:anchor>
    but how can I achieve this with XSLT? We tried generating the xsl witha jsp,
    but this doesn't work since the data entered in the value attributeof the netui:parameter
    tag will be encoded causing the XSL transformer to fail.
    Is there an easy solution to this? Or can XSLT only be used with verysimple content?
    Ard

  • Problem with Export Project as New Library

    Getting some behavior from Aperture that I do not understand.
    I am running Aperture 3.5.1 on OSX 10.9.1 on both a MacPro and a MacBookPro(Retina). 
    Both machines are believed to be completely up-to-date software-wise (no indication in App store that software updates are available.  i don't know how else to look.).
    I imported (Nikon D800) raw images from an SD card to MacBookPro Aperture Library (which contains few images), performed adjustments (and "shared" some with my SmugMug account).
    Then I selected the Project that contained my images, chose File, Export, Project as New Library (in order to move the adjusted images to my MacPro, where my "real" Aperture Library resides).  (first time i have attempted such a workflow).  I selected all 3 options (Copy originals . . ., Copy previews . . ., Show alert) and clicked Export Library.
    I copied the resulting file to my MacPro.  After choosing File, Import, Library (in Aperture on the MacPro), I see it "Merging", and then the project in question appears in the Library on the MacPro.
    The problem is that each image has a message at the top of the Adjustments pane:  "This photo was adjusted using an earlier version of Apple's RAW processing", and they all come into the receiving library with no adjustments, and no previews - not even the built-in preview that a raw file should carry (the images show in the viewer as _really_ flat, gray - very strange, i have never seen this appearance before, though I routeinely use raw format).
    Trying to troubleshoot, I went back to the MacBookPro and closed Aperture, then double-clicked the Library on the desktop that had resulted from the export process (containing only one project).
    Same situation.  All of the images think they were processed on older raw processor (even though this library is being opened on the same computer that did the processing).
    Any ideas?  Is this a bug, or have I misunderstood the point of exporting Projects?

    There have been two problems, reported, when exporting projects as library:
    In earlier versions of Aperture the exported library did not include all images, if images had been imported from Photo Stream. I cannot reproduce this bug any longer with Aperture 3.5.1.
    The export could go wrong, if the aperture library needed repairing.
    Have you tried the Aperture Library First Aid Tools,to fix a possible library curruption?
    See this link:  Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Before trying to rebuild, make sure, your backup of your Aperture library is current and in a working condition.
    I see a progress bar and the .exporting library is created in the desired location.
    Finally I decided to watch a project closely as it was being exported as a library and I noticed that the file size jumps up an down. I'm not an expert on how export works, but it would appear that each exported photo is overwriting the previous one.
    What is the desired location? Are you exporting to your internal system drive or to an external drive? If external, how is the drive formatted?  Such overwriting of files could be caused by incompatible filesystems creating conflicting pathnames. Make sure, the destination is a filesystem formatted MacOS X Extended (Journaled).
    -- Léonie

  • Problem with portlet addin

    Hopefully someone can help me with the following problem, I'm trying to setup a demo of portlets for a customer.
    I've downloaded the latest portlet wizard addin that supports JSR 168. But after following the installation instructions it did not work for me.
    When clicking the finisch button on the Java Portlet wizard the following exception occurs:
    Exception occurred during event dispatching:
    oracle.xml.parser.v2.XMLDOMException: Node does not exist.
    org.w3c.dom.Node oracle.xml.parser.v2.XMLAttrList.removeNamedItemNS(java
    .lang.String, java.lang.String)
    XMLAttrList.java:711
    I've tried this with jdev 9.0.3.2 and 9.0.3.3.

    Hello Jelco,
    Did you install the Java Web Service Developer Pack 1.3 or 1.2 ?
    My guess is you are using the 1.3 and this is the reason why you have get this error.
    Sun provide access to all previous downoad in the archive section:
    http://java.sun.com/webservices/archive.html
    If you installed 1.3 could you please install 1.2 and let me know ?
    Regards
    Tugdual

  • Problems with mobile projects with apache flex 4.8 and an overlay of the latest air sdk

    Using flash builder 4.7 beta, apache flex 4.8 and an overlay of the latest air sdk, i got resolution problems while testing the mobile app (windows version on windows 7) with the air (ipad)emulator. That means the emulator is much bigger than my screen (logicaly seen the resolution of my screen and also like this in earlier version), but the app is much smaller than the emulator. As I have no design view with apache flex 4.8, I don't know where to start searching. Can anyone give me some input?
    Gert

    Hi Crill,
    I don't see any error on creating new projects and running the same.
    Where did you get the installer from?
    What is the framework linkage type? You can check this in project properties -> flex build path. It should be Merged into code for Apache SDK.
    thanks,
    Sudhir

  • Problem with generated projects

    I install Andmore plugin . I tested install "Andmore" (first checkbox) , "Andmore Core SDK" and both.
    Is problem: when I generate new Android Application Project and choose Tabbed Activity, I have import android.support.v4.app.* and android.support.v7.app.*.
    This follows android.support.v7.appcompat in gen folder, android-support-v4.jar and android-support-v7-appcompat.jar in "Android Private Libraries" folder and appcompat_v7.jar in "Android Dependencies" folder.
    This (?) causes "Conversion to Dalvik format failed with error 1" error.

    Nothing to do with Java ME SDK, which is the subject of this forum.
    Moving to CLDC and MIDP
    db

Maybe you are looking for

  • Windows Vista 64 bit and Treo 755p

    Hello, I am wondering if the latest software update will allow me to sync using HotSync and a cable.  When I got my 755 it said that it was not compatible with my new computer that has the 64 bit Vista.  Is this going to be fixed eventually or should

  • My wife and I been trying to use an iTunes card to share it but it. Doesn't work can you help us?

    Can I share my iTunes card with my wife?

  • What is wrong with Adobe Application Manager?

    I didn't know where to post this since I'm unsure what category this belongs in. I noticed yesterday the Adobe Application Manager removed my purchased Photoshop CS6 from the list and added Adobe Acrobat XI which I recently purchased only the latter

  • Certview Question, and 1Z0-052 Question

    Hello All, I recently passed 1Z0-051. Very pleased with that. I have been reading Oracle press book for almost 1 year, and preparing for 1Z0-052 for almost 1 year. I have 1 year experience of Oracle database experience, integrating it with coldfusion

  • No ascending calendar alarm tone in N82

    I'm having some problems with the sound level of the calendar alarm in my new Nokia N82. I have the ringing type set to ascending in the phone profile and both the alarm clock and ringing volume start at a low level and increases which is what I want