Two Laptop Bag*
The moose likes Websphere and the fly likes Error in Loading WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Error in Loading WAR file" Watch "Error in Loading WAR file" New topic
Author

Error in Loading WAR file

Venkat Ammisetty
Ranch Hand

Joined: Nov 25, 2000
Posts: 42
Hi
I hava an EAR file for my application,when I am loading that EAR file using Application Assembly tool I got the following error
addForPast failed:com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:WEB-INF/web.xml
The jar file in the Ear file is loaded perfectly,but the WAR is creating Exception like the above when loading it.
please help me how to load this application.
Is there any other way to deploye EAR file directly,as we do in JBOSS.
Thank's in advance
waiting for your suggestions
venkat


Venkat Ammisetty
Gary Craig
Author
Greenhorn

Joined: Aug 10, 2001
Posts: 16
Could you provide more details?
Here are some comments based on your note however:
1) AAT is not used to install an application. Installation is done either from the Admin Console (Web console for AEs, Application console for AE); or using SEAppInstall.bat for AEs (command line). This will be similar to what you do with JBoss.
2) AAT is needed if you need to modify the .ear file.
3) What did you use to build the .ear file in the first place? Is it fully compliant with the FCS of J2EE V1.2? You may want to use AAT to construct "new" WAR and EAR files.
Good luck.
------------------
Gary Craig,
Author of Enterprise Java (tm) Programming with IBM Websphere


Gary Craig,<br />Author of <a href="http://www.amazon.com/exec/obidos/tg/detail/-/032118579X/qid=1060361076/sr=1-11/ref=sr_1_11/102-0063041-4226517?v=glance&s=books" target="_blank" rel="nofollow">Enterprise Java (tm) Programming with IBM Websphere, 2nd edition</a><br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182116/qid=1060361262/sr=1-30/ref=sr_1_30/102-0063041-4226517?v=glance&s=books" target="_blank" rel="nofollow">Introduction to Web Application Development with IBM Websphere Studio (Certification Guide, Test 285)</a>
Venkat Ammisetty
Ranch Hand

Joined: Nov 25, 2000
Posts: 42
Thank's for reply
The EAR file was created using a batch file written by me according to my application.It is having 53 EJB's(52 of them are stateless beans and one is stateful,no entity beans).
It was deployed perfectly in WebLogic 5.1 and Jboss+Tomcat servers with little modifications according to server specific XML file.In both the servers the application is running,we don't have any problem.Now I tried to deploye the same application in WebSphere 4.0.Any way stright away we can't deploye the same EAR file created in WebLogic and Jboss.For that I used Application Assembler tool to modify the EAR file according to WebSphere 4.0.And I used ADMIN console in browser to deploye the EAR file.It is deployed now.
But one thing is I have 53 EJB's and almost 200 front end pages(JSP,js,HTML and some images).
When I am createing EAR file through batch file I just moved all the content into WAR file spacifying deployment descriptor in Web.xml .
Now I am using AAT for building WAR or EAR file.From this tool I am adding my components one by one.How long it will take to add more than 100 JSP files by adding like this.
If you have any method to add all the front end stuff, please let me know.
The whole thing happend because the same WAR file which I created and deployed in WEbLogic and Jboss+tomcat is not deployed here in WebSphere.But one thing is it took the jar file which is part of EAR file and loaded with out any problem.
Please show me a way to create EAR file(JAR+WAR) quickly as I did in other servers.
Now I am able to deploy the EAR file and could not able to access it.From ADMIN it is showing application is running.
The application(CRM) name is some thing like GITCRM.ear
It is created a folder in installedapps with that name.And now I need an URL to access it.
I am trying out with diff URL's(trail and error methods)
ex:http://localhost/WebShereSamples/GITCRM/index.jsp http://localhost:9080/WebShereSamples/GITCRM/index.jsp
what URL I have to use to acces my application.
I am very thankful if you clearafy my boudts as I mentioned above.And one thing I for got tell you is my OS it is Windows 2000.
Thank's a lot for reding all this and EAGERLY waiting for your reply.
waiting waiting ......
venkat
Venkat Ammisetty
Ranch Hand

Joined: Nov 25, 2000
Posts: 42
Thank's for reply
The EAR file was created using a batch file written by me according to my application.It is having 53 EJB's(52 of them are stateless beans and one is stateful,no entity beans).
It was deployed perfectly in WebLogic 5.1 and Jboss+Tomcat servers with little modifications according to server specific XML file.In both the servers the application is running,we don't have any problem.Now I tried to deploye the same application in WebSphere 4.0.Any way stright away we can't deploye the same EAR file created in WebLogic and Jboss.For that I used Application Assembler tool to modify the EAR file according to WebSphere 4.0.And I used ADMIN console in browser to deploye the EAR file.It is deployed now.
But one thing is I have 53 EJB's and almost 200 front end pages(JSP,js,HTML and some images).
When I am createing EAR file through batch file I just moved all the content into WAR file spacifying deployment descriptor in Web.xml .
Now I am using AAT for building WAR or EAR file.From this tool I am adding my components one by one.How long it will take to add more than 100 JSP files by adding like this.
If you have any method to add all the front end stuff, please let me know.
The whole thing happend because the same WAR file which I created and deployed in WEbLogic and Jboss+tomcat is not deployed here in WebSphere.But one thing is it took the jar file which is part of EAR file and loaded with out any problem.
Please show me a way to create EAR file(JAR+WAR) quickly as I did in other servers.
Now I am able to deploy the EAR file and could not able to access it.From ADMIN it is showing application is running.
The application(CRM) name is some thing like GITCRM.ear
It is created a folder in installedapps with that name.And now I need an URL to access it.
I am trying out with diff URL's(trail and error methods)
ex:http://localhost/WebShereSamples/GITCRM/index.jsp http://localhost:9080/WebShereSamples/GITCRM/index.jsp http://localhost:9080/GITCRM/index.jsp
I made index.jsp as welcome file.
what URL I have to use to acces my application.
I am very thankful if you clearafy my boudts as I mentioned above.And one thing I for got tell you is my OS it is Windows 2000.
Thank's a lot for reding all this and EAGERLY waiting for your reply.
waiting waiting ......
venkat
Venkat Ammisetty
Ranch Hand

Joined: Nov 25, 2000
Posts: 42
Thank's for reply
The EAR file was created using a batch file written by me according to my application.It is having 53 EJB's(52 of them are stateless beans and one is stateful,no entity beans).
It was deployed perfectly in WebLogic 5.1 and Jboss+Tomcat servers with little modifications according to server specific XML file.In both the servers the application is running,we don't have any problem.Now I tried to deploye the same application in WebSphere 4.0.Any way stright away we can't deploye the same EAR file created in WebLogic and Jboss.For that I used Application Assembler tool to modify the EAR file according to WebSphere 4.0.And I used ADMIN console in browser to deploye the EAR file.It is deployed now.
But one thing is I have 53 EJB's and almost 200 front end pages(JSP,js,HTML and some images).
When I am createing EAR file through batch file I just moved all the content into WAR file spacifying deployment descriptor in Web.xml .
Now I am using AAT for building WAR or EAR file.From this tool I am adding my components one by one.How long it will take to add more than 100 JSP files by adding like this.
If you have any method to add all the front end stuff, please let me know.
The whole thing happend because the same WAR file which I created and deployed in WEbLogic and Jboss+tomcat is not deployed here in WebSphere.But one thing is it took the jar file which is part of EAR file and loaded with out any problem.
Please show me a way to create EAR file(JAR+WAR) quickly as I did in other servers.
Now I am able to deploy the EAR file and could not able to access it.From ADMIN it is showing application is running.
The application(CRM) name is some thing like GITCRM.ear
It is created a folder in installedapps with that name.And now I need an URL to access it.
I am trying out with diff URL's(trail and error methods)
ex:http://localhost/WebShereSamples/GITCRM/index.jsp http://localhost:9080/WebShereSamples/GITCRM/index.jsp http://localhost:9080/GITCRM/index.jsp
what URL I have to use to acces my application.
My ContextRoot is crm
And one final doubt is I am using INITIAL_CONTEXT_FACTORY as com.ibm.Websphere.naming.WsnInitialContextFactory
is that correct.
Do we have to import any special IBM package to recognize that context?
I am very thankful if you clearafy my boudts as I mentioned above.And one thing I for got tell you is my OS it is Windows 2000.
Thank's a lot for reding all this and EAGERLY waiting for your reply.
waiting waiting ......
venkat
Venkat Ammisetty
Ranch Hand

Joined: Nov 25, 2000
Posts: 42
Hai
I am able to deploy my application.
Now it is running but i am getting error in Initial Context Factory.
I am using INITIAL CONTEXT FACTORY as
com.ibm.Websphere.naming.WsnInitialContextFactory
The server is giving the following error
java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
Do I need to import any IBM specific file to overcome this error?
Or the some thing wrong in INITIAL CONTEXT FACTORY
Need Help
Bye
Venkat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in Loading WAR file