This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Deploying Ear in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying Ear in tomcat" Watch "Deploying Ear in tomcat" New topic
Author

Deploying Ear in tomcat

Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 112
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.


Regards, Fawad Ali.
Software Engineer, Stafona Inc. - My Blog
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

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

Joined: Dec 28, 2009
Posts: 112
Thanks Nitin.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deploying Ear in tomcat
 
Similar Threads
can i deploy any ear/jar/war without admin console on websphere 6.1?
Hot deployment problem
Portable EAR
How to deploy/undeploy EJBs application through HOT Deployment on websphere 6.1?
tomcat vs websphere