Hello Ivan,
Yes, I have used the code shown in the example you refer to in your mail. (Shown below), but creation of the Connector gbean fails because it complains "org.apache.geronimo.tomcat.ConnectorGBean" cannot be found. I have the create one directly thru the admin console - looked it up in the config.xml - here it created

<gbean name="WebServicesConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">

I the copied this to my geronimo-web.xml instead of the first Connector gbean. (and then removed it from the config.xml again- so it got created thru the geronimo-web.xml.

This works to the point that I can se the Connector in the admin console - the geronimo-web.xml has ow created it.

The deployment does however sometimes write,

"WARN [MapperListener] Unknown default host: localhost"  I believe this is from the initParams in TomcatWebAppHost where localhost is stated.



  <gbean name="TomcatWebAppContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
        <attribute name="catalinaHome">var/catalina</attribute>
        <reference name="EngineGBean">
        <reference name="ServerInfo">
        <reference name="WebManager">

    <gbean name="TomcatWebAppEngine" class="org.apache.geronimo.tomcat.EngineGBean">
        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
        <attribute name="initParams">
        <reference name="DefaultHost">
        <references name="Hosts">
        <reference name="RealmGBean">
        <reference name="TomcatValveChain">
        <reference name="LifecycleListenerChain">

    <gbean name="TomcatWebAppHost" class="org.apache.geronimo.tomcat.HostGBean">
        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
        <attribute name="initParams">

    <gbean name="TomcatWebAppConnector" class="org.apache.geronimo.tomcat.ConnectorGBean">
        <attribute name="name">HTTP</attribute>
        <attribute name="host">localhost</attribute>
        <attribute name="port">8081</attribute>                             <!-- Use port 8081 instead of the default of 8080 -->
        <attribute name="maxHttpHeaderSizeBytes">8192</attribute>  
        <attribute name="maxThreads">150</attribute>
        <attribute name="minSpareThreads">25</attribute>
        <attribute name="maxSpareThreads">75</attribute>
        <attribute name="hostLookupEnabled">false</attribute>
        <attribute name="redirectPort">8453</attribute>
        <attribute name="acceptQueueSize">100</attribute>
        <attribute name="connectionTimeoutMillis">20000</attribute>
        <attribute name="uploadTimeoutEnabled">false</attribute>
        <reference name="TomcatContainer">

Med venlig hilsen / Best regards
Bjarne S√łegaard

Fra: Ivan Xu [via Apache Geronimo] [ml-node+[hidden email]]
Sendt: 14. august 2012 12:01
Til: Bjarne S√łegaard
Emne: Re: Use other port for webservices on same wasce instance

Yes, that should work, do you configure the web-container in the geronimo-web.xml file.

[1]  https://cwiki.apache.org/GMOxDOC22/geronimo-webxml.html 

2012/8/14 soegaard <[hidden email]>
Hello Ivan,

Thanks for responding.

Yes, I have a functioning web application - and I have now created a
web-service that works fine.
I have now made a new project with this web-service and want this service to
be reached at another port.
The web-app runs on 8080, but I want to run the web services on 8180.

It is a general problem - using another port. According to the docs you can
create via the geronimo-web.xml, a new connector gbean, a container, an
engine and a host - but I cannot make this work.

Do you have any idea?

Thanks a million in advance.


View this message in context: http://apache-geronimo.328035.n3.nabble.com/Use-other-port-for-webservices-on-same-wasce-instance-tp3985595p3985599.html
Sent from the Development mailing list archive at Nabble.com.


If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Use other port for webservices on same wasce instance, click here.

View this message in context: SV: Use other port for webservices on same wasce instance
Sent from the Development mailing list archive at Nabble.com.