How to load .jar files when not specified in the .jnlp file

Hello,
We are deploying an application with JWS but due to the nature of this app, we need to download additional jar file only when the user has been authenticated. The jar file(s) we need to download can hardly be predicted (in term of name) and thus cannot be all listed as lazzy resource in the .jnlp file.
However, we would like to take advantage of the various JWS features relateed to .jar download and cache and would prefer not to reinvent the wheel by implementing our on stuff (i.e. URLClassLoader with caching etc.).
Any idea, suggestion?
Thanks in advance.
Fred.

How about writing a second jnlp file with the optional jar listed in it and running it only if your user is authenticated?

Similar Messages

  • CR10 Dev JRC ReportSDKException Report location is not specified in the configuration file error

    I'm trying to embed a simple report into a j2ee application running under BEA WebLogic(without
    workshop)
    using the standalone Java Reporting Component (JRC), but I'm getting the exception
    shown below (along with my config and source).
    I'm just wondering at the cause of the exception, because I can successfully deploy
    this code to jboss.
    I've tried moving the CrystalReportEngine-config.xml file everywhere, from the
    /WEB-INF/classes/ folder
    to the /WEB-INF/ folder to the /WEB-INF/lib/ folder.
    I consulted the product documentation on the JRC and its tutorials but it has
    me stumped.
    I went through the BEA WebLogic Workshop tutorial, which worked for some reason,
    but I'm looking to do all the coding manually without any of BEA's controls and
    what not.
    Any information would be GREATELY APPRECIATED!!!
    Thanks,
    -Colin
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report location is
    not specified in the configuration file---- Error code:-2147
    215356 Error code name:fileNotOpened
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown
    Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown
    Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown
    Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.ReportAgentBase.case(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
    Source)
    at jsp_servlet.__viewreport._jspService(__viewreport.java:197)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    My EAR file structure is as follows:
    /crystal/ (context)
    /reports/qtrade_sp_listing.rpt
    /crystalreportviewers10/ -- bunch of crystal viewing stuff
    /WEB-INF/classes/CrystalReportEngine-config.xml
    /WEB-INF/lib/ -- bunch of crystal jar files
    My CrystalReportEngine-config.xml is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>
    <reportlocation>../..</reportlocation>
    <timeout>10</timeout>
    <keycode>A2960-01C00FA-U700063</keycode>
    </CrystalReportEngine-configuration>
    My relevant Web.xml looks like:
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>/crystal/crystalreportviewers10/</param-value>
    </context-param>
    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    </web-app>
    My JSP Page Source:
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
    <html>
    <head>
    <title>Web Application Page</title>
    </head>
    <body>
    <crviewer:viewer
    viewerName="SPListingReport"
    reportSourceVar="_SPListingReport"
    displayGroupTree="false"
    displayToolbarToggleTreeButton="false"
    reportSourceType="reportingComponent">
    <crviewer:report reportName="reports/qtrade_sp_listing.rpt"></crviewer:report>
    </crviewer:viewer>
    </body>
    </html>

    I'm trying to embed a simple report into a j2ee application running under BEA WebLogic(without
    workshop)
    using the standalone Java Reporting Component (JRC), but I'm getting the exception
    shown below (along with my config and source).
    I'm just wondering at the cause of the exception, because I can successfully deploy
    this code to jboss.
    I've tried moving the CrystalReportEngine-config.xml file everywhere, from the
    /WEB-INF/classes/ folder
    to the /WEB-INF/ folder to the /WEB-INF/lib/ folder.
    I consulted the product documentation on the JRC and its tutorials but it has
    me stumped.
    I went through the BEA WebLogic Workshop tutorial, which worked for some reason,
    but I'm looking to do all the coding manually without any of BEA's controls and
    what not.
    Any information would be GREATELY APPRECIATED!!!
    Thanks,
    -Colin
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report location is
    not specified in the configuration file---- Error code:-2147
    215356 Error code name:fileNotOpened
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown
    Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown
    Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown
    Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.ReportAgentBase.case(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown
    Source)
    at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
    Source)
    at jsp_servlet.__viewreport._jspService(__viewreport.java:197)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    My EAR file structure is as follows:
    /crystal/ (context)
    /reports/qtrade_sp_listing.rpt
    /crystalreportviewers10/ -- bunch of crystal viewing stuff
    /WEB-INF/classes/CrystalReportEngine-config.xml
    /WEB-INF/lib/ -- bunch of crystal jar files
    My CrystalReportEngine-config.xml is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>
    <reportlocation>../..</reportlocation>
    <timeout>10</timeout>
    <keycode>A2960-01C00FA-U700063</keycode>
    </CrystalReportEngine-configuration>
    My relevant Web.xml looks like:
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>/crystal/crystalreportviewers10/</param-value>
    </context-param>
    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    </web-app>
    My JSP Page Source:
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer"%>
    <html>
    <head>
    <title>Web Application Page</title>
    </head>
    <body>
    <crviewer:viewer
    viewerName="SPListingReport"
    reportSourceVar="_SPListingReport"
    displayGroupTree="false"
    displayToolbarToggleTreeButton="false"
    reportSourceType="reportingComponent">
    <crviewer:report reportName="reports/qtrade_sp_listing.rpt"></crviewer:report>
    </crviewer:viewer>
    </body>
    </html>

  • Does anyone know how to load ACR presets when using ACR in the creative cloud?

    Does anyone know how to load ACR presets when using ACR in the creative cloud?

    Moving the discussion to Adobe Camera Raw forum.
    Thanks,
    Atul Saini

  • Download  resources that are not listed in the JNLP file

    There is some way to download resources that are not listed in the JNLP file, and then
    ask for them with DownloadService ? (isResourceCached)
    thanks.

    currently, the jnlp spec requires DownloadService to access only resources specified in the jnlp file..
    changing this is a proposed RFE for the next spec version:
    4908304: JWS DownloadService should not require mention in JNLP file
    /Dietz

  • .ear file is not including all the required files for deployment

    While deploying from JDeveloper, some of the files (eg. <Project>.cpx file, .class file) are not included in the .ear file.
    Pls help.

    Is the .ear file deployed with the Deploy to EAR file selection?

  • Final Cut Pro X Project file corrupt, how to restore for backup when not prompted by the program?

    We have a project on an iMac 13 4gb RAM. We have discovered that it is not the event, but instead it is the project file that has become corrupted. When we try to poen FCPX it crashes, and reports that it has crashed. however, if we remove the project file and leave the event and then try to open FPCX, there is no problem. Looking online, usually FCPX asks if you want to open from the backup hat FCPX makes of yourproject. However, since we cannot opn FCPX with the project, then we cannot do this!
    Just as a side note, this is a VCE media project that is due tomorrow... So any ideas are extremely welcome!!!

    This is absolutely ridiculous:  a Project is a work so complicated, there should be MULTIPLE backups (as in Logic or Photoshop) and an easy "Restore from Backup" File command!  Instead, you must manually COPY from the backup folder in Finder -- OUTSIDE the program (and which contains only the most RECENT backup) into the parent project folder for the particular project.  This capability is almost useless, since the only backup you have might be just 15 minutes old.  Then you are up a creek.
    Fortunately there is Time Machine, and you can use that to go back far enough to find the work you accidentally destroyed (or APPLE destroyed) and MANUALLY copy that over into the correct folder using Time Machine restore procedures. 
    I am finding, which led to rant, that when I delete an Audio Effect, the Whole Project is deleted when the audio track is selected.  I'm doing something wrong, or here's more work for the programmers.
    Really, this is unacceptable work.  And thank goodness for my Time Machine.  Program 101 in work like this is MULTIPLE backup capability and an easy restore command.
    This needs to be addressed pronto.  I'm holding my breath.

  • I have 60 000 songs on a hard drive. The songs are referenced to the media file and not stored in the media file. I have moved the songs to another external drive. The itunes library has lost the link to the media files. How can I restore the links?

    I have all my songs (60 000) on a remote drive. The drive is wireless networked. I installed a new router and had to map the drive again. Once this was done itunes could no longer locate the music. My music is not sitting in my media file but is rather referenced to the location of the music. Now that the location has changed due to the remapped drive how can I link the itunes library to the songs (media)again.
    I have read many help comments and forums but so far nothing specific about relinking once the songs have already been moved and are referenced songs.
    A step by step procedure would be helpful.
    Thank you
    Graham

    I've uploaded a newer version that might catch that error. For some background on the script look at this thread.
    iTunes remembers the location of each file in the database. If you right-click on a missing file, click Get Info, cancel when it asks you to try to find it, then look on the summary tab it will show you the last known location in the form file://localhost/<some path>. If you put the files back where they are expected to be, close iTunes and reopen, then iTunes will find them again. If not my script can attempt the task. When the script asks for a media folder you should respond with Z:\ since that seems to be where the artist folders are located.
    tt2

  • How can I print out all notes or export the entire file?

    I have around 300 notes that include a variety of information. I would like to print out a hard copy. I don't want to open and print out each one individually. Is there a way to print out all of them at once. Also, is there a way export the file so I can open it in another application like Excel or Word?

    It's not a file, so you can't "open" one file. Every message (and note) is a single file on the computer.
    This Applescript will grab all the notes in the selected mailbox (i.e. the selected Notes item in Mail) and put them in a textEdit document.
    Note that Mail doesn't differentiate between a note and an email message, so if you run this while a normal email mailbox is selected, it will gather all of your email messages.
    tell application "Mail"
    set theMailboxes to the selected mailboxes of message viewer 0
    repeat with aMailbox in theMailboxes
    set theNotes to the messages of aMailbox
    set theText to ""
    repeat with aNote in theNotes
    set theText to theText & content of aNote & return
    end repeat
    end repeat
    end tell
    tell application "TextEdit"
    set myDocument to make new document at end of documents with properties {text:theText}
    end tell
    Copy and paste this into a new AppleScript Editor Document, select the Notes mailboxes you want to print the notes from, and click the Run button (Green button with arrow).
    This may take a while.

  • Jvmargs not being placed in jnlp file by ant deploy task

    Hi
    I have an ant deploy task as given below. I run ant to produce the jnlp file. Everything works ok, EXCEPT the jvmargs, and the enclosing platform element, are not copied into the jnlp file.
    Is this the intended behaviour?
    thanks
    graham
    -- ant task ---
    <project name="BuildInfoView" xmlns:fx="javafx:com.sun.javafx.tools.ant">
    <taskdef
         resource="com/sun/javafx/tools/ant/antlib.xml"
         uri="javafx:com.sun.javafx.tools.ant"
         classpath="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/lib/ant-javafx.jar"/>
    <fx:deploy
    outdir="../installation/bin"
         outfile="infoview"
    width="800"
         height="500"
         embeddedWidth="100%"
         embeddedHeight="100%">
         <fx:application
              name="Infoview"
              mainClass="com.ods.infoview.Main">
         </fx:application>
         <fx:info
              title="InfoView"
              description="InfoView"
              vendor="OrangeDog">
         </fx:info>
         <fx:permissions elevated="true"/>
         <fx:platform javafx="2.2+">
         <fx:jvmarg value="-Xmx400"/>
         </fx:platform>
    <!--
    cacheCertificates="true"/>
    -->
         <fx:resources>
              <fx:fileset dir="../gradle/output/"/>
         </fx:resources>
    </fx:deploy>
    </project>

    There is a FAQ note about this
    http://java.sun.com/products/javawebstart/faq.html#72
    Bill

  • How to load jar file in oracle 9i???

    Hi Friends,
    Can you help me, how to load jar file oracle 9i? I have to tried to load in 10g using loadjava command but it's not working in oracle 9i because the loadjava batch file itself is not there in oralce 9i.
    Is there any other way then pls let me know.
    - Hiren Modi

    Hi,
    I have oracle version : Release 2 (9.2.0.1.0) for Windows. I have tried to execute the loadjava command from SQL prompt but its giving as below.
    H:\>loadjava
    The system cannot find the path specified.
    Do you know why its giving error like this. I have checked in dir : C:\oracle\ora92\bin but loadjava executable file is not there in it.
    - Hiren Modi

  • How to load jar file in one shot?

    I have a Java app refers some jar files on remote location. Loading class by class is very time consuming.
    Is it possible to load the jar files as a whole? like what applet does?
    Tried URLClass loading, even run java -jar, still those load class on demand.
    I want the jar file loaded only one time into JVM.

    I don't really understand. When you load a jar file using URLClassLoader it brings over the jar file and extracts the class files from the jar file. It does not bring over the class files as individual class files. If you mean you want to only ever bring over the jar file once then why not just copy the jar file using URLConnection and save it to disk. You can then load the jar file from disk each time the program starts.

  • Application does not load when the JNLP file URL is given

    Hi,
    I have created a JNLP file to load a swing based application and i'm trying to host it on a tomcat web server.
    But when i type in the URL in the browser window, nothing happens. No errors shown.I'm not able to figure out where i have gone wrong. following are the steps i have followed:
    1)Created a .jar file which contains all the class files required for the application to run
    2)created another jar file containing the main class file which loads the application.
    3)included these two jar files in the JNLP <resource> tag
    4)placed the 2 jar files along with the jnlp file in the ROOT directory of the web server.
    5)type in teh URL of the jnlp file which is supposed to start the appilcation.
    please do let me know if i'v done anything wrong in the above steps..
    TIA,...

    Check if the href attribute in the html file is
    referencing the jnlp file correctly or not.I'm not using any HTML file to access this jnlp... i'm directly giving the URL smthing like this--> http://localhost:8080/test/client.jnlp
    where, client.jnlp is present in a directory called test under the ROOT directory of the tomcat/webapps.
    i hope this is the way to do it!!! plz do correct me if i'm wrong...!!!
    TIA...

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • How can I work with my adobe Lightroom Version 5 which was added to my Samsung NX3000. If I want to load an .SRW File it is not possible, only the .JPG File. How and from where can I the Module and how is it to install ?

    How can I work with my adobe Lightroom Version 5 which was added to my Samsung NX3000. If I want to load an .SRW File it is not possible, only the .JPG File. How and from where can I the Module and how is it to install ?

    You need Lightroom 5.5 or later (the most current version is 5.7.1). This is a free update if you have already purchased an earlier version of Lightroom 5.
    Product updates

  • Im running lightroom 4 and just purchased the Sony A7 and using its sd card. when I   tried to load the photos, I got a message "the files are not recognized by the raw format support in lightroom"

    Tried loading my raw files shot w my new Sony a7 and its sd card into lightroom4. Got a message: "The files are not recognized by the raw format in lightroom"
    Does Lightroom 4 not work with the Sony A7?
    Thanks,

    Lightroom 4 cannot read the RAW photos from a Sony A7
    You would have to download and install the FREE Adobe DNG Converter version 8.5 and then convert your RAW to DNG, and then import the DNGs into Lightroom 4
    You could also purchase Lightroom 5.5, which will have the capability to read the RAWs directly.

Maybe you are looking for

  • My 3rd Generation Ipod Touch (32 gigabytes) will not turn on or connect with iTunes

    I set my ipod down, it was at near full battery, when I tried to unlock my ipod again, the screen stayed black. I tried holding down the lock button. Holding down both the lock button and the home button, and I tried connecting it to iTunes (nothing

  • Initial Time Machine Backup with Time Capsule

    Hello, I just started to back everything up with Time Capsule and Time Machine. The backup is 45 GB so it's going to take a while. Two questions: 1. There is a Volume created on my Desktop called "Backup of [My Computer Name]". Is this supposed to ha

  • ADF BC - Date Picker closes Popup

    Hi all, I have a inputDate field inside of a form which is in a popup. When i choose a date from the date picker that comes up, (the one built in to the inputDate field) my popup closes. Is there a way to keep the popup open until a user clicks back

  • IPhone 3G 2.1 - Slow text input Safari

    When typing into a "text box" on a web-page the keyboard becomes extremely unresponsive, even when typing a single word such as 'you' On a few occassions, it has also caused safari to crash, taking me back to the home screen. Ive noticed this After t

  • MovieClip Loader Class - assigning Events to Movies

    Hi. I have a MovieClipLoader Class that loads a SWF into a holder clip that is on my main timeline. Then Im using "mclListener.onLoadInit" to check that the SWF is loaded so that I can continue to load some buttons into the holderclip from an XML fil