异常处理
hellostory
这个作者很懒,什么都没留下…
展开
-
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
<br />解决方法:<br /> 将applicationContext.xml中的数据源配置:<br /> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>jdbc/SLOA2010</value> </property> </bean><br /> <br /> 改为:<br /原创 2010-12-08 11:34:00 · 4811 阅读 · 1 评论 -
WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
错误现象: 每次启动Tomcat6.0总会出现如下提示,但不影响Tomcat正常运行。提示如下: log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org原创 2010-12-10 09:34:00 · 26352 阅读 · 2 评论 -
Eclipse“警告: 编码 GBK 的不可映射字符”的解决方法
在Eclipse菜单中做如下设置: project -> Generate javadoc ->按“Next”一步步设置。其中在VM设置中加入以下代码: -encoding utf-8 -charset utf-8原创 2010-12-10 10:04:00 · 9509 阅读 · 0 评论 -
Failed to load keystore type JKS with path tomcat.keystore due to D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tm
<br />现象:使用Eclipse Helios 3.6启动Tomcat出现如下错误:<br />=============================================<br />2011-1-30 10:13:12 org.apache.tomcat.util.net.jsse.JSSESocketFactory getStore<br />严重: Failed to load keystore type JKS with path tomcat.keystore due to D:原创 2011-01-30 10:20:00 · 14880 阅读 · 0 评论 -
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transac
first of all if you want to use getcurrentSession() method you need to add these properties to HibernateProperties:thre adorg.hibe rnate.transaction.JDBCTransactionFactory添加后如下:原创 2011-02-12 14:38:00 · 10463 阅读 · 1 评论