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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -