dev_yinz
asked on
Lunch Application via Java Web Start
I am going to use Java Web Start to distribute a Java application. The application includes two jar files: Client.jar and log4j-1.2.13.jar. When application starts up, error message displayed: Found unsigned entry in resource: http://localhost/JavaClient/ log4j-1.2.13.jar. The exception is: com.sun.deploy.net.JARSign ingExcepti on.
The Java runtime is JRE 6. I don't have the source code of the Java application.
Here is jnlp codes:
<?xml version="1.0" encoding="utf-8"?>
<!--
########################## ########## ########## ########## ########## ########## ###
#
# Client.jnlp 1.6 02/09/11
#
# JNLP File for Java Client Application
#
########################## ########## ########## ########## ########## ########## ###
-->
<jnlp
spec="1.0+"
codebase="http://localhost/JavaClient" href="Client.jnlp">
<information>
<title>Java Client</title>
<vendor>MyCompany Inc.</vendor>
<description>Java Web Client</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="Client.jar"/>
<jar href="log4j-1.2.13.jar" />
</resources>
<application-desc main-class="com.myCompany. Security.L ogOn">
<argument> -verbose</argument>
</application-desc>
</jnlp>
The Java runtime is JRE 6. I don't have the source code of the Java application.
Here is jnlp codes:
<?xml version="1.0" encoding="utf-8"?>
<!--
##########################
#
# Client.jnlp 1.6 02/09/11
#
# JNLP File for Java Client Application
#
##########################
-->
<jnlp
spec="1.0+"
codebase="http://localhost/JavaClient" href="Client.jnlp">
<information>
<title>Java Client</title>
<vendor>MyCompany Inc.</vendor>
<description>Java Web Client</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="Client.jar"/>
<jar href="log4j-1.2.13.jar" />
</resources>
<application-desc main-class="com.myCompany.
<argument> -verbose</argument>
</application-desc>
</jnlp>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I understood so that that whole thing (all four lines )
should be removed:
Name: org/apache/log4j/
Implementation-Title: log4j
Implementation-Version: 1.2.13
Implementation-Vendor: "Apache Software Foundation"
Don't know if I am correct
should be removed:
Name: org/apache/log4j/
Implementation-Title: log4j
Implementation-Version: 1.2.13
Implementation-Vendor: "Apache Software Foundation"
Don't know if I am correct
ASKER
I think log4j-1.2.13.jar is "unsigned" while Client.jar is signed by developer. I don't have source code, is there any way to "sign" the jar files? Or log4j-1.2.13.jar must be signed using the same private key as Client.jar?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It is verson 6 update 30. (build 1.6.0_30-b12). I cannot down grade the Java version. Otherwise, I have to configure a lot of clients and most of them are overseas. I will see if there is any possible to sign the log4j-1.2.13.jar.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much for the help. I will try to study these info. Anyway, I will close this thread first.
ASKER
Exception:
com.sun.deploy.net.FailedD
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.javaws.LaunchDownl
at java.util.concurrent.Futur
at java.util.concurrent.Futur
at java.util.concurrent.Threa
at java.util.concurrent.Threa
at java.lang.Thread.run(Unkno
Wrapped Exception:
java.io.IOException: invalid manifest format
at com.sun.deploy.cache.Cache
at java.security.AccessContro
at com.sun.deploy.cache.Cache
at com.sun.deploy.cache.Cache
at com.sun.deploy.cache.Cache
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.deploy.net.Downloa
at com.sun.javaws.LaunchDownl
at java.util.concurrent.Futur
at java.util.concurrent.Futur
at java.util.concurrent.Threa
at java.util.concurrent.Threa
at java.lang.Thread.run(Unkno
Original MANIFEST.MF:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.4
Created-By: 1.3.1_16-b06 (Sun Microsystems Inc.)
Name: org/apache/log4j/
Implementation-Title: log4j
Implementation-Version: 1.2.13
Implementation-Vendor: "Apache Software Foundation"
After Change:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.4
Created-By: 1.3.1_16-b06 (Sun Microsystems Inc.)
Implementation-Title: log4j
Implementation-Version: 1.2.13
Implementation-Vendor: "Apache Software Foundation"