How to propagate .java file change to .class under eclipse, tomcat & stripes
Posted
by BigBourin
on Stack Overflow
See other posts from Stack Overflow
or by BigBourin
Published on 2010-03-29T23:06:31Z
Indexed on
2010/03/29
23:13 UTC
Read the original article
Hit count: 405
Hi, i'm new to java and i got some problems. i'm developping a web application using the framework stripes on tomcat 6.0. I'm working with eclipse EE on windows. i successfully managed to get the stripes example application (called Bugzooky) up and running on my tomcat server. I imported the .war file and stripes libs in Eclipse. Here is the stripes archive containing the examples and libs
But now i'm trying to change the example source files to learn how does it work. but whatever the modification made to the source files "WebContent/WEB-INF/src/*.java", nothing change! even after restarting the server. i noticed that the classes are compiled into .class files in the "ImportedClasses" folder, and tomcat always use these files, they are never updated, and if i removed one of them, the application just don't start. it look like my source files don't exists!
I also tried to build my webapp from scratch, but when i tried to use the features used in the example files (like SecurityFilter.java):
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import ...
It ends up with plenty of:
the import javax.servlet.Filter cannot be resolved
I checked the Librairies and it look like i'm using exactly the same as the example.
It's probably something i didn't understood about java but i googled 100 times yesterday, and i can't find the solution (i probably didn't search the right place because i don't really understand my problem).
I hope you'll be able to help me.
© Stack Overflow or respective owner