Jar signing is just not wotking

E

Efi Merdler

Hello,
I'm trying to sign my jar file (which I created using fatjar), I
followed sun's tutorial on subject and everything seems work (I get no
error messages and everything is generated) however when trying to
load my jar and deploy it using jnlp file suddenly java web start does
see my signed jar and ignores it (i.e. it treats it like an unsigned
jar) and outputs a java.security.AccessControlException.

Why ?

Thanks,
Efi
 
R

Rogan Dawes

Efi said:
Hello,
I'm trying to sign my jar file (which I created using fatjar), I
followed sun's tutorial on subject and everything seems work (I get no
error messages and everything is generated) however when trying to
load my jar and deploy it using jnlp file suddenly java web start does
see my signed jar and ignores it (i.e. it treats it like an unsigned
jar) and outputs a java.security.AccessControlException.

Why ?

Thanks,
Efi

What certificate did you use to sign it? Is it a valid certificate? i.e.
signed by a recognised Certificate Authority, and within the cert
validity period?

That is the most likely problem, I suspect.

Rogan
 
E

Efi Merdler

Rogan said:
What certificate did you use to sign it? Is it a valid certificate? i.e.
signed by a recognised Certificate Authority, and within the cert
validity period?

That is the most likely problem, I suspect.

Rogan

Thanks, I'm using the default certificate i.e. test certificate, it
is a self made certificate.
It's within the validity period (I signed it today).

Efi
 
A

Andrew Thompson

I'm trying to sign my jar file (which I created using fatjar), I
followed sun's tutorial on subject and everything seems work (I get no
error messages and everything is generated) however when trying to
load my jar and deploy it using jnlp file ..

Which is what? *
..suddenly java web start does
see my signed jar and ignores it (i.e. it treats it like an unsigned
jar) and outputs a java.security.AccessControlException.

Does the JNLP file request extended permissions?
Are you prompted for them?
* Validate it against the DTD then post it here.

Andrew T.
 
E

Efi Merdler

Andrew Thompson כתב:
Which is what? *


Does the JNLP file request extended permissions?
Are you prompted for them?
* Validate it against the DTD then post it here.

Andrew T.

Hi,
Thanks, you were right it seems the the example that sun gave on their
web site is incorrect (they didn't add the DTD directive to their XML
file) I used netbeans's web start plugin and it solved my problem.

Thanks again,
Efi
 
A

Andrew Thompson

Andrew Thompson כתב: ... ...
...it seems the the example that sun gave on their
web site is incorrect (they didn't add the DTD directive to their XML
file)

Many (seemingly unrelated) problems start
in the JNLP file.
I used netbeans's web start plugin and it solved my problem.

Great. Glad you sorted it.
Thanks again,

You're welcome.

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top