• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in Loading WAR file

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Venkat Ammisetty
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic