Sign In  Sign Up Live-Chat

License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

Last post 06-13-2008, 10:13 AM by dxu. 6 replies.
Sort Posts: Previous Next
  •  06-11-2008, 9:45 AM 130945

    License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    I got the license and following the docs to set license as following

            License barcodeLic = new License();
            String licFileName = System.getProperty(ApplicationContainer.BARCODE_LICENSE_FILENAME);
            try{
                barcodeLic.setLicense(licFileName);

    }catch(Exception e)

                e.printStackTrace();
            }

    I got above exception.

    The license file name seems a little bit weird to me - Aspose.BarCode.lic.xml, I'm not sure if it is the problem.

    One more question, do I need to set license every time when the barcode generated? or I could do it once when application server start? That would be much helpful if you could post/send me some sample code.

    Thanks,

    Dorothy

     
  •  06-11-2008, 9:56 AM 130947 in reply to 130945

    Re: License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    Hi Dorothy,

       Are you using Aspose.BarCode for Java 1.3? Could you please send your license file to guangzhou#aspose.com?

       About your second question, you can just set the license once when your application start.

       Thanks


    Dean Deng
    Lead Developer
    Aspose Guangzhou Team
    About Us
    Contact Us
     
  •  06-11-2008, 10:31 AM 130951 in reply to 130947

    Re: License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    Attachment: Present (inaccessible)

    I think I'm using v.1.4 since I downloaded the latest trial version on 5/27/2008.

    Attached is the license file.

     
  •  06-12-2008, 7:40 AM 131093 in reply to 130951

    Re: License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    Hi,

       I'd test your license file but it works fine. Could you please provide details of the exception such as  the stack trace information? And more, is it possible to send me your project source? The email address is guangzhou#aspose.com ( please use @ to replace # ).

       And for your reference, I'd also attached my test source for the license file using Aspose.BarCode for Java 1.4 (http://www.aspose.com/community/files/53/visual-components/aspose.barcode/entry125932.aspx) under jdk 1.4.2, 1.5 and 1.6.

       Thanks


    Dean Deng
    Lead Developer
    Aspose Guangzhou Team
    About Us
    Contact Us
     
  •  06-12-2008, 8:28 AM 131104 in reply to 131093

    Re: License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    Hi,

    The jdk version I'm using is v1.5, below are stack trace message

    08/06/12 09:26:08 java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found in file:/C:/temp/AsposeBarcode/lib/Aspose.BarCode.jar
    08/06/12 09:26:08  at oracle.classloader.SharedJar.doGetStream(SharedJar.java:308)
    08/06/12 09:26:08  at oracle.classloader.SharedCodeSource.getStream(SharedCodeSource.java:1007)
    08/06/12 09:26:08  at oracle.classloader.SharedCodeSourceSet.getResourceStream(SharedCodeSourceSet.java:501)
    08/06/12 09:26:08  at oracle.classloader.SharedCodeSourceURL$Connection.getInputStream(SharedCodeSourceURL.java:107)
    08/06/12 09:26:08  at java.net.URL.openStream(URL.java:1007)
    08/06/12 09:26:08  at com.aspose.barcode.d.b(SourceFile:230)
    08/06/12 09:26:08  at com.aspose.barcode.d.a(SourceFile:164)
    08/06/12 09:26:08  at com.aspose.barcode.d.a(SourceFile:137)
    08/06/12 09:26:08  at com.aspose.barcode.License.setLicense(SourceFile:102)
    08/06/12 09:26:08  at com.kma.ots.common.util.BarcodeGenerator.generateBarcode(BarcodeGenerator.java:142)
    08/06/12 09:26:08  at _jsp._returns._track._barcode._jspService(_barcode.java:194)
    08/06/12 09:26:08  at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    08/06/12 09:26:08  at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    08/06/12 09:26:08  at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    08/06/12 09:26:08  at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    08/06/12 09:26:08  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:258)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
    08/06/12 09:26:08  at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
    08/06/12 09:26:08  at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    08/06/12 09:26:08  at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
    08/06/12 09:26:08  at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    08/06/12 09:26:08  at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
    08/06/12 09:26:08  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    08/06/12 09:26:08  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    08/06/12 09:26:08  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    08/06/12 09:26:08  at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    08/06/12 09:26:08  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    08/06/12 09:26:08  at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    08/06/12 09:26:08  at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    08/06/12 09:26:08  at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    08/06/12 09:26:08  at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    08/06/12 09:26:08  at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    08/06/12 09:26:08  at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    08/06/12 09:26:08  at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/06/12 09:26:08  at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/06/12 09:26:08  at java.lang.Thread.run(Thread.java:595)

    In the meantime, I'm sending you the source code for setting license and generating barcode.

    Thanks,

    Dorothy

     
  •  06-12-2008, 8:59 AM 131110 in reply to 131104

    Re: License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    Hi,

       Thanks for the details. Could you please send me the "C:/temp/AsposeBarcode/lib/Aspose.BarCode.jar"(the one showing in the exception stack trace) to my mailbox also?


    Dean Deng
    Lead Developer
    Aspose Guangzhou Team
    About Us
    Contact Us
     
  •  06-13-2008, 10:13 AM 131254 in reply to 131110

    Re: License file problem: java.io.FileNotFoundException: !META-INF/MANIFEST.MF not found

    Hi Dean,

    I'm very appreciated for your help. The license file works fine with the new jar file.

    Please ignore my email regarding remove text from the image.

    Thanks,

    Dorothy

     
View as RSS news feed in XML