java.io.IOException: Failed to access resource /WEB-INF/lib/mysql.jar

Atlassian JIRA | Shahriyar Imanov | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Working on Ubuntu Server latest, I generally install Atlassian applications on home directories of their dedicated users. In this case, I install Confluence under following folder hierarchy: {code}/home/confluence |_ current/ = INST_DIR |_ .home/ = HOME_DIR |_ backups/ = Location where old backups are held, everytime I upgrade{code} It all works good. When using MySQL as the production RDBMS, I first install {{libmysql-java}} library which fetches JDBC drivers: {code}sudo apt-get install libmysql-java{code} The latest driver is generally linked through {{/usr/share/java/mysql.jar}} file. In all my Atlassian product installations, I just link to that file. For example, in the case of Confluence, I link to that location from {{INST_DIR/confluence/WEB-INF/lib/mysql.jar}}. Generally it works with other Atlassian software, but for some reasons Confluence doesn't like this method. The error in log file is evidently permission related, although I have target file on 0777: {code}Dec 09, 2013 8:34:55 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: LifecycleException: start: : java.io.IOException: Failed to access resource /WEB-INF/lib/mysql.jar at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4575) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414){code} Is there any way to fix this behaviour?

    Atlassian JIRA | 3 years ago | Shahriyar Imanov
    java.io.IOException: Failed to access resource /WEB-INF/lib/mysql.jar
  2. 0

    can I generate a keystore to use with someone else's workspace?

    Stack Overflow | 4 years ago | sharcfinz
    java.io.IOException: Keystore was tampered with, or password was incorrect
  3. 0

    Why is tomcat having trouble loading a self signed SSL certificate?

    Stack Overflow | 6 years ago | Dark Star1
    java.io.IOException: Exception trying to load keystore /usr/share/tomcat5/webapps/.keystore: JKS
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Facing deployment issue with tomcat

    Stack Overflow | 5 years ago | ndongo
    java.io.IOException: Failed to create destination directory to copy resources
  6. 0

    VMware KB: Generating custom or default SSL certificates

    vmware.com | 12 months ago
    java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed to access resource /WEB-INF/lib/mysql.jar

      at org.apache.catalina.loader.WebappLoader.start()
    2. Glassfish Core
      Catalina.start
      1. org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:709)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4575)
      3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      4. org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      6. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      7. org.apache.catalina.core.StandardService.start(StandardService.java:525)
      8. org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      9. org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      9 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. Glassfish Core
      Bootstrap.start
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      1 frame