Re: License problems with ibm jvm
Stéphane Croisier <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.install |
|---|---|
| Message-ID | <[email protected]> |
Hello, You may also use the CVS mailing list or the CVS mailing list archives to keep up in touche with the CVS changes: http://www.jahia.org/jahia/page495.html ;-)) Cheers Stéphane >Delivered-To: [email protected] >Mailing-List: contact [email protected]; run by ezmlm >X-Archive: encrypt >List-Unsubscribe: <mailto:[email protected]> >List-Subscribe: <mailto:[email protected]> >List-Archive: <http://news.gmane.org/gmane.comp.cms.jahia.cvs/> >Delivered-To: mailing list [email protected] >Date: Wed, 8 Sep 2004 16:50:57 +0200 >From: Serge Huber <[email protected]> >To: [email protected] >Subject: cvs commit: jahia/src/java/org/jahia/security/license License.java >X-CVS-Branch: JAHIA-4-0-BRANCH > >shuber 2004/09/08 16:50:57 CEST > > Modified files: (Branch: JAHIA-4-0-BRANCH) > src/java/org/jahia/security/license License.java > Log: > Removed dependency on SUN's JDK when checking license signature. > > Revision Changes Path > 1.3.4.1 +1 -1 jahia/src/java/org/jahia/security/license/License.java >http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/security/license/License.java.diff?r1=1.3&r2=1.3.4.1&f=h > > > > Index: License.java > =================================================================== > RCS file: > /home/cvs/repository/jahia/src/java/org/jahia/security/license/Attic/License.java,v > retrieving revision 1.3 > retrieving revision 1.3.4.1 > diff -u -r1.3 -r1.3.4.1 > --- License.java 21 Sep 2003 22:21:47 -0000 1.3 > +++ License.java 8 Sep 2004 14:50:57 -0000 1.3.4.1 > @@ -116,7 +116,7 @@ > byte[] base64SigToVerify = > signatureString.getBytes("ISO-8859-1"); > byte[] sigToVerify = base64.decode(base64SigToVerify); > > - Signature sig = Signature.getInstance("SHA1withDSA", "SUN"); > + Signature sig = Signature.getInstance("SHA1withDSA"); > sig.initVerify(publicKey); > > byte[] buffer = toSignatureData().getBytes("ISO-8859-1"); > - -- --- -----=[ scroisier2 at jahia dot com ]=---- --- -- - www.jahia.org : A Collaborative Source CMS and Portal Server At 16:56 08/09/2004, you wrote: >Thanks, > >Could you please tell me which file(s) you changed? > >Predrag > >Le mercredi 8 Septembre 2004 16:53, Serge Huber a écrit : > > Ok I've committed to CVS some code that removes the dependency on the > > Sun JDK for the license check. Let me know if it works ! > > > > Regards, > > Serge Huber. > > > > Predrag Viceic wrote: > > >Hi, > > > > > >When using IMB jvm we have following exceptions upon jahia boot: > > > > > >java.security.NoSuchProviderException: no such provider: SUN > > > at java.security.Security.getAlgClassName(Security.java:606) > > > at java.security.Security.getImpl(Security.java:1081) > > > at java.security.Signature.getInstance(Signature.java:252) > > > > > > > > >and then: > > > > > >org.jahia.exceptions.JahiaException: License Limit Violation, Environement > > >Initialization Exception > > > at org.jahia.bin.Jahia.init(Jahia.java:490) > > > at > > >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: > > >935) at > > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) > > > > > > > > >This behaviour doesn't happen with Sun jvm or JRockIt. > > > > > >Any help? > > > > > >Thanks, > > >Predrag