精华内容
下载资源
问答
  • Maven 异常 druid jar冲突

    2017-12-25 23:06:00
    异常: 十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse....

    异常:

    十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin

    警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssm' did not find a matching property.

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server version:        Apache Tomcat/9.0.1

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server built:          Sep 27 2017 17:31:52 UTC

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server number:         9.0.1.0

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: OS Name:               Windows 10

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: OS Version:            10.0

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Architecture:          amd64

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Java Home:             C:\Program Files\Java\jdk1.8.0_111\jre

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: JVM Version:           1.8.0_111-b14

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: JVM Vendor:            Oracle Corporation

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: CATALINA_BASE:         D:\workspaces\ssm_basic\.metadata\.plugins\org.eclipse.wst.server.core\tmp0

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: CATALINA_HOME:         D:\tomcatServer\apache-tomcat-9.0.1\apache-tomcat-9.0.1

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dcatalina.base=D:\workspaces\ssm_basic\.metadata\.plugins\org.eclipse.wst.server.core\tmp0

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dcatalina.home=D:\tomcatServer\apache-tomcat-9.0.1\apache-tomcat-9.0.1

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dwtp.deploy=D:\workspaces\ssm_basic\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Djava.endorsed.dirs=D:\tomcatServer\apache-tomcat-9.0.1\apache-tomcat-9.0.1\endorsed

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dfile.encoding=UTF-8

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

    信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/lib/amd64;C:\Program Files (x86)\Graphviz2.38\bin;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\Program Files\Java\jdk1.8.0_111\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\mybox\mypath;D:\mybox\mysql\mysql-5.7.18-winx64\mysql-5.7.18-winx64\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program Files\MacType;D:\maven\apache-maven-3.5.0\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip\;D:\eclipseIDE\eclipse-jee-oxygen-1a-win32-x86_64\eclipse;;.]

    十二月 25, 2017 11:04:41 下午 org.apache.coyote.AbstractProtocol init

    信息: Initializing ProtocolHandler ["http-nio-8093"]

    十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

    信息: Using a shared selector for servlet write/read

    十二月 25, 2017 11:04:41 下午 org.apache.coyote.AbstractProtocol init

    信息: Initializing ProtocolHandler ["ajp-nio-8009"]

    十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

    信息: Using a shared selector for servlet write/read

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.Catalina load

    信息: Initialization processed in 670 ms

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.core.StandardService startInternal

    信息: Starting service [Catalina]

    十二月 25, 2017 11:04:41 下午 org.apache.catalina.core.StandardEngine startInternal

    信息: Starting Servlet Engine: Apache Tomcat/9.0.1

    十二月 25, 2017 11:04:45 下午 org.apache.jasper.servlet.TldScanner scanJars

    信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

    十二月 25, 2017 11:04:45 下午 org.apache.catalina.core.ContainerBase startInternal

    严重: A child container failed during start

    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@10df1f34]

    at java.util.concurrent.FutureTask.report(FutureTask.java:122)

    at java.util.concurrent.FutureTask.get(FutureTask.java:192)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)

    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)

    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:671)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

    Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@10df1f34]

    at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)

    at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4758)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4893)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)

    ... 21 more

    Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)

    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:114)

    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

    ... 33 more

    Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

    at java.util.zip.ZipFile.read(Native Method)

    at java.util.zip.ZipFile.access$1400(ZipFile.java:60)

    at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)

    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)

    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)

    at sun.misc.IOUtils.readFully(IOUtils.java:65)

    at java.util.jar.JarFile.getBytes(JarFile.java:425)

    at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)

    at java.util.jar.JarFile.getManifest(JarFile.java:180)

    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:112)

    ... 34 more

     

    十二月 25, 2017 11:04:45 下午 org.apache.catalina.core.ContainerBase startInternal

    严重: A child container failed during start

    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start

    at java.util.concurrent.FutureTask.report(FutureTask.java:122)

    at java.util.concurrent.FutureTask.get(FutureTask.java:192)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)

    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:671)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

    Caused by: org.apache.catalina.LifecycleException: A child container failed during start

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:956)

    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)

    ... 13 more

     

    十二月 25, 2017 11:04:45 下午 org.apache.catalina.startup.Catalina start

    严重: The required Server component failed to start so Tomcat is unable to start.

    org.apache.catalina.LifecycleException: A child container failed during start

    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:956)

    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

    at org.apache.catalina.startup.Catalina.start(Catalina.java:671)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)

    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

     

    十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol pause

    信息: Pausing ProtocolHandler ["http-nio-8093"]

    十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol pause

    信息: Pausing ProtocolHandler ["ajp-nio-8009"]

    十二月 25, 2017 11:04:45 下午 org.apache.catalina.core.StandardService stopInternal

    信息: Stopping service [Catalina]

    十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol destroy

    信息: Destroying ProtocolHandler ["http-nio-8093"]

    十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol destroy

    信息: Destroying ProtocolHandler ["ajp-nio-8009"]

     

     

     

    解决方案:

    jar 包冲突、请手动排除。

     

    我的冲突位置位置为

     

    <!-- druid 连接池 -->

    <dependency>

        <groupId>com.alibaba</groupId>

        <artifactId>druid</artifactId>

        <version>1.1.6</version>

    </dependency>

     

    修改为

     

    <!-- druid 连接池 -->

    <dependency>

        <groupId>com.alibaba</groupId>

        <artifactId>druid</artifactId>

        <version>1.0.12</version>

    </dependency>

    十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssm' did not find a matching property.十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Server version:        Apache Tomcat/9.0.1十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Server built:          Sep 27 2017 17:31:52 UTC十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Server number:         9.0.1.0十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: OS Name:               Windows 10十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: OS Version:            10.0十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Architecture:          amd64十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Java Home:             C:\Program Files\Java\jdk1.8.0_111\jre十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: JVM Version:           1.8.0_111-b14十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: JVM Vendor:            Oracle Corporation十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: CATALINA_BASE:         D:\workspaces\ssm_basic\.metadata\.plugins\org.eclipse.wst.server.core\tmp0十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: CATALINA_HOME:         D:\tomcatServer\apache-tomcat-9.0.1\apache-tomcat-9.0.1十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dcatalina.base=D:\workspaces\ssm_basic\.metadata\.plugins\org.eclipse.wst.server.core\tmp0十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dcatalina.home=D:\tomcatServer\apache-tomcat-9.0.1\apache-tomcat-9.0.1十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dwtp.deploy=D:\workspaces\ssm_basic\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Djava.endorsed.dirs=D:\tomcatServer\apache-tomcat-9.0.1\apache-tomcat-9.0.1\endorsed十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dfile.encoding=UTF-8十二月 25, 2017 11:04:41 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/lib/amd64;C:\Program Files (x86)\Graphviz2.38\bin;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\Program Files\Java\jdk1.8.0_111\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\mybox\mypath;D:\mybox\mysql\mysql-5.7.18-winx64\mysql-5.7.18-winx64\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program Files\MacType;D:\maven\apache-maven-3.5.0\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip\;D:\eclipseIDE\eclipse-jee-oxygen-1a-win32-x86_64\eclipse;;.]十二月 25, 2017 11:04:41 下午 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["http-nio-8093"]十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector信息: Using a shared selector for servlet write/read十二月 25, 2017 11:04:41 下午 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["ajp-nio-8009"]十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector信息: Using a shared selector for servlet write/read十二月 25, 2017 11:04:41 下午 org.apache.catalina.startup.Catalina load信息: Initialization processed in 670 ms十二月 25, 2017 11:04:41 下午 org.apache.catalina.core.StandardService startInternal信息: Starting service [Catalina]十二月 25, 2017 11:04:41 下午 org.apache.catalina.core.StandardEngine startInternal信息: Starting Servlet Engine: Apache Tomcat/9.0.1十二月 25, 2017 11:04:45 下午 org.apache.jasper.servlet.TldScanner scanJars信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.十二月 25, 2017 11:04:45 下午 org.apache.catalina.core.ContainerBase startInternal严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@10df1f34]at java.util.concurrent.FutureTask.report(FutureTask.java:122)at java.util.concurrent.FutureTask.get(FutureTask.java:192)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.startup.Catalina.start(Catalina.java:671)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@10df1f34]at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4758)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4893)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)... 21 moreCaused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:114)at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)... 33 moreCaused by: java.util.zip.ZipException: invalid LOC header (bad signature)at java.util.zip.ZipFile.read(Native Method)at java.util.zip.ZipFile.access$1400(ZipFile.java:60)at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)at sun.misc.IOUtils.readFully(IOUtils.java:65)at java.util.jar.JarFile.getBytes(JarFile.java:425)at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)at java.util.jar.JarFile.getManifest(JarFile.java:180)at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:112)... 34 more
    十二月 25, 2017 11:04:45 下午 org.apache.catalina.core.ContainerBase startInternal严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during startat java.util.concurrent.FutureTask.report(FutureTask.java:122)at java.util.concurrent.FutureTask.get(FutureTask.java:192)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.startup.Catalina.start(Catalina.java:671)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)Caused by: org.apache.catalina.LifecycleException: A child container failed during startat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:956)at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)... 13 more
    十二月 25, 2017 11:04:45 下午 org.apache.catalina.startup.Catalina start严重: The required Server component failed to start so Tomcat is unable to start.org.apache.catalina.LifecycleException: A child container failed during startat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:956)at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.startup.Catalina.start(Catalina.java:671)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
    十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol pause信息: Pausing ProtocolHandler ["http-nio-8093"]十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol pause信息: Pausing ProtocolHandler ["ajp-nio-8009"]十二月 25, 2017 11:04:45 下午 org.apache.catalina.core.StandardService stopInternal信息: Stopping service [Catalina]十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol destroy信息: Destroying ProtocolHandler ["http-nio-8093"]十二月 25, 2017 11:04:45 下午 org.apache.coyote.AbstractProtocol destroy信息: Destroying ProtocolHandler ["ajp-nio-8009"]

     

    转载于:https://www.cnblogs.com/bg7c/p/8111684.html

    展开全文
  • Mycat和druid冲突时,使用hikari替换

    千次阅读 2018-10-09 17:03:51
    原因 新的项目引入了mycat(数据量虽然不怎么大,但是还是增长...查了一些资料,毕竟最强的druid,他涵盖了太多的东西,强制做校验这个还真不能随便关掉. 是时候拿出hikariCP 了 这个号称最强连接池的小哥 开始解决 ...

    原因

    新的项目引入了mycat(数据量虽然不怎么大,但是还是增长率持续增加),一系列操作之后....

    完美运行,可以睡个好觉了,

               然后不停的报错.嗯   说过不了druid 的校验.DB执行确没有一点影响

    查了一些资料,毕竟最强的druid,他涵盖了太多的东西,强制做校验这个还真不能随便关掉.

    是时候拿出hikariCP 了  这个号称最强连接池的小哥

    开始解决

    几行代码  换个依赖,,嗯  真不报错了   ,但是这个最强的家伙不带加密,咱们运维为用以前的(druid)的加密啊,不要自己写......行

    下载了一下hikari  ,druid 发现修改起来还是很简单的,如下图

    需要的类

    将这几个class copy下来就好   放到hikari里面 然后

    需要解密的地方

    在需要解密的password  set方法执行解密就好

    打个包  跑一下*----------------------

     

    嗯  完美执行  睡了~

    展开全文
  • 首先看错误信息 ... Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invoca

    首先看错误信息

    cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invocation of init method failed; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

    如上所示,DruidDataSourceAutoConfigure Failed to determine a suitable driver class,即druid找不到mysql driver,然而mysql的驱动包啥的都没问题,于是直接点进DruidDataSourceAutoConfigure查看源码

    如上,标红表明druid是根据spring.datasource.druid找jdbc属性的,如果not found,则根据spring.datasource找jdbc属性,一般而言这是不会出现错误的。但是我这里使用了shardingjdbc,配置如下:

    spring:
      shardingsphere:
        datasource:
          names: ds0,ds1
          ds0:
            type: com.alibaba.druid.pool.DruidDataSource
            driver-class-name: com.mysql.cj.jdbc.Driver
            url: jdbc:mysql://xxx:3306/ds0
            username: xxx
            password: xxx
          ds1:
            type: com.alibaba.druid.pool.DruidDataSource
            driver-class-name: com.mysql.cj.jdbc.Driver
            url: jdbc:mysql://xxx:3306/ds1
            username: xxx
            password: xxx
        sharding:
          tables:
            user:
              actual-data-nodes: ds${0..1}.user${0..1}
              database-strategy:
                inline:
                  sharding-column: id
                  algorithm-expression: ds${id % 2}
              table-strategy:
                inline:
                  sharding-column: id
                  algorithm-expression: user$->{id % 2}
              key-generator:
                type: SNOWFLAKE
                column: order_id
        props:
          sql:
            show: true
          executor:
            size: 12

    就很显然了,他根据spring.datasource.druid或者spring.datasource确实找不到,因为我的结构是spring.shardingsphere.datasource。

    解决方式1:

    如果我们用的jar包是druid-spring-boot-starter,则在启动类上排除druid自动配置

    @SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})

    解决方式2:

    不用

    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>druid-spring-boot-starter</artifactId>
        <version>1.1.22</version>
    </dependency>

    改为

    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>druid</artifactId>
        <version>1.1.22</version>
    </dependency>

    即可

     

    展开全文
  • 在加入druid 时,只导了包,运行报错,搜了一下,基本上是就是学包冲突了, springframework.boot 与 druid 包冲突 ,可能是我druid 版本太低, 最后换成1.1.10 是可以的

    在加入druid 时,只导了包,运行报错,搜了一下,基本上是就是学包冲突了,
    springframework.boot 与 druid 包冲突 ,可能是我druid 版本太低,
    在这里插入图片描述

    最后换成1.1.10 是可以的

    在这里插入图片描述

    展开全文
  • druid依赖 与springboot集成 问题

    千次阅读 2019-02-17 13:38:21
    原因:缺少jar包,或者jar包冲突 解决方法: 如果使用的依赖是这个 ,则不要指定版本号 <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter 如果使用的是这个依赖:则需要...
  • druid使用方式:druid-spring-boot-starter druid版本号:1.1.10 启动报错 Tomcat启动报如下错误: nested exception is javax.management.InstanceAlreadyExistsException: com.alibaba.druid.pool:name=dataSource...
  • 使用IDEA分析Maven的依赖结构以及解决Maven的jar包冲突 1.示例pom.xml文件 &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="...
  • maven工程解决jar包冲突解决 第一种解决方案 第一声明优先原则 哪个jar包在坐标靠上的位置,这个jar包就是先声明的,先声明的jar包坐标下的依赖包,可以优先进入项目中 第二种解决方案 路径近者优先原则 直接...
  • Druid评测

    千次阅读 2017-05-26 16:55:05
    Druid 评测最近组里申请了三台机器对Druid进行测试,这里记录一下过程,并对Druid的表现做一下评测环境三台机器 - 磁盘:SATA盘 4T - CPU:24核 - 内存:128G - 系统:Red Hat Enterprise Linux 7.3 - ...
  • 这里写目录标题maven问题解决jar包冲突的方式一:解决jar包冲突的方式二:解决jar包冲突的方式三【推荐使用】:maven工程是可以分父子依赖关系的。配置pom.xmlweb.xml的头部声明 maven问题 解决jar包冲突的方式一: ...
  • 现象 启动时出现异常 class ... 原因 项目中多模块中的druid jar包冲突导致。 解决方案 修改client-adapter下escore的pom中druid包的scope为provided模式。 <dependency> &...
  • DruidDruid.io 部署&使用文档

    千次阅读 2016-12-23 19:57:47
    参考:http://lxw1234.com/archives/2015/11/554.htm 海量数据实时OLAP分析系统-Druid.io安装配置和体验 http://druid.io/docs/0.9.2/design/design.html Druid官网搭建Druid.io 部署&使用文档1.集群模式下部署 ...
  • stax2 jar 包冲突

    千次阅读 2019-09-12 09:21:39
    at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache....
  • mvnjar包冲突解决方法

    千次阅读 2019-07-12 16:49:00
    [INFO] +- com.alibaba:druid:jar:1.1.9:compile [INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:provided (scope not updated to compile) [INFO] +- org.springframework.boot:spring-boot-starter-web:jar...
  • Maven jar包冲突解决

    千次阅读 2018-03-28 17:20:24
    先贴异常,如上所示,在网上搜了一下,排除了maven 依赖jar包没有引入的问题,怀疑是jar包冲突导致 执行 mvn dependency:tree -Dverbose 打出所有依赖,如下,发现jar包冲突。 ali-186590dd05f5:promotion_assistant...
  • 2.本地仓库: 里面的jar只能安装,自己粘贴进去,不好使。本次仓库没有,可以去私服找,或中央仓库找。联网的情况下,如果没有会自己去中央仓库下。 3.maven常用命令: clean,compile,test,package,install,...
  • 解决方案: 在要运行的模块中的maven包中加入 <groupId>org.springframework.boot <artifactId>spring-boot-starter-parent <version>2.1.8.RELEASE ...用来替换掉druid中的spring-boot-starter
  • Druid使用问题解决

    2018-05-28 15:26:00
    与hadoopjar包冲突 Druid java.lang.OutOfMemoryError: unable to create new native thread 解决方案参考:Working with different versions of Hadoop 调整Druid集群所...
  • 在JDBC中,明明导入了druid的jar,但是在import时却说cannot resolve symbol ‘alibaba’,??? 那个导入和其他文件冲突. 先关闭IDEA,然后删除项目文件夹下的 .idea文件夹和 .iml文件,之后再重新打开IDEA,将...
  •  <pattern>com.alibaba.druid</pattern>  <shadedPattern>com.xxxx</shadedPattern>          implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>    ...
  • druid集群安装

    2018-12-20 20:58:10
    一.下载安装(以下操作均需在所有节点执行) 创建/opt/druid目录作为安装目录。 下载最新版本druid wget ... 解压下载后的文件并重命名为druid tar -zxvf druid-0.12.3-bin.tar.gz;mv druid-0.12.3 d...
  • 获取异常org.apache.logging.slf4j.SLF4JLoggerContext无法强制转换为org.apache.logging.log4j.core.LoggerContext(Getting Exception org.apache.logging.slf4j.SLF4...--注意排除掉的是log4j-to-slf4j!!!
  • <artifactId>druid-spring-boot-starter <!--<version>1.1.10</version>--> 我的天,5个小时啊,就找这么一个问题,我个菜鸟 转载于:https://www.cnblogs.com/iaoc/p/10120354.html
  • Druid基本配置

    2019-10-06 19:52:45
    最近公司要用Druid 所以看了下基本配置及配置过程中出现的问题 Druid是什么? Druid是阿里巴巴开源平台上一个数据库连接池实现,它结合了C3P0、DBCP、PROXOOL等DB池的优点,同时加入了日志监控,可以很好的监控...
  • <artifactId>druid <version>1.0.9 <finalName>demo1 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <!-- <groupId>org....
  • 解决maven工程jar包冲突的三种方案

    千次阅读 2019-07-25 15:21:29
    --maven工程要导入jar包的坐标,就必须要考虑解决jar包冲突。 解决jar包冲突的方式一: 第一声明优先原则:哪个jar包的坐标在靠上的位置,这个jar包就是先声明的。 先声明的jar包坐标下的依赖包,可以优先进入...
  • 网上有很多种说法 1.shardingsphere自己的数据库源和DruidDataSource 冲突了 ...不使用druid-spring-boot-starter包依赖,使用druid包依赖 3.版本兼容问题(我碰到的 很恶心) 实测启动成功 可启动版本 <parent>
  • druid集群的搭建

    千次阅读 2017-09-28 16:58:18
    1、 启动zookeeper  下载zookeeper安装包,解压、安装  bin/zkServer.sh start 2、 修改druid配置文件 (1) conf/druid/_common/common.runtime.properties  a、修改zookeeper列表     b
  • 与hadoopjar包冲突 Druid java.lang.OutOfMemoryError: unable to create new native thread 解决方案参考:Working with different versions of Hadoop 调整Druid集群所在机器的u...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 3,820
精华内容 1,528
关键字:

druid包冲突