I have 2 java projects, one is in C:/test/ProjectA and another is C:/test/ProjectB
Under projectA and ProjectB i have sub projects.
I mainly work on ProjectB and import the jar of ProjectA in eclipse.
Now I have removed jar file of ProjectA reference through eclipse and import projects to workspace, added projects under java build path. clean and build project. no compilation error in eclipse.
when i do this, one of the class file is not getting loaded while server startup:
07-Sep-2011 09:28:03 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\project\europa\NOS-OCT-TEST\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ESW\WEB-INF\lib\javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
NOS 0 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ESW] - Error configuring application listener of class com.bgc.ecm.core.web.listener.Log4jRemappingListener
java.lang.ClassNotFoundException: com.bgc.ecm.core.web.listener.Log4jRemappingListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
when i add relevant jar file to the project and do a clean build server is getting started as expected.
But my changes are not reflecting since it is referring old jar file.
I am using Tomcat server as development environment.
What i want is instead of refering jar file in eclipse, add projects so that the new changes should reflect the changes without ant build for creating jar file and instead only with eclipse build with source code of the dependent project and run the application.