Hi Mark,
I still haven't fixed the sample on the wiki and the workaround I found is not the definitive way to do it but may help you momentarily.
This is a geronimo-web.xml I just successfully tested in Geronimo v1.1.1 with a single web application, I tried the HelloWorld sample.
This plan defines a new virtual host, web container and a single web connector on port 8081. Since the virtual host is "mapped" to the same host name as the default host you are not seeing any particular benefit from the virtual host itself. This is not the prettiest way to configure it but it work for now ;-)
I'll look for the right way to do it and then will update the sample on the wiki.
samples.applications
HelloWorldApp
1.1
/hello1
TomcatWebContainer1
HTTP
localhost
8081
8192
150
25
75
false
8453
100
20000
false
TomcatWebContainer1
var/catalina
TomcatEngine1
ServerInfo
TomcatWebManager
org.apache.geronimo.tomcat.TomcatEngine
name=Geronimo1
TomcatHost1
TomcatHost1
TomcatJAASRealm
org.apache.catalina.core.StandardHost
name=localhost
appBase=
workDir=work
Cheers!
Hernan
Mark Bradley wrote:
> I'm still stuck on this, and unfortunately I cannot deploy my
> applications in production with Geronimo until I get this working.
>
> Has anyone been able to deploy two different applications to two
> different tomcat connectors in the same Geronimo instance? As shown
> below, the example on the wiki does not work!
>
> Thanks,
>
> -Mark
>
>> Well, I thought that I might be able to take the example in wiki
>> (http://cwiki.apache.org/GMOxDOC11/exposing-web-applications-on-
>> distinct-ports.html) and whittle it down to what I need, but I can't
>> even deploy the example .ear( appPerPort.ear). I get this error:
>>
>> geronimo-1.1.1% java -jar bin/deployer.jar deploy appPerPort.ear
>>
>> Error: Unable to distribute appPerPort.ear: Cannot deploy the
>> requested application module because no deployer is able to handle
>> it. This can happen if you have omitted the J2EE deployment
>> descriptor, disabled a deployer module, or if, for example, you are
>> trying to deploy an EJB module on a minimal Geronimo server that
>> does not have EJB support installed.
>>
>> (moduleFile=/Users/mark/Programs/geronimo-1.1.1/var/temp/
>> geronimo-deployer4506.tmpdir/appPerPort.ear)
>>
>>
>> and here is the stack trace in the log:
>>
>>
>> Deployer operation failed: Cannot deploy the requested application
>> module because no deployer is able to handle it. This can happen if
>> you have omitted the J2EE deployment descriptor, disabled a deployer
>> module, or if, for example, you are trying to deploy an EJB module on
>> a minimal Geronimo server that does not have EJB support installed.
>> (moduleFile=/Users/mark/Programs/geronimo-1.1.1/var/temp/geronimo-
>> deployer4504.tmpdir/appperport.ear)
>> org.apache.geronimo.common.DeploymentException: Cannot deploy the
>> requested application module because no deployer is able to handle it.
>> This can happen if you have omitted the J2EE deployment descriptor,
>> disabled a deployer module, or if, for example, you are trying to
>> deploy an EJB module on a minimal Geronimo server that does not have
>> EJB support installed. (moduleFile=/Users/mark/Programs/
>> geronimo-1.1.1/var/temp/geronimo-deployer4504.tmpdir/appperport.ear)
>> at org.apache.geronimo.deployment.Deployer.deploy (Deployer.java:239)
>> at org.apache.geronimo.deployment.Deployer.deploy (Deployer.java:124)
>> at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$
>> $734a235d.invoke()
>>
>> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>>
>> at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
>> (FastMethodInvoker.java:38) at
>> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
>> (GBeanOperation.java:122) at
>> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
>> (GBeanInstance.java:852) at
>> org.apache.geronimo.kernel.basic.BasicKernel.invoke
>> (BasicKernel.java:239) at
>> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDepl
>> oy(AbstractDeployCommand.java:106) at
>> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run
>> (DistributeCommand.java:60)
>>
>> at java.lang.Thread.run(Thread.java:613)
>>
>> Any ideas?
>
>
>