不是,是这行报错:context = new InitialContext(props);
单独测试都通过.我把这行加到web工程了.单独测也可以,换成jsp连接bean,就抱上面的错了.大家说,怎么回事呢?