简体   繁体   中英

Java Enterprise GlassFish Server Error

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

  1. UnDeploy war1.war
  2. Deploy war1.war
  3. Deployment failure due to the above error

Workaround

  1. Stop domain
  2. Clean glassfish\\domains\\domain1\\applications
  3. Start domain
  4. Deploy now.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM