wood burning stoves 2.0*
The moose likes Websphere and the fly likes exception and error while importingwar in websphere applicationserver6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "exception and error while importingwar in websphere applicationserver6" Watch "exception and error while importingwar in websphere applicationserver6" New topic
Author

exception and error while importingwar in websphere applicationserver6

durga ramakrishnan
Greenhorn

Joined: Jul 30, 2007
Posts: 14
hi,
iam working with websphere application server6....when i try to import war file of my project containing html,javascript,servlets and session bean into web sphere i am getting error that "file corrupted and incomplete"and "exception"..........iam new to web sphere application server...i dont know how to work with it...iam getting problems to connect database oracle with web sphere...can any one help me ragarding this.........
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

How can a war file have a session bean?

Is your application partitioned propertly? A session bean should be in a J2EE Jar file, and the whole thing should be encapsulated in a waxy ear.

Could that be the issue?

-Cameron McKenzie
durga ramakrishnan
Greenhorn

Joined: Jul 30, 2007
Posts: 14
Thanks Cameron.
can you please tell me what are the files should be included in the waxy ear file for web sphere application server...i have created ear file only for web logic server with jar containing META-INF(weblogic-ejb-jar.xml and ejb-jar.xml), war files and application.xml files
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

Durga,
An EAR file is packaged the same way for WebSphere or WebLogic. The ear you described had an ejb-jar (the one containing the ejb-jar.xml file), a war file and an application.xml. The weblogic-ejb-jar.xml file is WebLogic specific. You can apply the settings in there through the admin console of WebSphere once you've deployed.

Cameron,
I've never heard the phrase "waxy ear". Does this stand for something or was it meant to describe something?


[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
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Am I the only one who understood that "waxy ear" was a joke? ... as in ear wax. Gross.. but still funny.


Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: exception and error while importingwar in websphere applicationserver6