sun.reflect.annotation.TypeNotPresentExceptionProxy error when deploy web-ear

后端 未结 7 504
说谎
说谎 2020-12-17 07:20

When I try to deploy ejd-ear, web-ear on to glassfish server. I added an ejb client dependency in web project. The ejb-ear deploys successfully. But when I try to deploy web

相关标签:
7条回答
  • 2020-12-17 08:22

    We actually just ran into the same Exception. We have a project that we currently transfer from Java to Kotlin. In the project, all test classes were written in Kotlin and therefore we named the folder src/test/kotlin. We also configured our pom according to the 'Compiling Kotlin and Java sources' section in the Kotlin documentation.

    What we had forgotten was the test directory definition described in the ' Compiling Kotlin only source code' section:

    <build> <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory> </build>

    It has also been a bit confusing that the IntelliJ auto compilation compiled all test classes as required and afterwards also the maven build was successful. Only after a mvn clean test the TypeNotPresentExceptionProxy occurred.

    0 讨论(0)
提交回复
热议问题