Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Jar signing is just not wotking

Thread view: 
Efi Merdler - 02 Mar 2007 16:10 GMT
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
Rogan Dawes - 02 Mar 2007 16:20 GMT
> Hello,
> I'm trying to sign my jar file (which I created using fatjar), I
[quoted text clipped - 8 lines]
> 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
Efi Merdler - 02 Mar 2007 16:46 GMT
> > Hello,
> > I'm trying to sign my jar file (which I created using fatjar), I
[quoted text clipped - 16 lines]
>
> 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
Andrew Thompson - 02 Mar 2007 16:50 GMT
...
> 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.
Efi Merdler - 03 Mar 2007 13:11 GMT
Andrew Thompson כתב:
> ...
> > I'm trying to sign my jar file (which I created using fatjar), I
[quoted text clipped - 13 lines]
>
> 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
Andrew Thompson - 03 Mar 2007 14:11 GMT
> Andrew Thompson כתב:
..
> > ...
> > > I'm trying to sign my jar file ...
...
> > > ..and deploy it using jnlp file ..
...
> > > jar) and outputs a  java.security.AccessControlException.
..
> > * Validate it against the DTD...
..
> ...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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.