How to debug java web start with jdk1.5?

i want to debug a JWS app with eclipse, not java console, so I follow Unofficial Java Web Start/JNLP FAQ(http://lopica.sourceforge.net/faq.html) and still not worked.
the attached session worked at first and broke soon, and I found some idea from Unofficial Web Start FAQ Update/Errata(http://lopica.sourceforge.net/update.html). I did the following:
set JAVAWS_TRACE_NATIVE=1
javaws http://localhost/test/test.jnlp
copy command line from popup window.
add "transport=dt_socket,server=y,address=7000" to command line:
C:\progra~1\Java\jdk1.5.0_03\bin\javaw.exe -Xrunjdwp:transport=dt_socket,server=y,address=7000 -Xbootclasspath/a:C:\progra~1\Java\jre1.5.0_04\lib\javaws.jar;C:\progra~1\Java\jre1.5.0_04\lib\deploy.jar -classpath C:\progra~1\Java\jre1.5.0_04\lib\deploy.jar -Djnlpx.home=C:\progra~1\Java\jre1.5.0_04\bin -Djnlpx.splashport=4362 -Djnlpx.jvm="C:\progra~1\Java\jdk1.5.0_03\bin\javaw.exe" -Djnlpx.remove=false -Djava.security.policy=file:C:\progra~1\Java\jre1.5.0_04\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=NULL,NULL com.sun.javaws.Main http://localhost:8080/test/test.jnlp
the debugger still gets detached. I don't know what's wrong.
JWS has come out for many years, I still found so many undocumented skills, even netbeans5 doesn't support it. Sun want to give up java?

Try checking out this other thread, particularly the reply from dietz333 (I happen to know he's a regular genius when it comes to JavaWS):
        http://forum.java.sun.com/thread.jspa?forumID=38&threadID=569693

Similar Messages

  • How to use Java Web Start with EJB ?

    hi forum...
    how to use Java WebStart with EJB ?
    examples ?
    thanks...
    mindu

    Mindu,
    WebStart will work with EJB. I use it with WebLogic Server. You have to make sure and deploy the weblogic.jar file - sign it if needed.
    For signing information, look here,
    http://java.sun.com/products/javawebstart/1.2/docs/developersguide.html
    Dan

  • How to debug when Web Start keeps closing

    Hi,
    I'm trying to deploy a simple hello world application. I've
    created and signed the jar. When I run the application via
    Web Start, I get as far as a window asking if I trust the
    person, and I click yes. Then Java Web Start immediately
    closes with no useful information.
    Is there a log file somewhere? Is there a debug mode in
    which I can get more information about the problem?
    Ken Z.

    using at least javaws 1.5.0, go to the control panel and select advanced tab, trace on. Then create file . home directory called .javawsrc and add lines:
    TraceBasic=true
    TraceSecurity=true
    TraceTemp=true
    then run again.
    you shoul get trace files in the log dir <deployment.user.home>/log.
    /Andy

  • How to UNinstall Java Web Start?

    How can I uninstall Java Web Start from my computer? I have Java 2 Runtime Environment, and the option to uninstall it appears in my Add/Remove programs menu, but I'd like to leave Runtime on and just remove Web Start. How can I do this?

    As of JRE 1.4.2, Java WebStart is part of the JRE and can't be uninstalled separately.
    Why do you wish to uninstall it?

  • How to add Java Web Start MIME type to Sun Java SYstem Application Server?

    Hi,
    In the process of learning about Java Web Start,
    I read in the document that I had to add "application/x-java-jnlp-file JNLP " to a configuration file.
    Does anyone know where that file is for Sun Application web server( vesion 8, on WIndows)?
    Thanks,
    Sun

    I believe you can add it to default-web.xml file located in your server config dir.
    (i.e. /opt/SunAppServer8/domains/domain1/config/default-web.xml)

  • Final Cut Server: Cannot connect to Java Web Start with a web browser

    I get this exact error http://support.apple.com/kb/TS1610, but their steps do not fix it.
    sudo cp /etc/apache2/sites/0000any_80.conf.default /etc/apache2/sites/0000any_80.conf
    has me validate and then goes back to the prompt the other:
    Xserve:~ admin$ sudo /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/post-install.sh
    Stopping Final Cut Server services ...
    launchctl: Error unloading: com.apple.FinalCutServer.fcsvr_ldsd
    launchctl: Error unloading: com.apple.FinalCutServer.fcsvr_stored
    Starting postgresql ...
    Initializing database ...
    could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.8820"?
    connection failed, retrying (1) ...
    -- updating: pxtraitclass
    -- updating: pxperm
    -- updating: pxgroup
    -- updating: pxschema
    -- updating: pxentitylinktype
    -- updating: pxenum
    -- updating: pxenumentry
    -- updating: pxmdfield
    -- updating: pxtrait
    -- updating: pxmdgroup
    -- updating: pxmdgrouphasfield
    -- updating: pxeventstatus
    -- initializing config package: base
    -- updating: enum
    -- updating: enumentry
    -- updating: mdfield
    -- updating: mdgroup
    -- updating: mdgrouphasfield
    -- updating: mdmap
    Settings plist already present, not overwriting.
    Starting Final Cut Server services ...
    Configuring webstart for OS X Server on default site ...
    web:Modules:array_id:php5module:enabled = yes
    web:Modules:array_id:userdirmodule:enabled = yes
    web:Modules:array_id:apple_userdirmodule:enabled = yes
    web:Sites:array_id:*:80_:IfModule:_array_id:mod_rewrite.c:RewriteCond:_arrayindex:0 = "%{REQUEST_METHOD} ^TRACE"
    web:Sites:array_id:*:80_:IfModule:_array_id:modrewrite.c:RewriteEngine = yes
    web:Sites:array_id:*:80_:IfModule:_array_id:mod_rewrite.c:RewriteRule:_arrayindex:0 = ".* - [F]"
    web:Sites:array_id:*:80_:IfModule:_array_id:mod_rewrite.c:RewriteRule:_arrayindex:1 = "^/FinalCutServer$ /~fcsvr/Sites/webstart/index.php [NC,L]"
    service: This command still works, but it is deprecated. Please use launchctl(8) instead.
    service: This command still works, but it is deprecated. Please use launchctl(8) instead.
    Xserve:~ admin$
    Help? I should point out this is my first experience with OSXserver and I am not exactly an advanced user.
    Message was edited by: otterholt

    Hi, this dind't help.
    I can resolve host name, so it looks like DNS works:
    If I typed: <IP address> or localhost or localhostname.local or hostname I stiil get the default OS X web page with services, but no service is available not I can't connect to FCS web start page.
    I didn't change DNS records - it is default as it was after installation of system and FCs.

  • Weblogic with Java Web Start

    Hi, everyone.
    I am trying to do an example of application with JWS, but in my example the server is Tomcat, because I did not found an example to do with Weblogic.
    So I want to know where I have to configurate my server to set my application as a JWS application, to be donwloaded fo another application.
    Thaks!

              Could someone kindly follow this and find us a solution?
              Thank you.
              ==========================================================
              Dimitri Rakitine <[email protected]> wrote:
              >Did you check that this is not an error message being returned ? That
              >would explain text/html mime type.
              >
              >Jim Mittler <[email protected]> wrote:
              >> Hi,
              >
              >> I am trying to use Java Web Start with a Weblogic HTTP cluster. The
              >> HttpClusterServlet seems to never return a proper jnlp mime type.
              >
              >> What I see in JWS is :
              >
              >> Bad MIME type returned from server when accessing resource:
              >> http://myserver:7070/myapp.jnlp - text/html
              >
              >> The web.xml looks ok to me.
              >
              >> <mime-mapping>
              >> <extension>jnlp</extension>
              >> <mime-type>application/x-java-jnlp-file</mime-type>
              >> </mime-mapping>
              >
              >> Everything works ok when I don't use the cluster servlet.
              >
              >> Any help is much appreciated!
              >
              >> Jim
              >
              >--
              >Dimitri
              

  • First Java Web Start download doesn't update, second time does

    I'm using Java Web Start with our application. This release we upgraded to java 1.5 from 1.4. Now I have a few PCs, not all, that do not get updates the first time they launch the application. But when the launch it the second time they get the download. The jnlp didn't change between releases? Any suggestions? I'm not using lazy loads, in fact I'm using the default which should be eager.
    Thanks.

    Hi,
    I have similar situation. At the machine is installed Java 1.6 u1. Setup first version of application. After deploy second version of application and run application start update, but console show that application use old packages. At the same time main package is uploaded? I'd try to use <update check="always"?> but there are no positive result.
    At the same time then installed Java 1.6 u2, all works fine.
    Any suggestion, how it could be resolved, without Java 1.6 u2 installation?
    Thans, Kirll.

  • Java Web Start and JAAS

    Has anybody tried to use JAAS in an application launched via Java Web Start?
    I'm experiencing problems with it. (The application works fine when being launched directly on the client.)
    If somebody already successfully tried, please let me know.
    Do I need to modify tags in the JNLP file? Do I need to re-configure my webserver or servlet engine?

    OK I got a response from the Java Web Start engineering folks. It sounds like using JAAS directly, to login to an ejb app server or whatever, is out of the question with Java Web Start on JDK1.3:
    << begin Sun's email >>
    The problem you got is due to JAAS 1.0 (jaas.jar) uses systemClassLoader to load
    classes that are defined in the JNLP application jar files, which should be
    loaded by the contextClassLoader instead. For more information on classLoading
    with JWS, look at:
    http://java.sun.com/products/javawebstart/faq.html#54
    http://java.sun.com/products/javawebstart/docs/developersguide.html#dev
    The new JAAS that comes with JDK 1.4 fixed this problem, which uses
    contextClassLoader in their class.
    Thanks for your interest in Java Web Start.
    << end of Sun's email >>
    FYI our workaround: We use a SOAP servlet as a proxy for the app server and we've defined a SOAP xmlrpc api between our client and the application server. This has the advantage of being able to get thru firewalls, as our variant of SOAP is transported on HTTP. Java Web Start installs and starts the SOAP client.
    I would hope the JWS folks would search the Sun provided services and see which ones ignore the current thread's class loader and fix them.
    David Harvey
    Siemens Energy and Automation, Inc.
    Gardner Systems Business Unit

  • Java web start error running Asset Editor or any jnlp page

    When I try to launch Asset Editor or Import/Export or any of the jnlp pages that runs using Java Web Start, I get an error. Java 7 Web start starts but It throws “Could not connect to Server. Please check your Java Web Start and Browser proxy settings”.
    I read conflicting opinions on the internet as to what version of JRE/JDK is needed and potentially some issues running Java Web start with Java 7. I have 64-bit java 1.7.0_45 JDK/JRE installed and no other version. I tried installing 32-bit 1.7.0_45 as well. I have tried to run it from 32-bit as well as 64-bit browser also. All situations provide the same error.
    However, when I install JRockit, it seems to work fine. But we cannot use jrockit. We have to use IBM JDK/JRE 7 eventually. Currently, the java web start does not work on Oracle Java as well as IBM JRE.
    Any help is much appreciated.

    I found a solution for this problem. We have to apply patch 17634436.
    https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?_afrLoop=149081897091441&patchId=17634436&_afrWindowMode=0&_adf.ctrl-state=xfsajjmff_74
    Just thought it will be useful for anyone encountering this problem.

  • Custom classloader fails when using Java Web Start

    Hope you can help me with a problem that is driving me nuts. I have implemented my own classloader to support plugins. This classloader works as follows:
    1. The classloader is configured to access a plugin components jar file downloaded by jws.
    2. The plugin components jar file contains other jar files which contains the actual plugin code to be loaded using my own classloader.
    3. Upon initialization - my classloader extracts all jar files contained in the plugin components jar file into temporary files.
    4. These temporary files are used by my classloader when defining plugin classes.
    The classloader works fine when not using java web start. Then I launch the application using java web start with security policy in .jnlp file set to:
    <security>
    <all-permissions/>
    </security>
    After a while (it was able to load some of the classes) it fails with the following stack-trace:
    Regards,
    Terje
    java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\TEOES\LOCALS~1\Temp\activity61102.jar read)
         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.checkRead(Unknown Source)
         at java.util.zip.ZipFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at my.plugin.ActivityClassLoader.getJarFileEntry(ActivityClassLoader.java:258)
         at my.plugin.ActivityClassLoader.search(ActivityClassLoader.java:244)
         at my.plugin.ActivityClassLoader.loadClass(ActivityClassLoader.java:99)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Does anyone have source code for implementing a simple class loader that can be used with Java Web Start (preferrably with all jar files to be used by the classloader wrapped into a jar file)

    If you implement your own classloader, and then still run with a SecurityManager installed, then your ClossLoader is responsible for asigning the permissions to the code it loads.
    You need your ClassLoader to extend SecureClassLoader, and implement the method :
    SecureClassLoader.getPermissions(CodeSource cs) to return the PermissionCollection you want.
    /Andy

  • Java Web Start and the Mac OS

    I am new to the Mac OS and to Java Web Start. Using Java Web Start to launch a Java application on the Mac is discussed in several of the posts here. However, in the requirement section of the Overview for Java Web Start says
    "Requirements
    Desktop/Client requirements:
    The client machine requires support for the Java Runtime Environment (JRE), version 1.3 or later. Java Web Start is available for Windows 98/NT/2000/ME/XP, the Solaris Operating Environment, and Linux."
    As you can see, Mac OS is not mentioned. Yet Java Web Start exists on my Mac. Am I looking at the wrong documentation? The document is located at
    http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/overview.html#jws
    I don't know how to use Java Web Start . I don't even know where to look for help. If anyone would care to offer some help it would be greatly appreciated.

    You are looking in the right place alright. The reason OSX is not mentioned in the document (or, by extend, any of the official sun documents) is that sun does not (may not?) provide an official java release on OSX. Java on OSX is implemented by Apple (and much to the dismay of both users and developers, they are not doing a very good job). Still, Apple's java usually fulfills the same specifications as the official sun java, so you can take any one of sun's documents on webstart or any other technology and it will usually work on the Mac. You just can't expect sun to assure that a technology will work on a platform they have no control over...

  • Debugging a Web service with JDeveloper 902

    JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
    I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
    However, after deploying a Web service, even its screen output is hidden.
    My problem is how to debug a Web service with JDeveloper?

    JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
    I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
    However, after deploying a Web service, even its screen output is hidden.
    My problem is how to debug a Web service with JDeveloper?

  • DACF,BC4J,EJB,Java Web Start: org.omg.CORBA.INITIALIZE

    Hi,
    I'm trying to use Java Web Start with DACF-application having AMs deployed as Session EJB to O9IAS 1.0.2.0.0 NT.
    During opening first iiop-session I get the error:
    java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.visigenic.vbroker.orb.ORB minor code: 0 completed: No
    at org.omg.CORBA.ORB.create_impl(Unknown Source)
    at org.omg.CORBA.ORB.<clinit>(Unknown Source)
    at oracle.aurora.jndi.orb_dep.Orb.init(Orb.java:287)
    at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:75)
    at oracle.aurora.jndi.orb_dep.IRFinder.getInitialReference(IRFinder.java:124)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.java:637)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:67)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:161)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java:177)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSubcontext(ServiceCtx.java:205)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSubcontext(ServiceCtx.java:189)
    at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.createSession(AuroraEJBAmHomeImpl.java:155)
    at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome(AuroraEJBAmHomeImpl.java:125)
    at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(AuroraEJBAmHomeImpl.java:59)
    at oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(AuroraEJBInitialContext.java:47)
    at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:72)
    at javax.naming.InitialContext.lookup(InitialContext.java:276)
    at oracle.dacf.dataset.connections.Connection._createAppModule(Connection.java:256)
    at oracle.dacf.dataset.connections.Connection.connect(Connection.java:169)
    at oracle.dacf.dataset.SessionInfo.connect(SessionInfo.java:1771)
    at oracle.dacf.dataset.DbAccessImpl.connect(DbAccessImpl.java:450)
    at oracle.dacf.control.swing.LoginDlg._connectToDB(LoginDlg.java:1754)
    at oracle.dacf.control.swing.LoginDlg._okButtonClicked(LoginDlg.java:1689)
    Could anybody comment the case and/or propose a workaround ?
    (or even say that this works in someone's implementation)
    Thanks,
    Arkadi

    <<
    java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
    com.visigenic.vbroker.orb.ORB minor code: 0 completed: No
    <<
    com.visigenic.vbroker.orb.ORB is part of vbjorb.jar. make sure this file is listed in your archive tag. The jar file can be found in the lib directory of JDev installation
    null

  • How to run 64-bit native code with Java Web Start

    This question has probably been asked many times, but I couldn't find anything in my searches.
    How can I get Java Web Start on a Solaris client (Solaris 10 in this case, with JRE 1.5) to run a java application that includes a 64-bit native code library? The application downloads fine, including the jar file that has the native shared object, but when the native library is loaded by the java application, I get a "wrong ELF class: ELFCLASS64" error.
    I assume that is because Web Start is invoking the 32-bit java VM, which can't load a 64-bit library. I tried configuring Java Web Start to use the 64-bit VM (by setting the path to java to ".../jre/bin/sparcv9/java" in the javaws console) but then I get an error that says "Can't load library: .../jre/lib/sparcv9/libdeploy.so".
    Does Java Web Start support 64-bit native code, and if so, what do I need to do differently?
    Thanks.

    No it can't. On the Sun download page of the JRE it says that 64 Bit systems need to use the 32 Bit JRE to execute Plugins - this might be the same for Web Start apps.

Maybe you are looking for

  • Error in documents parking and posting

    Hello, After I parked the document of vendor payment using F-65 , While I validate and post the documents using FBV0 I met a error as following: " Formatting error in the field BSEG-PRCTR; see next message Message no. 00298 Diagnosis During batch inp

  • How do i enable airplay on my macbook pro

    How do I enable airplay on macbook pro. I have a denon receiver that can handle airplay.

  • Connecting to VCR to record audio

    I was wondering if it was possible to record audio from my VCR onto my Mac. I have a recording software already, but am wondering what kind of cord I will need in order to accomplish this. Many thanks in advance.

  • JDeveloper 9.0.3 and JDK 1.4.1

    Hi I remember that you couldn't use JDeveloper 9.0.2 with Java 1.4 - the menus, buttons, some windows wouldn't appear. In order to build my application with Java 1.4 I had to have both installed on my system: 1.3.1 to run JDeveloper and 1.4.0 to buil

  • I can't delete emails

    Hello, I have 37,000 emails that I would like to delete. They keep reappearing when I try to delete them. Rebuilding the inbox has not helped. Any thoughts? Thanks, Eli