当前位置: 代码迷 >> Eclipse >> tomcat debug模式启动错误
  详细解决方案

tomcat debug模式启动错误

热度:452   发布时间:2016-04-23 19:01:05.0
tomcat debug模式启动异常
正常启动没问题,调试程序的时候启动debug模式异常,状况如下
自动运行class URLClassLoader extends SecureClassLoader类下的下面方法并定位到红色字位置
  protected Class<?> findClass(final String name)
throws ClassNotFoundException
  {
try {
return (Class)
AccessController.doPrivileged(new PrivilegedExceptionAction() {
public Object run() throws ClassNotFoundException {
String path = name.replace('.', '/').concat(".class");
Resource res = ucp.getResource(path, false);
if (res != null) {
try {
return defineClass(name, res, true);
} catch (IOException e) {
throw new ClassNotFoundException(name, e);
}
} else {
throw new ClassNotFoundException(name);
}
}
}, acc);
} catch (java.security.PrivilegedActionException pae) {
throw (ClassNotFoundException) pae.getException();
}
  }
求正解,缺少jar包吗,第一次用ivy,但我已经用ant发布了jar包,并正常启动没问题。

------解决方案--------------------
还没碰到过这样的问题、
throw new ClassNotFoundException(name);
我觉得可以看下是哪个类没找到、在到网上搜索下、
------解决方案--------------------
应该是class没有加载进来报的错,可是你的正常启动时正常的,是不是加载的问题的问题?lz看看你的代码。或者把log贴出来。
  相关解决方案