Hello Everyone,
I've been developing a webapplication with a special server backend.
The basic architecture is a webapplication running in a tomcat with database connection as usual and a server backend application that uses the same domain classes.
It accepts incoming connections from remote clients and writes into the same database, the webapplication uses to present the data.
After I have maintained the same classes in both projects I decided to extract the domain classes into a seperate (roo project) and include the dependency (scope: compile) via maven in the two other projects.
While that works fine with the webapplication the backend application doesn't seem to be able to use the classes in runtime. Compiling with maven install works fine though.
Starting the application results in the following error:
Does anybody happen to have an idea, where the problem may be or how else this could/should be realized?Code:[EL Info]: 2012-02-14 11:19:30.735--ServerSession(1472770637)--EclipseLink, version: Eclipse Persistence Services - 2.3.1.v20111018-r10243 [EL Info]: 2012-02-14 11:19:30.912--ServerSession(1472770637)--file:/C:/GIT Repository/Engeo/EngeoServer/target/classes/_persistenceUnit login successful [EL Warning]: 2012-02-14 11:19:30.932--The collection of metamodel types is empty. Model classes may not have been found during entity search for Java SE and some Java EE container managed persistence units. Please verify that your entity classes are referenced in persistence.xml using either <class> elements or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element Exception in thread "main" org.springframework.dao.InvalidDataAccessApiUsageException: Object: 2012-02-14 11:19:30 @ : is not a known entity type.; nested exception is java.lang.IllegalArgumentException: Object: 2012-02-14 11:19:30 @ : is not a known entity type.
thank you very much in advance
-tjr


Reply With Quote
