这是Tomcat启动时报错的一部分:
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
17:29:09,765 ERROR ContextLoader:205 - Context initialization failed
java.lang.IllegalArgumentException: Resource path [C:\Documents and
inistrator\妗岄潰] does not denote a directory
at org.springframework.core.io.support.PathMatchingResourceP
er.retrieveMatchingFiles(PathMatchingResourcePatternResolver.java:49
at org.springframework.core.io.support.PathMatchingResourceP
er.doFindMatchingFileSystemResources(PathMatchingResourcePatternReso
2)struts-cfg.xml配置如下:
<!-- 配置sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>
<!-- 配置事务管理器 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>
<!-- 配置事务特性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice> <!-- 配置那些类的方法进行事务管理-->
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution (* com.jgala.control.dao.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>说明:我用的是string+struts+hibernat 框架,我在Myeclips开发环境下启动不报错,但是单独启动Tomcat服务就报以上错误,很是郁闷,请大侠帮帮忙分析一下,不胜感激.
信息: Starting Servlet Engine: Apache Tomcat/6.0.13
17:29:09,765 ERROR ContextLoader:205 - Context initialization failed
java.lang.IllegalArgumentException: Resource path [C:\Documents and
inistrator\妗岄潰] does not denote a directory
at org.springframework.core.io.support.PathMatchingResourceP
er.retrieveMatchingFiles(PathMatchingResourcePatternResolver.java:49
at org.springframework.core.io.support.PathMatchingResourceP
er.doFindMatchingFileSystemResources(PathMatchingResourcePatternReso
2)struts-cfg.xml配置如下:
<!-- 配置sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>
<!-- 配置事务管理器 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>
<!-- 配置事务特性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="save*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice> <!-- 配置那些类的方法进行事务管理-->
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution (* com.jgala.control.dao.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>说明:我用的是string+struts+hibernat 框架,我在Myeclips开发环境下启动不报错,但是单独启动Tomcat服务就报以上错误,很是郁闷,请大侠帮帮忙分析一下,不胜感激.
解决方案 »
- ibatis2.0的sqlmapclient不必关闭,为什么3.0的sqlsession需要关闭呢?
- 同一个页面的两个form该如何提交到不同的jsp页啊?
- 大家看看这样的异常一般是什么原因,谢谢(回帖还有异常)
- 我在利用POI生成excel文件时,如果同时生成多个excel,第一个excel的内容会保留。
- 新手提问!
- 哪位朋友有关于Java调试方面的资料?
- 怎么实现弹出小窗口的错误提示
- spring security 3.2 session问题
- 可以通过jsp访问rs232串口的数据吗?有没有人做过电子秤自动自动记录?
- axis发布webservice,无法注入dao
- 我有一个URL链接,如何用Javamail发送该链接的内容到邮箱,请高手帮忙
- struts2中struts.xml的配置问题,急!!!!!!!
inistrator\妗岄潰] does not denote a directory这路径中不能有中文字符,最好用全英文路径并不要空格