Initial Context is slow within Java Web Start

All,
I have a Swing-based client app that makes EJB calls on a Weblogic 6.1sp2
server. It works great as a standalone app run from the command line. The
problem is when I deploy it using Java Web Start. The 'new
InitialContext(props)' call takes from 5-20 seconds. This is on a single
user development machine with the server and client running on the same
machine.
When I run it from the command line the initial context only takes 1-2
seconds to create. This is using the exact same .jar file used in the Web
Start case.
The Web Start environment is somewhat different than command line clients.
I think it is similar to the applet sandbox environment (security,etc).
Other than this, the client/server interaction speed is good (they should
be since they are on the same machine!). Any ideas?
System particulars:
Weblogic 6.1sp2. Native IO.
Host=127.0.0.1 (Reverse DNS Lookup disabled in server).
Java 1.3.1
Java Web Start 1.0.1
Windows NT 4.0sp5

I have some more details. If I signed the .jar file and give it all
permissions, then the performance is fine (~1s to get initial context).
Does anyone know which permissions are needed to connect quickliy? I would
like to only give the application those permissions it really needs.
Thanks.
Mike Houston <[email protected]> wrote in
news:[email protected]:
All,
I have a Swing-based client app that makes EJB calls on a Weblogic
6.1sp2 server. It works great as a standalone app run from the command
line. The problem is when I deploy it using Java Web Start. The 'new
InitialContext(props)' call takes from 5-20 seconds. This is on a
single user development machine with the server and client running on
the same machine.
When I run it from the command line the initial context only takes 1-2
seconds to create. This is using the exact same .jar file used in the
Web Start case.
The Web Start environment is somewhat different than command line
clients. I think it is similar to the applet sandbox environment
(security,etc).
Other than this, the client/server interaction speed is good (they
should be since they are on the same machine!). Any ideas?
System particulars:
Weblogic 6.1sp2. Native IO.
Host=127.0.0.1 (Reverse DNS Lookup disabled in server).
Java 1.3.1
Java Web Start 1.0.1
Windows NT 4.0sp5

Similar Messages

  • Java web start application runs too slow...

    Hello,
    I am new to Java Web Start. I have created a java web start application and when i enable web start from local Execution, then it works perfectly well. But when i upload it on server and then download the application, then it is too too slow...i mean it takes minutes to get the output on clicking some button....my jnlp file is as under:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="http://(web server code base)" href="launch.jnlp" spec="1.0+">
    <information>
    <title>ERD</title>
    <vendor>Deepika Gohil</vendor>
    <homepage href="http://appframework.dev.java.net"/>
    <description>A simple java desktop application based on Swing Application Framework</description>
    <description kind="short">ER Deign Tools</description>
    </information>
    <update check="always"/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="ERD_1_2.jar" main="true"/>
    <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/jaxb1-impl.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    <jar href="lib/ant-contrib-1.0b3.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/FastInfoset.jar"/>
    <jar href="lib/gmbal-api-only.jar"/>
    <jar href="lib/http.jar"/>
    <jar href="lib/jaxws-rt.jar"/>
    <jar href="lib/jaxws-tools.jar"/>
    <jar href="lib/management-api.jar"/>
    <jar href="lib/mimepull.jar"/>
    <jar href="lib/policy.jar"/>
    <jar href="lib/saaj-impl.jar"/>
    <jar href="lib/stax-ex.jar"/>
    <jar href="lib/streambuffer.jar"/>
    <jar href="lib/woodstox.jar"/>
    <jar href="lib/jaxws-api.jar"/>
    <jar href="lib/jsr181-api.jar"/>
    <jar href="lib/jsr250-api.jar"/>
    <jar href="lib/saaj-api.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    </resources>
    <application-desc main-class="erd.screen1">
    </application-desc>
    </jnlp>
    I dont understand the reason. Could you please help me out.
    Thank you,
    Deepika Gohil.

    Check your web server's access logs to see how many requests web start is sending for each jar. After you've loaded the application the first time, for each subsequent launch, if you've got everything configured right, you should only see requests for the JNLP file and maybe some gifs because web start should load everything else out of the cache (if you're using the version-based download protocol). Or if you're using the basic download protocol, then you might see requests for each jar file, but even in this case, if your web server is prepared to evaluate the last-updated attribute for each jar request and for jars that have not changed, respond with no actual payload and a header value of Not-Modified, then that should run almost as fast.
    You might also want to consider changing the "check" attribute of the "update" element from "always" to "background" for a couple of reasons. It should allow your app to start sooner (but this means that you might have to launch once or twice after an update is applied to the web server before the update shows up on the workstation). Also, my impression is that "always" is broken and prevents web start from ever checking to see if your jnlp file has been updated if you launch your app from a web start shortcut - launching from a browser is less likely to have this problem, depending on how often your browser is configured to check for updated resources.

  • Java Web Start and hsqldb

    How can I set hsqldb standalone database to use within a Java Web Start compliant Application?

    Yes, this shouldn't create any problems, you can run hsqldb as standalone:
    From the documentation (http://hsqldb.sourceforge.net/web/hsqlModes.html)
    The In-Process mode is also referred to as Standalone. In this context, Standalone means use within a standalone application as opposed to a client application accessing a database server. The database is running in the same Java Virtual Machine as the application. It acts as an embedded code library used by the application program. The application and the database engine communicate through normal JDBC calls but these calls are handled internally without a network connection.
    In this mode, only one application can access a database at a time. To access the same database at the same time from multiple JVM or computers the Client/Server mode must be used.
    The JDBC URL for the In-process (Standalone) mode is:
    jdbc:hsqldb:test
    where test is the database file name. Another example (Windows) is:
    jdbc:hsqldb:c:\db\test
    This means that you can refer to a file eg. in the JAR which contains the database.
    If you want to store between client sessions, you need to retrieve the file from the JAR and store it on the user's hard drive (f.eks. in the user's home directory) and then check if it exists when your application is started. If it does, open the hsqld file on the user's hard drive, it if doesn't retrieve it from the JAR which you are running app from.
    Hope this was understandable :)

  • File creation and Java Web Start

    Hi All,
    I need to write a Java application with the following requirements and deploy the application using Java Web Start:
    - Load the properties file(say, "./props/xyz.properties")
    - Read the location where the file needs to be created from the
    loaded properties file
    - Now, create a file at the specified location.
    I am able to perform the initial 2 steps after including the "props" directory(which contains the xyz.properties file) in my sigend jar file. But, unable to create a file in the specified directory.
    Is it possible to create file at a predefined location(outside the jar file) within the server from where the application is downloaded?
    I have included the code segment which I tried :
    ClassLoader classLoader = this.getClass().getClassLoader();
    // load the properties file
    URL fileURL = classLoader.getResource("props/xyz.properties");
    Properties props = new Properties();
    props.load(fileURL.openStream());
    // read the location
    String location = props.getProperty("file.dir", "");
    String dir = classLoader().getResource(location).getPath();
    // create a new file
    File newEntry = new File(dir + "raghu.txt");
    newEntry.createNewFile();
    Is there a way to achieve this? If so, please let me know that.
    Thanks in advance,
    Raghu

    Allong with signing you jar, you need to request all-permissions in the jnlp file:
    <security>
    <all-permissions/>
    </security>
    /Dietz

  • Java Web Start 1.6 fails to start application without Java Consol on Vista

    Hi All,
    I've faced with problem related to starting my application in IE 7 on Vista SP1 using Java Web Start (JRE 1.6.0_12 and 1.6.0_13). I suppose that issue appears after 11th update of JRE 1.6 since it works fine before.
    There were set settings to indicate initial and maximal size of the Java heap in the JNLP file.
    Application consist of 2 JAR files and they are signed with the same certificate.
    When user tried to start application there is no any activity after accepting certificate. After starting application javaw.exe just disappeared from processes list without any message or error.
    When I changed default setting in Java Control Panel to show Java Console, I noticed that the application began to start. But it's not a solution of the issue, since all customers cannot be required to turn on Java console.
    I believe this is a bug in JRE as the application starts with Java console and doesn't without it.
    When I browsed the web looking for the solution or an advice I found Release notes for 1.6.0_014 where it was said that 6u14 Java Web Start failed to launch and notifies that JARs were not signed, if an insecure Java system property was specified in a sandbox JNLP file. In spite of that 14th updated wasn't used and there was no notification I tried to start application without settings for the Java heap and it worked.
    Could someone help me with advice, since the application cannot be started with default heap size settings.
    Thanks in advance.
    Edited by: vovanst on Jul 28, 2009 8:06 AM

    Hi,
    as the 6u15 just arrived and the above mentioned bug should've been fixed (though I was unable to verify through the release notes), the error is still in there.
    We have no timestamped jars, neither ours nor the bouncy castle ones, all certs are valid, ours is self signed.
    6u13 runs, 6u14/6u15 won't.
    I followed the instructions here: http://bouncycastle.org/devmailarchive/msg10415.html to no avail.
    The bcprov.jar is wrapped in its own jnlp and referred as extension from the "main" jnlp.
    The interesting parts of the stack trace are these:
    Caused by (via getCause): java.lang.SecurityException: JCE cannot authenticate the provider BC
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    Caused by (via getCause): java.util.jar.JarException: Cannot parse https://localhost:8443/deploy/bcprov.jar
         at javax.crypto.SunJCE_c.a(DashoA13*..)
         at javax.crypto.SunJCE_b.b(DashoA13*..)
         at javax.crypto.SunJCE_b.a(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    For me it seems there's a problem with resolving the url of the bcprov.jar, which would explain the lack of a delay which normally occurs when JCE verifies the signature of the bcprov provider classes. The error pops up almost instantly.
    I'm clueless what to do now. Did Sun really achieve to completely destroy JCE provider functionality in Javaws, forcing us to use an alternative implementation?
    Patric

  • Problem with win2000sp3 and Java web start

    I have JRE and Java web start (1.2.0_01, build b01) which come downloading file j2re-1_4_1_01-windows-i586-i.exe from sun.
    I have win2000pro running on my PC.
    I had updated win2000 to service pack 2 and everything was fine.
    Now i decided to update to service pack 3 (in the process I also updated other components) from Microsoft and:
    1) Java applets seem to be running fine within i.e.
    2) If i try to run an application from java web start my PC freezes and I have to restart it.
    3) Staroffice 6.0, which runs on Java, seems to be fine.
    I reinstalled both sp3 and jre etc, with no result.
    Is this a known problem?
    Thanks to all.
    Maurizio

    I suspect that you have hit a known problem with Swing on Java 1.4.1 with buggy video drivers. Do you have an ATI card? They are the worst offenders. ATI released new drivers for its Radeon line today. They fix the problem.

  • Java web start in Windows vista

    Hi,
    1)
    When i tried to launch my Java Web start application in Windows Vista (32bit) With Jre 1.6_06 the java web start did not loaded. the process terminates at certain points.
    By Remote debugging got to know,: It was exiting the application at different points at different time
    At some points it says ClassNotFoundException. No logs at cache location also.
    Is it due to the jars are not loaded properly?? Jnlp is pasted bellow
    2) another problem here is the system did not have the jre installed earlier. how does system identified the jnlp file format if no jre available first time??
    So rather auto download I have installed jre manually and was launching the application
    thanks a lot,
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
      spec="1.0+"
      codebase="$$codebase" href="main.jnlp">
      <information>
        <title>Panel</title>
        <vendor>nc.</vendor>
        <homepage href="/index.html"/>
        <description>Panel</description>
        <description kind="short"></description>
         <icon href="$$context/images/Logo.gif" width="64" height="64" kind="default"/>
         <icon href="$$context/images/topLogo.jpg" kind="splash"/>
        <shortcut online='true'>
          <desktop/>
          <menu submenu="Panel"/>
        </shortcut>
        <related-content href="jar:app.jar!/conf/readme.pdf">
         <title>Readme</title>
         <icon href="images/Logo.gif"/>
      </related-content> 
      </information>
         <security>
          <all-permissions/>
       </security>
      <update check="always" policy="always"/>
      <resources>
            <java version="1.6.0._05+"  href="http://java.sun.com/products/autodl/j2se"/>
         <jar href="app.jar" version="1.0+" main="true"/>
         <jar href="common.jar" version="1.0+" download="lazy" main="false"/>
         <jar href="ext.jar" download="lazy" version="1.0+" download="lazy" main="false"/>
         <property name="jnlp.url" value="$$context/url"/>
      </resources>
      <application-desc main-class="com.app.MainPanel"/>       
    </jnlp>

    >
    2) another problem here is the system did not have the jre installed earlier. how does system identified the jnlp file format if no jre available first time??>See the latest [deployment advice|https://jdk6.dev.java.net/deployment_advice.html#JavaScript_used_for_deploying_Ja].
    Edited by: AndrewThompson64 on Jun 22, 2008 1:20 AM

  • Access local disk via Java Web Start??

    HI all ,
    I had saw the JWS document.
    It indicate we can't access local disk via JWS in that Security.
    If I need to access local disk by command, does anyone have better suggestion.
    And can I run *.bat via Java Web Start?
    Thanks very much for your help.
    Morris

    I do the both thing but still don't access to Local disk.
    I just write a simple test class within extend another that create a file (and of course sign it)but still can't create a file Local disk. this MAKE ME MAD and LOOSE MY JOB .
    here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Pensionsrechner -->
    <jnlp
    spec="1.0+"
    codebase="file:///d:/"
    href="test.jnlp">
    <information>
    <title>Me</title>
    <vendor>myself</vendor>
    <homepage href="http://www.me.com"/>
    <description> test test test</description>
    <description kind="short">Test creatin of log file on client </description>
    </information>
    <offline-allowed/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4"/>
    <jar href="test2.jar"/>
    </resources>
    <application-desc main-class="secMan.Test"/>
    </jnlp>

  • 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.

  • Java Web Start and DeployDirector: What's the difference?

    I am the product manager for DeployDirector at Sitraka (now part of Quest Software). I'm NOT in sales; I'd simply like to provide you with some information.
    From talking with DeployDirector users and evaluators, and from my own discussions with the folks at Sun, I have discovered that there is great deal of confusion about the difference between Java Web Start and DeployDirector. I'd like to clarify this by periodically posting some information about the two.
    Though the products seem similar in concept, they are designed for different purposes. They both deploy, auto-update and manage the JRE for client-side Java applications, but beyond that, they are quite different.
    Java Web Start is ideally designed for applications deployed over the Internet, where application-provider trust is an issue. Why? The security sandbox guarantees that application can do no harm. (There's some good information about Java Web Start and sandbox apps on ScheduleWorld at http://www.scheduleworld.com/itsYourLife.html) Web Start's architecture simply consists of a client piece that interprets a JNLP file. Because of the sandbox and its simplicity, I believe JWS is best used for independent software vendors, independent developers, etc.
    Because DeployDirector is ideally designed for internal enterprise applications, it does not enforce the security sandbox. Trust is not an issue here, because internal users typically trust their internal IT group. DeployDirector's architecture consists of both a client and a server piece, which allows us to support more complex deployment and update scenarios (e.g., scheduled and optional updates) and applications management capabilities like rollback, reporting, exception monitoring, authentication/authorization out of the box. All of this is configured through the DeployDirector administration console.
    In some situations, DeployDirector may be unnecessary overhead. In other situations, Java Web Start simply does not provide enough capability and building in this into Web Start can be difficult.
    If you'd like more information, we have whitepapers and case studies (including one specifically about DeployDirector and JWS) available on our website at http://www.sitraka.com/software/deploydirector/
    If you'd like to discuss some of these differences, or if you have questions about DeployDirector, feel free to email me directly. (Or post here, of course.)
    Thanks,
    Sonal Champsee
    [email protected]

    Hi Gerald,
    Given what I know about your emnity towards DeployDirector (which is clearly illustrated in this thread: http://forum.java.sun.com/thread.jsp?thread=348061&forum=38&message=1446155 that was evidently a response to this article: http://www.javaworld.com/javaworld/jw-11-2002/jw-1122-autoupdate.html) I'm going to take a (pardon the expression) "don't feed the trolls" approach here.
    I'm simply re-iterate that JNLP, and its implementations such as Web Start and OpenJNLP, are designed for a very different set of users that DeployDirector. The differences in functionality between the two products reflect that.
    The enterprise has different requirements in a deployment mechanism for its internal, critical applications than software vendors and independant developers. DeployDirector addresses the requirements of the enterprise. Frankly, most of our recent customers only chose to buy the product after initially rejecting it and (unsucessfully) attempting to use JNLP and Web Start. Sometimes people only learn the hard way: different users have different requirements which are suited to different tools or technologies.
    Sonal

  • Missing class ServerNamingNode_WLStub using Java Web Start

    Hi!
    We're developing J2EE application with Swing clients. Our Swing
    applications work perfectly standalone but fail when distributed via
    Java Web Start. The log says that ServerNamingNode_WLStub cannot be
    found. I've looked through all the WL installation directory and
    couldn't find it too.
    Maybe somebody knows where can I find this class? Or maybe why JWS
    doesn't work properly?
    Please, help. We do need to use Web Start to distribute application
    automatically.
    Thank you in advance.
    Below you can see a stacktrace.
    P.S. Standalone client works perfectly using only weblogic.jar archive.
    Java Web Start 1.2 Console, started Tue Sep 24 15:22:08 EEST 2002
    Java 2 Runtime Environment: Version 1.4.1 by Sun Microsystems Inc.
    Logging to file: C:\Documents and Settings\pawlom\My Documents\webstart.log
    http://localhost:7001/ws/
    java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub
    at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:479)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at net.xtrim.crm.ui.delegates.util.Util.getContext(Util.java:64)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.<init>(UserSessionDelegate.java:84)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.login(UserSessionDelegate.java:62)
    at
    net.xtrim.crm.ui.adminconsole.AdminConsole$ConsoleAuthenticator.authenticate(Unknown
    Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.login(Unknown Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.access$000(Unknown Source)
    at
    net.xtrim.crm.ui.adminconsole.auth.DialogLogin$LoginThread.run(Unknown
    Source)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with
    nested exception:
    [java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub]
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:483)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at net.xtrim.crm.ui.delegates.util.Util.getContext(Util.java:64)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.<init>(UserSessionDelegate.java:84)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.login(UserSessionDelegate.java:62)
    at
    net.xtrim.crm.ui.adminconsole.AdminConsole$ConsoleAuthenticator.authenticate(Unknown
    Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.login(Unknown Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.access$000(Unknown Source)
    at
    net.xtrim.crm.ui.adminconsole.auth.DialogLogin$LoginThread.run(Unknown
    Source)
    java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub
    at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:479)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at net.xtrim.crm.ui.delegates.util.Util.getContext(Util.java:64)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.<init>(UserSessionDelegate.java:84)
    at
    net.xtrim.crm.ui.delegates.UserSessionDelegate.login(UserSessionDelegate.java:62)
    at
    net.xtrim.crm.ui.adminconsole.AdminConsole$ConsoleAuthenticator.authenticate(Unknown
    Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.login(Unknown Source)
    at net.xtrim.crm.ui.adminconsole.auth.DialogLogin.access$000(Unknown Source)
    at
    net.xtrim.crm.ui.adminconsole.auth.DialogLogin$LoginThread.run(Unknown
    Source)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with
    nested exception:
    [java.lang.ClassNotFoundException:
    weblogic.jndi.internal.ServerNamingNode_WLStub]
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:483)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:452)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:372)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.

    Maybe this link can get your started:
    http://www.esus.com/javaindex/j2se/javawebstart/plugingetstarted.html
    Cheers,
    Joris

  • Java Web Start and Policy File

    Hi,
    I've a problem for Java Web Start (JWS) in working with Policy File.
    I like to apply a policy file for a JWS application to fine tune the secuirty setting instead of granting permission in JWS.
    For an applet environment, I can apply policy file like this:
    appletviewer -J"-Djava.security.policy=all.policy" writeFile.html
    However, in JWS environment, I try to apply in JNLP file as below but fail:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://130.18.52.226:8080/testing/"
    >
    <information>
    <title>JWS JFrame App</title>
    <vendor>Java Developer Connection</vendor>
    <homepage href="http://java.sun.com/jdc" />
    <description>Demonstration of JNLP</description>
    <icon href="hsbc.gif" width="32" height="32" />
    </information>
    <resources>
    <j2se version="1.3*" />
    <property name="java.security.manager" value="x" />
    <property name="java.security.policy" value="testing.policy"/>
    <jar href="testing.jar"/>
    </resources>
    <application-desc main-class="JWSJFrameApp" />
    </jnlp>
    The error message like this:
    Java Web Start Console, started Tue Sep 03 09:59:36 CST 2002
    Java 2 Runtime Environment: Version 1.3.0 by Sun Microsystems Inc.
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.manager write)
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.policy write)
    Could anyone please help on this!
    Many thanks!
    Regards,
    Simon Ho

    There are two problems with what you are trying to do.
    First, setting a property PROP=VALUE in the jnlp file does not mean that java will be launched -DPROP=VALUE, instead, javawebstart will call System.setProperty(PROP,VALUE) before your apps main() is called. The difference is, the property will not be set at the time the VM is initialized.
    Second, the javaws security policy will not allow you to set arbitrary properties in an unsigned application. Only properties begining with "jnlp." or "javaws." (and possibly a few other specific props known to the native javaws code) can be set in an application unless <all-permissions> is specified and the app is signed.

  • Java Web Start and BC4J/OC4J

    Hi all developers,
    This is my first forum message, and I hope that there is someone that can help me.
    Problem: A JClient using BC4J in a 3tier situation work perfectly well when run from within the IDE, however using the Web Start Wizard and deployed to the Application server and run from Java Web Start, it does not work.
    Is there any HowTo or documentation on the right settings, roles, security, procedures, etc. with regard to Jclient, BC4J and Java WebStart?
    Thanks
    Craig

    Ant build file which does the signing
    Please make sure you make a backup of the existing bc4jlibs.ear before you use this build file.
    <!--Ant build file to create bc4jlibs.ear. bc4jlibs.ear is used in
    JClient WebStart application
    <property name="jdeveloper.root" value="D:\JDev9i\"/>
    <property name="ear.file.name" value="D:\JDev9i\jlib\bc4jlibs.ear"/>
    <property name="alias" value="mykey"/>
    <property name="storepass" value="secretcode"/>
    -->
    <project name="buildear" basedir="." default="ear">
    <!--define home for the libraries-->
    <property name="lib.home" value="${jdeveloper.root}/lib"/>
    <property name="ord.home" value="${jdeveloper.root}/ord"/>
    <property name="j2ee.home" value="${jdeveloper.root}/j2ee"/>
    <property name="jlib.home" value="${jdeveloper.root}/jlib"/>
    <property name="jdev.home" value="${jdeveloper.root}/jdev"/>
    <property name="vbroker4.home" value="${jdeveloper.root}/vbroker4"/>
    <property name="jdbc.home" value="${jdeveloper.root}/jdbc"/>
    <property name="BC4J.home" value="${jdeveloper.root}/BC4J"/>
    <!--temp directories-->
    <property name="temp.dir" value="${jdeveloper.root}/jdev/temp"/>
    <property name="temp.war.dir" value="${temp.dir}/warroot"/>
    <property name="temp.ear.dir" value="${temp.dir}/earroot"/>
    <!--define war names for the various libraries-->
    <property name="lib.war.name" value="${temp.ear.dir}/lib.war"/>
    <property name="ord.war.name" value="${temp.ear.dir}/ord.war"/>
    <property name="j2ee.war.name" value="${temp.ear.dir}/j2ee.war"/>
    <property name="jlib.war.name" value="${temp.ear.dir}/jlib.war"/>
    <property name="jdev.war.name" value="${temp.ear.dir}/jdev.war"/>
    <property name="vbroker4.war.name" value="${temp.ear.dir}/vbroker4.war"/>
    <property name="jdbc.war.name" value="${temp.ear.dir}/jdbc.war"/>
    <property name="BC4J.war.name" value="${temp.ear.dir}/BC4J.war"/>
    <taskdef name="appxml" classname="oracle.jbo.dt.jclient.ant.taskdefs.ApplicationXmlGenerator"/>
    <target name="init">
    <mkdir dir="${temp.dir}"/>
    <mkdir dir="${temp.war.dir}"/>
    <mkdir dir="${temp.ear.dir}"/>
    </target>
    <target name="clean">
    <delete dir="${temp.dir}"/>
    </target>
    <target name="sign_jar" if="signing.enabled">
    <signjar jar="${jarname}" alias="${alias}" storepass="${storepass}"/>
    </target>
    <!-- create war for lib jars.-->
    <target name="lib_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${lib.home}">
    <include name="xmlparserv2.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/xmlparserv2.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/lib.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for ord jars.-->
    <target name="ord_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${ord.home}">
    <include name="jlib/jmf.jar"/>
    <include name="jlib/ordhttp.jar"/>
    <include name="jlib/ordim.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/jmf.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/ordhttp.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/ordim.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/ord.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for j2ee jars.-->
    <target name="j2ee_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${j2ee.home}">
    <include name="home/lib/ejb.jar"/>
    <include name="home/lib/jaas.jar"/>
    <include name="home/lib/jms.jar"/>
    <include name="home/lib/jndi.jar"/>
    <include name="home/lib/jta.jar"/>
    <include name="home/oc4jclient.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/ejb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jaas.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jms.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jndi.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/lib/jta.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/home/oc4jclient.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/j2ee.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for jlib jars.-->
    <target name="jlib_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${jlib.home}">
    <include name="LW_PfjBean.jar"/>
    <include name="bigraphbean.jar"/>
    <include name="jdev-cm.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/LW_PfjBean.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/bigraphbean.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jdev-cm.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/jlib.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for jdev jars.-->
    <target name="jdev_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${jdev.home}">
    <include name="lib/jdev-rt.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/jdev-rt.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/jdev.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for vbroker4 jars.-->
    <target name="vbroker4_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${vbroker4.home}">
    <include name="lib/vbjorb.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/vbjorb.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/vbroker4.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for jdbc jars.-->
    <target name="jdbc_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${jdbc.home}">
    <include name="lib/classes12.jar"/>
    <include name="lib/nls_charset12.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/classes12.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/nls_charset12.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/jdbc.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <!-- create war for BC4J jars.-->
    <target name="BC4J_war" depends="init">
    <copy todir="${temp.war.dir}">
    <fileset dir="${BC4J.home}">
    <include name="jlib/bc4jctvb.jar"/>
    <include name="jlib/bc4jdatum.jar"/>
    <include name="jlib/bc4jdomgnrc.jar"/>
    <include name="jlib/bc4jimjui.jar"/>
    <include name="jlib/bc4jmtvb.jar"/>
    <include name="jlib/bc4jui.jar"/>
    <include name="lib/bc4jct.jar"/>
    <include name="lib/bc4jctejb.jar"/>
    <include name="lib/bc4jdomorcl.jar"/>
    <include name="lib/bc4jimdomains.jar"/>
    <include name="lib/bc4jmt.jar"/>
    <include name="lib/bc4jmtejb.jar"/>
    <include name="lib/collections.jar"/>
    </fileset>
    <fileset dir="${jdeveloper.root}/jdev/multi/system/templates/jclient">
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </copy>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jctvb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jdatum.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jdomgnrc.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jimjui.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jmtvb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/jlib/bc4jui.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jct.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jctejb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jdomorcl.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jimdomains.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jmt.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/bc4jmtejb.jar"/>
    </antcall>
    <antcall target="sign_jar">
    <param name="jarname" value="${temp.war.dir}/lib/collections.jar"/>
    </antcall>
    <jar jarfile="${temp.ear.dir}/BC4J.war">
    <fileset dir="${temp.war.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    <include name="WEB-INF/web.xml"/>
    </fileset>
    </jar>
    <delete dir="${temp.war.dir}"/>
    </target>
    <target name="create_application_xml" depends="init">
    <appxml appxml="${temp.ear.dir}/application.xml">
    <displayname name="bc4j"/>
    <webmodule weburi="lib.war" contextroot="/lib"/>
    <webmodule weburi="ord.war" contextroot="/ord"/>
    <webmodule weburi="j2ee.war" contextroot="/j2ee"/>
    <webmodule weburi="jlib.war" contextroot="/jlib"/>
    <webmodule weburi="jdev.war" contextroot="/jdev"/>
    <webmodule weburi="vbroker4.war" contextroot="/vbroker4"/>
    <webmodule weburi="jdbc.war" contextroot="/jdbc"/>
    <webmodule weburi="BC4J.war" contextroot="/BC4J"/>
    </appxml>
    </target>
    <target name="ear">
    <antcall target="lib_war"/>
    <antcall target="ord_war"/>
    <antcall target="j2ee_war"/>
    <antcall target="jlib_war"/>
    <antcall target="jdev_war"/>
    <antcall target="vbroker4_war"/>
    <antcall target="jdbc_war"/>
    <antcall target="BC4J_war"/>
    <antcall target="create_application_xml"/>
    <ear earfile="${ear.file.name}" appxml="${temp.ear.dir}/application.xml">
    <fileset dir="${temp.ear.dir}">
    <include name="*.war"/>
    </fileset>
    </ear>
    </target>
    <!--target for signing wars-->
    <target name="sign">
    <property name="signing.enabled" value="true"/>
    <antcall target="ear"/>
    </target>
    </project>

  • Java Web Start and IE6 as the default browser on win2k

    Hi,
    I need to access web pages from my java web start app. These pages are on the save server and the same webapp context as the jsp page to launch the web start app, and are protected.
    I have tried with basic auth and servlet filter with cookie to control the access to the web server. When I need to access web server resource from web start app, I create the URL to the page I want to access, set the auth header or cookie and call the web start BasicService to open it in the default browser.
    With Netscape 4/7 or Firefox as the default browser, I have no problem to send the auth header or cookie from the web start app to the webserver for security checking and get access to the resource on the server.
    But it seems not woking when IE is set to be the default browser. I am always asked for userid/password if I use basic auth; or redirected to the login page if I use servlet filter and cookie.
    If anybody knows a solution for this IE dfficulity, could you please share it?
    harry

    How did you even get k9 on your iPad...it does not show up in my iTunes apps? So I
    Had to download it on my computer ...transfer it to my iPad... Now it's in my Dropbox
    On the iPad...but I can't figure out how to install it from here......I want a browser on my
    iPad that ihas parental controls...I see quite a few should be in the iTunes store..even
    Firefox....but not a one show up in my iTunes app store?????

  • Java Web Start and DNS Service Provider

    I have an implementation of a DNS Service Provider that works fine as an Application. But when deployed as an applet or application through Java Web Start, it is not picking up the DNS provider override
    It is like this. I have a Simple Test Program
    dabba#cat Test.java
    import java.net.*;
    import sun.net.spi.nameservice.NameService;
    import sun.net.spi.nameservice.dns.DNSNameService;
    public class Test {
    public static void main(String args[]) throws Exception{
    try {
    System.setProperty("sun.net.spi.nameservice.provider.1", "dns,mine");
    InetAddress ia = InetAddress.getByName(args[0]);
    System.out.println(ia);
    catch(Exception e) {
    System.out.println("in exception handler" + e);
    dabba# cat MyNameService.java
    import sun.net.spi.nameservice.NameService;
    import sun.net.spi.nameservice.dns.DNSNameService;
    import java.net.UnknownHostException;
    public class MyNameService implements NameService {
    static {
    //System.setProperty("sun.net.spi.nameservice.nameservers", "localhost"); // ETL
    NameService ns;
    public MyNameService() throws Exception {
    ns = new DNSNameService();
    public byte[][] lookupAllHostAddr(String host) throws UnknownHostException {
    System.out.println("*** lookup host = " + host);
    byte[][] a = new byte[1][4];
    a[0][0]=(byte)127;
    a[0][1]=0;
    a[0][2]=0;
    a[0][3]=(byte)1;
    System.out.println("return a.length = " + a.length);
    return a;
    public String getHostByAddr(byte[] addr) throws UnknownHostException {
    throw new Error("not implemented");
    dabba#cat MyNameServiceDescriptor.java
    import sun.net.spi.nameservice.*;
    public final class MyNameServiceDescriptor implements NameServiceDescriptor {
    public NameService createNameService() throws Exception {
    return new MyNameService();
    public String getProviderName() {
    return "mine";
    public String getType() {
    return "dns";
    dabba#cat META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor
    # dns service provider descriptor
    MyNameServiceDescriptor
    dabba# java -cp . Test www.sun.com
    *** lookup host = www.sun.com
    return a.length = 1
    www.sun.com/127.0.0.1
    So the above program works as intended as an application. Whatever hostname I specify, it returns localhost. Now, I'm not able to get this to work when I embed this in an Applet or Application launced through Java Web Start. Am I missing something
    thanks,
    Balaji

    We are trying to do the same thing for a different purpose. You need to set the override sooner than WebStart lets you... It has to be on the command line.
    We are trying to overide the default nameservice because it uses reverse dns which is slow at some of our sites. We need to set the parameter
    sun.net.spi.nameservice.provider.1=dns,sun before the VM starts using webstart. The only way we can do this is by setting the environment variable
    JAVAWS_VM_ARGS=-Dsun.net.spi.nameservice.provider.1=dns,sun on the client. This is not real easy from the server side.
    Is there any way we can make the client default to this nameservice provider? There must be some file somewhere on the client I can put this property in...

Maybe you are looking for

  • \\Error Reading Rules File when dimbuild with DLR

    Hi I am using Essbase 11.1.2.1. I create a DLR via the web console EAS (11.1.2.1 too) : a very simple one : dimbuild DLR, ";" as separator, 2 fields (parent and child) when i try do do a "Update Ouline..." with a very simple file (1 line : accounts;t

  • Attempting to install Unity, but I can't, possible install error

    Long story short, I've installed Arch 3 times, but I can't get it to work properly.  I followed the beginner's guide with everything that I thought was correct, but I couldn't get it to work.  Here is every command I did, with a bit of an explanation

  • Airport Error after upgrading iTunes

    Sheesh, this is why I hate to upgrade versions of my software when they are working perfectly. I'm on Tiger 10.4.11 and I have an Airport Express connected to my stereo to stream iTunes. I've had no problems until last night when I did the stupid thi

  • Temporarily disable scanning?

    Hello, all-- As we all know, there's a checkbox in Server Admin called Scan email for junk mail and another one called Scan email for viruses. Rather than unchecking these boxes in Server Admin, how else can I go about temporarily disabling scanning?

  • Printing in CS4

    I have just started using CS4, having upgraded from CS2.  When I go to print in the print dialog box and go to the Printer Profiles box I am unable to see or select my paper profiles for my Epson 2200 and R300 printers.  There is a large number of pr