You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by cvx22 <cv...@wp.pl> on 2008/07/09 11:59:09 UTC

Multiple 'Service' in GMO 2.1 (like in Tomcat)

Hi gurus,
  I plan to migrate my web-apps from Tomcat6 to Geronimo2.1. I have one
configuration problem. In my tomcat's server.xml I have declared two
Service, like that:

--- part of server.xml -----------------------------------------
 <Service name="Catalina">
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" ..[]>
...
   </Connector>
</Service>

<Service name="Catalina2">
    <Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true" ..[]>
...
   </Connector>
</Service>
--- end part of server.xml -----------------------------------------

With that configuration I have two servlet containers under one Tomcat, so I
have different applications for each of them.

How can I make the same in Geronimo???

thanks for help,
-- 
View this message in context: http://www.nabble.com/Multiple-%27Service%27-in-GMO-2.1-%28like-in-Tomcat%29-tp18358099s134p18358099.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Multiple 'Service' in GMO 2.1 (like in Tomcat)

Posted by cvx22 <cv...@wp.pl>.
Thanks Kevan,
  I read information from you and given sample.
  I spend few hours editing var/config/config.xml file and now it worked for
me. I don't use ear, and it works good.

best regards
artur

there is basic configuration for sencond Container:
----
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=Host,name=PortaHost"
gbeanInfo="org.apache.geronimo.tomcat.HostGBean">
            <attribute
name="className">org.apache.catalina.core.StandardHost</attribute>
            <attribute name="initParams">name=${ServerHostname}
				appBase=
				workDir=workPorta</attribute>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaEngine"
gbeanInfo="org.apache.geronimo.tomcat.EngineGBean">
            <attribute
name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
            <attribute name="initParams">name=Porta</attribute>
            <reference name="DefaultHost">
                <pattern>
                    <name>PortaHost</name>
                </pattern>
            </reference>
            <reference name="TomcatValveChain">
                <pattern>
                    <name>PortaAccessLogValve</name>
                </pattern>
            </reference>
            <reference name="RealmGBean"/>
            <reference name="MBeanServerReference"/>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaWebManager"
gbeanInfo="org.apache.geronimo.tomcat.TomcatManagerImpl"/>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaWebConnector"
gbeanInfo="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
            <attribute name="name">HTTP</attribute>
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">8080</attribute>
            <attribute name="maxHttpHeaderSize">8192</attribute>
            <attribute name="maxThreads">300</attribute>
            <attribute name="minSpareThreads">25</attribute>
            <attribute name="maxSpareThreads">300</attribute>
            <attribute name="enableLookups">false</attribute>
            <attribute name="redirectPort">8443</attribute>
            <attribute name="acceptCount">100</attribute>
            <attribute name="connectionTimeout">20000</attribute>
            <attribute name="disableUploadTimeout">true</attribute>
            <attribute name="maxSavePostSize">2097152</attribute>
            <reference name="TomcatContainer">
                <pattern>
                    <name>PortaWebContainer</name>
                </pattern>
            </reference>
            <reference name="ServerInfo">
                <pattern>
                    <name>ServerInfo</name>
                </pattern>
            </reference>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaWebContainer"
gbeanInfo="org.apache.geronimo.tomcat.TomcatContainer">
            <attribute name="catalinaHome">var/catalina</attribute>
            <reference name="EngineGBean">
                <pattern>
                    <name>PortaEngine</name>
                </pattern>
            </reference>
            <reference name="ServerInfo">
                <pattern>
                    <name>ServerInfo</name>
                </pattern>
            </reference>
            <reference name="WebManager">
                <pattern>
                    <name>TomcatWebManager</name>
                </pattern>
            </reference>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=TomcatValve,name=PortaAccessLogValve"
gbeanInfo="org.apache.geronimo.tomcat.ValveGBean">
            <attribute
name="className">org.apache.catalina.valves.AccessLogValve</attribute>
            <attribute name="initParams">prefix=prota_access_log.
	            suffix=.txt
    	        pattern=common</attribute>
            <reference name="NextValve">
                <pattern>
                    <name>PortaSingleSignOnValve</name>
                </pattern>
            </reference>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=TomcatValve,name=PortaSingleSignOnValve"
gbeanInfo="org.apache.geronimo.tomcat.ValveGBean">
            <attribute
name="className">org.apache.catalina.authenticator.SingleSignOn</attribute>
        </gbean>
----




Kevan Miller wrote:
> 
> 
> There's a sample that will give you guidance on getting this to work  
> for Geronimo 2.1.
> 
> The sample is here --
> https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/app-per-port
> 
> The sample is set up as a Geronimo plugin. Easy to set you up with a  
> geronimo deployment plan for the ear, if you prefer.
> 
> We need to update this wiki page --
> http://cwiki.apache.org/GMOxDOC21/app-per-port-running-multiple-web-apps-on-different-ports.html
> 
> Here's a wiki page for G 1.1 --
> http://cwiki.apache.org/GMOxDOC11/exposing-web-applications-on-distinct-ports.html
> 
> Take a look at the 2.1 sample and let us know if you have questions...
> 
> --kevan
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-%27Service%27-in-GMO-2.1-%28like-in-Tomcat%29-tp18358099s134p18868175.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Multiple 'Service' in GMO 2.1 (like in Tomcat)

Posted by Kevan Miller <ke...@gmail.com>.
On Jul 9, 2008, at 5:59 AM, cvx22 wrote:

>
> Hi gurus,
>  I plan to migrate my web-apps from Tomcat6 to Geronimo2.1. I have one
> configuration problem. In my tomcat's server.xml I have declared two
> Service, like that:
>
> --- part of server.xml -----------------------------------------
> <Service name="Catalina">
>    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" ..[]>
> ...
>   </Connector>
> </Service>
>
> <Service name="Catalina2">
>    <Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true" ..[]>
> ...
>   </Connector>
> </Service>
> --- end part of server.xml -----------------------------------------
>
> With that configuration I have two servlet containers under one  
> Tomcat, so I
> have different applications for each of them.
>
> How can I make the same in Geronimo???

There's a sample that will give you guidance on getting this to work  
for Geronimo 2.1.

The sample is here -- https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/app-per-port

The sample is set up as a Geronimo plugin. Easy to set you up with a  
geronimo deployment plan for the ear, if you prefer.

We need to update this wiki page -- http://cwiki.apache.org/GMOxDOC21/app-per-port-running-multiple-web-apps-on-different-ports.html

Here's a wiki page for G 1.1 -- http://cwiki.apache.org/GMOxDOC11/exposing-web-applications-on-distinct-ports.html

Take a look at the 2.1 sample and let us know if you have questions...

--kevan