Delete .jar signature

While executing a java application under JAVA WEB START , I end up with an error message :
Les ressources JAR définies dans le fichier JNLP n'ont pas été signées à l'aide du même certificat
The JAR ressources defined in the JNLP file have not been signed by the samùe certificatI think I should delete all signatures of all jar and regenerate them .
How can I do that? thank you.

I have a lot of jars that are proprietary. I use them as packages .
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="file:/C:/Projects/FFT/workspace/netbean-6.5/Projects/tribune/dist/" href="launch.jnlp" spec="1.0+">
    <information>
        <title>tribune</title>
        <vendor>FFT</vendor>
        <homepage href=""/>
        <description>tribune</description>
        <description kind="short">tribune</description>
    <offline-allowed/>
</information>
    <resources>
<j2se java-vm-args="-Dhost="****" -Ddatabase="***" -Dpassword="***"" version="1.4+"/>
<jar eager="true" href="tribune.jar" main="true"/>
    <jar href="lib/com.azalea.ufl.barcode.1.0.jar"/>
<jar href="lib/commons-collections-3.1.jar"/>
<jar href="lib/commons-configuration-1.2.jar"/>
<jar href="lib/commons-lang-2.1.jar"/>
<jar href="lib/commons-logging.jar"/>
<jar href="lib/CrystalCommon2.jar"/>
<jar href="lib/CrystalReportsRuntime.jar"/>
<jar href="lib/cvom.jar"/>
<jar href="lib/DatabaseConnectors.jar"/>
<jar href="lib/icu4j.jar"/>
<jar href="lib/jai_imageio.jar"/>
<jar href="lib/JBarcodeBean.jar"/>
<jar href="lib/JDBInterface.jar"/>
<jar href="lib/jrcerom.jar"/>
<jar href="lib/jtds-1.2.2.jar"/>
<jar href="lib/keycodeDecoder.jar"/>
<jar href="lib/log4j-1.2.9.jar"/>
<jar href="lib/log4j.configuration.jar"/>
<jar href="lib/logging.jar"/>
<jar href="lib/pfjgraphics.jar"/>
<jar href="lib/QueryBuilder.jar"/>
<jar href="lib/webreporting-jsf.jar"/>
<jar href="lib/webreporting.jar"/>
<jar href="lib/xpp3.jar"/>
<jar href="lib/swing-layout-1.0.3.jar"/>
<jar href="lib/sqljdbc.jar"/>
<jar href="lib/commons-beanutils-1.7.jar"/>
<jar href="lib/commons-beanutils-1.7.jar"/>
<jar href="lib/commons-digester-1.7.jar"/>
<jar href="lib/commons-collections-2.1.jar"/>
<jar href="lib/commons-logging-1.0.2.jar"/>
<jar href="lib/commons-logging-api-1.0.2.jar"/>
<jar href="lib/itext-1.3.1.jar"/>
<jar href="lib/jasperreports-3.0.0.jar"/>
</resources>
    <application-desc main-class="com.fft.tribune.MainFrame">
    </application-desc>
</jnlp>

Similar Messages

  • Self deletable jar

    Hi,
    When I build my project and double click my .jar file in the dist folder, I would like it to delete itself. How can I do this ?
    Basically what my jar file does is it contains a shortcut "TrayIcon.jar.lnk" that copies to the users startup folder, and then the TrayIcon.jar copies itself to the root of the C: drive (C:\TrayIcon.jar), so the next time the user loads windows, my shortcut file TrayIcon.jar.lnk (that is already pointing to C:\TrayIcon.jar) loads my application (Its a tray Icon that when you double click it goes to the url of my web app). Instead of the user having to go the traditional way of creating a firefox bookmark on his desktop and having to open that each time, I thought it would be neat to have a tray icon that kind of "installs itself" to the C: drive and would always be there when you open windows.
    I already tried to use the delete method (duuuhhh) and also tried to execute it command line using Process process = Runtime.getRuntime().exec(cmd); and oddly enough it would work about 1/10 of the time.
    I read the topic "Java Programming [Archive] - Classloader won't let me delete jar file!" but that dates from 2003 and seems a bit too complicated for what I need to do.
    Can anyone help me figure out how to get my TrayIcon.jar file to delete itself after its done doing its work ?
    thanks, kev

    The jar file cannot execute any functionality, regardless of what it is, which would delete the jar before the VM exits.
    A script file that waits for the vm to exit and then deletes the jar would seem an obious solution to me.
    The user runs the script file not the jar.

  • JRockIt Deleting JAR files - Error loading class

    Hi there,
    Customer is facing a very weird issue. Their application has an application that contains some EJBs and Web applications that, apparently for no reason, it starts to unload classes and delete JAR files and WAR files from the Weblogic's "extract" directory. If I bounce the application, everything starts working fine until a moment where the issues starts again.
    I thought this was any kind of memory issue that was not allowing the JVM to free enough resource for loading the classes again after unloading it. But we gave enough memory for the JVM and it stills happening.
    Thoughts? Any idea that might help us on troubleshooting is very welcome at this time.
    Thanks in advance,
    Davi

    e-blade wrote:
    Manifest-Version: 1.0
    Class-Path: lib/tools.jar
    Created-By: 1.6.0_18 (Sun Microsystems Inc.)
    Main-Class: MainThe line in bold means: when app.jar will be run, it will look for additional classes in <same OS directory as itself>/lib/tools.jar.
    It does not mean that it will look inside itself in the JAR directory /lib/tools.jar.

  • Query in Deleting the Signature using Acrobat 9.0

    Hello Folks,
    We have used resetForm() method before removefield() in our coding
    Observed result:
      Our application uses VC++,If the document has one Digital Signature using the fix(Mentioned below) we can able to delete the signature in the document  but when the  document has many number of Digital Signatures the fix is not working.It threws an exception
    ·        “NotAllowedSecurity: Security settings prevent access to this property or method”
    ·        The exception Id for the above exception is “0x80020009”
        Note: The behavior is wrt to Acrobat 9.0, but the code is working fine for Acrobat 7.0 and 8.0 versions. 
    If we try the scenario in our application, on timestamp the document with Acrobat 9.0 and then signing the document with the same acrobat 9.0 and when deleting the signature using our application  again our fix is not working it throws the above exception.
    The code details are given below
    //Get Nth Field is done
    DISPID dispidRestet;
    OLECHAR *methodReset = { L"resetForm" };
    hr = jso->GetIDsOfNames( IID_NULL, ( OLECHAR** )&methodReset, 1, GetUserDefaultLCID(), &dispidRestet );
    if( hr != S_OK) {
      *errCode = kPSWErrIDispatchGetIDOfNames;
      return FALSE;
    dispparam.cArgs = 1;
    dispparam.rgvarg = new VARIANT[ dispparam.cArgs ];
    dispparam.rgvarg[ 0 ].vt  = VT_BSTR;
    dispparam.rgvarg[ 0 ].bstrVal = varResult.bstrVal;  
    dispparam.cNamedArgs  = 0;
    dispparam.rgdispidNamedArgs  = NULL;
    hr = jso->Invoke( dispidRestet, IID_NULL, GetUserDefaultLCID(), DISPATCH_METHOD, &dispparam, NULL, NULL, NULL );
    if ( hr != S_OK ) {
      *errCode = kPSWErrIDispatchInvoke;
      m_pAvdoc->Close(0);
      ret = FALSE;
    EXCEPINFO exceptionInfo;
    DISPID dispid2;
    OLECHAR *methodName2 = { L"removeField" };
    hr = jso->GetIDsOfNames( IID_NULL, ( OLECHAR** )&methodName2, 1, GetUserDefaultLCID(), &dispid2 );
    if ( hr != S_OK ) {
      *errCode = kPSWErrIDispatchGetIDOfNames;
      return FALSE;
    dispparam.cArgs = 1;
    dispparam.rgvarg = new VARIANT[ dispparam.cArgs ];
    dispparam.rgvarg[ 0 ].vt  = VT_BSTR;
    dispparam.rgvarg[ 0 ].bstrVal = varResult.bstrVal; 
    dispparam.cNamedArgs  = 0;
    dispparam.rgdispidNamedArgs  = NULL;
    hr = jso->Invoke( dispid2, IID_NULL, GetUserDefaultLCID(), DISPATCH_METHOD, &dispparam, NULL, &exceptionInfo, NULL );//here hr throws the exception for multiple signed documents
    if ( hr != S_OK ) {
      *errCode = kPSWErrIDispatchInvoke;
      m_pAvdoc->Close(0);
      ret = FALSE;
      //return FALSE;
    else{
    m_pPddoc->Save(1,strPDFFile);
    m_pAvdoc->Close(true);
    Plese guide us how to over come the exception
    Regards,
    DOCNet.

    Hi Leo,
                 Thanks for your reply!!!.:-)
              Both the signatures are done by me only.    
              The thing is the code works fine for one signature, but it throws an exception for documents having many signatures.
              Can you guide me how to proceed further.

  • Deleting Digital Signatures

    I want to delete digital signatures as I've added several trying to get this right.  I've followed the help instructions by going to tools, protection, ,more protection, security settings and there are no digital signatures on the left as the instructions indicate.  How do I delete these extra signatures?

    If the signatures panel says there are no digital signatures, there are none. Perhaps you have stamps/scribbles on the pages rather than digital signatures.
    In any case it is VITAL to archive the file before signing, because you often can't go back.

  • How do I delete a signature in Acrobat XI? Form section doesn't show

    I am trying to delete a signature and it appears from other posts that this is done throug the "Forms" section under Tools. However, under Tools the only options are Export PDF, Create PDF, Send Files, and Create Files. I thought the initial problem was me not being signed into my account, however that did not work.

    You use Adobe Reader, not Adobe Acrobat.

  • I can not delete empty signature area in document in Adobe reader

    Hi, I have deleted my signature in document and can not delete not signated area of signature in Adobe reader. Can you please advice? Thanks in advance.

    Not possible with Adobe Reader.

  • Cant Delete Jar in Apache Jserv? Why???

    Hi all
    Can any one tell me why i cant delete my jar file in Apache Jserv, servlets folder. It says access denied. I stopped apache server and then tried to delete it. But no use. Help me in this matter.
    One more problem i am getting is my jar file is not able to access the dependent class files like oreilly's Multipart request class. In wrapper classpath i had given oreilly's package path, and my jar is also included in wrapper class path.
    The above jar file i was talking is created by me.
    Expecting your help soon.....
    Thanks and Regards
    Ramesh.

    Hi Ramesh,
    If you're unable to move or delete .jar, .log, .conf, or any other files after stopping Apache, the JVM has not been properly stopped. When you start Apache with Apache JServ configured, a separate JVM (java.exe) process is started. Many Win32 users use Ctrl-C to stop Apache, and this does not stop the JVM. Also, occassionally with buggy code or buggy VMs, the Java process will not respond to Apache's requests to shutdown.
    The preferred way of stopping the JVM properly is to use the command line options to shutdown Apache. In NT, you can type "net stop apache", and on all Win32, you can type "apache -k shutdown", from a command prompt. This should properly shutdown the JVM.
    If the JVM does not die, you will have to manually kill the process. In 95/98, Ctrl-Alt-Del will list the processes; select the process and click "End Process". In NT, start the task manager, select the process, right click, and select end process. If that doesn't stop your JVM, reboot.
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • Can Not Delete digital signature

    Acrobat 6.0 Windows. Have a digital signature field (mine) in a document. The digital signature tab and the field both show a red X. The signature tab says the field is invalid. It says it contains potentially malicious content - Java actions. It also says that changes were made to the document that invalidate the signature.
    I need to add some more text fields and fill in their values and can NOT do that now.
    I have checked the Knowledgebase and the Help file and can NOT delete the signature the way they say - it says the signature is read-only.
    Please HELP !

    Hi,
    It sounds like the document author set the file up so the creation of the signature locked all of the fields in the document (to prevent tampering). If that was the case, then the signature field was locked as well which prevents the signature from being cleared. Sorry, but there is no work around.
    Steve

  • Classloader won't let me delete jar file!

    Hi-
    I am writing a classloader that runs main from a class called MyMain. MyMain loads classes from a jar file called MattTable.jar. I need to be able to delete the jar file once the classes are loaded from it, or even just delete it at the end of the program. Either way, the classloader will not release it so I cannot delete the jar file until after my program finishes. I want to be able to delete it from with in my code after the method is invoked.
    URL urls[] = new URL[] { new File(".").toURL() };
    URLClassLoader loader = new URLClassLoader( urls );
    Class c = loader.loadClass(mainClass);
    Method m1 = c.getMethod("main", new Class[] { args.getClass() });
    //main loads classes from an outside jar file
    m1.invoke( null, new Object[] {args} );
    //Here is where I want to delete the jar file
    //I would even accept file.deleteOnExit() but this won't work either
    If anyone can help me figure out how to delete this file, it would be a great help!
    Thanks,
    Matt

    Hi,
    I've created a small classloader for jar files which releases the handle every time a class is loaded. It might still need some optimization, but at least it works:import java.util.zip.*;
    import java.util.*;
    import java.io.*;
    public class ZipClassLoader extends ClassLoader {
         private Hashtable classes = new Hashtable();
         private File f;
         public ZipClassLoader(String zipFileName) {
              this (new File(zipFileName));
         public ZipClassLoader(File zipFile) {
              f = zipFile;
         public Class loadClass(String className) throws ClassNotFoundException {
              return (loadClass(className, true));
         public synchronized Class loadClass(String className, boolean resolve) throws ClassNotFoundException {
              if (classes.containsKey(className)) return (Class)classes.get(className);
              ZipFile zipFile = null;
              BufferedInputStream bis = null;
              byte[] res = null;
              try {
                   zipFile = new ZipFile(f);
                   ZipEntry zipEntry = zipFile.getEntry(className.replace('.', '/')+".class");
                   res = new byte[(int)zipEntry.getSize()];
                   bis = new BufferedInputStream(zipFile.getInputStream(zipEntry));
                   bis.read(res, 0, res.length);
              } catch (Exception ex) {
              } finally {
                   if (bis!=null) {
                        try {
                             bis.close();
                        } catch (IOException ioex) {}
                   if (zipFile!=null) {
                        try {
                             zipFile.close();
                        } catch (IOException ioex) {}
              if (res == null) return super.findSystemClass(className);
              Class clazz = defineClass(className, res, 0, res.length);
              if (clazz == null) throw new ClassFormatError();
              if (resolve) resolveClass(clazz);
              classes.put(className, clazz);
              return(clazz);
    }This is the test program I've created. It loads a class from the Apache log4j jar file, and deletes the file when the class is loaded:import java.io.File;
    public class Test {
         public static void main(String[] args) throws Exception {
              File f = new File("C:\\jartest\\log4j-1.2.6.jar");
              ZipClassLoader zl = new ZipClassLoader (f);
              Class c = zl.loadClass ("org.apache.log4j.ConsoleAppender", true);
              Object o = c.newInstance();
              System.out.println (o.getClass().getName());
              f.delete();
    }

  • Cannot delete jar file, in us by another person

    I cannot delete a .jar file from my hard drive called C:\javaarchive.jar . I have restarted my computer so no programs running, and tried again to remove it. Always says 'it is being used by another person or program', stop other programs and try again.

    Please take your windows support question to a windows support forum.
    These forums are for help for Java programmers needing help with their Java code.
    We cannot help you solve whatever problems you are having with whatever random program or service. That's not what this forum is about.

  • When deleting the signature using Acrobat 9.0 -server threws an exception error displays

    Hi Everyone,
    I have built an application using VC++ ,in my application i try to sign a document using Acrobat 9.0 ,it gets properly signed and when i try to remove the signature it throws an exception that " Server threws an exception" ,the same code if executed in Acrobat in 7.0 is properly working.
    The code is as below
    DISPID dispid2;
    OLECHAR *methodName2 = { L"removeField" };
    dispparam1.cArgs = 1;
    dispparam1.rgvarg = new VARIANT[ dispparam1.cArgs ];
    dispparam1.rgvarg[ 0 ].vt = VT_BSTR;
    dispparam1.rgvarg[ 0 ].bstrVal = varResult.bstrVal;
    dispparam1.cNamedArgs = 0;
    dispparam1.rgdispidNamedArgs = NULL;
    hr = jso->Invoke( dispid2, IID_NULL, GetUserDefaultLCID(),
    DISPATCH_METHOD, &dispparam1, NULL, NULL, NULL );
    here after executing this line the hr throws "Server thres an exception"
    What could be the reason please throw ur ideas.
    Regards,
    Nethaji

    While deleting manually using acrobat 9.0 we are able to deleted it. But while deleting the same through code we get the following exception
    hr = jso->Invoke( dispid2, IID_NULL, GetUserDefaultLCID(),
    DISPATCH_METHOD, &dispparam1, NULL, &exceptionInfo,
    &puArgErr );
    ExceptionInfo = "NotAllowedError: Security settings prevent access
    to this property or method."
    puArgErr = 0
    Exception id : 0x80020009
    How to give the permission to invoke this method?

  • How to remove Jar signature in BouncyCastle jar file

    My problem is: When I expand bcprov.jar (Bouncycastle) and then I pack it into a one jar file with my application and other expanded jar files, I getting an error about the signature of Bouncycastle).
    I am using Ant to expand and create my jar file.
    Any Ideas , I would like to remove the signature of the bouncycastle jar file.
    thx in advance
    espinraf

    It's actually not easy to do it. There are various regexp ways of doing it. If you search you'll find them. But they are only partial solutions. What you really need to do is write an HTML parser, perhaps using Java's built-in HTML parser. That's the only way to really and truly extract text from HTML. It's a bit of an advanced programming task, though.

  • Retrieving passwords or deleting digital signatures

    Haven't used the function in a very long time and I can't remember the password for my digital signature, is there a way to retreive the p/w or just delete it all together to create a new one?

    You can remove digital IDs and create a new one any time. For help removing it, see: http://help.adobe.com/en_US/Acrobat/9.0/Standard/WS58a04a822e3e50102bd615109794195ff-7d8e. w.html

  • Delete Digital Signatures

    I created various digital signatures as ultimately I'd like to have 1 for work, 1 for personal and 1 for some volunteer organization I'm involved with.
    In my attempt to do so, I ended up creating about 5 different signatures and I need to edit 1 or 2 and then delete 1 or 2. How do I edit some and how do I delete some so they no longer appear on the pull-down menu?

    What kind of signatures you're creating? I guess this is a stamp signature, right?

Maybe you are looking for