Skip to content

singamreddy/MorphiaMapPackageIssue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morphia mapPackage Issue - Not able to scan .war

Sample application to reproduce issue: MorphiaOrg/morphia#1153

Build the project and execute it.

mvn clean package
java -jar target/morphiamapwar-0.0.1-SNAPSHOT.war

Log shows TestModel.class is not mapped.

 INFO 78344 --- [main] com.test.MorphiamapwarApplication : morphia.isMapped(TestModel.class) = false

This log statement is printed from https://github.com/singamreddy/MorphiaMapPackageIssue/blob/master/src/main/java/com/test/MorphiamapwarApplication.java#L22

If same is executed without .war packaging as below, then Morphia is able to map the class.

mvn clean spring-boot:run
INFO 89473 --- [main] com.test.MorphiamapwarApplication  : morphia.isMapped(TestModel.class) = true

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published