Hi,

This isn't a PDFBox question, your problem is related to applet security and Apache Commons Logging. So the best place is either in the support of Apache Commons Logging or on stackoverflow, where you did ask your question too https://stackoverflow.com/questions/42384795/java-io-filenotfoundexception-d-meta-inf-services-org-apache-commons-logging-l and asked you to improve it (include your logging configuration).

The line that calls logging is

private static final Log LOG = LogFactory.getLog(PDDocument.class);

so you could simulate this with your own class "MyClass", i.e. by calling

    private static final Log LOG = LogFactory.getLog(MyClass.class);

alternatively, try disabling logging.

Tilman

Am 22.02.2017 um 07:43 schrieb MohiEldin Mohamed:
Dear Sir
Good Morning
I use pdfbox-app-2.0.4.jar when try to create new document throw applet i
get the below error , please can you advise me?

java.io.FileNotFoundException:
D:\Examples\META-INF\services\org.apache.commons.logging.LogFactory (The
system cannot find the file specified)

at java.io.FileInputStream.open0(Native Method)
     at java.io.FileInputStream.open(Unknown Source)
     at java.io.FileInputStream.<init>(Unknown Source)
     at java.io.FileInputStream.<init>(Unknown Source)
     at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
     at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown
Source)
     at java.net.URL.openStream(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.getResourceAsStream(Unknown
Source)
     at org.apache.commons.logging.LogFactory$3.run(LogFactory.java:1280)
     at java.security.AccessController.doPrivileged(Native Method)
     at
org.apache.commons.logging.LogFactory.getResourceAsStream(LogFactory.java:1276)
     at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:532)
     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
     at org.apache.pdfbox.pdmodel.PDDocument.<clinit>(PDDocument.java:78)
     at comUtilScan.ScanAllPapers$2$1.run(ScanAllPapers.java:116)
     at java.security.AccessController.doPrivileged(Native Method)
     at comUtilScan.ScanAllPapers$2.actionPerformed(ScanAllPapers.java:111)
     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
     at java.awt.Component.processMouseEvent(Unknown Source)
     at javax.swing.JComponent.processMouseEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
     at java.awt.EventQueue.access$500(Unknown Source)
     at java.awt.EventQueue$3.run(Unknown Source)
     at java.awt.EventQueue$3.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
Source)
     at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
Source)
     at java.awt.EventQueue$4.run(Unknown Source)
     at java.awt.EventQueue$4.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to