• skywalking探针tomcat8.0.28报错解决


    在部署skywalking agent的时候遇到一个异常

    环境如下:

    tomcat8.0.28 catalina.out 日志报如下错误

    30-Apr-2019 10:25:57.664 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /root/apache-tomcat-8.0.28/webapps/ROOT has finished in 610 ms
    30-Apr-2019 10:25:57.664 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /root/apache-tomcat-8.0.28/webapps/docs
    30-Apr-2019 10:25:58.223 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to process Jar entry [META-INF/versions/9/module-info.class] from Jar [jar:file:/root/agent/skywalking-agent.jar!/] for annotations
     org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
    	at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97)
    	at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:55)
    	at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:176)
    	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:85)
    	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2011)
    	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1961)
    	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1936)
    	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1897)
    	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1149)
    	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
    	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5080)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)
    	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1816)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at java.lang.Thread.run(Thread.java:748)
    

      经过开源项目搜索,终于找到答案,原因是因为 agent代理 skywalking-agent.jar  目录结构下version文件夹下的文件导致

    githup开源社区相关解答如下

    https://github.com/apache/skywalking/issues/2354

    解决方案就是 删除skywalking-agent.jar 这个jar包下的 version文件夹

    由于公司限制删除好的agent jar包稍后上传

  • 相关阅读:
    深度学习中Embedding的理解
    Chrome 历史版本下载点
    [Angular] Inherit Parent Route Parameters by Default with ParamsInheritanceStrategy
    [Web] Use Web Speech API to make the browser speak out loud using SpeechSynthesis
    [React] useImperativeHandle + forwardRef
    [XState] Assignement actions
    [XState] Using global actions prop for testing
    [ML L9] Clustering (K-MEANS)
    html+php超大视频上传解决方案
    上传大型视频文件到服务器的分享
  • 原文地址:https://www.cnblogs.com/zhyg/p/10794765.html
Copyright © 2020-2023  润新知