您的位置:首页 > 编程语言 > ASP

Jasper Report Server operationnotsupportedexception context is read only

2014-07-10 15:42 113 查看
1. Environment

Windows 7 Professional 64-bit, jasper-server-5.6-x64, Tomcat 7, MySQL 5

2. Problem Description

When starts Tomcat 7, encounters this always:



3. Analysis:

Jasper server tries to bind sessionfactory to JNDI, but Tomcat 7's JNDI is read only, so the exception occurs.

4. Solution

As reference 1 says: Try adding a file named resfactory.properties under WEB-INF/classes containing the following line:

tbeller.usejndi=false

Meanwhile, attention, please make sure there is no JNDI configuration named 'jdbc/jasperserver' in your Tomcat's server.xml and context.xml, otherwise, you would encounter sessionFactory null error.

5. Reference

5.1 http://community.jaspersoft.com/questions/822153/error-closing-context
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐