简体   繁体   中英

Javassist dependent jar missing

I am trying to complete java instrumentation on my local glassfish server. 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)

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. 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. add servlet jar path in your Boot-Class-Path , update it and try running it again

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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