Re: Web app clustering with WADI in Geronimo Tomcat 2.1.4 broken?

2009-07-09 Thread chi runhua
Hi Ganny, please find my comment inline.

On Wed, Jul 8, 2009 at 6:46 PM, Gianny Damour gianny.dam...@optusnet.com.au
 wrote:

 Hi,

 In addition to this doc update, what about trying to uniformise the node
 name?


Not sure If I understand the idea. I assume you were suggesting to use
clustering-wadi/ element for both Tomcat and Jetty.  If yes, it would be
great.



 if the XSD was not extracted, then it was an oversight.


If both Tomcat and Jetty is using the same element for WADI clustering,  can
we port the element into geronimo-web.xsd instead of hiding it under
different plugins?  In that case,  we don't have to worry about this
problem.

just a piece of wild thought here. not sure if it's practical.

Jeff C


Re: Web app clustering with WADI in Geronimo Tomcat 2.1.4 broken?

2009-07-08 Thread Gianny Damour

Hi,

In addition to this doc update, what about trying to uniformise the  
node name?


if the XSD was not extracted, then it was an oversight.

Thanks,
Gianny


On 08/07/2009, at 12:34 PM, chi runhua wrote:


Hi all,

Doc updated for both 2.1 and 2.2 by now.

If you are using a Tomcat assembly of Geronimo distribution,  
replace clustering-wadi/ with tomcat-clustering-wadi/ element  
in the deployment plan.


(1)   http://cwiki.apache.org/confluence/display/GMOxDOC21/WADI 
+Clustering+Support
(2)   http://cwiki.apache.org/confluence/display/GMOxDOC22/WADI 
+Clustering



And one more question, is there any reason that the schema file  
!-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom:  
0.08in } -- (ie. geronimo-tomcat-clustering-wadi-X.xsd ) was not  
extracted to geronimo_home/schema after build.


Thanks.

Jeff C

On Tue, Jul 7, 2009 at 6:58 PM, Gianny Damour  
gianny.dam...@optusnet.com.au wrote:

Hi Vamsi,

In the case of tomcat, you need to use the node

tomcat-clustering-wadi /

instead of

clustering-wadi /


I wonder if it would not be better to uniformise node names across  
Jetty and Tomcat to prevent confusion.


Thanks,
Gianny


On 07/07/2009, at 4:57 PM, Vamsavardhana Reddy wrote:

I am trying to deploy a clustered web application in Geronimo  
Tomcat 2.1.4.  I have added distributable/ in web.xml and  
clustering-wadi/ in geronimo-web.xml.  When I deploy the  
application, I am getting the following deployment error:


xml problem for web app .
org.apache.geronimo.common.DeploymentException: xml problem for web  
app .
at  
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWeb 
App(TomcatModuleBuilder.java:318)
at  
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule 
(TomcatModuleBuilder.java:207)
at  
org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createMo 
dule(AbstractWebModuleBuilder.java:179)
at  
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModul 
e(SwitchingModuleBuilder.java:94)
at  
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan 
(EARConfigBuilder.java:307)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:227)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke 
(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
(GBeanOperation.java:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
(GBeanInstance.java:867)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
(BasicKernel.java:239)
at  
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDe 
ploy(AbstractDeployCommand.java:116)
at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run 
(DistributeCommand.java:61)

at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment  
descriptor: errors:


error: cvc-complex-type.2.4a: Expected elements 'work-...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cluster...@http:// 
geronimo.apache.org/xml/ns/j2ee/application-2.0 web- 
contai...@http://geronimo.apache.org/xml/ns/naming-1.2 h...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cross- 
cont...@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1  
disable-cook...@http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1 valve-ch...@http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1 listener-ch...@http://geronimo.apache.org/xml/ns/j2ee/ 
web/tomcat-2.0.1 tomcat-re...@http://geronimo.apache.org/xml/ns/ 
j2ee/web/tomcat-2.0.1 mana...@http://geronimo.apache.org/xml/ns/ 
j2ee/web/tomcat-2.0.1 clus...@http://geronimo.apache.org/xml/ns/ 
j2ee/web/tomcat-2.0.1 abstract-naming-en...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 ejb-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 ejb-local-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 service-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 resource-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 resource-env-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 message-destinat...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 security-realm-n...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 serv...@http:// 
geronimo.apache.org/xml/ns/deployment-1.2 persiste...@http:// 
java.sun.com/xml/ns/persistence' instead of 'clustering-w...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here


Descriptor:
xml-fragment xmlns:tom=http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1
!--web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1 xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/ 

Re: Web app clustering with WADI in Geronimo Tomcat 2.1.4 broken?

2009-07-07 Thread Gianny Damour

Hi Vamsi,

In the case of tomcat, you need to use the node

tomcat-clustering-wadi /

instead of

clustering-wadi /


I wonder if it would not be better to uniformise node names across  
Jetty and Tomcat to prevent confusion.


Thanks,
Gianny

On 07/07/2009, at 4:57 PM, Vamsavardhana Reddy wrote:

I am trying to deploy a clustered web application in Geronimo  
Tomcat 2.1.4.  I have added distributable/ in web.xml and  
clustering-wadi/ in geronimo-web.xml.  When I deploy the  
application, I am getting the following deployment error:


xml problem for web app .
org.apache.geronimo.common.DeploymentException: xml problem for web  
app .
at  
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWeb 
App(TomcatModuleBuilder.java:318)
at  
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule 
(TomcatModuleBuilder.java:207)
at  
org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createMo 
dule(AbstractWebModuleBuilder.java:179)
at  
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModul 
e(SwitchingModuleBuilder.java:94)
at  
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan 
(EARConfigBuilder.java:307)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:227)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke 
(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke 
(GBeanOperation.java:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke 
(GBeanInstance.java:867)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke 
(BasicKernel.java:239)
at  
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDe 
ploy(AbstractDeployCommand.java:116)
at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run 
(DistributeCommand.java:61)

at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment  
descriptor: errors:


error: cvc-complex-type.2.4a: Expected elements 'work-...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cluster...@http:// 
geronimo.apache.org/xml/ns/j2ee/application-2.0 web- 
contai...@http://geronimo.apache.org/xml/ns/naming-1.2 h...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cross- 
cont...@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1  
disable-cook...@http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1 valve-ch...@http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1 listener-ch...@http://geronimo.apache.org/xml/ns/j2ee/ 
web/tomcat-2.0.1 tomcat-re...@http://geronimo.apache.org/xml/ns/ 
j2ee/web/tomcat-2.0.1 mana...@http://geronimo.apache.org/xml/ns/ 
j2ee/web/tomcat-2.0.1 clus...@http://geronimo.apache.org/xml/ns/ 
j2ee/web/tomcat-2.0.1 abstract-naming-en...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 ejb-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 ejb-local-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 service-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 resource-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 resource-env-...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 message-destinat...@http:// 
geronimo.apache.org/xml/ns/naming-1.2 security-realm-n...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 serv...@http:// 
geronimo.apache.org/xml/ns/deployment-1.2 persiste...@http:// 
java.sun.com/xml/ns/persistence' instead of 'clustering-w...@http:// 
geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here


Descriptor:
xml-fragment xmlns:tom=http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1
!--web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web/ 
tomcat-2.0.1 xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/ 
application-2.0--
dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/ 
deployment-1.2

dep:moduleId
dep:groupIdpackt-samples/dep:groupId
dep:artifactIdhelloworld-cluster/dep:artifactId
dep:version1.0/dep:version
dep:typewar/dep:type
/dep:moduleId
dep:dependencies/
/dep:environment
tom:context-root/helloworld-cluster/tom:context-root
tom:clustering-wadi/
/xml-fragment

at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD 
(XmlBeansUtil.java:187)
at  
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWeb 
App(TomcatModuleBuilder.java:312)

... 17 more

Appears like the deployer is not liking the tag clustering-wadi/.

I do have  org.apache.geronimo.configs/tomcat6-clustering-wadi/ 
2.1.4/car and org.apache.geronimo.configs/tomcat6-clustering- 
builder-wadi/2.1.4/car configurations started before deploying the  
web application.


I tried deploying the same application in Geronimo Tomcat 

Re: Web app clustering with WADI in Geronimo Tomcat 2.1.4 broken?

2009-07-07 Thread chi runhua
Hi all,

Doc updated for both 2.1 and 2.2 by now.

If you are using a Tomcat assembly of Geronimo distribution, replace
clustering-wadi/ with tomcat-clustering-wadi/ element in the deployment
plan.

(1)
http://cwiki.apache.org/confluence/display/GMOxDOC21/WADI+Clustering+Support
(2)   http://cwiki.apache.org/confluence/display/GMOxDOC22/WADI+Clustering


And one more question, is there any reason that the schema file  (ie.
geronimo-tomcat-clustering-wadi-X.xsd ) was not extracted to
geronimo_home/schema after build.

Thanks.

Jeff C

On Tue, Jul 7, 2009 at 6:58 PM, Gianny Damour gianny.dam...@optusnet.com.au
 wrote:

 Hi Vamsi,

 In the case of tomcat, you need to use the node

 tomcat-clustering-wadi /

 instead of

 clustering-wadi /


 I wonder if it would not be better to uniformise node names across Jetty
 and Tomcat to prevent confusion.

 Thanks,
 Gianny


 On 07/07/2009, at 4:57 PM, Vamsavardhana Reddy wrote:

  I am trying to deploy a clustered web application in Geronimo Tomcat
 2.1.4.  I have added distributable/ in web.xml and clustering-wadi/ in
 geronimo-web.xml.  When I deploy the application, I am getting the following
 deployment error:

 xml problem for web app .
 org.apache.geronimo.common.DeploymentException: xml problem for web app .
 at
 org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
 at
 org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
 at
 org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
 at
 org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
 at
 org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:227)
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
 at
 org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
 at
 org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
 at
 org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
 at
 org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
 at
 org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
 at java.lang.Thread.run(Thread.java:595)
 Caused by: org.apache.xmlbeans.XmlException: Invalid deployment
 descriptor: errors:

 error: cvc-complex-type.2.4a: Expected elements 'work-...@http://
 geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cluster...@http://
 geronimo.apache.org/xml/ns/j2ee/application-2.0 web-container@
 http://geronimo.apache.org/xml/ns/naming-1.2 h...@http://
 geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cross-context@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 disable-cookies@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 valve-chain@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 listener-chain@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 tomcat-realm@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 manager@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 cluster@
 http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
 abstract-naming-en...@http://geronimo.apache.org/xml/ns/naming-1.2
 ejb-...@http://geronimo.apache.org/xml/ns/naming-1.2 ejb-local-ref
 @http://geronimo.apache.org/xml/ns/naming-1.2 service-...@http://
 geronimo.apache.org/xml/ns/naming-1.2 resource-...@http://
 geronimo.apache.org/xml/ns/naming-1.2 resource-env-...@http://
 geronimo.apache.org/xml/ns/naming-1.2 message-destinat...@http://
 geronimo.apache.org/xml/ns/naming-1.2 security-realm-n...@http://
 geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1 serv...@http://
 geronimo.apache.org/xml/ns/deployment-1.2 persiste...@http://
 java.sun.com/xml/ns/persistence' instead of 'clustering-w...@http://
 geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here

 Descriptor:
 xml-fragment xmlns:tom=http://geronimo.apache.org/xml/ns/j2ee/web/
 tomcat-2.0.1
 !--web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1;
 xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0--
 dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/
 deployment-1.2
 dep:moduleId
 dep:groupIdpackt-samples/dep:groupId
 dep:artifactIdhelloworld-cluster/dep:artifactId
 dep:version1.0/dep:version
 dep:typewar/dep:type
 /dep:moduleId
 dep:dependencies/
 /dep:environment