Distribute Java jar application in Optical Disk with private JRE
I am trying to ship my Jar application using DVDs and need the user just to run an exe and launch the program. So I have written a batch file which runs the jar using the private JRE shipped in the same DVD.
Now when I run the batch file from the DVD it takes over one minute to launch the application because JRE is in the DVD as well.
When I copy the JRE in hard disk and use that in my batch file to lauch the program it runs fast. However I wouldn't the path where the user copies the JRE in his hard disk. How would I detect the same in my batch file ?
Even Launch4J takes same time as batch file.
If I anyway have to ship JRE and ask the user install first ,how does batch file know the installed jre location if JAVA_HOME is not set. it would start using the jre in DVD and slow down. Anyway to make sure JAVA home is set to begin with ? May be 1st time if Java home is not set it copies to jre to C drive and then next time onwards it launches using the same Java home? What do you suggest
[cross post |http://stackoverflow.com/questions/13372969/distribute-java-jar-application-in-optical-disk]
Note I am using JDK8 , which is only developer preview now am I allowed to ship it in my DVD ?
I wouldn't do that. Even if it is allowed, which I doubt, you're shipping unfinished and potentially dangerous software. I would also stick to the runtime only if I were you.I know, Sorry I meant shipping JRE only not JDK.
My answer to your main question is: yep, its a tough problem and you're not going to crack it without special measures. One such special measure is to generate an installer using one of the many installer generators you can >find with Google.Yes I thought about installers but it would copy my jar and resource files to hard disk which I don't want to avoid piracy. Is there any way to access the rest of the files from DVD directly ?
PS. My DVD vendor promisssed that he would burn them such a way that whole thing can't be copied to hard disk or imaged, I am yet to verify this.
Similar Messages
-
Java -jar application.jar not finding file?
I have an application program that contains the
following two lines of code:
FileInputStream sf = new FileInputStream "CustomWorld.ini");
settings.load(sf);
and when I run it as:
java application
it runs fine but if I run it as:
java -jar -classpath .;application.jar application.jar
it can't find the "CustomWorld.ini" file. Why is that
and how can I fix it?
Many thanks for your help.
PS: to create the jar file I used:
jar -cvfm application.jar application.mf application.class CustomWorld.iniOnce your CustomWorld.ini file is in the jar, you can no longer access it directly with a FileReader. JDK 1.1 included resource locators to java.lang.Class...
URL url = application.class.getResource("/CustomWorld.ini");
if (url != null) { // resource was found
InputStream in = url.openStream();
settings.load(in);
} else {
// fail gracefully or use defaults
}Note that the CustomWorld.ini file will need to be in the classpath or the root folder of the jar file for this to work.
Regards,
-Troy -
Java (.jar) applications and games on 5530XM
Hello
I have used the search option before asking, and I have manually searched some of the sub-forums (or boards) I thought could and would be relevant to my issue, and have seen no similar questions being asked. I have also worked with my good friend Google, and had no luck there, either. Most of the results were pirated software links, which is not necessarily bad, but does not help me resolve my issue.
Now, I'm not sure this is the correct board to post this in, but I'm not too far off even if it isn't; so bear with me. Now, onto the question.
I would like to know if it is possible to turn off the D-Pad emulator, and how one would go about doing that?
Let me elaborate, for those who are not familiar with what I'm talking about:
Namely, the 5530XM has an elegant solution for running non-touch apps and games (i.e.. those made for earlier revisions of the S60 OS, or even those legacy apps for S40), and it is as follows - the phone places the app/game interface in a window, scaled to the apps original rendering resolution, and then places a set of touch command buttons. It makes a Directional Pad, consisting of concentric circles, divided into 5 areas, 4 directions (up, down, left, right), and a general "OK" button (center). It also displays four "Letter-buttons", labeled "A", "B", "C" and "D", which have variable or no functions, depending on the app that is run. Finally it displays two function buttons, Left and Right Menu buttons, usually placed near the red and green phone button on phones with keypads. This works flawlessly for old apps and games, with the limitation that the interface is not multi-touch, meaning it will only accept one virtual keypress at a time.
My problem with this setup is that some of the more recent Java applications are run as legacy as well; meaning ALL of the touch-aware apps and games that I have tried running. This is unacceptable for several reasons. First, some of them don't recognize the simulated commands, rendering the virtual D-Pad useless. What's more, the virtual interface covers a good portion of the app's original interface, making it impossible to use it. The apps and games I have tried are shipped as .jar, and are supposed to work with a touch interface. And they do, it's only that they're half-covered with an unneeded virtual D-Pad!
I am open for all suggestions, I have the latest firmware installed, 20.0.080.C01.01, the phone is, as mentioned, 5530 XM (RM-604), and I haven't manually altered Java in any way. I am, however, ready and willing to go for some more serious tinkering if need be, even if it involves altering system files, hex editing and whatnot, and I won't cry to mama if I brick the phone, I know full well the range and scope of possible consequences. This would probably constitute breaking the rules, maybe even voiding the warranty, so I'm not asking for anyone to give an answer of that level here, publicly, but feel free to send a personal message or ask for my e-mail / IM screen name, so that we can communicate about such taboo topics
One more note, probably relevant: .sis and .sisx apps and games work flawlessly, bot the old ones needing the D-Pad (they get a virtual one) and the new ones, which are correctly recognized as touch-capable. Even some that are reported incompatible by the phone work without a hitch. It really is a pity to see the Java apps fail after everything else is flawless.
Perhaps, if there is no known solution or a dirty workaround, we can file an official recommentadion/bug report/feature request to the developers in charge? I can wait.
Thanks to those brave enough to read my wall of text, and thanks in advance to all who reply something useful
Careful what you wish for... You just might get it.
Solved!
Go to Solution.McSteel wrote:
Thanks a million!
Can't believe I missed that one... You truly are a "Mobile Overlord".
Although that kinda sounds like there is a Fixed/Immobile Overlord out there
Anyway. Kudos for this, I suppose there are others who would find this useful as well.
Thanks again
Didn't you notice his wings?
‡Thank you for hitting the Blue/Green Star button‡
N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009 -
We upgraded to the latest JRE and when we go to our website which has an unsigned applet and I answer Yes to trust it, the applet never runs.
I turned on debugging in the java console and see this after the certificate negotiation stuff is sent bck and forth:
security: Certificate has failed the verification with the SSL Root CA certificates
security: Invalid certificate from HTTPS server
java.lang.NullPointerException
at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
at com.sun.deploy.security.X509ExtendedDeployTrustManager.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
security: Adding certificate in Deployment denied certificate store
security: Added certificate in Deployment denied certificate store
For another person at same IE level and JRE level it works fine and debug for that shows:
security: Certificate has failed the verification with the Internet Explorer ROOT certificates
security: Invalid certificate from HTTPS server
security: Adding certificate in Deployment session certificate store
security: Added certificate in Deployment session certificate store
security: Saving certificates in Deployment session certificate store
security: Saved certificates in Deployment session certificate store
Is there something wrong with the "Deployment session certificate store" in the first instance? Treid un/reinstalling the JRE but it didn;t fix things.Regenerate what certificate? The applet is unsigned.
Plus other people with the same IE level and same JRE level do not have this problem, which leads me to think it is something specific to this user, like maybe the deployment session certificate store. Is that a file someplace we can like delete to start clean?
Edited by: Jim_does_java on Oct 1, 2007 4:56 AM -
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]?? -
Java script application appearing everytime i open a new tab
Hi,
Everytime I open a new tab on my computer, a message pops up with Java script application in a box with a yellow triangle with an exclamation mark symbol. I have to click ok twice before I can continue using the internet.
Can you please tell me how to fix this, I think this happened after I upgraded my mozilla website.hello annap2677, you have quite a few malicious addons present. please try these steps:
# [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
# afterwards go to ''firefox > addons > extensions'' and in case there are still extensions listed there, disable them.
# finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
[[Troubleshoot Firefox issues caused by malware]] -
Hello,
I got a java jar file which contains folders with class file. When I double click on the jar file, it gave a error
Exception in thread "main" java.lang.NoClassDefFoundError
How can I run this jar file?
Thanks,
CRHello,
I got a java jar file which contains folders with
class file. When I double click on the jar file, it
gave a error
Exception in thread "main"
java.lang.NoClassDefFoundError
How can I run this jar file?
Thanks,
CR... and assuming that Jar contains a manifest file, what does it look like? I would guess that the Main-Class entry is incorrect, or that the Jar has external dependencies to other jars not listed properly in the Class-Path entry. -
Distributing Java Directory with my custom application
I would like to distribute a JRE with my custom application.
On a fresh machine, I have managed to copy the entire j2re1.x.x_x directory and have been successful in running my applicaiton without running the usual Windows J2re installer.
Do I risk losing any J2RE functionality by doing this? Like the ability to run applets in internet explorer...etc???
It seems that the j2re1.x.x_x directory is self contained...
Thanks,
-Trevor
Message was edited by:
SuperpuffsI would like to distribute a JRE with my custom
application.
On a fresh machine, I have managed to copy the entire
j2re1.x.x_x directory and have been successful in
running my applicaiton without running the usual
Windows J2re installer.Providing a private JRE in this manner is commonly done to control what Java version is executed. It also allows the user to update their Java without affecting your Java.
Do I risk losing any J2RE functionality by doing
this? Like the ability to run applets in internet
explorer...etc???Yes - varies with the os. See Java's JDK Installation Instructions for details.
It seems that the j2re1.x.x_x directory is self
contained...
Thanks,
-Trevor
Message was edited by:
Superpuffs -
Any way to distribute a javafx application with embedded JRE as a standalone?
Hey,
I'm looking for a way to distribute my javafx app, but I want a customer to be able to run it as a standalone (i.e. without installation).
I know I can distribute a jar file but it's without the embedded JRE.
Only way I see to embed a JRE is via building an installer.
Any way I can distribute say an EXE file that when double clicked just runs the app with JRE embedded inside?I have already read that guide.
Here's the relevant section:
Table 3-1 JavaFX Execution Modes
Execution Mode
Description
Run as a standalone program
The application package is available on a local drive. Users launch it using a Java launcher, such as java -jar MyApp.jar, or by double-clicking the application JAR file.
Launched from a remote server using Web Start
Users click a link in a web page to start the application from a remote web server. Once downloaded, a Web Start application can also be started from a desktop shortcut.
Embedded into a web page
JavaFX content is embedded in the web page and hosted on a remote web server.
Launched as a self-contained application
Application is installed on the local drive and runs as a standalone program using a private copy of Java and JavaFX runtimes. The application can be launched in the same way as other native applications for that operating system, for example using a desktop shortcut or menu entry.
According to this, only way to use a private JRE is via the 4th option which means installation. -
Unable to launch Java Swing application with JSE 5.0
Hi,
we have a swing appln that gets downloaded via java webstart - which was working fine with 1.4.x until 5.0 came. I know that JSE 5.0 includes java webstart too - but when I start my application, I get Marshal error & filenotfound Exception. What we are doing in the application is to download some XML files that are to be used by the program. But the program is unable to find the files.
If I manually install 1.4.x & Web Start separately, everything works fine.....
Is there any change needed in the JNLP file?
TIAHi there,
Here's the issue:
I have modified our web page that helps the user download the swing appln - as per the guidelines given in the web site:
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/launch.html
Let's say that I already have JRE 1.4x & JWS installed on my m/c. When I visit our web page that downloads / starts the client application, I get an error:
Java Web Start : Invalid Argument Error.
General
An error occurred while launching/running the application.
Category: Invalid Argument error
Could not load file/URL specified: http://myserver:8080/testdev/app/testb.jnlp
Exception
CouldNotLoadArgumentException[ Could not load file/URL specified: http://myserver:8080/testdev/app/testb.jnlp]
at com.sun.javaws.Main.main(Unknown Source)
Wrapped Exception
java.io.IOException: Service Unavailable : http://myserver:8080/testdev/app/testb.jnlp
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)
If I uninstall JRE 1.4+ & etal - JRE 5.0 gets downloaded and everything works smooth. But I need to take care of backward compatibility... Hence this post....
BTW, the JNLP file looks like:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="$$codebase"
href="testb.jnlp">
<information>
<title>Test Application</title>
<vendor>TP</vendor>
<homepage href="help.htm"/>
<description>TEST Application using Java Web Start </description>
<description kind="short">TEST Application.</description>
<icon href="logocropped.jpg"/>
<icon kind="splash" href="logocropped.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.4+"/>
<jar href="bars.jar" part="lpc" />
<jar href="castor-0.9.4.3.jar" part="lpc" download="eager" />
<jar href="xercesImpl.jar" download="eager"/>
<jar href="xmlParserAPIs.jar" download="eager"/>
<jar href="bsh-1.2b6.jar" download="eager"/>
<jar href="gnujaxp.jar" download="eager"/>
<jar href="itext-0.99.jar" download="eager"/>
<jar href="jcommon-0.8.2.jar" download="eager"/>
<jar href="junit.jar" download="eager"/>
<jar href="pixie-0.8.0.jar" download="eager"/>
<jar href="BarsUtil.jar" download="eager"/>
</resources>
<application-desc main-class="bars.Bars"/>
<security>
<all-permissions/>
</security>
</jnlp>
Is there a version incompatibility issue that I need to take care of ?
TIA for any help/direction...... -
We have a problem with our Java Web Start Application regarding the TLS certificate revocation check:
The application is running on a server within a wide area network which is separated from the internet.
The application users have access to the WAN, and also access to the internet over some corporate proxy/firewall.
The user has to enter, for example "https://my-site.de/myapp/ma.jnlp" within a webbrowser or could also call "javaws https://my-site.de/myapp/ma.jnlp" to start the application client.
The webserver has a certificate from a trusted certificate authority. This certificate seems to be ok, the browser is even configured to perform OCSP status check.
The application files are signed with a certificate from another trusted certificate authority. This certificate seems also to be ok. Regarding this certificate there
are no problems with certificate revocation checks.
The problem is, while starting the application client there is a message box which tell us something like "the connection to this website ist not trustworthy",
"Website: https://my-site.de:80", and something about an invalid certificate, meaning the webserver certificate.
Obviously the jvm runtime, which is executed on the users workstation, tries to perform a revocation check for the webservers certificate, but this fails because
it cannot fetch the certificate under https://my-site.de:80.
The application will execute without further problems after that message but the users are very concerned about the "invalid" certificate, so here are my questions:
- Why is the application trying to get the webserver certificate over Port 80. Our application developers told me, there is no corresponding statement. Calling this address
has to fail while "https://my-site.de:443" or "https://my-site.de" would not have a problem.
- Is there a way to make the application go on without performing a tls revocation check? I mean, by adjusting the application sourcecode and not by configuring the users Java Control Panel.
While disabling the TLS Certificate Revocation check in the Java Control Panel, the Webstart Application executes without a warning message, but this is not a workable solution for
our users.
It would be great if someone can help me with a hint so i can send our developers into the right direction;-)
Many thanks!
This is a part from a java console output after calling "javaws -verbose https://my-site.de/myapp/"
(sorry for this is in german... and also my english above)
network: Verbindung von http://ocsp.serverpass.telesec.de/ocspr mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
network: Verbindung von http://ocsp.serverpass.telesec.de/ocspr mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
security: OCSP Response: GOOD
network: Verbindung von http://ocsp.serverpass.telesec.de/ocspr mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
security: UNAUTHORIZED
security: Failing over to CRLs: java.security.cert.CertPathValidatorException: OCSP response error: UNAUTHORIZED
network: Cacheeintrag gefunden [URL: http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl, Version: null] prevalidated=false/0
cache: Adding MemoryCache entry: http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl
cache: Resource http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl has expired.
network: Verbindung von http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
network: Verbindung von http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl mit Proxy=HTTP @ internet-proxy.***:80 wird hergestellt
network: ResponseCode für http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl: 200
network: Codierung für http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl: null
network: Verbindung mit http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl trennen
CacheEntry[http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl]: updateAvailable=true,lastModified=Tue Mar 24 10:50:01 CET 2015,length=53241
network: Verbindung von http://crl.serverpass.telesec.de/rl/TeleSec_ServerPass_CA_1.crl mit Proxy=HTTP @ internet-proxy.***:80 wird
network: Verbindung von socket://ldap.serverpass.telesec.de:389 mit Proxy=DIRECT wird hergestellt
security: Revocation Status Unknown
com.sun.deploy.security.RevocationChecker$StatusUnknownException: java.security.cert.CertPathValidatorException: OCSP response error: UNAUTHORIZED
at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source)
at com.sun.deploy.security.RevocationChecker.check(Unknown Source)
at com.sun.deploy.security.RevocationCheckHelper.doRevocationCheck(Unknown Source)
at com.sun.deploy.security.RevocationCheckHelper.doRevocationCheck(Unknown Source)
at com.sun.deploy.security.RevocationCheckHelper.checkRevocationStatus(Unknown Source)
at com.sun.deploy.security.X509TrustManagerDelegate.checkTrusted(Unknown Source)
at com.sun.deploy.security.X509Extended7DeployTrustManagerDelegate.checkServerTrusted(Unknown Source)
at com.sun.deploy.security.X509Extended7DeployTrustManager.checkServerTrusted(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Suppressed: com.sun.deploy.security.RevocationChecker$StatusUnknownException
at com.sun.deploy.security.RevocationChecker.checkCRLs(Unknown Source)
... 35 more
Caused by: java.security.cert.CertPathValidatorException: OCSP response error: UNAUTHORIZED
at sun.security.provider.certpath.OCSP.check(Unknown Source)
at sun.security.provider.certpath.OCSP.check(Unknown Source)
at sun.security.provider.certpath.OCSP.check(Unknown Source)
... 36 more
security: Ungültiges Zertifikat vom HTTPS-Server
network: Cacheeintrag nicht gefunden [URL: https://my-site.de:80, Version: null]Add the JSF Jars to the WEB-INF/lib directory of the application. If still getting error add to the CLASSPATH variable in the startWebLogic script in the domain/bin directory.
-
Distributing a Java EE Application Client (Thin Client)
Hi,
I'm following the instructions in Section 4 Developing a Java EE Application Client (Thin Client) in Oracle® Fusion Middleware Programming Stand-alone Clients for Oracle WebLogic Server, 11g Release 1 (10.3.1), Part Number E13717-01.
I packaged the application client in an ear. If I set up my environment using C:\bea10\wlserver_10.3\server\bin\setWLSEnv.cmd. I can extract the application client using a command line like:
java weblogic.ClientDeployer myear.ear myclient
I can execute the client using a command line like:
java weblogic.j2eeclient.Main myclient.jar t3://localhost:7003
However, I would like to run the application client on a client machine (i.e., a machine without WebLogic installed). I thought I could use one of the wl*client.jar files such wlclient.jar, wlfullclient.jar, etc. I started with wlfullclient.jar.
If I try to extract the application client with a command line like
java -classpath wlfullclient.jar weblogic.ClientDeployer myear.ear myclient
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/bea/xml/XmlException
at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:143)
at weblogic.descriptor.BasicDescriptorManager.getDescriptorFactory(BasicDescriptorManager.java:183)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:320)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301)
at weblogic.ClientDeployer.findAltDDUri(ClientDeployer.java:210)
at weblogic.ClientDeployer.processClientJar(ClientDeployer.java:107)
at weblogic.ClientDeployer.processClientJar(ClientDeployer.java:75)
at weblogic.ClientDeployer.main(ClientDeployer.java:43)
Caused by: java.lang.ClassNotFoundException: com.bea.xml.XmlException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 12 more
Next I tried using the jar previously extracted on the server and tried to run it using:
java -classpath wlfullclient.jar weblogic.j2eeclient.Main myclient.jar t3://localhost:7003
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/j2ee/descriptor/wl/WeblogicApplicationClientBean
at weblogic.j2eeclient.Main.fillEnvironment(Main.java:326)
at weblogic.j2eeclient.Main.run(Main.java:185)
at weblogic.j2eeclient.Main.main(Main.java:924)
Caused by: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.wl.WeblogicApplicationClientBean
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 3 more
Is it possible to extract and execute an application client on a machine without WebLogic server? If so, what jars do I need? If not, why not?
I'm testing using WebLogic 10.3.1 on a Windows XP SP2 machine using JDK 1.6.0_05.
Thanks in advance,
KeithHello,
I tried doing pre-compilation of jsps using the weblogic.appc and getting the below exception.
Can any one advise the jar file containing the below class file so that I can add in the classpath and try for it.
java.lang.ClassNotFoundException: com.bea.xml.XmlException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at weblogic.descriptor.BasicDescriptorManager.getMarshallerFactory(BasicDescriptorManager.java:137)
at weblogic.descriptor.BasicDescriptorManager.getDescriptorFactory(BasicDescriptorManager.java:171)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:303)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoa
r2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.ja
:409)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorL
der2.java:759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java
68)
at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:311)
at weblogic.application.compiler.CompilerCtx.setApplicationDescriptor(CompilerCtx.java:138)
at weblogic.application.compiler.AppcUtils.setDDs(AppcUtils.java:142)
at weblogic.application.compiler.flow.DescriptorParsingFlow.compile(DescriptorParsingFlow.java:57)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.EARCompiler.compile(EARCompiler.java:49)
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:181)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:192)
at weblogic.appc.main(appc.java:14)
com.bea.xml.XmlException -
Integrate p6SPY with Sun Java System Application Server 7 ...?
Dear PALs,
Let me know how can I Integrate p6SPY (w3.p6spy.com) with "Sun Java System Application Server 7 2004Q2" on Windows ?
When I try to follow the steps given at http://www.p6spy.com/documentation/install.htm#unspec ,my server throws
INFO ( 1820): JMS5035: Timed out after 30000 milliseconds while trying to verify if the JMS service startup succeeded.
INFO ( 1820): JMS5036: More details may be available in the log file for the JMS service broker instance domain1_server1. Please refer to the JMS provider documentation for the exact location of this log file.
[27/Dec/2004:18:37:35] SEVERE ( 1820): JMS5024: JMS service startup failed.
[27/Dec/2004:18:37:35] SEVERE ( 1820): CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [NARAYANA:7676]. - cause: java.net.ConnectException: Connection refused: connect
at com.iplanet.ias.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:247)
at com.iplanet.ias.server.ApplicationServer.onInitialization(ApplicationServer.java:224)
at com.iplanet.ias.server.J2EERunner.confPreInit(J2EERunner.java:114)
Caused by: com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [NARAYANA:7676]. - cause: java.net.ConnectException: Connection refused: connect
at com.iplanet.ias.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:231)
... 2 more
expecting sagacious reply......
thanks,
SIMPLEbnmHi,
You can set the p6SPY on Sun Java System Application Server as follows.
Create a connection pool using Admin Console, please don't specify any database vendor. Then use the following properties.
Data Source Class Name : com.p6spy.engine.spy.P6DataSource
Resource Type : javax.sql.DataSource
and then provide the following property.
user, password and url. Make sure you add the p6spy.jar and properties file to the classpath.
Try to ping the connection pool, and it should work. -
Minimum files needed from JRE to distribute Java Application
Hello,
We have developed a Java Desktop Application (A Viewer for projects created in Microsoft Project). The core application is around 4 MB. Now we want to distribute it thru our company website. With each distribution we have to supply JRE so that the user doesnt have to install JRE in his machine manually. Problem is the size of JRE which is around 13 MB. For an application of 4 MB its getting too much for the user to download additional 13 MB of files.
I need the list of files of JRE minimum needed to distribute the application.
thanks
--AhmedYou are not allowed to distribute a partial set of the JRE, you can only distribute a complete JRE. See the LICENSE file included with any JRE installation.
-
Java Web application with SSO cookie
Hello All,
We are having a web-Java application which is interacting with SAP-Web As and then calling RFC'c to get data from backend.
My scenario should get user name and password from the MYSAPSSO2 cookie generated by the server.
There are few issues with the application.
1)When I am launching the application from my browser , a small pop up comes up "The server at Upload Protected area requires a user name and password".When I am providing the user name which is existing on my Java and ABAP stack ,its saying "403 Forbidden :You are not authorized to view the requested resource."
But when I am logging in with super user j2ee_admin, its allowing me to enter the application.
Please let me the what settings are required for my user on the server to bypass this small window of protected area.
2) Do we have any option to generate MYSAPSSO2 cookie programmatically ?
3) Do we have any option to modify /add username in existing MYSAPSSO2 cookie?
Thanks & Regards,
Abhivyakti
Edited by: Abhivyakti Srivastava on Jun 17, 2011 8:27 AMsorry,I 've got this:
http://sourceforge.net/forum/forum.php?thread_id=1731549&forum_id=399715
The problem is solved!
forget my question...Thanks a lot!
Maybe you are looking for
-
I have a 'Crossover Table' that links the following fields: ID(Autonumber), ItemID (foreign key - Number), FieldA(Text) , FieldB (Text), Field C (checkbox). I want to create a form that will show one ItemID at a time. Like a crosstab, but not quite
-
Can't start iPhoto, what to do?
I can't start iPhoto. Even when I start the computer again. What can I do about it? Annie
-
How to stop Oracle 10g DB automatically start up when Windows boots/reboots
With Oracle 9i, I could set Oracle DB manually start so it would not start when Windows OS was booted/rebooted. This was done through setting Control Panel -> Admin tools -> Services -> Oracle9iMyDB's Startup type to "Manual". Now I have 10g installe
-
Why am I no longer getting the student creative cloud rate?
Up to August of 2014 I was paying the student creative cloud rate of 19.99/month. When I renewed, I began getting charged 29.99/month and I am still a student. Why is this? And I know to some it's only 10.00 but that is a lot for me right now.
-
Problem to Instal Windows 7 64Bit on HP 250 G2 F0Y78EA
Hi, i bought notebook hp 250 g2 F0Y78EA... this is freedos and when i insert win 7 64bit...on the monitor when try to install comes wrote "starting windows" but STOP and does not go forward... Sorry for english, but i'm italian boy. i have try to loa