SecurityException: no manifiest section

Hi Guys,
I use JCE for encryption purpose(DES). It works fine. But when i make a JAR and run the following exception occured. Can somebody tell me what is the reason for this.
Exception in thread "main" java.lang.SecurityException: no manifiest section for
signature file entry javax/crypto/KeyGeneratorSpi.class
at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVe
rifier.java:260)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
.java:172)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
at java.util.jar.JarVerifier.update(JarVerifier.java:194)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:251)
at java.util.jar.JarFile.getInputStream(JarFile.java:313)
at sun.misc.URLClassPath$5.getInputStream(URLClassPath.java:617)
at sun.misc.Resource.getBytes(Resource.java:57)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:247)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
tnx,
-Ruwan

I am having the same problem. Have you figured it out?

Similar Messages

  • "no manifiest section for signature file entry" when run the Jar file

    I built an application by using JBuilder 8.0 and it works fine. But when I deploy it into a jar file, whenever I run it, the following exception appears:
    Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry javax/security/cert/Certificate.class
    at sun.securtiy.util.SignatureFileVerifier.verifySection
    Because I didn't do anything about the security when build the application. I am really confused. Can somebody help?

    I had a similiar problem using NetBeans. There must be a way to view the properties of your jar from Jbuilder and set its manifest. I am very new to this myself, but all I did was edit another manifest and copied into mine. Here is my example manifest:
    Manifest-Version: 1.0
    Main-Class: J3Ed
    The first line is the default line for a manifest. It is very simple and there is much more that could be added, but is not always necessary. I recommend reading the documentation :
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
    Also if you have an archiving utility such as powerarchiver or winzip, open your JAR and check to see that you have a MANIFEST.MF file. If you do then edit it where needed, if not create one and its relative location should be set to META-INF/MANIFEST.MF.
    Hope this helps.

  • No manifiest section for signature file entry iaik/utils/IaikSecurity.class

    Why I got this exception when running my jar with:
    java -jar My.jar
    Exception:
    Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry iaik/utils/IaikSecurity.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:260)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:172)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
    at java.util.jar.JarVerifier.update(JarVerifier.java:194)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
    at java.util.jar.JarFile.getInputStream(JarFile.java:362)
    at sun.misc.URLClassPath$5.getInputStream(URLClassPath.java:616)
    at sun.misc.Resource.getBytes(Resource.java:57)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

    his link contains tools for jar and signiture, maybe it helps
    http://www.syncedit.com/jedit_details.html
    it is very interesting

  • No manifiest section for signature file entry net/sf/acegisecurity/LockedE

    Hi,
    I am facing one problem when I try to execute jar file.
    Our requirement is to generate one jar file which will run our product. We have some dependent jarfiles like j2ee.jar, log4J.jar Spring.jar etc��
    I extracted all the above mentioned jars in to one common folder along with my code and created the new jar file. This new jar file have MANIFIST file with Main-Class: com.fmr.dcl.Cds.DclUi
    When I try to run new jar file on commandprompt (java -jar NewJar.jar) I am getting some security Exception.
    Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry net/sf/acegisecurity/LockedException.class
    at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
    at sun.security.util.SignatureFileVerifier.process0(Unknown Source)
    at sun.security.util.SignatureFileVerifier.process(Unknown Source)
    at java.util.jar.JarVerifier.processEntry(Unknown Source)
    at java.util.jar.JarVerifier.update(Unknown Source)
    at java.util.jar.JarFile.initializeVerifier(Unknown Source)
    at java.util.jar.JarFile.getInputStream(Unknown Source)
    at sun.misc.URLClassPath$5.getInputStream(Unknown Source)
    at sun.misc.Resource.getBytes(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Ashok

    his link contains tools for jar and signiture, maybe it helps
    http://www.syncedit.com/jedit_details.html
    it is very interesting

  • Java.lang.SecurityException using a simple jar file

    I created my small application using JDev 11.
    Running from JDev it works well.
    I created a simple jar file including all my classes and all libraries I used.
    Whe I try to run that jar file I get :
    java.lang.SecurityException: no manifiest section for signature file entry javax/mail/internet/AsciiOutputStream.classI didn't find any solution.
    I worked hardly with JDev 10g but I never had such problem.
    Tks
    Tullio
    Edited by: tullio0106 on Nov 25, 2008 2:22 PM

    I simply created a project containing some classes whish use java mail.
    Then I modified the project creating, in the deployment wizard, a "Dependency Analysis" filegroup adding all my classes as well as libraries.
    I uncheck the "Include Manifest" chek otherwise I would run into different problems (well documented in the forum).
    The jar file is created but when I run the application I get the Security error.
    If I remove java mail libraries (activation and java mail)from the list of used libraries and I add it to classpath it works fine.
    I suspect the problem could be in Manifes merging.
    Tks
    Tullio

  • JavaFX in a CDC application

    Hello,
    I am trying to embed a JavaFX scene in swing JComponent as shown below:
    import java.awt.;
    import javax.swing.;
    import org.jfxtras.scene.SceneToJComponent;
    public class Main extends JFrame {
    public static JTextField tf = new JTextField("JavaFX for SWING");
    public Main() {
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("JavaFX in SWING Test");
    Container container = getContentPane();
    container.setLayout(new BorderLayout());
    String sceneClass = "cdcapplication13.MyScene";
    JComponent myScene = SceneToJComponent.loadScene(sceneClass);
    JLabel label = new JLabel(" Below is a JavaFX Animation: ");
    container.add(label, BorderLayout.NORTH);
    container.add(myScene, BorderLayout.CENTER);
    JPanel p = new JPanel();
    p.setLayout(new FlowLayout());
    tf.setColumns(28);
    p.add(tf);
    p.add(new JButton("SWING Button"));
    container.add(p, BorderLayout.SOUTH);
    pack();
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(
    new Runnable() {
    public void run() {
    new Main().setVisible(true);
    In the above cdcapplication13.MyScene is my JavaFX scene class. The above worksfine is a desktop application. However, when trying to do the same on a CDC application with Emulator platform - CDC Java(TM) Platform Micro Edition SDK 3.0, Device - SunVgaAGUIPhone1 and Device Profile - PBP-1.1, I get the following exception when running to app:
    nsicom-run:
    ODT agent stopped.
    java.lang.SecurityException: no manifiest section for signature file entry javax/crypto/KeyGeneratorSpi.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:278)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:190)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:259)
    at java.util.jar.JarVerifier.update(JarVerifier.java:214)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:270)
    at java.util.jar.JarFile.getInputStream(JarFile.java:332)
    at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Launcher.java:544)
    at sun.misc.Launcher$AppClassLoader.access$500(Launcher.java:344)
    at sun.misc.Launcher$4.run(Launcher.java:565)
    at java.security.AccessController.doPrivileged(AccessController.java:351)
    at java.security.AccessController.doPrivileged(AccessController.java:320)
    at sun.misc.Launcher$AppClassLoader.doClassFind(Launcher.java:559)
    at sun.misc.Launcher$AppClassLoader.findClass(Launcher.java:607)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:349)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:420)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:338)
    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:603)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:291)
    at com.sun.cdc.odt.CdcAppManager.runMain(CdcAppManager.java:168)
    at com.sun.cdc.odt.CdcAppManager.access$100(CdcAppManager.java:44)
    at com.sun.cdc.odt.CdcAppManager$1.run(CdcAppManager.java:90)
    at java.lang.Thread.startup(Thread.java:782)
    Can anyone please tell me how to fix this issue?
    Thanks!

    Hi,
    I want to create a CSV file and email it as an
    attachment to a specified email address once the user
    presses Submit in my application. This is developed
    for Sony Ericsson P990i. Can anyone help me with
    this?
    Thanks in advanceI just tried this yesterday, and got to the point where I realized that the Foundation 1.0 JCL, doesn't support what I need from JavaMail 1.4x. Perhaps the alternative, is to read the RFCs, and write a native client, or maybe FTP the file(s)?
    Jeff

  • How to use signed JAR-libs in EAR

    I have a project wich depend library my_crypto, and my_crypto depend JCE.
    When I place these lib's to WEB-INF - all works fine.
    But when I remove from WEB-INF/lib my_crypto (I have to do this one!)
    there is an Exception:
    java.lang.SecurityException: no manifiest section for signature file entry javax/crypto/spec/DHParameterSpec.class
    What's this? And how can I fix this?
    (I work on JBuilder under Windows2000, jdk 1.3.1)

    JCE code and JCE provider suppose to be installed into <jre>\lib\ext directory. Otherwise you going to have a lot of problems.
    Unfortunately the only alternative is not to use JCE at all in web application context. For example you may go with some 3rd part low level crypto (such as BouncyCasle low level crypto API).

  • Program compiles, but does not run

    To: XCode Users <[email protected]>
    From: Brigit Ananya <[email protected]>
    Subject: Program compiles, but does not run
    I am trying to port a Java application from the PC to the Mac. I am using XCode and the program compiles, but it does not run.
    When I try to run the ...app, I get the message that the main class is not specified, etc.
    When I try to run the ...jar, I do not get the message that the main class is not specified, but I do get the message that there is no Manifest section for bouncycastle, etc.
    Here are the detailed messages I get in the Console when I try to run the program:
    When I try to run the ...app, I get the following message:
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] [LaunchRunner Error] No main class specified
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] Exception in thread "main" java.lang.NullPointerException
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
    When I try to run the ...jar, I do get the following message:
    1/9/09 7:22:43 AM [0x0-0x8d08d].com.apple.JarLauncher[2262] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] Exception in thread "main"
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] java.lang.SecurityException: no manifiest section for signature file entry org/bouncycastle/asn1/DEREnumerated.class
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:377)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:231)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarVerifier.processEntry(JarVerifier.java:233)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarVerifier.update(JarVerifier.java:188)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarFile.initializeVerifier(JarFile.java:325)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarFile.getInputStream(JarFile.java:390)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:620)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.Resource.cachedInputStream(Resource.java:58)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.Resource.getByteBuffer(Resource.java:113)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.security.AccessController.doPrivileged(Native Method)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    I do specify the main class in both, the Manifest file and the Info.plist file, in the correct way, "package.MainClass". Is there another place where I need to specify it?
    Why do I need org/bouncycastle/asn1/DEREnumerated.class, and how would I have to specify it in Manifest?
    I also posted these questions at Mac Programming at forums.macrumors.com and at Xcode-users Mailing List at lists.apple.com/mailman/listinfo, but I did not get any answer.
    Please help! Thanks!

    There was something wrong with my Info.plist file.
    So, here is my corrected Info.plist file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
         <key>CFBundleDevelopmentRegion</key>
         <string>English</string>
         <key>CFBundleExecutable</key>
         <string>AnanyaCurves</string>
         <key>CFBundleGetInfoString</key>
         <string></string>
         <key>CFBundleIconFile</key>
         <string>AnanyaCurves.icns</string>
         <key>CFBundleIdentifier</key>
         <string>com.AnanyaSystems.AnanyaCurves</string>
         <key>CFBundleInfoDictionaryVersion</key>
         <string>6.0</string>
         <key>CFBundleName</key>
         <string>AnanyaCurves</string>
         <key>CFBundlePackageType</key>
         <string>APPL</string>
         <key>CFBundleShortVersionString</key>
         <string>0.1</string>
         <key>CFBundleSignature</key>
         <string>ac</string>
         <key>CFBundleVersion</key>
         <string>0.1</string>
         <key>Java</key>
         <dict>
              <key>JMVersion<key>
              <string>1.4+</string>
              <key>MainClass</key>
              <string>AnanyaCurves</string>
              <key>VMOptions</key>
              <string>-Xmx512m</string>
              <key>Properties</key>
              <dict>
                   <key>apple.laf.useScreenMenuBar</key>
                   <string>true</string>
                   <key>apple.awt.showGrowBox</key>
          <string>true</string>
              </dict>
         </dict>
    </dict>
    </plist>Ok, so now I can at least run the AnanyaCurves.jar file by double-clicking on it.
    However, I still cannot run the AnanyaCurves.app file. When I double-click on it, I get the following message in the Console:
    1/11/09 5:12:26 PM [0x0-0x67067].com.apple.JarLauncher[1128]  at ananyacurves.AnanyaCurves.main(AnanyaCurves.java:1961)
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] [JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] [LaunchRunner Error] No main class specified
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] Exception in thread "main" java.lang.NullPointerException
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137]  at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137]  at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137]  at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)Why is it looking for the MRJApp.properties file? Isn't this outdated? Shouldn't it look for the Info.plist file? I do not have a MRJApp.properties file.
    Also, in the Run menu of my XCode project, Go, Run, and Debug are disabled, but perhaps this has to do with not being able to run the AnanyaCurves.app file.
    Thanks for your time! I really appreciate any help you can give me!

  • CDC Application with JavaFX

    Hello,
    I am trying to embed a JavaFX scene in swing JComponent as shown below:
    import java.awt.*;
    import javax.swing.*;
    import org.jfxtras.scene.SceneToJComponent;
    public class Main extends JFrame {
    public static JTextField tf = new JTextField("JavaFX for SWING");
    public Main() {
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("JavaFX in SWING Test");
    Container container = getContentPane();
    container.setLayout(new BorderLayout());
    String sceneClass = "cdcapplication13.MyScene";
    JComponent myScene = SceneToJComponent.loadScene(sceneClass);
    JLabel label = new JLabel(" Below is a JavaFX Animation: ");
    container.add(label, BorderLayout.NORTH);
    container.add(myScene, BorderLayout.CENTER);
    JPanel p = new JPanel();
    p.setLayout(new FlowLayout());
    tf.setColumns(28);
    p.add(tf);
    p.add(new JButton("SWING Button"));
    container.add(p, BorderLayout.SOUTH);
    pack();
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(
    new Runnable() {
    public void run() {
    new Main().setVisible(true);
    In the above cdcapplication13.MyScene is my JavaFX scene class. The above worksfine is a desktop application. However, when trying to do the same on a CDC application with Emulator platform - CDC Java(TM) Platform Micro Edition SDK 3.0, Device - SunVgaAGUIPhone1 and Device Profile - PBP-1.1, I get the following exception when running to app:
    nsicom-run:
    ODT agent stopped.
    java.lang.SecurityException: no manifiest section for signature file entry javax/crypto/KeyGeneratorSpi.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:278)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:190)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:259)
    at java.util.jar.JarVerifier.update(JarVerifier.java:214)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:270)
    at java.util.jar.JarFile.getInputStream(JarFile.java:332)
    at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Launcher.java:544)
    at sun.misc.Launcher$AppClassLoader.access$500(Launcher.java:344)
    at sun.misc.Launcher$4.run(Launcher.java:565)
    at java.security.AccessController.doPrivileged(AccessController.java:351)
    at java.security.AccessController.doPrivileged(AccessController.java:320)
    at sun.misc.Launcher$AppClassLoader.doClassFind(Launcher.java:559)
    at sun.misc.Launcher$AppClassLoader.findClass(Launcher.java:607)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:349)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:420)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:338)
    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:603)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:291)
    at com.sun.cdc.odt.CdcAppManager.runMain(CdcAppManager.java:168)
    at com.sun.cdc.odt.CdcAppManager.access$100(CdcAppManager.java:44)
    at com.sun.cdc.odt.CdcAppManager$1.run(CdcAppManager.java:90)
    at java.lang.Thread.startup(Thread.java:782)
    Can anyone please tell me how to fix this issue?
    Thanks!

    Welcome to the forum. Please don't post in threads that are long dead and don't hijack other threads. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.

  • Error deploying to .jar file

    Hi everyone,
    I am forms developer and as such i am a completly clueless as to how to do some basic things in this new tool i am trying to learn.
    As a start, i am building some simple ADF/Swing applications, everything goes fine until i reach the point when i want to deploy my little proyect. Here's what i have been doing based on what help i could find in this forum. Thanks in advance and sorry for my poor english.
    1) Create a deployment profile, i select all the dependencies using the "Dependency Analisis" option under file groups. Question: regarding the long list of dependencies shown in this section, is it necesary to include all the libraries listed? if i include everything the resulting jar file is 120Mb in size, and that is for a very simple form. Is this normal/correct.?
    2) After the jar is deployed i try to run it with "java -jar xxx.jar" but i get the following exceptions: It seems to be related to the manifest file, and i find it very weird that, when i look in the jar file, there are TWO manifest.mf under the same META-INF folder, one is all uppercase and is quite small, the second is lowercase and quite large in size. I dont know if this is what's causing the problem and i cant find any other person that is having this same issue.
    The error:
    Exception in thread "main" java.lang.SecurityException: no manifiest section for
    signature file entry javax/media/rtp/event/SessionEvent.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVe
    rifier.java:260)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
    .java:172)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
    at java.util.jar.JarVerifier.update(JarVerifier.java:194)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
    at java.util.jar.JarFile.getInputStream(JarFile.java:362)
    at sun.misc.JarIndex.getJarIndex(JarIndex.java:92)
    at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:543)
    at sun.misc.URLClassPath$3.run(URLClassPath.java:320)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:309)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:286)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:156)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:191)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Thanks.

    Hello Avrom
    Thanks for the quick reply, in answer to your suggestion, in fact, as you recommended, excluding the manifest from the deployment profile solved "that" error but... (there's always a but, also, by excluding the manifest i had to include the classpath in the command line to indicate the "entry" point or main class), now i am receiving another error wich is completly unrelated (i think) to the previous one.
    Thank you very much.
    Fabian.
    The error:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: view/NameOfMyCla
    ss (Unsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

  • Another "could not find main class"  thread

    Hello everybody
    I know there's tons of threads on this subject but none of them seem to be quite like mine.
    I'm trying to deploy an application that I developped with Jbuilder 2006 Enterprise (trial version). It automatically created the "ServerApp.jar" file and the manifest but when I try to run it I get the famous message: "Could not find the main class. Program will exit." My main class is "Application" and it's in a package called "serverapp".
    here's a copy of my manifest:
    Manifest-Version: 1.0
    Main-Class: serverapp.Application
    it has two extra lines at the end.
    I read on the other threads that I also needed a .bat file (don't know quite why) so I created one. It looks like this:
    @ECHO ON
    Set Path = C:\Program Files\Java\jre1.5.0_04\bin
    cd C:\Documents and Settings\Naby\My Documents\Travail\Synapco\BlackeBerry\ServerApp
    javaw -jar ServerApp.jar
    EXIT
    One last thing: when I run the .jar file from the command line using the syntax
    java -jar serverapp.jar
    I get this more detailled error message:
    C:\Documents and Settings\Naby\My Documents\Travail\Synapco\BlackeBerry\ServerAp
    p>java -jar serverapp.jar
    Exception in thread "main" java.lang.SecurityException: no manifiest section for
    signature file entry javax/mail/internet/AsciiOutputStream.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVe
    rifier.java:377)
    at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVeri
    fier.java:231)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
    .java:176)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:233)
    at java.util.jar.JarVerifier.update(JarVerifier.java:188)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:318)
    at java.util.jar.JarFile.getInputStream(JarFile.java:383)
    at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:62
    0)
    at sun.misc.Resource.cachedInputStream(Resource.java:58)
    at sun.misc.Resource.getByteBuffer(Resource.java:113)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    I don't know what is going on here.
    Any help would be really appreciated
    Thanks.

    Thanks for the reply martin
    what jar file are you refering to? I only have one jar file wich is "serverapp.jar" and that's the one I want to run.

  • Deployment of an signed Applet

    Hi!
    I have a problem in creating an applet
    I get following message: java.lang.SecurityException: no manifiest section for signature file entry oracle/jdbc/OracleStatement.class
    This is because of the applet isnt signed.
    After following procedure:
    keytool -genkey -alias MakeJava -dname "cn=My name is Duke, c=de"
    keytool -selfcert -alias MakeJava -dname "cn=My name is Duke, c=de"
    jarsigner sigtest.jar MakeJava
    jarsigner -verify -verbose sigtest.jar
    At this line I get following message: (The same message as in the IE-Explorer, when I open the applet)
    java.lang.SecurityException: invalid SHA1 signature file digest for oracle/jdbc/OracleStatement.class
    I have read read something that it should work when I install Jbuilder 8 or 10. But I use Jbuilder 2005 and not JBuilder 9. So I am not sure what I should do?
    Have somebody used JBuilder 2005 and solved this problem?

    Hi!
    I solved the problem!
    I got this messages because I used thr oracle14 - driver. This driver was already signed and i tried to sign the whole program again...
    Thats it!
    I just used another driver, which isnt signed... easy but effective!

  • HELP - problem in running

    I am using JBuilder 7. and have set all paths including library J2SDK1.4.2.
    I have complied a java project which include swing components.
    This project was previously compiled and run many time successfully. But few days i did not run on my pc.
    I have tested this project on my friends pc and there it ran fine.
    I have tested a simple 'Hello World' program on my pc and it compiled and ran fine. But my project did not run.
    I reinstalled jdk1.4.2 and jre1.4.2 many times but problem still exists.
    My project compiled successfully but on run it gives the error in a message box.
    'Java Virial Machine Launcher. Fatal Execption occured. Program will exit'
    and shows the following error in message window.
    java.lang.SecurityException: no manifiest section for signature file entry com/microsoft/jdbc/vprt/SSLexTableRow.class
         at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:260)
         at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:172)
         at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
         at java.util.jar.JarVerifier.update(JarVerifier.java:194)
         at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
         at java.util.jar.JarFile.getInputStream(JarFile.java:362)
         at sun.misc.URLClassPath$5.getInputStream(URLClassPath.java:616)
         at sun.misc.Resource.getBytes(Resource.java:57)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at login.LoginFrame.<init>(LoginFrame.java:54)
         at login.LoginApplication.<init>(LoginApplication.java:11)
         at login.LoginApplication.main(LoginApplication.java:26)

    I am guessing, based a few non-english Google hits;
    the file mssqlserver.jar (*) may be corrupt?
    (*) where com/microsoft/jdbc/vprt/SSLexTableRow.class resides?

  • SecurityException assembly does not alllow partially trusted callers

    I have seen a few posts everywhere about this but am still slightly confused as to how this should work. I am not sure if this is a problem due to the Tangosol library not containing the allow partially trusted callers attribute or something else more fundamental with the policy restrictions on how .NET applications are called over the network.
    My app.config is:
    <?xml version="1.0"?>
    <configuration>
    <configSections>
    <section name="coherence" type="Tangosol.Config.CoherenceConfigHandler, Coherence"/>
    </configSections>
    <coherence>
    <cache-factory-config>\\usfiapp\swap_prd\MBS\PNG\Server\DEV\config\coherence.xml</cache-factory-config>
    <cache-config>\\usfiapp\swap_prd\MBS\PNG\Server\DEV\config\cache-config.client.xml</cache-config>
    <pof-config>\\usfiapp\swap_prd\MBS\PNG\Server\DEV\config\pof-config.xml</pof-config>
    </coherence>
    </configuration>
    and when I run my application from a Network Share I get the error and stack trace as shown:
    {ERROR}[1]02/24 13:30:03 - Exception in the main thread
    System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for coherence: That assembly does not allow partially trusted callers. (\\usfiapp\swap_prd\MBS\PNG\Server\DEV\bin\CacheLoader\ConsoleService.exe.Config line 5) ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
    at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
    at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
    at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
    at System.Configuration.TypeUtil.CreateInstanceWithReflectionPermission(Type type)
    at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
    at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
    at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory..ctor(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
    at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
    at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
    The action that failed was:
    LinkDemand
    The assembly or AppDomain that failed was:
    System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    The Zone of the assembly that failed was:
    MyComputer
    The Url of the assembly that failed was:
    file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    --- End of inner exception stack trace ---
    at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
    at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
    at System.Configuration.ConfigurationManager.GetSection(String sectionName)
    at Tangosol.Util.ConfigurationUtils.GetCoherenceConfiguration() in c:\dev\release.net\coherence-net-v3.5\src\Coherence\Util\ConfigurationUtils.cs:line 37
    at Tangosol.Net.CacheFactory.get_Config() in c:\dev\release.net\coherence-net-v3.5\src\Coherence\Net\CacheFactory.cs:line 272
    at Tangosol.Net.CacheFactory.get_ConfigurableCacheFactoryConfig() in c:\dev\release.net\coherence-net-v3.5\src\Coherence\Net\CacheFactory.cs:line 392
    at Tangosol.Net.CacheFactory.get_ConfigurableCacheFactory() in c:\dev\release.net\coherence-net-v3.5\src\Coherence\Net\CacheFactory.cs:line 331
    at Tangosol.Net.CacheFactory.GetCache(String name) in c:\dev\release.net\coherence-net-v3.5\src\Coherence\Net\CacheFactory.cs:line 643
    at Bnpp.Irg.PoolManager.ComponentReportCache..ctor() in L:\src\Applications\PoolManagerReplacement\BNPPOF\BNPPOF\POFCacheFactory.cs:line 379
    at Bnpp.Irg.PoolManager.ComponentReportFactory.GetPOFCache() in L:\src\Applications\PoolManagerReplacement\BNPPOF\BNPPOF\POFCacheFactory.cs:line 563
    at Bnpp.Irg.PoolManager.POFCacheAssembler.AssemblePOFCache(String pofCacheType) in L:\src\Applications\PoolManagerReplacement\BNPPOF\BNPPOF\POFCacheFactory.cs:line 90
    at Bnpp.Irg.PoolManager.Program.DeRegister(CtrlTypes t) in L:\src\Applications\PoolManagerReplacement\Server\CacheLoader\CacheLoaderService\Program.cs:line 127
    at Bnpp.Irg.PoolManager.Program.Main(String[] args) in L:\src\Applications\PoolManagerReplacement\Server\CacheLoader\CacheLoaderService\Program.cs:line 192
    Looking on MSDN and other places some say to rebuild the Ent Lib with the AllowPartiallyTrustedCallers() attribute and others say to grant the unc share folder "FullTrust" through URL evidence. I have tried the latter by going to the .NET configuration and creating a new code group under LocalIntranet _Zone called DEVCode with the share from which I am loading the application and trust set to Full Trust.
    This still did not work and I am not sure what part of the Ent Lib I need to rebuild, so how can I get around this. Can you please help?
    Do I need to restart the server on which I am running the network application from after making such a policy change?
    FYI - I am running the application from a Windows Service if that helps.

    Hi Kunla
    I believe that putting '[assembly:AllowPartiallyTrustedCallers]' in your AssemblyInfo.cs should do the trick.
    Thanks
    /Charlie

  • How can I set OWA to use Public by default and hide that section from OWA?

    I have an Exchange 2013 deployment that needs a customized OWA page.  I've already run Set-OwaVirtualDirectory "ex1\owa*" -LogonPagePublicPrivateSelectionEnabled $True to show the Public option.  I've also edited the logon.aspx
    file to set the checkbox to be unchecked by default.  My problem is I need to hide that entire line, I don't want users to see that section at all as if I never ran the above command.  When I was testing hiding it with <!-- --> it hid it but
    caused that piece to stop working as it went back to private.  Has anyone been able to accomplish this or can clue me in on how to do this?  Thank you in advance.

    Hi,
    I suggest we ask the question on Exchange Development Forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=exchangesvrdevelopment&filter=alltypes&sort=lastpostdesc
    Regards,
    Simon Wu
    TechNet Community Support

Maybe you are looking for

  • Hissing from high volume

    how do i get rid of hissing as if the volume is turned up high? and still keep the volume audible? what filter? thanks

  • Elements 5.0...3 pointers on screen at one time

    Windows 7, PS Elements 5.0 (I know it's old, but money is tight) and all these years I have never had a problem.  But now when I open the program my on screen pointer has 2 shadows following it around. Meaning, there's three of them now. This only ha

  • Vista x64 support?

    Will Elements run on Vista x64? If so, is there a 64bit version?

  • Legal Consolidation, only one automatic adjustment done

    Hi experts, After my consolidation, only one type of automatic adjustment is done. I do not know why. Regards

  • File to IDOC scenerio (Please help)

    Hi Friends, Please provide me a sample document with screen shots for the below mentioned scenerio. File--> XI-- IDOC. This would be a great help. Seeking the early responses. Please note ID also, if wish to send it on this. sonisapabapATyahooDOTcoDO