Tmocat .ear question

Panagiotis Astithas past at ebs.gr
Mon Aug 8 16:15:47 GMT 2005


Bryan Maynard wrote:
> Hello all! I ahve a simple question: how do I deploy an EAR in Tomcat 
> 5.0? I read through Tapestry in action and would like to give the 
> Virtual Library application a spin. I ran the Ant build spript and 
> a .ear file was created. I then dropped the .ear file into my 
> ${CATALINA_BASE}/webapps directory. This is different from my 
> ${CATALINA_HOME}/webapps directory. Jan Grant gave me the following 
> script:
> 
> [[
> #!/bin/sh
> 
> CATALINA_HOME=/usr/local/jakarta-tomcat5.0
> CATALINA_BASE=/home/Bryan/tomcat50
> JAVA_OPTS="-Xss4m -Djava.awt.headless=true"
> JAVA_HOME=/usr/local/jdk1.4.2
> 
> export CATALINA_HOME CATALINA_BASE
> export JAVA_OPTS JAVA_HOME
> 
> cd "$CATALINA_BASE"
> exec "$CATALINA_HOME"/bin/catalina.sh $1
> ]]
> 
> This is what I use to start Tomcat.
> 
> Thanks in advance for your help. I've learned a lot from these lists 
> already :-)
> 
> Bryan

I don't know about this particular application, but you deploy war files 
on servlet containers, not ear files. Perhaps your build script has 
another target just for creating a war. Otherwise you could install an 
application server, like jboss and deploy your ear there.

Cheers,

Panagiotis


More information about the freebsd-java mailing list