Standalone Portlet Debugging ?

On my Win2k I have installed jDeveloper with the PDK-Wizard and have futhermore installed the OC4J extended with PDK (PDK_OC4J_EXTENDED.zip). According to the documentation it should be posible to do a standalone debugging (within the embedded OC4J) of portlets.
Is this true?
I have created a simple JSP-portlet and have succesfully been executing the index.jsp and following the link on this page to reach the providers test page.
But how do I test (/debug) my portlet?

Sorry for the multiple occurences of this posting, Got an error during posting!

Similar Messages

  • JDev 10.1.3.3 and WebCenter - Error running WSRP Standalone Portlet

    Hello: I am working with JDev 10.1.3.3 w/ the WebCenter extension on my WinXP PC. I have viewed the WebCenter How-To Demos (http://www.oracle.com/products/middleware/webcenter.html) and am replicating them in JDev. All is working except for the last in the Veeva Vacation demos (Building & Deploying Standards-Based Portlets). I followed the demo and successfully (so I thought) created an entry point, deployed the standalone portlet and registered the portlet producer. I dragged the VeevaProducer to the JSF page. Then with my Preconfigured OC4J running I tried to run the jspx page. Instead of seeing the application page, an error page appeared "Error instantiating web-application".
    The first error description is:
    "Error compiling :C:\Oracle\jdev10133\jdev\Veeva\ViewController\public_html: Syntax error in source or compilation failed in: C:\Oracle\jdev10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\Project1\oracle\portlet\wsrp\v2\soap\UnsupportedLocale.java C:\Oracle\jdev10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\Project1\oasis\names\tc\wsrp\v1\bind\runtime\WSRP_v1_PortletManagement_Binding_SOAP_Stub.java:35: error #300: WSRP_v1_PortletManagement_PortType not found in class oasis.names.tc.wsrp.v1.bind.runtime.WSRP_v1_PortletManagement_Binding_SOAP_Stub
    implements oracle.portlet.wsrp.v1.soap.WSRP_v1_PortletManagement_PortType { "
    I don't know what that means! Your help will be appreciated.
    Thanks.

    You can create EAR/WAR file from JDeveloper and then use the OC4J 10.1.2 managment console to deploy them to the server, there is no one-click-deploy support from JDev 10.1.3 to OC4J stand-alone 10.1.2

  • How to use standalone portlets in weblogic 8.1

    I have a pageflow that is pretty simple.
    It begins by forwarding the user to index.jsp that contains a hyperlinked list of available reports.
    When the user clicks on one of the hyperlinked reports, I would like it to forward to an action that initializes that report which in turn forwards to a jsp that opens a new popup window without any look and feel (just a plain white window) and renders the report inside of that window. I would like all of my previously set pageFlow variables to be available within that window.
    From what I have gathered this is called a "standalone" portlet and there is a jsp tag and also a java class that can be used to accomplish this.
    However, I have not had luck with either of these. When I used the JSP tag it opens the portlet in a new window without the look and feel as expected, but the portlet state is "reset", all page flow variables are reset, and the pop up window restarts at the "begin" action and re-displays the hyperlinked list of available reports. When I try to use the StandalonePortletURL class I get a Null Pointer Exception whenever I try to create the URL like this StandalonePortletURL.createStandalonePortletURL(getRequest(), getResponse()).
    The only work-around I have found is to first set the variables I need access to in the session and then manually redirect to the JSP outside of the page flow. When I do this I lose all access to the pageFlow variables so I have to refer back to the session to access the variables I need. This works but seems really sloppy and cumbersome.
    Appreciate any help. Thanks.
    Edited by: user6093557 on Mar 5, 2011 12:58 PM

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • Java PI7.1 mapping and standalone NWDS debugging using local XML files

    >>which can be debugged in standalone NWDS using local files.
    yes its possible...u just have to add static void main (as sugested in the blog) ..
    Note: i dont have a system as of now..so i guess there can be some sysntax errors. Please check.
    create input xml file with name "input.xml" and place it under "D" drive (it can be any location)
    package prasad.NewAPI;
    import java.io.IOException;
    import java.io.InputStream;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    * @author Prasad Nemalikanti
    public class NewAPIJavaMapping extends AbstractTransformation {
    public static void main(String[] args) {
              try{
                   NewAPIJavaMapping javaMapping =new NewAPIJavaMapping();
                   FileInputStream in=new FileInputStream("D:\\input.xml");
                   FileOutputStream out=new FileOutputStream("D:\\output.xml");
                   javaMapping.execute(in,out);
                   catch(Exception e)
                   e.printStackTrace();
       String result="";
      /* The transform method which must be implemented */
      public void transform(TransformationInput in,TransformationOutput out) throws StreamTransformationException
        InputStream instream = in.getInputPayload().getInputStream();
      // String for constructing target message structure
        String fresult="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
        fresult = fresult.concat("<ns0:MT_Customer xmlns:ns0=\"urn:newapi-javamapping\">");
        try{
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.parse(instream);
            traversingXML(doc);
         catch(Exception e){}
    fresult = fresult.concat(result);
    fresult = fresult.concat("</ns0:MT_Customer>");
    try{
      out.getOutputPayload().getOutputStream().write(fresult.getBytes());
      /* assigning the created target message to "TransformationOutput"*/
       catch(IOException e1){}
    /*DOM Parser */
    public void traversingXML(Node node)
       NodeList children = node.getChildNodes();
       for(int i=0;i<children.getLength();i++)
         Node child = children.item(i);
         short childType = child.getNodeType();
         if(childType==Node.ELEMENT_NODE)
                  String nodeName=child.getNodeName();
                  String targetNodeName=null;
                  if(nodeName.equals("Users"))
                   targetNodeName="Customers";
                  else if(nodeName.equals("ID"))
                   targetNodeName="CustomerID";
                  else if(nodeName.equals("UserName"))
                   targetNodeName="Name";
                  else if(nodeName.equals("City"))
                    targetNodeName="City";
                  else if(nodeName.equals("State"))
                    targetNodeName="State";
                  else if(nodeName.equals("Country"))
                    targetNodeName="Country";
                 if(targetNodeName!=null)
                  result=result.concat("<"+targetNodeName+">");
       traversingXML(child);
       if(targetNodeName!=null)
       result=result.concat("</"+targetNodeName+">");
         else if(childType==Node.TEXT_NODE)
           String nodeValue = child.getNodeValue();
           result = result.concat(nodeValue);

    I have tested this and it is working..please chk the same
    package com.test;
    import java.io.IOException;
    import java.io.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class JavaMapping extends AbstractTransformation {
           /* The transform method which must be implemented */
           public void transform(TransformationInput in,TransformationOutput out) throws StreamTransformationException
                this.execute(in.getInputPayload().getInputStream(),
                          out.getOutputPayload().getOutputStream());
           String result="";
           public void execute(InputStream in1, OutputStream out1)
          throws StreamTransformationException {
           // String for constructing target message structure
             String fresult="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
             fresult = fresult.concat("<ns0:MT_Customer xmlns:ns0=\"urn:newapi-javamapping\">");
             try{
                 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                 DocumentBuilder builder = factory.newDocumentBuilder();
                 Document doc = builder.parse(in1);
                 traversingXML(doc);
              catch(Exception e){}
          fresult = fresult.concat(result);
          fresult = fresult.concat("</ns0:MT_Customer>");
          try{
           out1.write(fresult.getBytes());
           /* assigning the created target message to "TransformationOutput"*/
            catch(IOException e1){}
          /*DOM Parser */
          public void traversingXML(Node node)
            NodeList children = node.getChildNodes();
            for(int i=0;i<children.getLength();i++)
              Node child = children.item(i);
              short childType = child.getNodeType();
              if(childType==Node.ELEMENT_NODE)
                       String nodeName=child.getNodeName();
                       String targetNodeName=null;
                       if(nodeName.equals("Users"))
                        targetNodeName="Customers";
                       else if(nodeName.equals("ID"))
                        targetNodeName="CustomerID";
                       else if(nodeName.equals("UserName"))
                        targetNodeName="Name";
                       else if(nodeName.equals("City"))
                         targetNodeName="City";
                       else if(nodeName.equals("State"))
                         targetNodeName="State";
                       else if(nodeName.equals("Country"))
                         targetNodeName="Country";
                       if(targetNodeName!=null)
                           result=result.concat("<"+targetNodeName+">");
            traversingXML(child);
            if(targetNodeName!=null)
                 result=result.concat("</"+targetNodeName+">");
              else if(childType==Node.TEXT_NODE)
                String nodeValue = child.getNodeValue();
                result = result.concat(nodeValue);
          public static void main(String[] args) {
                   try{
                        JavaMapping javaMapping =new JavaMapping();
                        FileInputStream in=new FileInputStream("D:\\Input.xml");
                        FileOutputStream out=new FileOutputStream("D:\\output.xml");
                        javaMapping.execute(in,out);
                        catch(Exception e)
                        e.printStackTrace();
    AM

  • Error While trying to Float a Portlet

    I am trying to float a JSR 168 Portlet by creating a Standalone Portlet Url tag
    < a href="<render:standalonePortletUrl/>" id="floaturl">Float</a >
    the url formed is something like this...
    http://emagwsd02.corpny.csfb.com:1156/bPortal/portlets/customizedReporting/ReportingPlatformPortlet.portlet?_windowLabel=ReportingPlatformPortlet_5&
    portlet.title=%3Cspan+id%3D%27Ct_ReportingPlatformPortlet_5%27%3EReporting+Platform+Portlet%3C%2Fspan%3E&
    _portlet.skeleton=UNO&
    _portlet.skeletonPath=%2Fframework%2Fskeletons&
    _portlet.skin=UNO&
    portlet.skinPath=%2Fframework%2Fskins%2F&portlet.themeName=borderless_crystal&
    _portlet.themeAltSkeleton=true&
    _portlet.themeAltSkin=true&
    portlet.themeSkeletonPath=%2Fframework%2Fskeletons%2FUNO%2Fborderlesscrystal&
    portlet.themeSkinPath=%2Fframework%2Fskins%2FUNO%2Fborderlesscrystal
    The problem that I am facing is that, when I try to open the url,
    the Page throws a Java script error ( Object Required ) at the following line
    < span class="bea-portal-theme-borderless_crystal" >
    in the JSP.
    any help or info on this is appreciated.
    Thanks
    GVS
    Message was edited by:
    gvsc

    JavaScript != javareplace or redirect ??

  • JSP Debugging

    Hi,
    I just downloaded the free Workshop for JSP. I installed it as a plugin into my current Eclipse 3.2 installation.
    Everything seems to work great. I can create a new web project and design JSPs using the jsp workshop editor with wysiwyg.
    My problem is that I can't debug my JSPs like I am supposed to be able to do with Workshop for JSP. I am able to set breakpoints in my jsp code, but it never stops at those breakpoints. However, I can debug my java classes without any problem, the debugger will stop in the classes, but not in the jsp.
    I'm running Weblogic 8.1 SP5 in standalone (not inside IDE) and I'm using remote debugging (socket attach) to attach the eclipse debugger to my wls. This setup works great with java classes, but I can't get it to stop into my jsp code. I tried several things, but I can't figure it out.
    As I said, my setup is quite simple:
    -Eclipse 3.2
    -Installed Workshop for jsp as a plugin
    -Running WLS 8.1 SP5 standalone with debug enabled
    -Created a very simple Dynamic web project with a simple jsp and a java class
    -Exported the project as a war file
    -Manually deployed the war file into standalone wls
    -Socket attach eclipse debugger to wls
    -Place breakpoints in jsp code and java class
    -Launch my jsp page in Internet Explorer
    -Will stop in java class but never in jsp code :(
    I tried using a normal domain and a workshop domain in wls, but neither worked. I also tried adding the following to the weblogic.xml of the war:
    <jsp-descriptor>
    <jsp-param>
    <param-name>compileFlags</param-name>
    <param-value>-g</param-value>
    </jsp-param>
    <jsp-param>
    <param-name>keepgenerated</param-name>
    <param-value>true</param-value>
    </jsp-param>
    </jsp-descriptor>
    but it didnt change anything.
    Right now, after a few hours of trying, I'm a bit lost and I dont have any ideas left, but I'd really like to get this jsp debugging thing working, so if anyone can help me out with this, any help will be greatly appreciated.
    Thanks
    Mat

    Hi,
    Its been a few days now and nobody helped me solve this problem. Does this mean I am the only one with this particular problem?
    My setup it quite simple and what I am trying to do is really straight forward, I just cant believe noone can help me out here. There must be something I am missing.
    Please, I really need this thing to work.
    Thanks again

  • Need help to download csv file in application by writting to outputstream.

    HI All,
    Requirment of my client is donloading CSV file from portal.
    My approach  is:
    On clicking "Download" button in JSP I am calling an action in controller and from here I am redirecting call to DownloadCSV.jsp where i am writing to output stream of response.
    Action called in controller:
         @Jpf.Action(forwards = { @Jpf.Forward(name = StaticConstants.SUCCESS, redirect = true, path = "DownloadCSV.jsp") })
         public Forward gotoReports() {
              Forward forward = new Forward(StaticConstants.SUCCESS);
              return forward;
    Download jsp:
    response.resetBuffer();
         response.reset();
         response.setContentType("application/vnd.ms-excel");
         response.addHeader("Content-Disposition", "attachment;filename="+ companyId +"_Audit_Report.csv");
         ServletOutputStream os = response.getOutputStream();
              os .println();
              os .print("DATE");
              os .print("USER");
    os .println();
    os.flush();
    os.close();
    I am able to download the csv file in excel. But after that i am not able to perform any operation in portal page. Mouser pointer becomes busy and cant click on anything.
    Second approach followed:
    I wrote the code for writting to outputstream of outputresponse in controller action itself and forwarded to the same jsp where my download button resides.
    Problem:
    Download happens perfectly but the excel in csv format contains the portal framework generated content also other than content i wrote to response.
    If u have any other approach to download an excel without redirecting to JSP plz let me know. Coing is being done in 10.2 weblogic portal.
    Please help. Its very urgent.
    Plz let me know how a file can be downloded in portal context without keeping a file at server side. I need to download file by writting to outputstream.
    If it is possible plz attach one small example project also.
    Thanks a ton in advance.
    It is very important plz do reply.

    Hi Srinivas,
    For downloading binary content that is not text/html, the Oracle WebLogic Portal content management tools use javascript in an onclick event handler to set the window URL to the URL of a download pageflow controller: window.location = url. The content management tools are in a portal so it should be possible for you to do the same thing.
    The url is a custom pageflow controller that streams the bytes to the response. It sounds like you already have a pageflow you could recycle to use in that way. You don't want to stay within your portlet pageflow because then you will be streaming bytes into the middle of a portal response. You want a separate download pageflow that you invoke directly, outside of the portal framework (in other words, don't invoke it by rendering a portlet that invokes the pageflow).
    You can set the url to invoke the pageflow directly by giving the path to the pageflow controller from the web root (remember the pageflow path matches the package name of the pageflow controller class) like this: "/content/node/nodeSelected/download/DownloadContentController.jpf"
    By the way, for the case of text/html, the tools uses a standalone portlet URL so that the text/html is not rendered in the browser window, which would replace the portal markup (because the browser renders text/html by default, instead of giving you a download widget or opening some other application to deal with the bytes).

  • First flexunit test is always failing with Error Error #1009: Cannot access a property or method of

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

  • Redefining classes

    Hi,
    I would like to redefine classes during debugging in Developer, I think it's possible.
    But every time I get the same 'answer' :
    Debugger attempting to connect to remote process at localhost 4000.
    Debugger connected to remote process at localhost 4000.
    Debuggee process virtual machine is OJVM Client VM.
    Debuggee process is application server OC4J.
    To test JSPs or servlets, you must start a browser.
    Redefining classes is not supported by the debuggee virtual machine.
    OC4J is standalone and debugging classes are session and entity beans.
    I start OC4J with: -ojvm -XXdebug,port4000,detached,quiet -Xmx390M -jar -Djdbc.connection.debug=true oc4j.jar
    How can I change debuggee virtual machine to support Redefining classes ?

    try this:
    -select project
    -right click and select "properties".
    -go to "runner" tab/window.
    -select another "virtual machine" to run oc4j.
    bye.
    Davide

  • Maximum width of portal

    Hello,
    I was wondering if there is a easy way to define the maximum width of a portal.
    I'm now dealing with the problem that when I load a certain portlet, this portlet
    becomes to big to have a one-screen view. I want my portal to be viewable on one
    screen-width. Is there any way to do this?
    Greets,
    Koen

    Hello Koen,
    There is not an "out-of-the-box" setting in WLPS 3.5 for the width of a portlet,
    but there are a few things you could do to solve your problem:
    One option is to customize portalcontent.jsp, which lays out the portlets in an HTML
    table. Look at portal.jsp, which contains portalcontent.jsp, which contains an HTML
    table that contains each portlet.jsp... You may be able to use a group property such
    as "widthOfMyBigPortlet" to build the table on the fly.
    The easiest thing may be to use a maximizable portlet (
    http://e-docs.bea.com/wlcs/docs35///////portal/portldev.htm#1025077 ). That way, you
    could show an index or summary of content in the portlet and show the full portlet
    when it is maximized. The maximized content can be different than the content in the
    non-maximized portlet.
    Alternatively, you could include a link in your portlet that opens a new window
    containing the contents of your portlet in a stand-alone JSP page (use the <a>
    "TARGET" attribute to open the new window. If you want WLPS session attributes
    available in your standalone portlet (or you want to use rules) then you should go
    through the FlowManager servlet to your JSP page. To do this, send a request to the
    registered name of your FlowManager (probably "application") with pathinfo that
    contains the name of the Application Init property set for your application
    (something like "exampleportal"). Include the real (or final) destination in the
    query string as a parameter like this
    "dest=/portals/repository/portlets/mybigportlet.jsp". Make sure that the real
    destination is under your working directory (defined in your application init
    property set) so you don't get a SecurityException. The FlowManager servlet will not
    forward requests to JSP pages that are not in your working directory. The URL would
    look something like this:
    application/exampleportal$dest=%2Fportals%2Frepository%2Fportlets%2Fmybigportlet.jsp.
    After you get the link working, you should try creating the URL using the methods of
    JspBase.
    Koenpp wrote:
    Hello,
    I was wondering if there is a easy way to define the maximum width of a portal.
    I'm now dealing with the problem that when I load a certain portlet, this portlet
    becomes to big to have a one-screen view. I want my portal to be viewable on one
    screen-width. Is there any way to do this?
    Greets,
    Koen--
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com

  • "Program Not Responding" and cannot shutdown the computer? Help?

    I have a TouchSmart tx2, upgraded from Vista to Win 7 Ultimate, 32-bit.  The BIOS version is F.03, Released 2008 11 25.  My computer will not shut down...I get a blank screen and the constant whirrrrrr of the hard drive but it will not shut down and I am forced to do a hard shut down and restart in SAFE mode.   Further, I get the "Program not responding"  problem 6 to 7 times a day while running Outlook, and several other programs.  I'm not sure what to do at this point?  Help?

    Same problem here since an upgrade to the recent xbmc version.
    - hal removed
    - udisks and upower installed
    - my user is in the 'power' group
    I start X via /etc/inittab:
    x:5:respawn:/bin/su lynix -l -c "/bin/bash --login -c 'startx xbmc'>/dev/null 2>&1"
    and my .xinitrc is:
    #!/bin/sh
    nvidia-settings -l
    if [ "$2" == "xbmc" ]; then
    # start XBMC
    exec ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc --standalone -fs --debug &>$HOME/.xsession-errors
    else
    # start openbox session
    exec ck-launch-session openbox-session &>$HOME/.xsession-errors
    fi
    Any hints what could be wrong?

  • Jdeveloper OC4J need help

    Hi all,
    i am using JDeveloper latest version. i have 2 applications, one is JSF and another one is WebService. i need to call that webservice from jsf webapp. But in jdeveloper how to run two applications simultaneously.
    i tried with oc4j standalone application server. i deployed webservice in oc4j standalone app server. its runnining in some port number. another jsf application running from jdeveloper itself. its running in different port number.
    But its not working. but i tried with different machine in LAN, its working fine.
    How to resolve it.
    Is it any other port number, i have to change ? in which file ?
    I need to deploy the webservice, should run background through oc4j standalone and debugging or running the jsf webapp through jdeveloper ide.
    Help me. thanks in advance.
    Srinivas.R

    The simplest solution would be to have one application with two projects.
    Then you righ click run the WS and then right-click run the JSF.
    If you are running on another port - you'll need to change the WS data control files to include the right port number. Do a search on your project for the port number and change it as needed.

  • Cannot shutdown the computer via XBMC

    I cannot shutdown my HTPC via XBMC. When I try to shut it down, I just ends up back in the shell. Im not running any WM and I autostart XBMC via .xinitrc so I have to make a hard shutdown everytime.
    Dunno what to do?
    Last edited by Hund (2011-01-04 23:52:54)

    Same problem here since an upgrade to the recent xbmc version.
    - hal removed
    - udisks and upower installed
    - my user is in the 'power' group
    I start X via /etc/inittab:
    x:5:respawn:/bin/su lynix -l -c "/bin/bash --login -c 'startx xbmc'>/dev/null 2>&1"
    and my .xinitrc is:
    #!/bin/sh
    nvidia-settings -l
    if [ "$2" == "xbmc" ]; then
    # start XBMC
    exec ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc --standalone -fs --debug &>$HOME/.xsession-errors
    else
    # start openbox session
    exec ck-launch-session openbox-session &>$HOME/.xsession-errors
    fi
    Any hints what could be wrong?

  • Discoverer in Portal

    I have tried to publish a discoverer workbook and worksheet through Portal with no success. I have built the Discoverer portlet provider, but when I go to edit the worksheets or list of workbooks, I do not get a list of available Discovere workbooks. Any suggestions on how I get my existing workbooks to show in the drop down lists?

    The CORBA Error is definitely Discoverer specific. It could be several causes..the Object Activation Daemon (OAD) is overloaded, a misconfiguration, etc.
    You mentioned you tested the worksheet with Discoverer Plus; however, the Discoverer Portlet Provider uses the Discoverer Viewer (servlet) as the underlying technology.
    I would suggest the following:
    1.) Test with Viewer
    2.) We do have the capability to turn on some diagnostic tracing via the configuration.xml file
    Try this:
    · Stop Oracle HTTP Server (Apache)(via EM or $ORACLE_HOME/dcm/bin/dcmctl stop –ct ohs)
    · Stop Oracle Discoverer Services
    · Delete (or copy and delete if you want a backup) the OHS error_log, access_log and the OC4J Discoverer application.log
    (<Middle-Tier OH>/j2ee/OC4J_BI_Forms/application-deployments/discoverer/OC4J_BI_Forms_default_island_1/application.log)
    · Enable the highest level of logging in the httpd.conf (For example: httpd.conf = LogLevel debug)
    · Enable any further Diagnostics for Discoverer Plus/Viewer per: Note. 209582.1 Oracle Discoverer Complete Diagnostics as directed by Oracle Support
    Setup additional logging for Discoverer Viewer:
    Edit:
    <$Middle-Tier OH>/j2ee/OC4J_BI_Forms/applications/discoverer/web/WEB-INF/configuration.xml
    Add the logkey parameters like this example:
    <!--Server connection configuration. Determines how the Discoverer middle-tier connects to a Discoverer server session.
    session is normally defined by system property oracle.discoverer.server.session=<yoursessionname>DiscovererSession
    but can be overridden here by attribute session="SESSION_NAME"
    To provide middle tier trace information, add attribute logkeys -->
    <server use_log_file="true" logkeys="disco.portlet.debug"/>
    <!-- alternate logkeys "discoiv.init execute discoiv.requestdiscoiv.servlet_exceptions discoiv.state_machine discoiv.http_session discoiv.cookies discoiv.hijack" -->
    <!--Discoverer Servlet configuration. -->
    · Start Oracle HTTP Server (Apache) (via EM or dcmctl)
    · Start Oracle Discoverer Services
    · Immediately reproduce the issue
    Unfortunately, this is a best efforts forum, so...
    3.) you may want to log a Service Request with Oracle Support to help evaluate the diagnostics
    Regards,
    Steve.

  • StandalonePortletURL bug ?

    Hi,
    I have a problem using the StandalonePortletURL. I have two portlets A
    and B. In portlet A i have a JSP which creates a standalone portlet URL
    and stores it in the session attribute. In portlet B i have a JSP that
    retrieves the attribute from the session and displays the url as a link.
    When i click the link in porlet B i get a floatable portlet A in its own
    window which is what i want.
    The problem is that this works fine when run from workshop but does not
    work at all when created and run as a desktop. Bascially the returned
    URL gets mangled.
    The code for JSP A is:-
    StandalonePortletURL url =
    StandalonePortletURL.createStandalonePortletURL(request, response);
    request.getSession().setAttribute("float_url",url.toString());
    The code for JSP B is:-
    <a target="_blank" href="<%=
    (String)request.getSession().getAttribute("float_url") %>">Floatable
    Portlet</a>
    The Standalone URL generated running from workshop is:-
    http://localhost:7601/proxy/mnc/portlets/martins/float2.portlet?_windowLabel=portlet_2_1&_portlet.title=Float+Two&_portlet.skeleton=default&_portlet.skeletonPath=%2Fframework%2Fskeletons&_portlet.skin=default&_portlet.skinPath=%2Fframework%2Fskins%2F&_state=float
    The Standalone URL generated running from a desktop is:-
    http://localhost:7601/proxy/10001?_windowLabel=10001&_portlet.title=Float+Two&_portlet.skeleton=default&_portlet.skeletonPath=%2Fframework%2Fskeletons&_portlet.skin=default&_portlet.skinPath=%2Fframework%2Fskins%2F&_state=float
    As you can see the first part of the URL is missing. This looks like a
    bug however looking at the decompiled code for StandalonePortletURL it
    only adds parameters to the URL so i cant see why or how this gets mangled.
    Anyone else had the same experiences or has got this working on a desktop ?
    TIA
    Martin

    Chris,
    My settings for the web.xml were already like the example you sent. And
    thus i still get the problem.
    However it seems that using the Tag Library rather than the API directly
    yields the result i want and it appears to work. Looking at the
    decompiled code for the tag library it includes a call to get the
    servlet name and add it to the generated URL as follows:-
    mUrl =
    StandalonePortletURL.createStandalonePortletURL((HttpServletRequest)pageContext.getRequest(),
    (HttpServletResponse)pageContext.getResponse());
    mUrl.setPortletServletName((String)pageContext.getServletContext().getAttribute(PortletServlet.KEY_SERVLET_NAME));
    Thus the tag library and direct api yield different results. For now we
    can use the tag library as a workaround as we are generating this in a
    JSP but for a pageflow we will need the direct API version.
    Thanks
    Martin
    Chris Jolley wrote:
    this is fixed in sp3 (not out yet) you can get a patch from customer support CR132576
    make sure the follwoing is followed
    1) Make sure the PortletServlet is registered in your web.xml
    <servlet>
    <servlet-name>PortletServlet</servlet-name>
    <servlet-class>com.bea.netuix.servlets.manager.PortletServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>PortletServlet</servlet-name>
    <url-pattern>/portletmanager/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PortletServlet</servlet-name>
    <url-pattern>*.portlet</url-pattern>
    </servlet-mapping>
    2) If you want the portlet to popup in a small window and not a full browser,
    you will need to copmment out the "initPortletFloatButtons()" line in all the
    skin.js file in all the skins directories
    function initSkin()
    initDynamicMenus();
    initRolloverMenus();
    initPortletDeleteButtons();
    // See the comments in float.js about this function...
    initPortletFloatButtons();
    3) Use the following code in your JSP to float another portlet
    <%@ taglib uri="render.tld" prefix="render" %>
    <a target="_blank" class="bea-portal-button-float"
    href='<render:standalonePortletUrl/>'>Float This portlet</a>
    <a target="_blank" class="bea-portal-button-float"
    href='<render:standalonePortletUrl windowLabel="portlet_2"/>'>Float The Other
    Portlet</a>
    4) And make sure the change list associated with this CR ia applied as there
    was a bug in the code.
    Martin Porter <[email protected]> wrote:
    Hi,
    I have a problem using the StandalonePortletURL. I have two portlets
    A
    and B. In portlet A i have a JSP which creates a standalone portlet URL
    and stores it in the session attribute. In portlet B i have a JSP that
    retrieves the attribute from the session and displays the url as a link.
    When i click the link in porlet B i get a floatable portlet A in its
    own
    window which is what i want.
    The problem is that this works fine when run from workshop but does not
    work at all when created and run as a desktop. Bascially the returned
    URL gets mangled.
    The code for JSP A is:-
    StandalonePortletURL url =
    StandalonePortletURL.createStandalonePortletURL(request, response);
    request.getSession().setAttribute("float_url",url.toString());
    The code for JSP B is:-
    <a target="_blank" href="<%=
    (String)request.getSession().getAttribute("float_url") %>">Floatable
    Portlet</a>
    The Standalone URL generated running from workshop is:-
    http://localhost:7601/proxy/mnc/portlets/martins/float2.portlet?_windowLabel=portlet_2_1&_portlet.title=Float+Two&_portlet.skeleton=default&_portlet.skeletonPath=%2Fframework%2Fskeletons&_portlet.skin=default&_portlet.skinPath=%2Fframework%2Fskins%2F&_state=float
    The Standalone URL generated running from a desktop is:-
    http://localhost:7601/proxy/10001?_windowLabel=10001&_portlet.title=Float+Two&_portlet.skeleton=default&_portlet.skeletonPath=%2Fframework%2Fskeletons&_portlet.skin=default&_portlet.skinPath=%2Fframework%2Fskins%2F&_state=float
    As you can see the first part of the URL is missing. This looks like
    a
    bug however looking at the decompiled code for StandalonePortletURL it
    only adds parameters to the URL so i cant see why or how this gets mangled.
    Anyone else had the same experiences or has got this working on a desktop
    TIA
    Martin

Maybe you are looking for