jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying Ear in tomcat" Watch "Deploying Ear in tomcat" New topic

Deploying Ear in tomcat

Fawad Ali
Ranch Hand

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

Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 115
Thanks Nitin.
I agree. Here's the link: http://aspose.com/file-tools
subject: Deploying Ear in tomcat
It's not a secret anymore!