java - Web project doesn't run on server if a dependent project is opened in eclipse -
i'm developing web application eclipse 4.4.2, maven , tomcat v7.0. application consists of
- appsuite (
<packaging>pom</packaging>) - appmodel (
<packaging>jar</packaging>, has auto-generated classes) - appuserinterface (
<packaging>war</packaging>, depends on appmodel)
appuserinterface , appmodel modules of appsuite.
the issue i'm facing if have 3 projects opened in eclipse , try run appuserinterface on server, gets moved tomcat webapps folder correctly (*.class files of appuserinterface , libs including appmodel.jar) tomcat throws exception
java.lang.noclassdeffounderror: com/app/model/classname but if close project appmodel in eclipse runs fine when run appuserinterface on server.
i suspect eclipse becomes confused if appuserinterface shall work local appmodel.
any thoughts resolve error, can have 3 projects open @ same time , still run appuserinterface?
edit: java.lang.noclassdeffounderror: com/app/model/classname class not auto-generated class.
added bounty , 2 mins later found solution ...
the solution anwser of rmtheis in topic strange "java.lang.noclassdeffounderror" in eclipse hadn't found until . simple project->clean... solved issue somehow.
Comments
Post a Comment