简体   繁体   English

缺少Javassist依赖的jar

[英]Javassist dependent jar missing

I am trying to complete java instrumentation on my local glassfish server. 我正在尝试在我的本地glassfish服务器上完成java工具。 When it tries to change the byte code I am getting 当它尝试更改字节码时,我得到

Severe: javassist.CannotCompileException: cannot find javax.ws.rs.core.Response at javassist.CtBehavior.insertBefore(CtBehavior.java:771) 严重:javassist.CannotCompileException:在javassist.CtBehavior.insertBefore(CtBehavior.java:771)上找不到javax.ws.rs.core.Response

To me this looked like a problem with the jar file I created but I checked the manifest.mf and included the maven dependency location. 在我看来,这似乎与我创建的jar文件有关,但我检查了manifest.mf并包含了maven依赖项位置。 Any suggestions? 有什么建议么?

Premain-Class: com.agent.TestAgent
Agent-class: com.agent.TestAgent
Boot-Class-Path: D:/TEST_PROJ/WebContent/WEB-INF/lib/ C:/Users/djones/
Class-Path: D:/TEST_PROJ/WebContent/WEB-INF/lib/ C:/Users/djones/

Looks like its unable to fetch servlet jar path. 似乎无法获取servlet jar路径。 add servlet jar path in your Boot-Class-Path , update it and try running it again 在您的Boot-Class-Path中添加servlet jar路径,对其进行更新并尝试再次运行

我认为Manifest文件配置是正确的,因为控件将转到Premain-Class并进行转换。我的猜测可能是在jar文件中或某些位置不存在的异常显示的类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM