servlet调用 hibernate中的一个类存数据,在hibernate中自定义了一个函数如下: public static void beginTransaction() {
System.out.println("begin tx");
Transaction tx = (Transaction) tLocaltx.get();
try {
if (tx == null) {
tx = getSession().beginTransaction();[/color]
tLocaltx.set(tx);
}
} catch (HibernateException e) {
//throw new InfrastructureException(e);
}
} 断点跟踪,执行到 tx = getSession().beginTransaction(); 时出了问题
弹出一个名为:class file editor的文件框,其中提示如下: source not found
the jar file hibernate3.jar has no source attachment
you can attach the source by clicking attach source below: 不知道是什么原因。本项目在别的机器上执行时没有问题的,考到本机器上执行就报上述错误。怀疑可能是本机器
eclipse环境变量哪的配置出了问题,或者少加了啥包之类的,被这个问题折腾了好久,怎么试都不行,哪位高手指点一下,
不胜感激
System.out.println("begin tx");
Transaction tx = (Transaction) tLocaltx.get();
try {
if (tx == null) {
tx = getSession().beginTransaction();[/color]
tLocaltx.set(tx);
}
} catch (HibernateException e) {
//throw new InfrastructureException(e);
}
} 断点跟踪,执行到 tx = getSession().beginTransaction(); 时出了问题
弹出一个名为:class file editor的文件框,其中提示如下: source not found
the jar file hibernate3.jar has no source attachment
you can attach the source by clicking attach source below: 不知道是什么原因。本项目在别的机器上执行时没有问题的,考到本机器上执行就报上述错误。怀疑可能是本机器
eclipse环境变量哪的配置出了问题,或者少加了啥包之类的,被这个问题折腾了好久,怎么试都不行,哪位高手指点一下,
不胜感激
将鼠标焦点放到String这个单词中间,按"F 3"按钮,你就看到效果了。
而没有.java文件。所以你不能看String类的具体实现。断点是按"F 6"进入下一步的吧,不知道你怎么按成"F 3"了。
还是谢谢各位