Reputation: 23587
I tried everything what came to my mind, but somehow things are not working out.I created two projects using maven
Initially i was using Maven command line (not eclipse) to build my java application by
mvn > install
and was using
mvn >eclipse:clean
and mvn > eclipse:eclipse
to update dependencies.Things was working fine.Now i want to debug my Java-application (jar) inside web-application, so i stopped using maven build process and added my java application to project tab under configure build path
.
I tried cleaning, building my web-application but somehow Tomcat is picking old file of my java application. I even cleared my Eclipse tomcat work directory and redeployed application but for no use.
Can anyone point me where i am doing wrong.
I am using Eclipse Kepler Release version
with embedded maven plugin.
Upvotes: 1
Views: 2475
Reputation: 433
In case anyone is having a similar issue, I will share the procedure that I followed to fix it. First, I must say that in my case the changes in the java files were properly updated (which means it were compiled and properly copied to the deploy path). However, the resource files, such as property files, were not updated.
With the following procedure I managed to get the files updated properly, and might solve similar issues.
It is a very tedious process, but if the steps are not reproduced properly it will probably not work.
Upvotes: 3
Reputation: 328604
The usual culprits:
context.xml
for your app).[EDIT] Try to load one of the offending classes with ClassLoader.getResources()
(see this question). That gives you the absolute path which Tomcat uses to load the classes.
Upvotes: 0
Reputation: 777
Try the following:
Upvotes: 0