4
votes

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.

2
Have you checked the server.log?Elliott Frisch
yes. I try to put it here but i can't because it was to much code and less descriptionuser2964680

2 Answers

4
votes

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.
0
votes

Be sure you have your persistence xml loaded in your classpath. in Intellij just add it manually through project structure.