I have an enterprise java project. Everything was fine until I have this error
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.jboss.weld.servlet.WeldListener. Please see server.log for more details.
I don't know what this means. I restart the server, the computer and this error still appear.
I had the same issue,
Cause of Error
Workaround
Be sure you have your persistence xml loaded in your classpath. in Intellij just add it manually through project structure.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.