eclipse无法编译问题解决
?
eclipse无法编译问题解决
?
同事一不小心把.classpath文件入到svn中了,删除后,我这边一update,结果我本地的.classpath文件也就丢了。
虽然工程再次设置好种种环境路径,可是更改的文件无法进行编译,虽然表现上是在编译,但是并没有产生编译后的class文件。
?
工程右键 --> Build Path --> Config Build Path ,,, --> Source 便签下 将Default output folder 指定到 工程名/WebRoot/WEB-INF/classes
?
文件解决。
?
这个目录配置不对的话,也会报如下问题:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/spring-config/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-config/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [com/officeten/nms/acs/model/] cannot be resolved to URL because it does not exist