aspose file tools*
The moose likes Websphere and the fly likes Deploying RAD 6 developed ear in WAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Deploying RAD 6 developed ear in WAS" Watch "Deploying RAD 6 developed ear in WAS" New topic
Author

Deploying RAD 6 developed ear in WAS

Kevin Cheong
Greenhorn

Joined: May 17, 2006
Posts: 10
I have a new project developed in RAD 6. I have WAS 5.12 on the server that I want to deploy to. Is this allowed?

Here's the error that I get:
The EAR file could be corrupt and/or incomplete.
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xml

This happens after I select the EAR file and hit next in the Admin Console. Anybody can tell me if what I'm trying to do is possible and if it is, what could be wrong?

Thanks.
Kevin Cheong
Greenhorn

Joined: May 17, 2006
Posts: 10
An update on this.. It seems that the application.xml file in the RAD 6 EAR file has some namespaces (which it doesn't even use). On the other hand, if I built a similar project in WSAD 5.12, I don't get that namespaces (in the application element of the application.xml file). If built using 5.12, I also get a doctype element which is not found if I build using RAD6. Could all this be due to a different J2EE version? 1.3 for WSAD 5.12 and 1.4 for RAD 6.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

Kevin,
Welcome to JavaRanch!

RAD can be used to developer J2EE 1.3 or 1.4 applications. If you have a J2EE 1.3 application, you can deploy it to WAS 5. Otherwise, you will need to use WAS 6.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kevin Cheong
Greenhorn

Joined: May 17, 2006
Posts: 10
Thanks Jeanne. That makes total sense and it must be the problem why I cannot deploy a J2EE 1.4 jar to WAS 5. Do you know if its possible to have WAS 5 and WAS 6 on the same machine? I know its possible with WSAD 5.12 and RAD 6 since I have both of them on my machine but I'm not sure if its possible for the 2 server applications to be on one machine.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

Yes, you can have WAS 5 and 6 on the same machine. Just make sure they are using different ports.
Kevin Cheong
Greenhorn

Joined: May 17, 2006
Posts: 10
Jeanne, I have another question I am hoping you can help with.

Can we deploy a WSAD 5.12 developed EAR to WAS 6? I'm guessing it should be fine since the EAR file follows the J2EE 1.3 specs?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

Originally posted by Kevin Cheong:
Can we deploy a WSAD 5.12 developed EAR to WAS 6? I'm guessing it should be fine since the EAR file follows the J2EE 1.3 specs?

Yes. You are correct.
Kevin Cheong
Greenhorn

Joined: May 17, 2006
Posts: 10
Thanks Jeanne! You've been great help.
David Ziebol
Greenhorn

Joined: May 31, 2006
Posts: 4
Odd, I'm getting the DeploymentDescriptorLoadException: META-INF/application.xml

I'm developing in Rad6 with jvm = 1.4 and deploying to was6...

Any idea why?

The content of the application.xml is:
David Ziebol
Greenhorn

Joined: May 31, 2006
Posts: 4
The rest of the application.xml
David Ziebol
Greenhorn

Joined: May 31, 2006
Posts: 4
Hmmm, trying one more time...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

David,
Welcome to JavaRanch! For the future, note that we encourage you to start a new thread for a new question. It makes things easier to follow.

I've noticed the error you described come up a few times. Try the following:
1) Check the modules referenced in the application.xml really exist. (this means the error message is correct and something really is wrong with the application.xml)
2) Try editing the application.xml to add a space and save the file. I've seen RAD need this nudging to re-run the validation and notice things are ok.
3) Try deleting the project and reimporting it.
 
Consider Paul's rocket mass heater.
 
subject: Deploying RAD 6 developed ear in WAS