Error deploy .war in glassfish

hi, i want to ask when deploying a .war file i get this error :

remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: 'other' is different type of Path. Please see server.log for more details.
Command deploy failed.

I’m using :

  • Vaadin 14
  • Glassfish server 5.1.0
  • Java 1.8.0_181

Hi, I have exactly the same problem with:

  • Vaadin 14
  • Tomcat 8.5.45
  • Java 1.8.0_221

Hi, I have the same problem:

  • Vaadin 14
  • Wildfly 17.0.1 / Tomcat 9.0.24
  • Java 11.0.4

Problem solved!

So for those who experiences same problem here is the steps to make WAR in Eclipse:

  1. Right click on a project
  2. Choose Run As-> Maven build…
  3. Put in Goals: package -Pproduction
  4. Click Run

After all you can find your WAR in %eclipse-workspase-folder%\target\

wow thanks Sergey Belinskiy, my problem solved
in netbeans :

  1. Right click on a project
  2. Choose Run Maven-> Goals
  3. Put in Goals: package -Pproduction
  4. Click ok

Thanks Sergey Belinskiy. Problem solved in InteliJ IDEA check option in Maven toolbar.

17834639.png

Thanks Sergey Belinskiy.Problem solved too.

Choisissez Exécuter Maven-> Objectifs
Mettre en objectifs: package -production