Using web start to deploy a web-application WAR

I am planning to develope a web-application, that will run in my clients as localhost. My client will have a Tomcat server, and he can run that application in his own computer without Internet.
By times, and when he have access to Internet, i would like that he check the new version of that application(WAR file) in my Server, and if there is new version, then he will update the application (WAR file).
Is there any possibilite that I can use Web Start to deploy WARs directly tomcat/webapps/ ??
In all documentation of web start, they use for *.JAR. but there is no place where say that I can't use web start for WebApplication.

Not that I'm aware of.
You can upload your new WAR to his Tomcat server if you have access to /manager/html on his Tomcat.

Similar Messages

  • Using JNLP/Web Start to deploy console only applications (no gui)

    I have scanned the forums but have not found a good answer to this... I am looking to leverage the JNLP technology to help manage the deployment of server-based applications on thousands of servers.
    These servers do not have a Console (they are linux) - no X Windows, nothing. The Java program that I wish to deploy is basically a background server process.
    This program that I am deploying to thousands of locations has many Jar dependencies. It would be really great to use JNLP to deploy this app. So that on each server I could simply run "javaws http://someurl/app.jnlp" to execute the program. Unfortunately, I have found that the Java Web Start client requires a GUI - so that it can display download progress and the etc. The -Xnosplash and -silent options do not work for this.
    Otherwise, I have to manage and deploy all of my Jars on each my thousands of servers - what a pain!
    I have looked at NetX and OpenJNLP but these projects seem dead and out-dated.
    Any ideas?

    At this time all javaws applications are swing applications needing swing for the download dialog, error dialogs, and any security dialogs.
    There are RFEs filed to add support for non-gui apps, that may be implementated in JDK7
    /Andy

  • Web Start client for two Web Services

    Hello.
    I wrote a client application that uses two different web services.
    Both web services are created using Basic Authentication. They have different user_names and passwords, but must be deployed on the same application server. I must invoked methods of these web services one after another.The problem occures when I invokes mehods of second web service. No matter which of service would be first or second. The problem occurs on second calling. I got this exception:
    EXCEPTION: java.rmi.RemoteException: HTTP Status-Code 403: Access to the requested resource has been denied; nested exception is:
         HTTP Status-Code 403: Access to the requested resource has been denied
         at com.softlets.insurelet.security.InsureletSecurityServiceSEI_Stub.login(InsureletSecurityServiceSEI_Stub.java:89)
         at com.softlets.insurelet.test.TestRefundPolicy.main(TestRefundPolicy.java:61)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    IMPORTANT: Everything worked fine until I started to install this application using Java Web Start.
    MY ASSUMPTION: It's likely to me that web start executes my application in some environment where it caches the first web service's username and password and applies it to the second web service. Because, if I run both web services on my local machine and set ENDPOINT_ADDRESS_PROPERTY to different values (first - localhost:8080, second - 192.168.0.21:8080) everything works fine.
    CODE FRAGMENT:
    public static void main(String[] args) {
    try {          
    String user = "test"; String pass ="test";
    String host = "http://192.168.0.21:8080/insurelet-p/insurelet_p";
    Stub stub = (Stub)(new Insurelet_policies_Impl().getInsureletPoliciesServiceSEIPort()); stub1._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, host);
    stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, user);
    stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, pass);
    InsureletPoliciesServiceSEI ws = (InsureletPoliciesServiceSEI)stub;
    String officeid = "test1"; String operatorid = "test2"; String mct = "1";
    // FIRST WEB SERVICE CALLING
    boolean result = ws.makeRefund(officeid, operatorid, mct);
    String suser = "test"; String spass ="test";
    String shost = "http://192.168.0.21:8080/insurelet-s/insurelet_s";
    Stub stub1 = (Stub)(new Insurelet_security_Impl()).getInsureletSecurityServiceSEIPort();
    stub1._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, suser);
    stub1._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, spass);
    stub1._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, shost);
    InsureletSecurityServiceSEI ws1 = (InsureletSecurityServiceSEI)stub1;
    // SECOND WEB SERVICE CALLING
    OperatorTO to = ws1.login("softlets", "admin", "admin"); // EXCEPTION
    ENVIRONMENT: Both web services are deployed in a single enterprise application on Sun Java System Application Server 8.1.
    Java version: 1.5..0_02

    In case anyone's search leads them here, I've posted the solution at:
    *[http://www.pby.com/general.nsf/webarticles/dominowebservice01]*
    It is an exhaustive article (not "Hello World"!) that goes through several versions of the web service and client - hopefully explaining all* pieces of the puzzle:
    ~ web service code,
    ~ WSDLs
    ~ schema
    ~ thoroughly-documented clients that do and do not use JAXB
    ~ ... that use generated artifacts
    ~ ... that customize existing POJOs
    ~ the SOAP messages generated in each direction
    ~ the necessary JAXB annotations
    ~ explanations of how the code works
    ~ explanations of how namespaces affect the code
    ~ on and on and on...
    My constant goal was to write an uncomplicated solution that uses as few artifacts (two) and annotations as possible. The end result is a small, fast JAX-WS 2.0 client that uses JAXB to invoke and consume a secured Domino 7 (1.4.2 JVM + AXIS) web service, using RPC/literal SOAP messages.

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Application started using Java Web Start doesn't launch the first time

    I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4.
    I signed my application and make use of all security settings.
    Here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="http://www.antaki.ca/bloom/jars"
         href="http://www.antaki.ca/bloom/Bloom.jnlp">
    <information>
        <title>Bloom</title>
        <vendor>Carl Antaki</vendor>
        <icon kind="splash" href="http://www.antaki.ca/bloom/Bloom.jpg"/>
        <icon href="http://www.antaki.ca/bloom/bloom32.jpg"/>
      <shortcut online="false">
      <desktop/>
      <menu submenu="Bloom"/>
      </shortcut>
    </information>
        <resources>
            <j2se version="1.5+" initial-heap-size="32m" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" />
            <property name="sun.java2d.d3d" value="false"/>
            <jar href="http://www.antaki.ca/bloom/jars/Bloom.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/BrowserLauncher2-1_3.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/SmartProgressMonitor.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/facebook.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/forms-1.1.0.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/json_simple.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swing-worker-1.1.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/glazedlists_java15.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swingx-0.9.1.jar"/>   
            <jar href="http://www.antaki.ca/bloom/jars/jhbasic.jar"/>
       </resources>
    <security>
         <all-permissions/>
      </security>
    <application-desc main-class="ca.antaki.www.bloom.gui.Bloom" />
    </jnlp>Here is the link for my application http://antaki.ca/bloom/Bloom.jnlp
    The first time the application is installed using a link on the browser it's downloaded then the certificate dialog is shown, after that I check the checkbox to accept the certificate permanently. The application doesn't load, it only loads the second time although I see it in the task manager. If I don't accept the certificate permanently it does load. This happens on both Firefox 2 and IE 7. I enabled the console and logging but nothing shows up there.That's really a weird problem, I wonder if Java Web Start is a viable deployment option, it does have great capabilities such as autoupdate but still seems to have important bugs.
    Does anyone have any clue about what is going on.
    The problem doesn't occur on Ubuntu 7.10.
    Thanks,
    Carl Antaki

    >
    You were right my XML file was not correct. I still couldn't find a valid JNLP validator. Sun has to provide that.>No they don't (have to supply a validator for their own document type, though it makes sense to do so), but yes they do (provide a tool that validates XML against schemas). Java can validate XML against a DTD or XSD.
    Check these two threads (and chase the links) for more details.
    JNLP xsd schema
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/c6f65bf1df5f105d/30c6b7e2dc342dc4>
    Validate XML against DTD? XSD OK. SSCCE.
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/5b997a1edb765b11/e831f3066eb4aa38>
    Look especially for the posts by Piotr Kobzda.
    I had a tool on my site based largely on Piotr's codes, that linked to a valid JNLP DTD and XSD, but unfortunately my site is offline at the moment. Andy assures me that the JNLP 6.0 DTD has been corrected for the developer ..download tutorials of web start, though the online (web site) version may still be invalid.

  • Web Start Application fails after upgrade to JRE 1.6.0_u33

    I have a production application that uses java web start for deployment. All has gone well, but we are experiencing problems when testing upgrading to the latest JRE update 1.6.0_u33.
    The application is composed of several jar files, all of which are signed with a code signing certificate. However, after updating the JRE, I receive the error :
    #### Java Web Start Error:
    #### Unsigned application requesting unrestricted access to system
    Unsigned resource: the first jar file in my jnlp
    This is a pretty odd error, since the jar is definitely signed. I can find it in the webstart cache and run jarsigner -verify against it and it verifies successfully.
    If I remove the application and reinstall it, everything works fine, but this is a pretty unacceptable solution for thousands of users, many of which are not very technical.
    Does anyone have any solutions or has anyone encountered the same problem? It is currently a showstopper for us to taking this new JRE update which contains some critical security updates we would like to have implemented.
    Thanks in advance for any help.

    Hi
    I have seen this post a little bit late, but... We have also encountered such issue.
    There is another workaround than ask people to empty the java web start cache.
    In order to force the end user's computer to download again you application entirely, we have signed again ALL the jar files and uploaded them to our server.
    That works well but... if somebody download the "new" files and upgrades java to 1.6_0_33 afterwards... same issue will appear again.
    Please observe that the traffic in this forum has started to decrease strongly. That's not amazing when you see that you cannot count on this product.
    Java web start has never worked correctly and that for a long time. This one suffers of numerous bugs and regressions. We should rather call it Java Nightmare Neverstart
    It's a shame.
    Sun has been acquired by Oracle but that does not seem change anything.
    Java RIP
    Claude

  • Error of using Java Mail in Web Start

    Hi,
    I got a problem when using Java Mail to send email. My apps is a stand alone and no problem when it was deployed normally. When I used the Web Start to deploy it, the following error was caught when I tried to send email:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2824645.1032281188963"
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at javax.mail.Transport.send0(Transport.java:164)
         at javax.mail.Transport.send(Transport.java:81)
         at com.mailcom.client.util.EMail.sendMail(EMail.java:180)
    Here is the source code:
    public class EMail {
    public static void sendMail(String host,
    String sender,
    String recipient,
    String subject,
    String content,
    Vector fileNames) throws MessagingException {
    Properties props = new Properties();
    props.put("mail.smtp.host",host);
    Session session = Session.getDefaultInstance(props,null);
    session.setDebug(true);
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(sender));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient,false));
    msg.setSubject(subject);
    Multipart mp = new MimeMultipart();
         // create and fill the first message part
         MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(content);
         mp.addBodyPart(mbp1);
    // attach the file to the message
    if(fileNames != null && fileNames.size() != 0) {
    FileDataSource fds = null;
    for(int i = 0; i < fileNames.size(); i++ ) {
    String currentFileName = (String)fileNames.elementAt(i);
         fds = new FileDataSource(currentFileName);
         // create the second message part
         MimeBodyPart mbp2 = new MimeBodyPart();
         mbp2.setDataHandler(new DataHandler(fds));
         mbp2.setFileName(fds.getName());
         // create the Multipart and its parts to it
         mp.addBodyPart(mbp2);
         // add the Multipart to the message
         msg.setContent(mp);
    msg.setHeader("X-Mailer",MAILER);
         // set the Date: header
         msg.setSentDate(new Date());
         // send the message
    line 180     Transport.send(msg);

    Yes. All the third party jar files and our application jar are put on the server side. Here is the JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for software-->
    <jnlp spec="1.0+" codebase="http://www.software.com/apps" href="client.JNLP">
    <information>
    <title>client application</title>
    <vendor> * </vendor>
    <homepage href="docs/help.html"/>
    <description>Client</description>
    <description kind="short">A tool</description>
    <icon href="images/logo.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="lib/client.jar"/>
    <jar href="lib/mail.jar"/>
    <jar href="lib/smtp.jar"/>
    <jar href="lib/activation.jar"/>
    </resources>
    <application-desc main-class="com.software.client.MainFrame">
         <argument>2226</argument>
         <argument>www.software.com</argument>
         <argument>5351</argument>
    </application>
    </jnlp>

  • JVM - Microsoft JScript.dll Memory Leak when using Java Web Start

    I have posted before a topic related to this matter, although now I have a lot more information about what is going on (although still no fix for it). This is the link to the earlier post, containing JVM HOTSPOT EXCEPTION_ACCESS_VIOLATION
    http://forum.java.sun.com/thread.jspa?threadID=5116970&messageID=9402346#9402346
    The issue is that after deploying on Windows XP a multi threaded, memory consuming (40 Mb) Java Swing application using Java Web Start, and the standard web page (IE6) reference to the jnlp file to launch the installation from Tomcat, each time this application gets executed by double clicking on the desktop icon (with no IE6 interaction at all), calls start being made between jvm.dll (sun) and jscript.dll (Microsoft IE), these interactions never release the memory they consume, so after a period of using the application it crashes unavoidably. If I execute exactly the same application launching it from command line (no Web Start nor IE6 browser involved), the application works nicely all the time, no problem at all.
    My question is: does anyone know why these calls to jscript.dll are even being made during web start application execution? As said, it's a desktop Swing app, it does not need the browser at all, and jscript.dll is a IE dll. Anyone can advice on how these interactions can be eliminated?
    I've worked with Microsoft support for two weeks on this issue and all they have said is that it is a Sun problem and they can not help further.
    Thanks
    Jes�s

    Microsoft suggested (among others) two test.
    1- Install IE7 and run the application
    2-Install Firefox and run the application
    Results were:
    For 1: The application does not crash, apparently IE7 has a newer version of Jscript.dll that, in Microsoft words, handles better 'bad software', refering to 'bad software' to the java virtual machine I guess. Looking at the performance manager you can see memory goes down as with IE6, but at some point memory is released and the app. does not crash. Anyway is still is uncertain to me why Jscript.dll is getting involved at all. Although this solves the problem is not a viable solution for us, because I work in a corporation where changes such as upgrading the IE version on a large number of desktop can not be justified just because one app. is crashing, and it would take a long validation time anyway before the upgrade can proceed.
    For 2: I did install Firefox in a machine and the application still crashed, but it is true I did not uninstall IE6, so the conflictive Jscript.dll was still sitting at system32. Quite possibly the crash would not happen if that dll wasn't there at all.
    Thanks
    Jes�s

  • SQL Server JDBC problem of JClient deploy in java web start

    I have a test of JClient, it use SQL Server JDBC ,and I download the Microsoft SQL Server 2000 Driver for JDBC from microsoft(msbase.jar, mssqlserver.jar, msutil.jar), add the driver in jdevelop libraries, I can right click the java file to run this application in application navigator , I want run it in java web start and deploy in oc4j, and setup application follow the document of
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfjclientbcwebstart.pdf
    ,but application catch the exception of com.microsoft.jdbc.sqlserver.SQLServerDriver ClassNotFoundException, how to load SQL Server JDBC in embedded oc4j server or standalone oc4j server
    Thaks for helping me!

    How to load SQL Server JDBC to OC4J server

  • Communicate with servlet after using Java Web Start?

    Is it possible to communicate with servlet to get data back and forth
    after using Web Start to download the client application?
    The demos come with Java Web Start are applications which are
    standalone, don't need communicate with the servlet on Web server
    after being launched. I am wondering if it is possible, and how (HTTP
    & JAX-RPC)?
    Thanx in advance.

    I've done this using HTTP. I get the server and port from the codebase:
    BasicService bs = null;
    try {
    bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
    String codeBase = bs.getCodeBase().toString();
    and use the java.net.HttpURLConnection and java.net.URL classes to send HTTP parameter values to the servlet and to receive results from the HttpURLConnection's input stream.

  • Can't run application via Web Start 7 if there is query string in href

    Java Web Start 7 cannot run application if there is query string in href attribute in jnlp file.
    For example:
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp?query_string">
    </jnlp>
    There are no any errors. Web Start just does not run application.
    But this jnlp could be processed by Java Web Start 6 without any problems.
    Is this a bug in Java Web Start 7?
    Or using query string in href attribute is not correct by some reason?

    I use following example to test this problem - http://www.mkyong.com/java/java-web-start-jnlp-tutorial-unofficial-guide
    If you use default jnlp from this example - everything works ok.
    But if add any query string to href attribute then Web Start 7 cannot start application.
    For example:
    <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp?param=value">
    </jnlp>
    The problem is with Java Web Start 7 Update 7 (build 1.7.0_07-b11).
    WebStart 6 can start application using this modified jnlp without any problems.
    Edited by: vbez on Oct 11, 2012 2:57 AM
    Edited by: vbez on Oct 11, 2012 2:58 AM

  • Web start off-line applications

    Is it possible to disable the automatic update feature of web start, and indicate that an application will always run off-line? For users that only have a dial up connection, it's inconvenient for web start to try to connect each time.

    I think I answered my own question; the answer is that presently the answer is no. Web start will always try to get the latest version, like it or not. I also understand that this might change in Java 1.6.
    There is an ongoing debate as to whether creating java executables (exe files) in windows is needed or advisable. Many suggest using java web start; others suggest distributing an executable jar. Both have problems.
    In the case of an executable jar, unless one makes a shortcut and uses an application icon, it is apparent that the program is not a normal windows application. Also, if the application uses javahelp, there is the additional difficulty of getting jhall.jar to the right place.
    Java Web Start has good potential. However, this business of always looking for automatic updates has problems. Many users don't want updates unless they explicitly ask for them. It is possible to run the application offline using the Java Web Start manager. But then its very obvious that this is not a standard windows application. Clicking on the icon that web start creates causes Java web start to announce itself to dial up users who happen not to be connected to the internet at the time of the launch. Again, it becomes obvious that this is not a windows application.
    It's my personal opinion that this is a serious design flaw. Java can make inroads to .net if its applications can run in windows transparently, as any other application. My vote is to correct this flaw in the next version.

  • Use Java Web Start to distribute Java 3D!

    I try to use Java Web Start to distribute Java 3D Application, I do successfuly tested some simple examples of Java 3D, and the result is as expected as I thought, But when I try to test an Objfile loader example, I failed.
    I simply use like this below:
    BranchGroup b = new objLoad("galleon.obj");
    objTrans.addChild(b);     
    and put the class file and the obj file into a jar file, but seems the objload can not find the model file in path! and if I put the obj file in my server directory and delete it form the jar file, I can run this function in local(double click jnlp file) but still can not run it in web.
    So I think the main problem is the path of the obj file, can anyone give me some advices about this?? thanks!!

    thanx! in fact the objload is a class wrote myself, just as below:
    public class objLoad extends BranchGroup{
    public objLoad(String filename) {
    BranchGroup obj = new BranchGroup( );
    int flags = ObjectFile.RESIZE;
              ObjectFile f = new ObjectFile(flags);
         Scene s = null;
         try {
         s = f.load(filename);
         catch (FileNotFoundException e) {
         System.err.println(e);
         System.exit(1);
         catch (ParsingErrorException e) {
         System.err.println(e);
         System.exit(1);
         catch (IncorrectFormatException e) {
         System.err.println(e);
         System.exit(1);
         obj.addChild(s.getSceneGroup());
    this.addChild(obj);
    actually, i still use ObjectFile as my loader, I wonder if I add obj file in jar, can I load this file through java web start? I read some examples about read some image file to build image icons, and these files are all in jar file.
    Thanks your help!! Can you reply my email [email protected]??

  • Problem running JavaFX application as web applet / web start

    Hi All,
    I need to run a JavaFX application as applet in a web page. To do that I use the html page
    generated by javafxpackager and all works fine if I launch the html page locally from my
    pc but when I load the html page from web server the application runs slow till freezing the browser.
    All jars are signed with a self-signed certificate, I've tried with Firefox, Chrome, IE and different servers.
    Same problem with web start (jnlp), locally works fine, launched from web it freezes.
    Enabling Java Console I've noticed a lot of log like:
    basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.ImageView: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Image: try again ..
    network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
    network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
    basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
    basic: JNLP2ClassLoader.findClass: java.lang.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.control.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
    basic: JNLP2ClassLoader.findClass: javafx.scene.layout.Font: try again ..
    network: Cache entry not found [url: http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory, version: null]
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with proxy=DIRECT
    network: Connecting http://www.mysite.com:80/ with proxy=DIRECT
    network: Connecting http://www.mysite.com/applet/META-INF/services/javax.xml.stream.XMLInputFactory with cookie "has_js=1"
    What am I doing wrong?
    This is my jnlp (MyApp.jnlp)
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec = "1.0" xmlns:jfx = "http://javafx.com" codebase = "http://www.mysite.com/applet/" href = "MyApp.jnlp">
    <information>
    <title>MyApp</title>
    <vendor>MyApp</vendor>
    <description>Sample JavaFX 2.0 application.</description>
    <homepage href = "http://www.mysite.com/applet/"/>
    <offline-allowed/>
    </information>
    <resources>
    <jfx:javafx-runtime version = "2.2+" href = "http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
    </resources>
    <resources>
    <j2se version = "1.6+" href = "http://java.sun.com/products/autodl/j2se"/>
    <jar href = "MyApp.jar" size = "2836601" download = "eager"/>
    <jar href = "libs/gson-2.2.2.jar" size = "189285" download = "eager"/>
    <jar href = "libs/sun.jar" size = "83743" download = "eager"/>
    </resources>
    <applet-desc width = "1280" height = "1024" main-class = "com.javafx.main.NoJavaFXFallback" name = "MyApp">
    <param name = "requiredFXVersion" value = "2.2+"/>
    </applet-desc>
    <jfx:javafx-desc width = "1280" height = "1024" main-class = "test.App" name = "MyApp"/>
    <update check = "background"/>
    </jnlp>
    and this my html page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>My App</title>
    <script src="http://java.com/js/dtjava.js"></script>
    <script>
    function launchApplication(jnlpfile) {
    dtjava.launch( {
    url : 'MyApp.jnlp'
    javafx : '2.2+'
    return false;
    </script>
    <script>
    function javafxEmbed_fxApplication() {
    dtjava.embed(
    id : 'fxApplication',
    url : 'MyApp.jnlp',
    placeholder : 'MyAppId',
    width : 1280,
    height : 1024
    javafx : '2.2+'
    <!-- Embed FX application into web page once page is loaded -->
    dtjava.addOnloadCallback(javafxEmbed_fxApplication);
    </script>
    </head>
    <body>
              <div id="MyAppId"></div>
    </body>
    </html>
    Thank you

    Some more info,
    I watched the web server logs and I found many repeated log entries like
    "GET /applet/myapplet.html/META-INF/services/javax.xml.stream.XMLInputFactory HTTP/1.1" 404 19023 "-" "Mozilla/4.0 (Windows 7 6.1) Java/1.7.0_09"
    Googling this I've found many posts regarding similar problems:
    http://stackoverflow.com/questions/7997566/web-service-client-applet-keeps-asking-for-meta-inf-services-javax-xml-ws-sp
    http://stackoverflow.com/questions/2340969/applet-served-by-java-web-start-resources-requested-to-web-server-before-look-i
    It seems to be a strange Behaviour of the JNLPClassLoader that tries to load classes from server instead from jar or local class path.
    Somebody suggests to remove all logging entries from code or to add "codebase_lookup = false" to applet parameters but this does not solve the problem.
    I use FXML to define my UI and I think that every time an fxml is loaded JNLPClassLoader tries to load the xml parser (javax.xml.stream.XMLInputFactory)
    from server.
    Somebody have any idea?
    Thank you.

  • Error while deploying a web service whose return type is java.util.Date

    Hi
    I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
    public interface Ping extends Remote
    * A simple method that pings the server to test the webservice.
    * It sends a datetime to the server which returns the datetime.
    * @param pingDateRequest A datetime sent to the server
    * @returns The original datetime
    public Date ping(Date pingDateRequest) throws RemoteException;
    The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
    E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
    WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result  = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
    (myPing_Type.getDate_1());
    ^
    1 error
    04/03/23 17:17:35 Notification ==&gt; Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
    I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
    Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
    This forces me to return a String data.
    I would appreciate if someone can help me out.
    Thanks
    Sachin Mathias
    Datamatics Ltd.

    Hi
    I got the web service working with some work around. But I am not sure it this approach would be right and good.
    I started altogether afresh. I did the following step :
    1. Created an Interface (Ping.java) for use in web Service as follows :
    public interface Ping extends Remote{
    public java.util.Date ping(java.util.Date pingDateRequest)
    throws RemoteException;
    2. Implemented the above interface in PingImpl.java as follows :
    public class PingImpl implements Ping
    public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    3. Compiled the above 2 java files.
    4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
    5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
    Ping.Java
    =========
    public interface Ping extends Remote{
    public java.util.Calendar ping(java.util.Calendar pingDateRequest)
    throws RemoteException;
    PingImpl.Java
    ================
    public class PingImpl implements Ping
    public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    6. Now I recompile both the java files.
    7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
    8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
    The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
    From Client to SOAP :
    java.util.Date to datetime
    From SOAP to Server :
    datetime to java.util.Calendar
    From Server to SOAP :
    java.util.Calendar to datetime
    From SOAP to Client :
    datetime to java.util.Date (I am not able to understand this part of the conversion)
    Any help or inputs would be appreciated.
    Thanks
    Sachin Mathias

Maybe you are looking for

  • Action based on type of DDL in Replicat question

    Hi, Our destination DB has 2 extra columns per table REPL_CREATE_DATE & REPL_UPDATE_DATE of type DATE. We want to populate REPL_CREATE_DATE when the DDL is an INSERT and we want to populate REPL_UPDATE_DATE when the DDL is an UPDATE. In other words:

  • Integration Directory Automatically

    Hi Experts, Is it possible to create Integration directory Objects automatically based on Integration Repository Objects? Means I don't need to create CS,BS,CC etc manually one by one. By some means, those will be created based on my IR Objects. If y

  • 9i to 10g OCP certification

    Dear all, I have 9i OCP Certificate and I have done 1Z0-040 Oracle Database 10g: New Features for Administrators.. , Now what should I do attain the 10g OCP certificate ?.. I understand that Hands on course requirement is not needed for this ?.. How

  • Can remote users use Time Machine to back up to the server?

    We have 4 Mac users in our office, and a 5th remote Mac user. All 5 users are using a Mac Mini Server at our office for file sharing services. The 4 local users are all set up for Time Machine backups to the server. I wasn't able to set up the remote

  • Moving clips up/down video tracks.

    Hello In Vegas if I wanted to move a clip up or down X# of tracks, I could use the key-pad. #2 moves down and #8 moves it up. Isn't there something like this in FCE? Using a keyboard command is much easier to keep the clip from inching sideways. Than