JNLP and BIRT

Hello
I have got SWT application which uses BIRT. I am using JNLP to distribute it. It works fine when I set engine confing BIRT home as existing ReportEngine folder on harddrive, but I want to download ReportEngine as jars using JNLP. I can't find what should my BirtHome point to. Could anyone tell me how to do that?

Hi marv_
I don't know BIRD but maybe this helps:
your Application is downloaded and started by javaws.
Since you don't know which path is has I'd suggest to use relative paths (what I'd recommend also in any in any other case)
If you really need the absolute path in a configuration you could determine the path* your program is working on and then write this path to the configuration.
* You can do that in this way
File file = new File(".");
System.out.println(file.getAbsolutePath());
May be there is a better way but I don't know another.

Similar Messages

  • Can the JNLP and the jarred application be on different servers

    Can the JNLP and the jarred application be on different servers? If so, how would I alter my JNLP file to include the url of the second server?
    The reason I ask this is that my app is being uploaded to a shopping cart, to be available for purchase. The problem is that this shopping cart allows ONLY one upload for each item that's available for purchase, and the vendor of my shopping cart say that for security reasons I cannot store files in other places on that server. The problem is that I need the JNLP and the JAR for download. I thought that the simplest solution is to put the JAR on a different server, and in the jnlp specify the URL of the jar. Is that possible? Or, do you see another solution?
    I appreciate your help - I REALLY need to take care of this ASAP!
    Here's my jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp
    spec="1.0+"
    codebase="http://server_where_jnlp_is/subdir/"
    href="myjnlp.jnlp">
    <information>
    <title>Title</title>
    <vendor>vendor</vendor>
    <homepage href="http://www.homepage.com" />
    <description>bla bla bla</description>
    <icon href="icon.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.2+" />
    <jar href="myapp.jar"/>
    <nativelib href="libs.jar"/>
    </resources>
    <application-desc />
    </jnlp>

    I worked it out! What I did was I changed the jar href and the nativelib href to point to a different server
    eg:
    changed <jar href="myapp.jar"/>
    to
    <jar href="http://www.otherserver.com/myapp.jar"/>

  • Protecting jnlp and jar files

    Hi
    I would like to know how to protect the jnlp and jar files against anyone who just types the URL in the browser Address bar.
    Thanks
    Steven

    Haven't tried, but if your jnlp app must check for updates on every startup and your files (both jnlp file and jars) are in a password protected folder (using digest or plain authentication over a SSL connection, for example) then you may be in trouble. Will JWS recognize this situation on an update check and prompt for login/password? (related to web server's folders).
    Regards

  • Jar, jnlp, and documentation

    i have three questions.
    1. Can image files go into a jar file?
    2. What goes into a jnlp file?
    3. Is there documentation on swing that can be downloaded and tell you about all of the different objects you can use? I downloaded one but there were know pictures and i need pictures to see what it is that i would be using.

    alright i got the above code so that it no longer displays the error. but now i get a new one. this time the error says:
    An error occurred while launching/running the application.
    Title: Text Editor
    Vendor: Justin Lafferty
    Category: Security Error
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://crazedragon.awardspace.com/TextEdit.jar
    so i changed my code to this:
    <?xml version"1.0" encoding="utf-8"?>
    <!-- JNLP File for LottoMadness Application -->
    <jnlp
         codebase="http://crazedragon.awardspace.com"
              href="TextEdit.jnlp">
         <information>
              <title>Text Editor</title>
              <vendor>Justin Lafferty</vendor>
              <homepage href="http://crazedragon.awardspace.com" />
              <offline-allowed />
         </information>
         <security>
              <j2ee-application-client-permissions/>
         </security>     
         <resources>
              <j2se version="1.5" />
              <jar href="TextEdit.jar" />
         </resources>
         <application-desc main-class="TextEdit" />
    </jnlp>and i get the same error. how can i ifx it so i can get a prototype on the web ?

  • JNLP and WEBSTART newbie

    Hi All,
    I have a few queries on this technology.
    1) What is the relationship of JNLP and WEBSTART. I thot that WEBSTART is a reference implementation of JNLP api from SUN. Heard that other companies also have implementation of JNLP. Is it true ?
    2) In the JNLP api(s) whats the use of the classes ?
    BasicService, ClipboardService, DownloadService, FileOpenService, FileSaveService, PrintService, and PersistenceService
    3) Do we have to use these classes to make an application available thru WEBSTART ? if not then when will they be used ?
    4)Does webstart and jnlp used only if your application is published on the webserver(HTTP). Can I use webstart to start an application from a shared drive/mapped drive on another PC via File protocol ?
    Pls. advise.
    Thanks,
    Net5nuts

    Hi net5nuts,
    check out the Lopica Web Start Paradise for answers to your question @ http://lopica.sourceforge.net
    I good place to start is the Web Start Link-opida @ http://lopica.sourceforge.net/links.html
    - Gerald

  • JNLP and Eclipse Birt Runtime Engine

    The Birt report engine requires a path to the jar files that are downloaded. Is there a way to get the install location so that path can be used to setBirtHome(path_to_install).
    Dennis

    Is there a way to get the install location ...Sure, or rather, use an installer to put the Jar's
    in a specific place, then store where that specific
    place is, in your 'env. variable' or whatever.
    (Note that I, as an end user, can change the
    location of the class cache any time I like, so
    it is not advisable to try and get the 'path' to it
    for any reason.)

  • Generated JNLP and closing the original browser window

    Hi All, This is my first post so bear with me. Here is my problem.
    I am using Web Start for an application.
    I need to check to see if web start is installed or not.
    If it is NOT I need to auto-install
    if it is I need to call a servlet that dynamically generates the jnlp with the user that I passed in as <arguments/> maybe other arguments in the future also
    I need to shut the original browser window
    I will use this servlet in multiple web apps
    I have it working like this but I don't think it is clean enough
    I call a servlet with the syntax checkJREServlet?USER=username
    this servlet writes out:
    <html>
    <body>
    <h1>Installing Java Runtime</h1>
    <OBJECT
    CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="0" height="0"
    codebase="http://<myservler>/<plugins folder>/j2re-1_4_2-windows-i586.exe#Version=1,4,2,0">
    <PARAM NAME="code" VALUE="redirectAndClose.class"> //my applet class
    <PARAM NAME="archive" VALUE="RedirectUtil.jar"> //the jar where my applet class is stored
    <PARAM NAME="archive_cache" VALUE="RedirectUtil.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME="where_to_next" VALUE="http://<myservler>/<mywebapp>/openAppServlet?USER=username">
    You did not install Java.
    <p>Please use the <b>Back</b> button to return to the previous page.
    </OBJECT>
    </body>
    </html>
    I have redirectAndClose which is:
    import java.applet.Applet;
    import java.net.URL;
    import java.net.MalformedURLException;
    import netscape.javascript.*;
    public class redirectAndClose
    extends Applet
    java.util.Timer timer = null;
    int seconds = 5;
    public void start()
    try
    getAppletContext().showDocument(
    new URL(getCodeBase(), getParameter("where_to_next")), "_blank");
    //now we have to close ourselves in 5 seconds
    timer = new java.util.Timer();
    timer.schedule(new java.util.TimerTask()
    public void run()
    timer.cancel(); //Terminate the timer thread
    destroy();
    , seconds * 1000);
    catch(MalformedURLException e)
    throw new RuntimeException(e);
    public void destroy()
    super.destroy();
    //close this window because we don't need it
    JSObject win = (JSObject)JSObject.getWindow(this);
    win.eval("window.opener=self;self.close();");
    If try to close without a timer my entier session gets killed, including my webstart app that the openAppServlet wrote out the jnlp for
    I hate this because it is not definite. I want to DEFINITELY know when my webstart app is open and I can close this original window. Like a whenWindowExists then close me but I have no clue how to do this.
    The "where_to_next" location is a servlet that will dynamically build a jnlp file specific for each web app building it from parameters in web.xml for each individual web app. Basically I will have to store the actual name of the class, the jar href's I will be needing, title, vendor, description, basically everything that can be different.
    So what I need is some kind of library so I can include it in multiple web apps EASILY. I don't want to have to write a document on how to include this thing. It should be self explainatory. I originally just mapped to the first servlet in my web.xml and then included the jar file but it appears to be non-existent in my project. Maybe some suggestions on what others would do may help me.
    Thanx in advance

    I don't want to use a timer because who knows if the servlet that writes out the dynamic jnlp will get hung up for a little while or any number of other reasons. If that did happen the timer would kick off and close my web start app. I cannot have this.

  • JNLP and jar files are being download from server again.

    I have a swing application deployed with Java Web Start on a server.
    On my client I install the application using JWS JRE 1.6.
    The issue is that without any change in the jars or JNLP the jars are being downloaded from the server again and again
    This is not consistant - it happens only sometimes.
    One important thing to mention: The server is inside a load-balancer cluster (AKAMAI), so the IP address of the actual server may change between different accesses.
    in the log, I can see the error:
    "Cache entry not found"
    and then the jar is being downloaded again.
    sometimes only one or two jars were downloaded again, sometimes the whole package with the JNLP file were dowloaded again.
    Can you suggest what can be the reason for this behavior?
    Thank you,
    Ran

    That does seem slow, but there are many factors that could be involved. More information would be helpful:
    - Are the source and destination filesystems ZFS or UFS? (or some other FS)
    - What does iostat show you?
    - What does vmstat show you?
    - What type of HBAs connect you to the SAN? ('fcinfo hba-port')
    - Anything in /var/adm/messages?

  • PageFlow Bea 9 and BIRT

    hello!
    I'm trying to integrate in one project my old bea8 sp5 project updated with the workshop to bea 9.2 AND reports in eclipse BIRT.
    i have build a war app with reports in this new bea 9.2, and it works fine, but it needs the
    <wls:container-descriptor>
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    </wls:container-descriptor>
    OR
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    modification into weblogic.xml, to work properly.
    in the other hand, i have my old app made in workshop 8 sp5, imported in the new enviroment. It works just fine too.
    but, when i try to join both, i need to add the
    container-descriptor tag in the updated application (where i am making the mixture) to get access to reports pages, then i have an error:
    Module named 'prototipo' failed to deploy.
    weblogic.application.ModuleException:
    where prototipo is the name of the old app, updated to w9.
    the complete stack trace in log file is
    ####<19-jul-2006 16H27' GMT-03:00> <Error> <Deployer> <pc_vates91> <AdminServer> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1153337254341> <BEA-149265> <Failure occured in the execution of deployment request with ID '1153337225730' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:295)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    java.lang.ClassCastException: weblogic.logging.commons.LogFactoryImpl
         at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:531)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:517)
         at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:308)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
         at org.apache.beehive.netui.util.logging.Logger.getInstance(Logger.java:44)
         at org.apache.beehive.netui.pageflow.PageFlowContextListener.<clinit>(PageFlowContextListener.java:36)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:275)
         at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:257)
         at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1573)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1037)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:433)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:408)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:552)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:287)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    >
    ####<19-jul-2006 16H27' GMT-03:00> <Warning> <Deployer> <pc_vates91> <AdminServer> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1153337254856> <BEA-149004> <Failures were detected while initiating distribute task for application 'prototipo'.>
    ####<19-jul-2006 16H27' GMT-03:00> <Warning> <Deployer> <pc_vates91> <AdminServer> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1153337254872> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:295)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    java.lang.ClassCastException: weblogic.logging.commons.LogFactoryImpl
         at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:531)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:517)
         at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:308)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
         at org.apache.beehive.netui.util.logging.Logger.getInstance(Logger.java:44)
         at org.apache.beehive.netui.pageflow.PageFlowContextListener.<clinit>(PageFlowContextListener.java:36)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:275)
         at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:257)
         at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1573)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1037)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:433)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:408)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:552)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:287)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:621)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:208)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    >
    data that could help
    i tried change weblogic.xml with "wls:" form, and without it. i don't understand the difference... but in both cases nothing changed.
    i search for LogFactoryImpl class in jar files and i had find one, so i delete it from webcontent/web-inf/lib, but the problem stills goes on.
    if all the code and jar files are together but prefer-web-inf-classes tag is not used, i have no deployment error, but i can't view reports, of course.
    the application has pageflows, ejb's and controls, from bea products. and when i imported it, i choose use beehive in the options.
    BIRT version is 2.1.0
    JDK version jdk150_04
    weblogic.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/90">
         <wls:container-descriptor>
              <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
         </wls:container-descriptor>
         <context-root>procesoIngreso</context-root>
         <wls:library-ref>
              <wls:library-name>jstl</wls:library-name>
              <wls:specification-version>1.1</wls:specification-version>
              <wls:implementation-version>1.1.2</wls:implementation-version>
         </wls:library-ref>
         <wls:library-ref>
              <wls:library-name>beehive-controls-1.0-war</wls:library-name>
              <wls:specification-version>1.0</wls:specification-version>
              <wls:implementation-version>1.0</wls:implementation-version>
         </wls:library-ref>
         <wls:library-ref>
              <wls:library-name>weblogic-controls-1.0-war</wls:library-name>
              <wls:specification-version>1.0</wls:specification-version>
              <wls:implementation-version>1.0</wls:implementation-version>
         </wls:library-ref>
         <wls:library-ref>
              <wls:library-name>struts-1.1</wls:library-name>
              <wls:specification-version>1.1</wls:specification-version>
              <wls:implementation-version>1.0</wls:implementation-version>
         </wls:library-ref>
         <wls:library-ref>
              <wls:library-name>struts-1.2</wls:library-name>
              <wls:specification-version>1.2</wls:specification-version>
              <wls:implementation-version>1.0</wls:implementation-version>
         </wls:library-ref>
         <wls:library-ref>
              <wls:library-name>beehive-netui-resources-1.0</wls:library-name>
              <wls:specification-version>1.0</wls:specification-version>
              <wls:implementation-version>1.0</wls:implementation-version>
         </wls:library-ref>
         <wls:library-ref>
              <wls:library-name>beehive-netui-1.0</wls:library-name>
              <wls:specification-version>1.0</wls:specification-version>
              <wls:implementation-version>1.0</wls:implementation-version>
         </wls:library-ref>
    </wls:weblogic-web-app>
    The original weblogic.xml (when workshop imports the old project) was
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://www.bea.com/ns/weblogic/90"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
         <jsp-descriptor>
              <debug>true</debug>
         </jsp-descriptor>
         <url-match-map>
              weblogic.servlet.utils.SimpleApacheURLMatchMap
         </url-match-map>
         <context-root>procesoIngreso</context-root>
         <!-- container-descriptor>
              <prefer-web-inf-classes>true</prefer-web-inf-classes>
         </container-descriptor> -->
         <library-ref>
              <library-name>struts-1.1</library-name>
              <specification-version>1.1</specification-version>
              <implementation-version>1.0</implementation-version>
         </library-ref>
         <library-ref>
              <library-name>beehive-netui-resources-1.0</library-name>
              <specification-version>1.0</specification-version>
              <implementation-version>1.0</implementation-version>
         </library-ref>
         <library-ref>
              <library-name>beehive-netui-1.0</library-name>
              <specification-version>1.0</specification-version>
              <implementation-version>1.0</implementation-version>
         </library-ref>
         <library-ref>
              <library-name>jstl</library-name>
              <specification-version>1.1</specification-version>
              <implementation-version>1.1.2</implementation-version>
         </library-ref>
    </weblogic-web-app>
    procesoIngreso is the name of war module of the j2ee app.
    web.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>Workshop Application</display-name>
    <description/>
    <servlet>
    <description/>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.beehive.netui.pageflow.PageFlowActionServlet</servlet-class>
    <init-param>
    <description/>
    <param-name>config</param-name>
    <param-value>/_pageflow/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <description/>
    <param-name>config/-global</param-name>
    <param-value>/_pageflow/struts-config--global.xml</param-value>
    </init-param>
    <init-param>
    <description/>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <description/>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>500</error-code>
    <location>/error.jsp</location>
    </error-page>
    <jsp-config>
    <taglib>
    <taglib-uri>netui-tags-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/netui-tags-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>netui-tags-databinding.tld</taglib-uri>
    <taglib-location>/WEB-INF/netui-tags-databinding.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>netui-tags-template.tld</taglib-uri>
    <taglib-location>/WEB-INF/netui-tags-template.tld</taglib-location>
    </taglib>
    </jsp-config>
    <filter>
    <filter-name>PageFlowJspFilter</filter-name>
    <filter-class>org.apache.beehive.netui.pageflow.PageFlowJspFilter</filter-class>
    </filter>
    <filter>
    <filter-name>PageFlowForbiddenFilter</filter-name>
    <filter-class>org.apache.beehive.netui.pageflow.PageFlowForbiddenFilter</filter-class>
    <init-param>
    <param-name>response-code</param-name>
    <param-value>404</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>PageFlowJspFilter</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>PageFlowJspFilter</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>PageFlowForbiddenFilter</filter-name>
    <url-pattern>*.java</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>PageFlowForbiddenFilter</filter-name>
    <url-pattern>*.jsfb</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>PageFlowForbiddenFilter</filter-name>
    <url-pattern>*.jpfs</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>PageFlowForbiddenFilter</filter-name>
    <url-pattern>/_pageflow/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <listener>
    <listener-class>org.apache.beehive.netui.pageflow.PageFlowContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>org.apache.beehive.netui.pageflow.HttpSessionMutexListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>XmlHttpRequestServlet</servlet-name>
    <servlet-class>org.apache.beehive.netui.pageflow.xmlhttprequest.XmlHttpRequestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.jpf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>XmlHttpRequestServlet</servlet-name>
    <url-pattern>*.xhr</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>XmlHttpRequestServlet</servlet-name>
    <url-pattern>*.render</url-pattern>
    </servlet-mapping>
    <-- MENU CONFIGURATION -->
    <context-param>
              <param-name>menuConfigLocation</param-name>
              <param-value>/WEB-INF/menu-config.xml</param-value>
         </context-param>
         <listener>
         <listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>
         </listener>
    <-- END MENU CONFIGURATION -->
    <-- BIRT CONFIGURATION -->
    <context-param>
              <param-name>BIRT_VIEWER_LOCALE</param-name>
              <param-value>en-US</param-value>
         </context-param>
         <context-param>
              <param-name>BIRT_VIEWER_REPORT_ROOT</param-name>
              <param-value></param-value>
         </context-param>
         <!-- Absolute downloaded image/chart directory. Default to ${birt home}/report/images -->
         <context-param>
              <param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
              <param-value></param-value>
         </context-param>
         <!-- Absolute engine log directory. Default to ${birt home}/logs -->
         <context-param>
              <param-name>BIRT_VIEWER_LOG_DIR</param-name>
              <param-value></param-value>
         </context-param>
         <servlet>
              <servlet-name>ViewerServlet</servlet-name>
              <servlet-class>org.eclipse.birt.report.viewer.servlets.ViewerServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>ViewerServlet</servlet-name>
              <url-pattern>/frameset</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>ViewerServlet</servlet-name>
              <url-pattern>/run</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>ViewerServlet</servlet-name>
              <url-pattern>/navigation</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>ViewerServlet</servlet-name>
              <url-pattern>/toolbar</url-pattern>
         </servlet-mapping>
    <-- END BIRT CONFIGURATION -->
    </web-app>
    that's all i think that i cant give you, i guess...
    (all xml comments have not the "!" because in preview, those lines are not shown, for example <-- END BIRT CONFIGURATION -->)
    can you help me please with this issue?
    thank in advance.
    best regards
    julio

    julio,
    Hey I'm having the exact same problem when I add
    <wls:container-descriptor>
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    </wls:container-descriptor>
    to my weblogic.xml??? Did you ever get a resolution for this problem if so can you help me out.
    Thanks,
    Greg

  • Eclipse, jnlp and javahelp interaction

    I'm experiencing an odd problem that deals with the Eclipse IDE, Javahelp and Java Web Start. Java Web Start requires all resources (images, icons, help sets) to be stored in a jar file. To gain access to this, I make use of a little classloader hack that is often used to resolve this issue:
    http://rachel.sourceforge.net/tutorial.html
    The hack actually works fine when deploying via JNLP, however when I try to run my application from the IDE it cannot resolve the ResourceAnchor class in my resources.jar file. I know this is a long shot, but has anyone out there run into this situation? Any suggestions?

    have you try to add in your Project & Run classpath the Path "/" seem to work with me..

  • JSP: Launch JNLP and output HTML?

    Hi, I've been able to launch a JNLP file using JSP -- this seems simple enough -- take a JNLP file, add
    <%@ page contentType="application/x-java-jnlp-file" %>to the top, then change the extension of the file to .jsp.
    I'm curious though: Is it possible to output HTML at the same time? Right now, when I navigate to the jsp in a browser, the page doesn't change so I see whatever the previous page was. What I would like to do is display something like "Launching app..." and then run the JNLP. Is this possible to do within the same JSP file whose contentType has already been set to application/x-java-jnlp-file? Or do I need to do something like create an HTML file that shows text and auto-redirects to the JSP? I'd prefer not to do the latter just because my JSP reads in the query string of the URL and parses it to dynamically generate part of the JNLP.
    By the way, just to test, I did throw an
    out.println("Launching app...");line into my JSP but that doesn't appear to do anything.
    Thanks,
    David

    I'm not an experienced user of it, but deployJava.js should offer everything you need for a javascript launch of your app, within any page you like; that should do the trick.
    Bye.

  • Dynamic JNLP and JWS Application Manager

    All,
    I have a Swing application that communicates to the server via Servlets. I have packaged the entire application into a WAR file and I am using JWS to distribute to the users.
    The "main" method of my application accepts two parameters, one of which is dynamic based on information from the web server. To be able to calculate the value of that parameter, I decided to dynamically create and serve my JNLP file through a servlet. The parameter is then passed into the application via the <argument> tag in the served JNLP file.
    That part works great. However, once the application is installed, it doesn't show up in JWS Application Manager. My best guess is because there is not a "physical" JNLP file for reference.
    Can anyone out there confirm or deny my guess? And, more importantly, can anyone give me an idea on how to keep the dynamic JNLP file and get it to install in the JWS Application Manager?
    Thanks!

    Got it fixed. Apparently, the JWS Application Manager "view" setting wasn't correct. Once it was working, the application was showing up fine.

  • JNLP and ASPSessionID not working

    We have an IIS-based website where we authnicate a user and then let them launch java applets to make configuration changes. We'd like to become decoupled from the user's Browser-based Java Plugin so that our customers don't have issues every time Sun puts out a new version of the plugin and breaks things...
    So I created a JNLP to launch the applet and I pass in the ASPSessionID as an agument.
    When I make a call to the server I do a connection.setRequestProperty("Cookie", sessionID); yet the ASP I'm calling is not abe to access the authenticated session variables. Any ideas why this would be? When I run the applets using the broswer-based plugin there's no problem accessing the authenticated session variables. Is there something special I need to do for web start to share the authenticated session?

    Hello,
    Take a look at this related post: http://forums.adobe.com/message/5741078#5741078
    Hope this helps.
    Cheers
    Parikshit

  • JNLP and dynamic code

    My applicaton runs via JWS and JNLP. The app relies on Groovy (groovy.codehaus.com) to compile and run some text-processing scripts. End-users input the scripts themselves. When the app invokes a script, the JVM throws an access denied exception for java.lang.RuntimePermission accessDeclaredMembers.
    Our jars are signed by a single authority. The JWS docs seem to indicate that since the jars are signed, our code should run trusted and thus have AllPermissions. Does AllPermissions not include the accessDeclaredMembers RuntimePermission? All other permissions seem to be allowed (read/write local files, access protected system properties, etc.).
    Details: Groovy is a tool for compiling scripts into Java bytecode. This results in a class file which Groovy's script processor dynamically loads via the ClassLoader. The exception occurs as Groovy is using reflection to get the new class' constructor. Here's the stack trace:
    Script Error: access denied (java.lang.RuntimePermission accessDeclaredMembers)
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkMemberAccess(Unknown Source)
    at java.lang.Class.checkMemberAccess(Unknown Source)
    at java.lang.Class.getDeclaredConstructors(Unknown Source)
    at groovy.lang.MetaClass.<init>(MetaClass.java:141)
    at groovy.lang.MetaClassRegistry.getMetaClass(MetaClassRegistry.java:120)
    at org.codehaus.groovy.runtime.Invoker.getMetaClass(Invoker.java:99)
    at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:94)
    at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:61)

    I have more information. I've tried running the application locally (outside Web Start) with the security manager installed (using -Djava.security.manager and -Djava.security.policy VM args).
    After much trial and error, I've found that I can run the entire application (including the script processor) with the following security policies (this is on Linux):
    grant codeBase "file:/my/appdir/-" {
    permission java.security.AllPermission;
    permission java.util.PropertyPermission "*", "read,write";
    permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
    permission java.net.SocketPermission "*:5432", "connect";
    permission java.lang.RuntimePermission "*", "";
    Notice I didn't have to add anything special to get Groovy to run. Since the JWS dev guide says that a signed application has AllPermission by default, I think what's happening is that the codebase I'm using to run the Groovy script does not match the codebase in JWS' security policy for my application.
    Is there any way I can find out what this codebase is? Or does anyone have any other ideas on how to solve this?

  • JNLP and Tomcat JNDI DataSource

    Software
    JDK 1.5 Update 6
    Tomcat 5.5.4
    Requirements
    I have a Client Side requirement and this project is going to be deployed to 5 users initially all in a lan but there are very chances of adding more users simultaneously.
    I am thinking of deploying in JNLP Environment.
    At present the Swing application though in development phase is running a little slow and therefore I required the way by which I could store the references of the Object in some server.Getting Connection Object is also a major time consumer and so I needed some way by which I can use the Tomcat DataSource and use the JNDI facility to store certain intermediate values in the server.
    Can I use the JNDI in the JNLP Application.
    Please provide me the way by which I can do this stuff
    Thanks in advance
    CSJakharia

    .> I am using tomcat 5.5.9 and oracle 9i. I am hosting a
    portal which uses connection pooling.
    I have decided to use the connection pooling through
    tomcat's JNDI naming lookup.Excellent idea.
    for this i have used the following steps --
    1) made entry of <resource-ref> in webapp's web.xml
    2) made relevant and corresponding entry in tomcat's
    ${TOMCAT_HOME}/conf/context.xml (for JNDI
    JDBC-datasource)No, don't do it that way.
    .> my problems are--
    1) making the entry for context.xml in tomcats
    conf folder makes the application war dependent
    on web server which i dont want to make.Yes, it does.
    2) i have to put classes12.jar in tomcats
    ${TOMCAT_HOME}/common/lib folder and only then the
    application connection pooling works else the
    exception coming on tomcat console is --
    org.apache.tomcat.dbcp.dbcp.SQLNestedException.
    Why aren't you using the latest JDBC driver from Oracle? That's in ojdbc14.jar.
    .> I dont want to put classes12.jar in web server i want
    the web server's JNDI lookup to pick the driver frm
    my webapps' internal lib folder. please help me on
    these very pressing and immediate issues. all the
    help coming from anyone in this regard is very much
    welcome.
    thanks in advance!
    VaivYour instinct is correct.
    (1) Put ojdbc14.jar in WEB-INF/lib of your WAR file.
    (2) Edit the <Context> XML into a file named context.xml and put it in META-INF of your WAR. Tomcat should pick up the context information for the JNDI data source from that.
    Everything is in the WAR, and you don't have any dependence on the server that way.
    %

Maybe you are looking for

  • Remediation with retake quiz glitch

    I've run across a glitch when using remediation in a few quiz slides when also using the option to retake a quiz. If you have a file with questions that use remediation and the user gets a failing grade, once they click the restart quiz button and an

  • T61 display problem on both Internal and External monitors

    Hi,       I have Lenovo T61 of Type 7662, Model CTO. One month back the right hinge of my laptop has broken. Now the display on the screen is not at all readable. If I reboot the laptop, it is getting loaded, but the display on the screen is not read

  • Xp20:format-dateTime with milli seconds always as zeroes

    Hi All, I am trying to use the xPath function format-datetime , but in the output factional seconds is returning all zeroes. My picture string looks like below. *xp20:format-dateTime(xp20:current-dateTime(),"[H01][m01][s01][f001]* Result always in ze

  • I can see After Effect in Adobe Application Manager

    Hello. I have a creative cloude monthly subscription. I installed several programs on my working MAC. Now i want to install the same program at home on my Sony Vaio with Windows 7 but in Adobe Application Manager i can see only 14 program but not all

  • How does replicate recover trail raw data to the true values?

    How does replicate recover trail raw data to the true values? or How replicate use the trail file? recover the trail file col values to a SQL?