You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Duma Rolando <r....@urmetsistemi.it> on 2004/03/01 18:22:03 UTC

Clustering Tomcat 5.0.19

Hi all, I have a problem running Tomcat 5.0.19 on HP Itanium with JRockit
1.4.2.
If I comment out the Cluster & ReplicationValve from server.xml as mentioned
in the docs, leaving the default attribute values my catalina.out shows the
following exception:


GRAVE: Unable to start cluster.
java.lang.NullPointerException
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:196)
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:150)
        at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:413)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
        at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
        at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
        at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
        at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)
        at org.apache.catalina.startup.Catalina.start()V(Catalina.java:594)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;JLjava.lang.Ob
ject;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
        at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Obj
ect;)Ljava.lang.Object;(Unknown Source)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.l
ang.Object;)Ljava.lang.Object;(Unknown Source)
        at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava
.lang.Object;(Unknown Source)
        at
org.apache.catalina.startup.Bootstrap.start()V(Bootstrap.java:297)
        at
org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Bootstrap.j
ava:398)
1-mar-2004 17.30.07 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException:  java.lang.NullPointerException
        at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:424)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
        at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
        at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
        at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
        at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)

Can anyone help me?
Thanks in advance.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: mac internet explorer issues

Posted by "Filip Hanik (lists)" <de...@hanik.com>.
tags are evaluated on the server, and the browser will not have any effect

Filip

-----Original Message-----
From: Alex Korneyev [mailto:akorneyev@mindspring.com]
Sent: Thursday, March 04, 2004 7:06 PM
Cc: Tomcat Users List
Subject: mac internet explorer issues


Hello,

 Has anyone noticed any problems with usebean tags with I.E. 5.2 on
 MAC?

 for some reason, session variables are coming thru.

 however, if i use regular request.getAttribute() all is well.

 alex korneyev


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


mac internet explorer issues

Posted by Alex Korneyev <ak...@mindspring.com>.
Hello,

 Has anyone noticed any problems with usebean tags with I.E. 5.2 on
 MAC?

 for some reason, session variables are coming thru.

 however, if i use regular request.getAttribute() all is well.

 alex korneyev


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: access to apache httpd process from tomcat or jk

Posted by "Charles N. Harvey III" <ch...@alloy.com>.
Darn.  Thanks for the link, but using a database so far isn't an option.
When you write to the Apache::Notes "table" you can then specify additional
logging parameters for the access.log that will be read out of the little
bit of memory that Notes actually is.  The company we are doing the work
for has a very complex reporting tool that is based solely on the access.log
files on all their machines.  No databases at all.  Pretty aggravating.  I
am tasked with researching this, so my research answer might have to be 
"no".

Thanks again.


Charlie


Tim Funk wrote:

> No that won't work.
>
> How about JDBC instead?
>
> http://www.lotus.com/jdbc
>
> -Tim
>
> Charles N. Harvey III wrote:
>
>> Hello.
>> A website that we are converting from embedded perl to java writes 
>> specific
>> data to the Apache::Notes table.  I just found out what Notes is 
>> yesterday,
>> so it is all pretty new for me.  Since embedded perl runs inside the 
>> httpd
>> process it has access to this little bit of memory that gets read 
>> with each
>> request.  Tomcat does not run inside the httpd process.  That much is 
>> obvious.
>> But I would still like to write to this Notes table.  Is there some 
>> way to
>> gain access to the httpd process from Tomcat?  Could I do it through 
>> mod_jk
>> somehow?  Does anyone even know what I'm talking about?  This is 
>> quite confusing
>> to me so I'm taking a shot in the dark here to see if anyone else has 
>> tried
>> something similar.
>>
>> Any tips or pointers to some books or websites is greatly appreciated.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: access to apache httpd process from tomcat or jk

Posted by Tim Funk <fu...@joedog.org>.
No that won't work.

How about JDBC instead?

http://www.lotus.com/jdbc

-Tim

Charles N. Harvey III wrote:
> Hello.
> A website that we are converting from embedded perl to java writes specific
> data to the Apache::Notes table.  I just found out what Notes is yesterday,
> so it is all pretty new for me.  Since embedded perl runs inside the httpd
> process it has access to this little bit of memory that gets read with each
> request.  Tomcat does not run inside the httpd process.  That much is 
> obvious.
> But I would still like to write to this Notes table.  Is there some way to
> gain access to the httpd process from Tomcat?  Could I do it through mod_jk
> somehow?  Does anyone even know what I'm talking about?  This is quite 
> confusing
> to me so I'm taking a shot in the dark here to see if anyone else has tried
> something similar.
> 
> Any tips or pointers to some books or websites is greatly appreciated.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


access to apache httpd process from tomcat or jk

Posted by "Charles N. Harvey III" <ch...@alloy.com>.
Hello.
A website that we are converting from embedded perl to java writes specific
data to the Apache::Notes table.  I just found out what Notes is yesterday,
so it is all pretty new for me.  Since embedded perl runs inside the httpd
process it has access to this little bit of memory that gets read with each
request.  Tomcat does not run inside the httpd process.  That much is 
obvious.
But I would still like to write to this Notes table.  Is there some way to
gain access to the httpd process from Tomcat?  Could I do it through mod_jk
somehow?  Does anyone even know what I'm talking about?  This is quite 
confusing
to me so I'm taking a shot in the dark here to see if anyone else has tried
something similar.

Any tips or pointers to some books or websites is greatly appreciated.

Thanks a lot.


Charlie


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: clustering tomcat 5.0.19 issues

Posted by "Filip Hanik (lists)" <de...@hanik.com>.
>1) context manager doesn't exist.

yep, I am only printing this because of debug. All this means is that you
are a member of the cluster but the server has not fully started up yet.
hence you are receiving messages for a non existent context.

>2)Unable to send replicated message, is server down?

One of your nodes is not responding to messages, either you have some IP
misconfiguration or something else is blocking the messages. I will add more
info to that message to be able to track the problem down

>3) SEVERE: TCP Worker thread in cluster caught 'java.io.IOException:

While reading a message from another node, that node disappeared, got
disconnected. This is also fine and should not affect your system

any other questions, just let me know. someone else can answer your mod_jk
load balancing questions.
Filip

-----Original Message-----
From: shyam [mailto:shyam@interviewexchange.com]
Sent: Wednesday, March 03, 2004 2:40 PM
To: 'Tomcat Users List'
Subject: clustering tomcat 5.0.19 issues


Hi All,

I have done clustering of tomcat. I have two different machines running
tomcat  which join the cluster. I am testing my application . But in
between I see some errors like
1) context manager doesn't exist.
2)Unable to send replicated message, is server down?
3) SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: An
established connection was aborted by the software in your host machine'
closing channel

It would be grateful if somebody can tell what are these errors for .
And also I have another query.
I have my apache as the load balancer. Currently the requests are
dispatched to each tomcat by the apache. I want this dispatch to happen
in a specific way like one tomcat getting 2 requests and other getting
just one request. Like a ratio of 2:1 . How can I do it ?
Thanks in advance
shyam



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


clustering tomcat 5.0.19 issues

Posted by shyam <sh...@interviewexchange.com>.
Hi All,

I have done clustering of tomcat. I have two different machines running
tomcat  which join the cluster. I am testing my application . But in
between I see some errors like
1) context manager doesn't exist. 
2)Unable to send replicated message, is server down? 
3) SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: An
established connection was aborted by the software in your host machine'
closing channel

It would be grateful if somebody can tell what are these errors for . 
And also I have another query.
I have my apache as the load balancer. Currently the requests are
dispatched to each tomcat by the apache. I want this dispatch to happen
in a specific way like one tomcat getting 2 requests and other getting
just one request. Like a ratio of 2:1 . How can I do it ?
Thanks in advance 
shyam



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Clustering Tomcat 5.0.19

Posted by "Filip Hanik (lists)" <de...@hanik.com>.
works just fine for me.
The configuration file changed between version 0.16 and 0.19, so make sure
you have the 0.19 server.xml

Filip

-----Original Message-----
From: Duma Rolando [mailto:r.duma.spes@urmetsistemi.it]
Sent: Monday, March 01, 2004 9:22 AM
To: tomcat-user@jakarta.apache.org
Subject: Clustering Tomcat 5.0.19


Hi all, I have a problem running Tomcat 5.0.19 on HP Itanium with JRockit
1.4.2.
If I comment out the Cluster & ReplicationValve from server.xml as mentioned
in the docs, leaving the default attribute values my catalina.out shows the
following exception:


GRAVE: Unable to start cluster.
java.lang.NullPointerException
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:196)
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(Ljava.lang.Object;Ljav
a.lang.String;Ljava.lang.Object;)Ljava.lang.Object;(MethodUtils.java:150)
        at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:413)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
        at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
        at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
        at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
        at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)
        at org.apache.catalina.startup.Catalina.start()V(Catalina.java:594)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;JLjava.lang.Ob
ject;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
        at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Obj
ect;)Ljava.lang.Object;(Unknown Source)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.l
ang.Object;)Ljava.lang.Object;(Unknown Source)
        at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava
.lang.Object;(Unknown Source)
        at
org.apache.catalina.startup.Bootstrap.start()V(Bootstrap.java:297)
        at
org.apache.catalina.startup.Bootstrap.main([Ljava.lang.String;)V(Bootstrap.j
ava:398)
1-mar-2004 17.30.07 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException:  java.lang.NullPointerException
        at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start()V(SimpleTcpCluster.j
ava:424)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1116)
        at
org.apache.catalina.core.StandardHost.start()V(StandardHost.java:832)
        at
org.apache.catalina.core.ContainerBase.start()V(ContainerBase.java:1126)
        at
org.apache.catalina.core.StandardEngine.start()V(StandardEngine.java:521)
        at
org.apache.catalina.core.StandardService.start()V(StandardService.java:519)
        at
org.apache.catalina.core.StandardServer.start()V(StandardServer.java:2345)

Can anyone help me?
Thanks in advance.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org