Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1F0A9A9A for ; Wed, 15 Aug 2012 08:51:05 +0000 (UTC) Received: (qmail 64812 invoked by uid 500); 15 Aug 2012 08:51:05 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 64761 invoked by uid 500); 15 Aug 2012 08:51:05 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 64750 invoked by uid 99); 15 Aug 2012 08:51:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 08:51:05 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xhhsld@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-wg0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 08:50:58 +0000 Received: by wgbds11 with SMTP id ds11so1176273wgb.31 for ; Wed, 15 Aug 2012 01:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JRDZ2kyxI+ajv6DlY67boVRF0ooTTW+RGb24IIY8yWY=; b=wcWnXZJUz79/NCQBtYCjVbpEBpurgAbrw4YIaYnfCI9oqMxyYJrXwuDRBXAGZ3bErr pJZN/z2jJGeB3+R0ZhN9+MaSxaY9YXCz20ZXxXvaMZmyrlpiaXlzDunPxdjEtR5nTNrw Id+QGpn0fJcFkxWsvHlTsy+3RoXXkbb/g0RQWYM/UoN5Y/JgS/FZNwg6MxIF/vR3lDvv RYm0fTtS3dONwW9RCotxaroM8ksPg9n9ItjZHiw9eK5y0ZCn/h5KWbgxFTGP407SeEhq 94mJk0aYz4/QpKKom5syI2k8uLEreWf1UGgHMM6xzLS1RiEbWMX1I/h6YSEYjwVWW1Jg LjlA== MIME-Version: 1.0 Received: by 10.180.109.166 with SMTP id ht6mr35342960wib.11.1345020638243; Wed, 15 Aug 2012 01:50:38 -0700 (PDT) Received: by 10.227.201.136 with HTTP; Wed, 15 Aug 2012 01:50:38 -0700 (PDT) In-Reply-To: <29A022221827F544AD4685585549FD91017F71BB0260@HORMXB102VM1.onerm.dk> References: <29A022221827F544AD4685585549FD91017F71BB0260@HORMXB102VM1.onerm.dk> Date: Wed, 15 Aug 2012 16:50:38 +0800 Message-ID: Subject: Re: Use other port for webservices on same wasce instance From: Ivan To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=e89a8f2349135bab3404c74a0541 --e89a8f2349135bab3404c74a0541 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Suppose you are using Geronimo 2.1.*, you may refer to the link below, it shows what parameter is supported for each connector type. I do not have chance to try it by myself, while I knew others have tried that, and it works. Hope it helps. [1] https://svn.apache.org/repos/asf/geronimo/server/branches/2.1/plugins/tomca= t/tomcat6/src/main/plan/plan.xml 2012/8/15 soegaard > Yes, I have found that by checking the jars, but then I get deployment > errors like > > ---------------- > Distribution of module failed. See log for details. > Unknown attribute maxHttpHeaderSizeBytes on > dk.rm.hawaii/WebServicesWAR/1.0/car?J2EEApplication=3Dnull,WebModule=3Ddk= .rm.hawaii/WebServicesWAR/1.0/car,j2eeType=3DGBean,name=3DWebServicesConnec= tor > org.apache.geronimo.common.DeploymentException: Unknown attribute > maxHttpHeaderSizeBytes on dk.rm.hawaii/WebServicesWAR/1.0/car? ........ > ECT!!!! > ------------------------ > > This attribute is not known. > > 8192 > > It is like it is another connector bean this example refers to. I use > version 2.1.4 of the WASCE (I believe v. 6 of Tomcat). > > These examples don't work - sorry :( > > Have you ever done something like this yourself? Opening another port on > the server to expose your webservices to. > > Med venlig hilsen / Best regards > > Bjarne S=F8egaard > +2878-5721 > > ------------------------------ > *Fra:* Ivan Xu [via Apache Geronimo] [ml-node+[hidden email] > ] > *Sendt:* 15. august 2012 09:58 > > *Til:* Bjarne S=F8egaard > *Emne:* Re: Use other port for webservices on same wasce instance > > The full name of the ConnectorGBean should > be org.apache.geronimo.tomcat.connector.ConnectorGBean. > > 2012/8/14 soegaard <[hidden email] > > > > 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 th= e >> config.xml - here it created >> > class=3D"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. >> >> >> >> >> >> >> > class=3D"org.apache.geronimo.tomcat.TomcatContainer"> >> var/catalina >> >> TomcatEngine1 >> >> >> ServerInfo >> >> >> TomcatWebManager >> >> >> >> > class=3D"org.apache.geronimo.tomcat.EngineGBean"> >> > name=3D"className">org.apache.geronimo.tomcat.TomcatEngine >> >> name=3DWASCE >> >> >> TomcatHost1 >> >> >> >> TomcatHost >> >> >> >> TomcatJAASRealm >> >> >> FirstValve >> >> >> FirstListener >> >> >> >> > class=3D"org.apache.geronimo.tomcat.HostGBean"> >> > name=3D"className">org.apache.catalina.core.StandardHost >> >> name=3Dlocalhost >> appBase=3D >> workDir=3Dwork >> >> >> >> > class=3D"org.apache.geronimo.tomcat.ConnectorGBean"> >> HTTP >> localhost >> 8081 >> 8192 >> 150 >> 25 >> 75 >> false >> 8453 >> 100 >> 20000 >> false >> >> TomcatWebAppContainer >> >> >> >> >> >> Med venlig hilsen / Best regards >> >> Bjarne S=F8egaard >> +2878-5721 >> >> >> >> >> -- >> View this message in context: >> http://apache-geronimo.328035.n3.nabble.com/Use-other-port-for-webservic= es-on-same-wasce-instance-tp3985595p3985603.html >> Sent from the Development mailing list archive at Nabble.com. >> > > > > -- > Ivan > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-geronimo.328035.n3.nabble.com/Use-other-port-for-webservice= s-on-same-wasce-instance-tp3985595p3985606.html > To unsubscribe from Use other port for webservices on same wasce > instance, click here. > NAML > > ------------------------------ > View this message in context: SV: Use other port for webservices on same > wasce instance > Sent from the Development mailing list archiveat Nabble.com. > --=20 Ivan --e89a8f2349135bab3404c74a0541 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Suppose you are using Geronimo 2.1.*, =A0you may refer to the link bel= ow, it shows what parameter is supported for each connector type. I do not = have chance to try it by myself, while I knew others have tried that, and i= t works. Hope it helps.


2012/8/15 soegaard <Bj= arne.Soeegaard@stab.rm.dk>
Yes, I have found that by checking the jars, but then I get deployment= errors like
=A0
----------------
Distribution of module failed.=A0 See log for details.
=A0 Unknown attribute maxHttpHeaderSizeBytes on dk.rm.hawaii/WebServicesWAR= /1.0/car?J2EEApplication=3Dnull,WebModule=3Ddk.rm.hawaii/WebServicesWAR/1.0= /car,j2eeType=3DGBean,name=3DWebServicesConnector
=A0 org.apache.geronimo.common.DeploymentException: Unknown attribute maxHt= tpHeaderSizeBytes on dk.rm.hawaii/WebServicesWAR/1.0/car? ........ ECT!!!!<= /div>
------------------------
=A0
This attribute is not known.

<attribute name=3D"maxH= ttpHeaderSizeBytes">8192<= font color=3D"#008080"></attribute>=A0

=A0
It is like it is another connector bean this exa= mple refers to. I use version 2.1.4 of the WASCE (I believe v. 6 of Tomcat)= .
=A0
These examples don't work - sorry :(<= /div>
=A0
Have you ever done something like this yourself?= Opening another port on the server to expose your webservices to.
=A0
Med venlig hilsen / Best regards
=A0
Bjarne S=F8egaard
+2878-5721
=A0

Fra: Ivan = Xu [via Apache Geronimo] [ml-node+[hidden email]]
Sendt: 15. august 2012 09:58

Til: Bjarne S=F8egaard
Emne: Re: Use other port for webservices on same wasce instance

The full name of the ConnectorGBean should be=A0org.= apache.geronimo.tomcat.connector.ConnectorGBean.

2012/8/14 soegaard <[hidden email]>

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 f= ound. I
have the create one directly thru the admin console - looked it up in the config.xml - here it created
<gbean name=3D"WebServicesConnector"
class=3D"org.apache.geronimo.tomcat.connector.Http11ConnectorGBean&quo= t;>

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 -<= br> the geronimo-web.xml has ow created it.

The deployment does however sometimes write,

"WARN [MapperListener] Unknown default host: localhost" =A0I beli= eve this is
from the initParams in TomcatWebAppHost where localhost is stated.






=A0 <gbean name=3D"TomcatWebAppContainer"
class=3D"org.apache.geronimo.tomcat.TomcatContainer">
=A0 =A0 =A0 =A0 <attribute name=3D"catalinaHome">var/catali= na</attribute>
=A0 =A0 =A0 =A0 <reference name=3D"EngineGBean">
=A0 =A0 =A0 =A0 =A0 =A0 <name>TomcatEngine1</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 =A0 =A0 <reference name=3D"ServerInfo">
=A0 =A0 =A0 =A0 =A0 =A0 <name>ServerInfo</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 =A0 =A0 <reference name=3D"WebManager">
=A0 =A0 =A0 =A0 =A0 =A0 <name>TomcatWebManager</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 </gbean>

=A0 =A0 <gbean name=3D"TomcatWebAppEngine"
class=3D"org.apache.geronimo.tomcat.EngineGBean">
=A0 =A0 =A0 =A0 <attribute
name=3D"className">org.apache.geronimo.tomcat.TomcatEngine<= /attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"initParams">
=A0 =A0 =A0 =A0 =A0 =A0 name=3DWASCE
=A0 =A0 =A0 =A0 </attribute>
=A0 =A0 =A0 =A0 <reference name=3D"DefaultHost">
=A0 =A0 =A0 =A0 =A0 =A0 <name>TomcatHost1</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 =A0 =A0 <references name=3D"Hosts">
=A0 =A0 =A0 =A0 =A0 =A0 <pattern>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <name>TomcatHost</name>
=A0 =A0 =A0 =A0 =A0 =A0 </pattern>
=A0 =A0 =A0 =A0 </references>
=A0 =A0 =A0 =A0 <reference name=3D"RealmGBean">
=A0 =A0 =A0 =A0 =A0 =A0 <name>TomcatJAASRealm</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 =A0 =A0 <reference name=3D"TomcatValveChain">
=A0 =A0 =A0 =A0 =A0 =A0 <name>FirstValve</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 =A0 =A0 <reference name=3D"LifecycleListenerChain">=
=A0 =A0 =A0 =A0 =A0 =A0 <name>FirstListener</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 </gbean>

=A0 =A0 <gbean name=3D"TomcatWebAppHost"
class=3D"org.apache.geronimo.tomcat.HostGBean">
=A0 =A0 =A0 =A0 <attribute
name=3D"className">org.apache.catalina.core.StandardHost</a= ttribute>
=A0 =A0 =A0 =A0 <attribute name=3D"initParams">
=A0 =A0 =A0 =A0 =A0 =A0 name=3Dlocalhost
=A0 =A0 =A0 =A0 =A0 =A0 appBase=3D
=A0 =A0 =A0 =A0 =A0 =A0 workDir=3Dwork
=A0 =A0 =A0 =A0 </attribute>
=A0 =A0 </gbean>

=A0 =A0 <gbean name=3D"TomcatWebAppConnector"
class=3D"org.apache.geronimo.tomcat.ConnectorGBean">
=A0 =A0 =A0 =A0 <attribute name=3D"name">HTTP</attribute= >
=A0 =A0 =A0 =A0 <attribute name=3D"host">localhost</attr= ibute>
=A0 =A0 =A0 =A0 <attribute name=3D"port">8081</attribute= >
=A0 =A0 =A0 =A0 <attribute name=3D"maxHttpHeaderSizeBytes"= ;>8192</attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"maxThreads">150</attr= ibute>
=A0 =A0 =A0 =A0 <attribute name=3D"minSpareThreads">25</= attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"maxSpareThreads">75</= attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"hostLookupEnabled">false= </attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"redirectPort">8453</a= ttribute>
=A0 =A0 =A0 =A0 <attribute name=3D"acceptQueueSize">100<= /attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"connectionTimeoutMillis">= ;20000</attribute>
=A0 =A0 =A0 =A0 <attribute name=3D"uploadTimeoutEnabled">fa= lse</attribute>
=A0 =A0 =A0 =A0 <reference name=3D"TomcatContainer">
=A0 =A0 =A0 =A0 =A0 =A0 <name>TomcatWebAppContainer</name>
=A0 =A0 =A0 =A0 </reference>
=A0 =A0 </gbean>

</web-app>

Med venlig hilsen / Best regards

Bjarne S=F8egaard
+2878-5721




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



--
Ivan



If you reply to this email, your message wi= ll be added to the discussion below:
http://apache-geronimo.328035.n3.= nabble.com/Use-other-port-for-webservices-on-same-wasce-instance-tp3985595p= 3985606.html
To unsubscribe from Use other port for webservices on same wasce instance, = click here.
NAML
=09 =09 =09

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.



--
Ivan
--e89a8f2349135bab3404c74a0541--