glassfish "Could not find sub module [business-web-1.0-SNAPSHOT.war] as defined in application.xml"
Asked Answered
A

2

8

application.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
  <display-name>business-ear</display-name>
  <module>
    <web>
      <web-uri>business-web-1.0-SNAPSHOT.war</web-uri>
      <context-root>business</context-root>
    </web>
  </module>
</application>

filepath c:\glassfish3\glassfish\domains\domain1\autodeploy\business.ear\

structure business.ear ->

META-INF business-web-1.0-SNAPSHOT.war

please, help me!

Accident answered 18/3, 2013 at 19:52 Comment(0)
A
16

I'm having this issue also I start getting it after I upgraded to the version 3.1.2.2. I have a solution but it sometimes happens that this error appears again, I believe it's related to Glassfish holding stale app data.

  1. Go to your glassfish domain folder -> glassfish3\glassfish\domains\domain1\applications\

  2. Check inside your applications folder and inside your app folder you will find a file called ".glassfishStaleFiles"

  3. Open this file with a text editor, see which jar library Glassfish has listed on the last line of the file.

  4. Update this dependency (using maven or other tool)

  5. clean the applications folder.

  6. Build everything again.

Hope this helps

Antagonistic answered 25/4, 2013 at 21:4 Comment(1)
I had the same problem and followed your solution but couldn't find any file called glassfishstalefilesSportive
H
0

Delete manually all the subfolders of the "applications" folder

Huntley answered 9/12, 2021 at 4:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.