Error signing jar file

I am using oracle Devsuite10g 10.1.2.1 on windows when I signed the webuitl.jar and jacob.jar it gives me the follwing error
E:\dev10g\forms\webutil>sign_webutil.bat e:\dev10g\forms\java\frmwebutil.jar
Generating a self signing certificate for key=webutil...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil> alre
ady exists
There were warnings or errors while generating a self signing certificate. Pleas
e review them.
Backing up e:\dev10g\forms\java\frmwebutil.jar as e:\dev10g\forms\java\frmwebuti l.jar.old...
1 file(s) copied.
Signing e:\dev10g\forms\java\frmwebutil.jar using key=webutil...
The system cannot find the path specified.
There were warnings or errors while signing the jar. Please review them.
E:\dev10g\forms\webutil>sign_webutil.bat e:\dev10g\forms\java\jacob.jar
Generating a self signing certificate for key=webutil...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil> alre
ady exists
There were warnings or errors while generating a self signing certificate. Please review them.
and later check the formweb.cfg
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
archive=frmall.jar
lookAndFeel=oracle
and the webutil.cfg is as follows
archive_jini=f90all_jinit.jar,frmwebutil.jar,jacob.jar
WebUtilArchive=frmwebutil.jar,jacob.jar
install.syslin.location=/webutil
transfer.APPSRV.READ=C:\
transfer.APPSRV.WRITE.1=C:\WORK\UPLOAD
transfer.APPSRV.WRITE.2=C:\WORK\LOG
transfer.appsrv.workAreaRoot=d:\temp
transfer.appsrv.accessControl=true
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
plz help to come out from this error

This occurs when you attempt to run the provided script (batch) more than once or the Key name is already in the keystore. If you are not familiar with how to sign JARs on your own, the easiest solution is likely to change the value of JAR_KEY in the script.
The script is provided as a courtesy more than anything else. Oracle doesn't do any magic in the script. It is simply a scripted version of what is required by Sun in order to create a certificate and sign a JAR. You can get more info about how to sign a JAR file from Sun or by doing a Google search. You can also refer to an older Oracle white paper which offered step-by-step instructions for signing:
http://www.oracle.com/technology/products/forms/pdf/SigningJint13.pdf

Similar Messages

  • Keystore error signing jar file

    I am having trouble signing a jar file. I have deleted and recreated the keystore file. Has anyone encountered this error before:
    [signjar] jarsigner error: java.lang.RuntimeException keystore load: Not logged in

    See my update in this thread:
    error signing jar file

  • URLClassLoader + dynamically loading signed jar files

    I have an applet that does not know all of the jar files it will need to load at startup.
    I would like to dynamically load these signed jar files using the URLClassLoader, however it does not recognize these jar files as being signed and I get java.security.AccessControlException: access denied errors.
    Any suggestions?
    Thanks!

    Try this classloader for loading the jars, it should to the trick:
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.net.URLStreamHandlerFactory;
    import java.security.AllPermission;
    import java.security.CodeSource;
    import java.security.PermissionCollection;
    import java.security.Permissions;
    public class AllPermissionsClassLoader extends URLClassLoader {
        public AllPermissionsClassLoader (URL[] urls) {
            super(urls);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent) {
            super(urls, parent);
            System.out.println(parent);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) {
            super(urls, parent, factory);
        protected PermissionCollection getPermissions (CodeSource codesource) {
            Permissions permissions = new Permissions();
            permissions.add(new AllPermission());
            return permissions;
    }

  • Error opening jar file

    I'm using WLS 5.1 SP8 on NT 4.0 and trying to setup a cluster. The cluster
              starts fine except when I try to deploy a session bean that is marked as
              clustered. I get an error about reading a jar file
              (D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar) that WLS
              created when the server started. Every server is getting this error and I
              tried setting up the same paths (D:\weblogic) but it doesn't matter. Any
              ideas?
              Wed Jan 24 15:04:10 EST 2001:<I> <WebLogicServer> WebLogic Server started
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:69)
              at java.util.zip.ZipFile.<init>(ZipFile.java:84)
              at
              weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:141)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java:74)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java:59)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              Wed Jan 24 15:04:19 EST 2001:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error
              opening JAR file from
              file:/D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar
              

    From previous posts I see this is a known bug. Is there a fix yet? btw, how
              did a bug of this magnitude
              get past QA. :(
              Elan Halfin <[email protected]> wrote in message
              news:[email protected]...
              > I'm using WLS 5.1 SP8 on NT 4.0 and trying to setup a cluster. The cluster
              > starts fine except when I try to deploy a session bean that is marked as
              > clustered. I get an error about reading a jar file
              > (D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar) that WLS
              > created when the server started. Every server is getting this error and I
              > tried setting up the same paths (D:\weblogic) but it doesn't matter. Any
              > ideas?
              >
              > Wed Jan 24 15:04:10 EST 2001:<I> <WebLogicServer> WebLogic Server started
              > java.util.zip.ZipException: error in opening zip file
              > at java.util.zip.ZipFile.open(Native Method)
              > at java.util.zip.ZipFile.<init>(ZipFile.java:69)
              > at java.util.zip.ZipFile.<init>(ZipFile.java:84)
              > at
              > weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:141)
              > at
              >
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > .java:74)
              > at
              >
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > , Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > jectInputStreamBase.java, Compiled
              >
              > Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > tStreamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > eamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > StreamBase.java, Compiled Code)
              > at weblogic.cluster.StateDump.readObject(StateDump.java:59)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > jectInputStreamBase.java, Compiled
              >
              > Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > tStreamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > eamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > Code)
              > Wed Jan 24 15:04:19 EST 2001:<E> <MulticastSocket> Multicast socket
              receive
              > error: java.lang.RuntimeException: I/O error
              >
              > opening JAR file from
              > file:/D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar
              >
              >
              

  • How can i add update signed jar file

    I am developing an applet which requires signing to run in a browser.
    I am developing supporting classes. But these class files have to be added
    to the jar. Isnt it??
    But to test the applet i need to load it in the browser each time i modify the class files. So the jar file need to be updated every time. But an
    IOError
    is being displayed when i try to update the signed jar file.
    How can i update signed jar file?? Or is there any othe way to test the signed applet during development??

    How can i update signed jar file?You can't, the signature is there to make sure the content of the jare hasn't been messed
    with.
    Either recreate the jar and re sign it or set up a policy during testing.

  • Is it possible to verify a signed jar-file from a program?

    Is it possible to verify a signed jar-file from a program
    (using some API) likewise jarsigner does?

    Is it possible to verify a signed jar-file from a
    program
    (using some API) likewise jarsigner does?Hi,
    You would have to open the jarfile, read each jar entry and for each of them do a getCertificates() and then in turn verify each certificate with the public key of the enclosed certificates in the jar file.
    An easier solution would be to use the verify flag of the JarFile or JarInputStream.
    Hope it helps..
    Cheers,
    Vijay

  • Turning off jar cache causes classnotfound with signed jar files

    Hi,
    I have a problem with applet signed jars when the java cache is turned off.
    With the cache turned off, I get a class not found for the first class it attempts to use from the signed jar file from an applet.
    If I turn the jar caching on, all works perfectly with no other changes.
    Anyone have any ideas? This is java 6u16.
    Thanks

    jkc532 wrote:
    .. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? From your comprehensive investigation and report, it seems so to me.
    ..I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?Just after read the summary I was tired, so I have some understanding of the effort you have already invested in this (the 'wits' you have already spent). I think you should raise a bug report and seek Oracle's response.

  • Three questions about signed jar file and applet

    I use three signed jar file. Each of them signed by different certificate. First of JARs contain applet class. When I start applet from html page I see message &#8220;This applet was signed by&#8230;&#8230; but Java cannot verify it&#8230; Do you trust&#8230;?&#8221;. All times I press &#8220;Yes I trust&#8221; and after this questions applet stop to work end exit. If I use only one certificate for signing of three JARs then applet continue to work after question. 1) What should I do to fix this bug? 2) Is it any method to check from applet that user press Trust button? Is it any method to emulate work of SecurityManager to check that Certificate object is trusted (I want do call some method check(Certificate) and if certificate is not trusted I want to see message with question: &#8220;Do you want to trust this certificate&#8221; and so on)?

    Hello Jarman,
    1. If I have a signed jar file, then as long as the
    certificate is recognised as trusted that applet can
    run as a fully trusted application on the client
    machine. So I should not have to add lines such as
    permission java.lang.RuntimePermission
    "readFileDescriptor", "read" ;
    permission java.lang.RuntimePermission
    "writeFileDescriptor", "write" ;
    to my java.policy file. true/false ?true
    2. If I am running a signed jar file in the Java
    plugin then I do not need to have a verisign or thawte
    certificate (however to allow my certificate to be
    accepted I do have to import it into the cacerts file
    on the client machine). True/false?true
    3. Following on from question 2, if I want to be able
    to run an applet on a client machine, without messing
    around with ANY files on those machines, I need a
    verisign or thawte certificate. True/false?true
    4. (And finally) Apart from a security exception
    saying that I need to add one of the lines like those
    of question 1, is there any way I can get other debug
    information as to why the signed jar file is not being
    recognised as signed?No. This could be a problem of importing your certifcate into the wrong place.
    The information on the following link is a little bit dated but it helped me to successfully install a testcertificate and sign an applet with it.
    http://www.suitable.com/Doc_CodeSigning.shtml

  • MulticastSocket Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
              I need some help.
              Product=weblogic5.1.0
              Revision=(Release Level)=
              Problem Description=
              I am doing cluster of weblogic server, I have no problem to set up the
              cluster and to run servlet and EJB examples.
              However, on my command line for startcluster I got a lot of message as
              followed:
              Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error opening JAR file from
              file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java, Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              The message freshed about every 20 seconds.
              Another question, I used a iplanet web server as a proxy server with a
              cluster of two weblogic servers pluged in, although I set
              weblogic.properties to round-robin, however, when I run a fibonacci servlet,
              it does not do the round-robin. It always go to one machine for a lot of
              times. Any idea?
              Thank you for your help.
              Tom
              

    May i presume that your cluster is configured on a shared file system?.
              I have seen this problem only if you cluster is configured on different machines
              and if the directory structure is not identical.
              let us know..
              Kumar
              Cameron Purdy wrote:
              > First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
              > instructions on setting up deployments for a cluster. The only
              > implementation that I have used is the single shared location that all the
              > servers load from.
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              > "Tom Gan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > > I need some help.
              > >
              > > Product=weblogic5.1.0
              > > Revision=(Release Level)=
              > > Problem Description=
              > > I am doing cluster of weblogic server, I have no problem to set up the
              > > cluster and to run servlet and EJB examples.
              > > However, on my command line for startcluster I got a lot of message as
              > > followed:
              > > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
              > receive
              > > error: java.lang.RuntimeException: I/O error opening JAR file from
              > > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              > > java.util.zip.ZipException: error in opening zip file
              > > at java.util.zip.ZipFile.open(Native Method)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              > > Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > > .java, Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > > , Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > > StreamBase.java, Compiled Code)
              > > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              > > Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              > >
              > > The message freshed about every 20 seconds.
              > >
              > > Another question, I used a iplanet web server as a proxy server with a
              > > cluster of two weblogic servers pluged in, although I set
              > > weblogic.properties to round-robin, however, when I run a fibonacci
              > servlet,
              > > it does not do the round-robin. It always go to one machine for a lot of
              > > times. Any idea?
              > > Thank you for your help.
              > > Tom
              > >
              > >
              > >
              

  • Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file

    I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
              The error message I received lkie this:
              Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
              

    Yuping,
              What release of WLS w/ service pack are you using? Make sure, if you are using a non-shared file system, to have the same absolute paths to your application on your file systems.
              yuping xu wrote:
              > I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
              > The error message I received lkie this:
              > Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
              

  • Java.lang.RuntimeException : I/O error opening JAR file

              Hi,
              Cluster configuration : 2 NT boxes WLS5.1(SP6). On one m/c weblogic
              is installed on drive C:\ and on another m/c weblogic is installed on drive D:\.
              i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              m/c 2 : d:\weblogic \myserver\*.jar
              When servers startup successfully, error is coming :
              on the console of m/c 1 :
              java.lang.RuntimeException : I/O error opening JAR file from
              file:/d:/weblogic/myserver/eb_arn.jar
              on the console of m/c 2 :
              java.lang.RuntimeException : I/O error opening JAR file from
              file:/c:/weblogic/myserver/eb_arn.jar
              When both the weblgoic servers are installed on two machines and
              on same drive(c:\), this error is not coming.
              i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              m/c 2 : c:\weblogic \myserver\*.jar
              Regards,
              Jitendra Kumar.
              

    Jitendra,
              This looks like a bug. Please approach support.
              - Prasad
              Jitendra Kumar wrote:
              > Hi,
              >
              > I'm deploying as per server property, because all servers have got their own myserver
              > directory and jars under that.
              > primary key class is not a problem at all, because that file is anyway under serverclasses directory.
              >
              > The problem starts when two weblogic servers on two m/c are installed on different drive(one on 'C:\' dirve
              > and another on 'D:\' drive or a unix machine in cluster).
              >
              > Regards,
              > Jitendra Kumar.
              >
              > Prasad Peddada <[email protected]> wrote:
              > >Are you sure that the the primary key class is there in the jar file.
              > >
              > >Are you deploying as per cluster property? Deploy on all the servers as per server property.
              > >
              > >
              > >- Prasad
              > >
              > >Jitendra Kumar wrote:
              > >
              > >> Hi,
              > >>
              > >> I don't have any problem in deploying beans and all servers have their local jar files.
              > >> Today I started solaris server in cluster and that also giving the same error message in console.
              > >> Now 2NT and One Solaris m/c running in cluster.
              > >>
              > >> error message on NT console is :
              > >> **************************************************
              > >> Sat Nov 04 15:43:14 GMT+05:30 2000:<E> <MulticastSocket> Multicast socket receive error: java.lang.R
              > >> untimeException: I/O error opening JAR file from file:/mazaa/weblogic/weblogic/myserver/voter.jar
              > >> <ServerClassLoader><W>: com.cot.eis.vl.eb_voter.VoterPK in not in archive java.util.zip.ZipFile@b902
              > >> 66be
              > >> java.util.zip.ZipException: error in opening zip file
              > >> at java.util.zip.ZipFile.open(Native Method)
              > >> at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > >> at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > >> at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java, Compiled Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer.java, Compil
              > >> ed Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java, Compiled Co
              > >> de)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStre
              > >> amBase.java, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.j
              > >> ava, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
              > >> Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInputStreamBase.ja
              > >> va, Compiled Code)
              > >> at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStre
              > >> amBase.java, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.j
              > >> ava, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
              > >> Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              > >> Sat Nov 04 15:54:24 GMT+05:30 2000:<E> <MulticastSocket> Multicast socket receive error: java.lang.R
              > >> untimeException: I/O error opening JAR file from file:/mazaa/weblogic/weblogic/myserver/voter.jar
              > >>
              > >> error message on Solaris console is :
              > >> ******************************************
              > >> java.util.zip.ZipException: error in opening zip file
              > >> at java.util.zip.ZipFile.open(Native Method)
              > >> at java.util.zip.ZipFile.open(Compiled Code)
              > >> at java.util.zip.ZipFile.<init>(Compiled Code)
              > >> at java.util.zip.ZipFile.<init>(Compiled Code)
              > >> at weblogic.boot.ServerClassLoader.deploy(Compiled Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(Compiled Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.readObject(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
              > >> le(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compile
              > >> d Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compi
              > >> led Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled
              > >> Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compile
              > >> d Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(Compil
              > >> ed Code)
              > >> at weblogic.cluster.StateDump.readObject(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
              > >> le(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compile
              > >> d Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compi
              > >> led Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled
              > >> Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compile
              > >> d Code)
              > >> at weblogic.cluster.TMSocket.execute(Compiled Code)
              > >> at weblogic.kernel.ExecuteThread.run(Compiled Code)
              > >> Sat Nov 04 15:55:09 GMT+00:00 2000:<E> <MulticastSocket> Multicast socket receiv
              > >> e error: java.lang.RuntimeException: I/O error opening JAR file from file:/C:/we
              > >> blogic/myserver/eb_arn.jar
              > >>
              > >> Regards,
              > >> Jitendra Kumar
              > >>
              > >> Prasad Peddada <[email protected]> wrote:
              > >> >Do you trouble deploying the app also.
              > >> >
              > >> >- Prasad
              > >> >
              > >> >Jitendra Kumar wrote:
              > >> >
              > >> >> Hi,
              > >> >>
              > >> >> Cluster configuration : 2 NT boxes WLS5.1(SP6). On one m/c weblogic
              > >> >> is installed on drive C:\ and on another m/c weblogic is installed on drive D:\.
              > >> >> i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              > >> >> m/c 2 : d:\weblogic \myserver\*.jar
              > >> >> When servers startup successfully, error is coming :
              > >> >>
              > >> >> on the console of m/c 1 :
              > >> >> java.lang.RuntimeException : I/O error opening JAR file from
              > >> >> file:/d:/weblogic/myserver/eb_arn.jar
              > >> >>
              > >> >> on the console of m/c 2 :
              > >> >> java.lang.RuntimeException : I/O error opening JAR file from
              > >> >> file:/c:/weblogic/myserver/eb_arn.jar
              > >> >>
              > >> >> When both the weblgoic servers are installed on two machines and
              > >> >> on same drive(c:\), this error is not coming.
              > >> >> i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              > >> >> m/c 2 : c:\weblogic \myserver\*.jar
              > >> >>
              > >> >> Regards,
              > >> >> Jitendra Kumar.
              > >> >
              > >
              > >--
              > >Cheers
              > >
              > >- Prasad
              > >
              > >
              

  • Signing jar file error

    i am trying to sign the sql server jdbc driver jar file to use in my jnlp application.but but i get this error.
    C:\JNLP>jarsigner -keystore myKe sqljdbc.jar jdc
    Enter Passphrase for keystore: asdfre
    jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compres
    sed size (expected 5311 but got 5281 bytes)

    i am trying to sign the sql server jdbc driver jar
    file to use in my jnlp application.but but i get this
    error.
    C:\JNLP>jarsigner -keystore myKe sqljdbc.jar jdc
    Enter Passphrase for keystore: asdfre
    jarsigner: unable to sign jar:
    java.util.zip.ZipException: invalid entry compres
    sed size (expected 5311 but got 5281 bytes)1. Try unjarring the jdbc driver file and rejar it again.
    2. Are you sure you have the latest JDK. Previous versions had these issues.

  • Unable to get jarsigner to sign jar file using pkcs11 smartcard

    I'm using a JDK jdk1.6.0_14 with a datakey smartcard with the below info in pkcs11.cfg file:
    name = DK330
    library = c:\windows\system32\dkck232.dll
    I have also configured the java.security file to include the security.provider.10=sun.security.pkcs11.SunPKCS11 c:/pkcs11.cfg
    I have my environment set for the below to keep it simple as possible:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_14\lib
    PATH=C:\Program Files\Java\jdk1.6.0_14\bin;c:\windows;c:\windows\system32
    1) I am able to Confirm that the secret key is present in the keystore
    keytool -v -list -keystore NONE -storetype PKCS11 -storepass xxxxxx
    Keystore type: PKCS11
    Keystore provider: SunPKCS11-DK330
    Your keystore contains 1 entry
    Alias name: CS.NOLSC.002's U.S. Government ID
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Certificate[1]:
    Owner: CN=CS.NOLSC.002, OU=USN, OU=PKI, OU=DoD, O=U.S. Government, C=US, OU=PKI, OU=DoD, O=U.S. Government, C=US
    Issuer: CN=DOD CA-14, OU=PKI, OU=DoD, O=U.S. Government, C=US
    Serial number: 3e8e
    Valid from: Mon Feb 05 14:53:22 EST 2007 until: Thu Feb 04 14:53:22 EST 2010
    Certificate fingerprints:
    MD5: 9D:34:AF:D8:DE:18:15:78:D6:88:3D:37:83:FA:DC:E8
    SHA1: 8A:BB:39:D5:2B:45:F7:CE:A3:93:C5:71:5C:36:DC:FE:3F:B4:7D:9A
    Signature algorithm name: SHA1withRSA
    Version: 3
    Extensions:
    #1: ObjectId: 2.5.29.15 Criticality=true
    KeyUsage [
    DigitalSignature etc
    2) When I try to sign the applet using the below commands I get the same errors:
    command 1:
    jarsigner -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg ${java.home}/lib/security/pkcs11.cfg sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"
    I get this error::
    jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
    command 2:
    jarsigner -verbose -keystore NONE -storetype PKCS11 -storepass xxxxxx sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
    I can also confirm the jar file that I'm trying to sign is unsigned using the below command without problem.
    C:\Program Files\Java\jdk1.6.0_14\bin>jarsigner -verify -verbose -certs -keystore NONE -storetype PKCS11 sfilechooser.jar
    Enter Passphrase for keystore:
    0 Wed Jul 08 09:36:06 EDT 2009 META-INF/
    71 Wed Jul 08 09:36:06 EDT 2009 META-INF/MANIFEST.MF
    4227 Tue Jun 09 09:56:20 EDT 2009 DirList.class
    0 Wed Jul 08 09:29:52 EDT 2009 FileChooserPackage/
    4728 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/DirUtil.class
    809 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTFileDialogThread.class
    765 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTSaveDialogThread.class
    819 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FileChooserBeanThread.class
    1015 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FormsDecoderException.class
    815 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$SaveFileChooserThread.class
    17198 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean.class
    s = signature was verified
    m = entry is listed in manifest
    k = at least one certificate was found in keystore
    i = at least one certificate was found in identity scope
    jar is unsigned. (signatures missing or not parsable)
    ======================================
    What could be my problem to get my applet signed? I'm at a loss.

    I found the problem.
    I was able to use jarsigner correctly after I backed off on the GemPlus driver version from v4.7.062 file name dkck232.dll to the previous version of dkck201.dll at v4.7.062.

  • Help with signing jar files

    hi,
    Iam trying to let a applet do file acces on a client. Therefore I must sign a applet so it may access the filesystem. This works, but the code keeps screaming about security violations.
    Now ive vopied the code from a example from Oracle and I found one difference.
    next to the fileUploader class that I also have in my jar file there is a
    FileUploader$1.class with the following code:
    import oracle.ewt.thread.Task;
    import oracle.ewt.thread.TaskEvent;
    final synchronized class FileUploader$1 implements Task
        private final FileUploader this$0 = fileUploader;
        private final boolean val$nf = flag;
        private final Object val$val = object;
        public void runTask(TaskEvent taskEvent)
            FileUploader.access$0(this$0, val$val, val$nf);
        FileUploader$1(boolean flag, FileUploader fileUploader, Object object)
    }but if I try to compile this code then I get all sorts of error telling me Iam missing vars and methods.
    Can anyone tell me why this class is there and what it does and if its nessesary for the fileaccess then how can I create it

    hi,
    Iam trying to let a applet do file acces on a client.
    Therefore I must sign a applet so it may access the
    filesystem. This works, but the code keeps screaming
    about security violations.
    Now ive vopied the code from a example from Oracle and
    I found one difference.
    next to the fileUploader class that I also have in my
    jar file there is a
    FileUploader$1.class with the following code:
    import oracle.ewt.thread.Task;
    import oracle.ewt.thread.TaskEvent;
    final synchronized class FileUploader$1 implements
    Task
    private final FileUploader this$0 = fileUploader;
    private final boolean val$nf = flag;
    private final Object val$val = object;
    public void runTask(TaskEvent taskEvent)
    FileUploader.access$0(this$0, val$val,
    al$val, val$nf);
    FileUploader$1(boolean flag, FileUploader
    der fileUploader, Object object)
    }but if I try to compile this code then I get all sorts
    of error telling me Iam missing vars and methods.
    Can anyone tell me why this class is there and what it
    does and if its nessesary for the fileaccess then how
    can I create it
    a Name1$Name2.class file is generated from an inner class Name2 in a class Name1.
    in your case you want to look at and compile FileUploader.java. This will then generate any inner class FileUploader$innerclass.class files necessary

  • Signed JAR file won�t work on A Mac

    Hello I am trying to run this java script on a Mac
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.io.*;
    public class Applet1 extends Applet {
    private FlowLayout flowLayout1 = new FlowLayout();
    private JFileChooser jFileChooser1 = new JFileChooser();
    public Applet1() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.setLayout(flowLayout1);
    this.add(jFileChooser1, null);
    The signed jar works properly on pc and it doesn�t work on a Mac.
    I am using JDK 2.5 and swing 1.1.1

    What error are you getting?Swing: checked access to system event queue.
    An exception occurred:
    com.apple.mrj.JManager.JMAppletSecurityExc: security.checkread: /, /
         at com.apple.mrj.JManager.JMAppletSecurityOld.checkRead(JMAppletSecurityOld.java)
         at com.apple.mrj.JManager.JMAppletSecurityOld.checkRead(JMAppletSecurityOld.java)
         at java.io.File.exists(File.java)
         at javax.swing.filechooser.UnixFileSystemView.getRoots(FileSystemView.java:270)
         at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.<init>(MetalFileChooserUI.java:683)
         at javax.swing.plaf.metal.MetalFileChooserUI.createDirectoryComboBoxModel(MetalFileChooserUI.java:666)
         at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFileChooserUI.java:145)
         at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:106)
         at javax.swing.JComponent.setUI(JComponent.java:258)
         at javax.swing.JFileChooser.updateUI(JFileChooser.java:1296)
         at javax.swing.JFileChooser.setup(JFileChooser.java:294)
         at javax.swing.JFileChooser.<init>(JFileChooser.java:270)
         at javax.swing.JFileChooser.<init>(JFileChooser.java:233)
         at Applet1.<init>(Applet1.java:13)
         at com.apple.mrj.JManager.JMAppletViewer_OLD.doLoadCode(JMAppletViewerOld.java)
         at com.apple.mrj.JManager.JMAppletViewer_OLD.setState(JMAppletViewerOld.java)
         at com.apple.mrj.JManager.JMViewerEvent.post(JMAppletViewerOld.java)
         at com.apple.mrj.JManager.AVDispatcherThread.run(JMAppletViewerOld.java)

Maybe you are looking for