• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Deploying Ear in tomcat

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I was asked to deploy an ear file (previously running on Websphere) on tomcat server. After a little search, I found that I wont be able to deploy an ear file to tomcat. I have compiled a reply for my client but I want to be confirm of this whether I have compiled it correctly or not.

Tomcat is web a server while an ear file can be deployed to a full blown application server like JBoss or WebSphere. We can still convert an ear file deployment to a tomcat deployment if the ear file does not depend on any EBJ APIs. We will just have to take all the class files and libs and place in a directory in tomcat's webapps. But if the ear file depends on some EJB APIs, JBoss will be the only option, if we want to move from WebSphere.



Is this a correct reply? If not, please guide me in a right direction.
 
Ranch Hand
Posts: 129
Netbeans IDE Java Windows
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wrong choice, tomcat doesn't support the EE specs. It is only meant for web-apps.

But you are at luck, cause now Tomcat + javaEE = TomEE, is released which supports EE and hence you can deploy your ear in tomee.

http://openejb.apache.org/apache-tomee.html
 
Fawad Ali
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Nitin.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!