aspose file tools*
The moose likes Websphere and the fly likes Archive is not a valid WAR File because the deployment descriptor not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Archive is not a valid WAR File because the deployment descriptor not found" Watch "Archive is not a valid WAR File because the deployment descriptor not found" New topic
Author

Archive is not a valid WAR File because the deployment descriptor not found

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
I am using RAD 7 and WPS 6.0.
When i publish my application, it's giving me the error :

com.ibm.etools.j2ee.commonarchivecore.exception.OpenFailureException: IWAE0006E Archive is not a valid WAR File because the deployment descriptor can not be found (case sensitive): WEB-INF/web.xml

The entire stack trace is as follows :


Also @ location
C:\Sandeep Vaid\Workspaces\Amita_WAR_Problem\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\JVMKS5EAR.ear\WAB2.5Engine.war

There is no WEB-INF directory....
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Hi Sandeep,

The error itself is pretty describing in nature. com.ibm.etools.j2ee.commonarchivecore.exception.DeploymentDescriptorLoadException: -> it is getting failed in loading the DD.

You forget about the temp folder where it gives since it is the lcoation WAS uses when it deploys the application. It must be like the web.xml file is absent in the WEB-INF folder of the war file.

Can you just check that?


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Nilabhra Banerjee
Ranch Hand

Joined: Mar 17, 2004
Posts: 34
I am facing the same problem. I have the WAR inside EAR and the Web xml is pretty much htere where it is supposed to be.
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

Also check whether the XMI files in WEB-INF are correct, especially the references, since WAS uses them to augment the information in the web.xml file.

What�s the fixpack level of your WebSphere server?
Darshan Shroff
Greenhorn

Joined: Nov 25, 2009
Posts: 12

Hi All,

Please have a look at the below link :-
http://www-01.ibm.com/support/docview.wss?uid=swg21255956

The suggested solution works like a charm.
One needs to just delete the unwanted entry from file org.eclipse.wst.common.component present at MyProject/.settings/

Regards,
Darshan Shroff
shroffdarshan@gmail.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Archive is not a valid WAR File because the deployment descriptor not found