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]??
Similar Messages
-
How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)
Hi All,
Im trying to open the help file of my application.
When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
"Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
The code which is activated when launching the help file is:
try
ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
} catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
}where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
help.file="com/trax/docs/help/global/MyHelpFile.html"
The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
I found these restrictions regarding web start:
(copied from "http://rachel.sourceforge.net/"):
*Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
*Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
Absolute file paths won't work because you never know where Java Web Start
will put your jar on the user's machine. Relative file paths won't work because Java Web Start
mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
and every JNLP client implementation has the right to mangle your names
in a different way and you, therefore, can't predict the name with
which your jar will be rechristend and end up on the user's machine in
the application cache.Seems complex or impossible, to perform a simple task like opening a file.
Please advise (I'm new to Java and Web Start).
BTW, I'm working with IntelliJ IDEA 5.0.
Thanks,
Zedik.
{font:Tahoma}{size:26pt}
{size}{font}the follwing method i have used to open html file ...
so to access html file i am shipping resources folder with jar file ..
private void openHtmlPages(String pageName) {
String cmd[] = new String[2];
String browser = null;
File file = null;
if(System.getProperty("os.name").indexOf("Linux")>-1) {
file = new File("/usr/bin/mozilla");
if(!file.exists() ) {
}else {
browser = "mozilla";
}else {
browser = "<path of iexplore>";
cmd[0] = browser;
File files = new File("");
String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
java.net.URL url = this.getClass().getResource(metaData);
String fileName = url.getFile();
fileName = fileName.replaceAll("file:/","");
fileName = fileName.replaceAll("%2520"," ");
fileName = fileName.replaceAll("%20"," ");
fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
cmd[1] = fileName;
try{
Process p = Runtime.getRuntime().exec(cmd);
}catch(java.io.IOException io){
//Ignore
can anyone give me the solution..???
Regards
Ganesan S -
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,
JohnHi.
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? -
Java console doesn't launch when starting Java Web Start app from Firefox
Updated my Linux desktop from RHEL to Fedora 12 with resultant upgrade of Firefox to 3.5.9 and now when I launch our Java Web Start application, no Java console appears. The Java Control Panel still shows "Show Console" as set. My app uses Java 1.5 which I have installed on my desktop.
What do I do to properly configure my browser/desktop to support use of the Java console?
Please help, I need to debug our app!
IlaneIlaneMarie wrote:
..Please help, I need to debug our app!Cannot tell you the answer to your FF hassles (because I have no idea why you're seeing that behaviour(1)), but note that you might be able side-step FF by launching a JWS app. using the javaws tool directly from the command line or an Ant build file.
1) Though you might try rebooting the machine if any installation/configuration changes have occurred since last boot.
Also note that many problems with JWS apps. can be sorted be checking the JNLP using JaNeLA. -
Java Web Start doesn't start (Windows XP)
Hi,
I've installed Java Web Start on a Windows XP machine. When I try to run an application or I try to open Java Web Start directly the "Java Web Start" splash screen appears for a few seconds and than disappears and nothing else happens.
I heard that other people using Windows XP have the same problem. Can anyone help?
Java Runtime is 1.4.0, but I also tried some other runtimes as well with the same result.
Thanks in advance
MarkusHi,
I found some stuff, but it didn't work for me. Maybe you can give it a try.
1. Deactivate Proxy
Add or edit javaws.cfg.proxy.setting=NONE in the javaws.cfg file.
2. Deactivate Splashscreen
Add option "-Xnosplash" in the Windows registry for the .JNLP ending, i.e. "C:\Program Files\Java Web Start\javaws.exe" "-Xnosplash" "%1"
3. Run with Java VM
I created a .BAT file:
SET JWS=C:/Programme/Java Web Start
java -cp "%JWS%/javaws.jar" "-Djnlpx.home=%JWS%" com.sun.javaws.Main %1
To run Java Web Start simply run the .BAT file. To run a specific application run the .BAT file with the complete URL of the .JNLP file.
If this works for you, please drop a note here! Thanks!
Bye
Markus -
Hi everybody,
I have a simple Java application that has a JFrame containing a TextField displaying some text inside it. I am using the NetBeans IDE. I am trying to Enable Java Web start for this application. The steps I have taken upto now are:
1. Right click on Project, Java Web Start -> Enable Java Web Start. This created the jnlp file.
2. In the Resources section, I added the jar file for swing. ( I am not sure if I have to add the path for jnlp.jar etc, or are these found automatically?)
3. Right click on Project, Java Web Start -> Deploy with Java Web Start. This launches the browser with the Click me link, but on clicking this link, I get the following error.
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class jnlp.sample.servlet.JnlpDownloadServlet or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
root cause
java.lang.ClassNotFoundException: jnlp.sample.servlet.JnlpDownloadServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)I have all the jnlp files in my jdk directory, and I am not sure why it can't find it. Is there something I am missing?
Thanks
GeorgeI am not sure what it has to do with servlets, I just followed a tutorial on using Netbeans with Java Web Start, and did only the steps as mentioned in my first post. And ended up with the error.
Anyways, I added the jnlp jar files(jnlp.jar, jnlp-servlet.jar, jardiff.jar) in the WEB-INF/lib directory. And it seems to deploying it now. I can get my application to load on clicking on the "Click me" link. But the controls on my application don't seem to be working.
Also, when I try to Right click on my project -> Java Web Start -> Run with Java Web Start, I get the following error message,
javaws-run: C:\Documents and Settings\Lux\Visualization\nbproject\build-jaws-impl.xml:36: Execute failed: java.io.IOException: CreateProcess: C:\j2sdk1.4.2_13\bin\javaws "file:///C:/Documents and Settings/Lux/Visualization/Visualization.jnlp" error=2
BUILD FAILED (total time: 0 seconds)
Any help appreciated.
Thanks.
George -
Bootstrap with Java Web Start: is it possible?
I'm developing a chat for my university and I want to use Java Web Start. For the application client-side, I've write a class, named URLClientBootstrap.java, put it into a jar file, and my jnlp file refers to it.
This class does a bootstrap of another class of the server codebase, named AutClient.java and it's correctly throw thanks to JWS. But, if I click on a button, I need to make another bootstrap so, from AutClient.java, I need to bootstrap a class named RegClient.java but this doesn't append.
Why? I can make only one bootstrap? Or maybe JWS doesn't allow me to start another applet?Hi,
Your concern is legitimate.
Basically to work with SLD you will not face any problem while creating the Business system but your main intention is to use it in configuration and that is in ID which is a client application and that needs Java Webstart to run on your local machine. Definitely you can create the Business system in SLD but to work with that one you need JavaWebstart
Java Web Start:
Using Java Web Start technology, standalone Java software applications can be deployed with a single click over the network. Java Web Start ensures the most current version of the application will be deployed, as well as the correct version of the Java Runtime Environment (JRE)
cheers,
Abhishek. -
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. -
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 -
We are trying to use bouncy castle provider in an app that is distributed using Java Web Start. We sign the jars for use with jws so that they have unrestricted access. The problem is that bouncy castle provider jar is already signed, and jws does not like a jar signed by multiple signers so we can't re-sign it using our key. If we strip off the provider's signature information from the jars and sign it using our key, the JCE throws an exception as if it could not locate the RSA provider.
Has anyone faced this problem? Any workarounds that you're aware of?
Thanks!Well, I found this was already asked on the forum. Sorry for not checking that before posting. In case someone is interested, following are some links:
http://forum.java.sun.com/thread.jsp?forum=38&thread=291494
http://forum.java.sun.com/thread.jsp?forum=38&thread=237963
http://forum.java.sun.com/thread.jsp?forum=38&thread=71559 -
Deploying no java applications using Java Web Start
Hi,
I am new to java web start. Is it possible to distribute non java applications using java web start. I have an APP which can run on a desktop in standalone mode. The app has jusy HTML and Java script files. Is it possible to package this app and deploying using java web start? I am assuming If it is possible, I can make updates to the packaged app in the web servers and the updates will be downloaded next time the app is used provided configurations are correct?
thxThe app has jusy HTML and Java script files. Is it possible
to package this app and deploying using java web start? Not really. Resources for JWS need to be zipped,
while this HTML/JS app. will (I guess) not work from
inside the depths of a Jar (or Zip) archive.
Note that you can organise for those files to be
downloaded and expanded onto a known place
on the user's disk, by using an 'installer' element,
but..
...I am assuming If it is possible, I can make updates to the
packaged app in the web servers and the updates ..installers are only called once, and do not 'update'. -
Problem while distribute software via Java Web Start
Hi,
I use JWS to distribute my software to the clients. I use apache 2.2 as webserver.
My Problem:
When i put a update a jar on the webserver, the clients have to start JWS twice to get the new file.
First i thought it is a problem with the webserver. So i have restarted the apache after i�ve put the new jar. ... without success.
Are there any settings in JWS which take affect?
Any ideas?
TomThe default behavior is to timeout if checking for an update takes too much time.
You can add the jnlp element:
<update check="always"/>
and updates will always happen on the forst launch (when client is using Java Web Start 1.6.0 or later, update element will be ignored by earlier versions)
see: http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html#security
/Andy -
Unable to run my application using java web start
i have created one application and use java web start to download the application. all the files are succesfully downloaded but when i try to run the application an expected error occur. this only happen in my machine but not in other machine i'm currently using
-jsdk1.4.2
-windows 2000 professional 5.00.2195 service pack 3
-pentium III 870 Mhz
-x86-based PC
-RAM 256 Mhz
Anyone knows why, plz help me with this puzzlePlease post the information from the Web Start "Exception" and "Wrapped Exception" tabs when the error occurs (I assume the error was in fact unexpected ;-)
A blind stab in the dark would be that you don't have write permission to the cache directory on the second machine. Also worth checking that the proxy settings on the second machine are the same as the first (if they are on the same network). -
How can I connect to a database using Java Web Start?
When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.
I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?
-
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�sMicrosoft 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
Maybe you are looking for
-
My itunes is freezing up each time i open it and giving me an error message
All of a sudden my Itunes is freezing up about 30 seconds after it opens. I am running windows XP and I keep getting a "itunes needs to shut down" message asking if i want to send a report to Microsoft or not. Has anyone had problems like this, where
-
Parameter Field Value Elimination Based on Another Parameter
I'd like to make 3 grouping parameters with static values to produce 3 drop downs in the user prompt. The problem is, I'd like for the second drop down to eliminate the choice made from the first drop down and the third drop down to have been elimin
-
Using Java 1.4.2_07
Hi, I'm using Mac OS X (10.3.9) and need to run Java 1.4.2_07 (I'm currently using version 1.4.2_09). Is this possible? Best regards, Henry Wilkinson PowerBook G4 12" Mac OS X (10.3.9)
-
I tryed to download a movie and it keeps saying -50 error
i tryed to download a movie and it keeps saying -50 error
-
Sorting for storage type in LM12
LM12 - change sort display so that alpha storage types with bin info displayed before numeric storage type and bin info. The standard LM12 shows sort order for storage type as numeric storage types first then alpha storage types. But User is request