Re: Tomcat clustering session data

2006-04-21 Thread Peter Rossbach

Hi,

currently the Tomcat 5.0 and 5.5 only supports session replication,  
also JBoss to that.
Filip has start a new cluster module and this version supports also  
application context replication.

Look at tomcat source catalina/modules/ha and test it.

Peter


Am 20.04.2006 um 18:04 schrieb erich.oliphant:


Hi,
I have a situation that requires some information  be shared across  
a cluster.
 The issue is that the classes that manage this info are not  
particular to a
given session but global to the application such that at session on  
all

servers in the cluster would need to read/write to these classes.

I am wondering if there's a way to do this with the Clustering support
directly or would I need to use JGroups or something like that.

THanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ANT task for context.xml generation?

2006-04-21 Thread Nikita Tovstoles

Hi,

Is there an ANT task for generating context.xml files?

thanks,
-nikita


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread Leon Rosenberg
I don't know it depends on your implementation of hashCode() method.
Are you using 1.5?

static int hash(Object x) {
int h = x.hashCode(); -- your programm is here

h += ~(h  9);
h ^=  (h  14);
h +=  (h  4);
h ^=  (h  10);
return h;
}

I think chances are low that the you see threads in this method often.
Would you mind checking the hashCode() method implementation of the
objects you put in the map?

Maybe someone programmed some kind of very-cool-hash-code-optimization
and got an infinite loop.

regards
Leon

On 4/20/06, Gustavo Noronha [EMAIL PROTECTED] wrote:
 2006/4/20, Leon Rosenberg [EMAIL PROTECTED]:
 
  do you see those often?


 The developers tell me that this is part of a process that generates an XML
 file that goes in a new clob column of the database. They are running a
 batch process during the night that is generating the XML for each of the
 already existing records, and some XMLs are being generated during the day
 while users complete filling the data they need to fill in.

 Does it look faulty?

 Right now I have some processes using 100% cpu and the only reference to
 HashMap I have is this:

 http-8080-Processor19 daemon prio=1 tid=0x088b5120 nid=0x5b5d runnable
 [0x6c506000..0x6c5086c0]
 at java.util.HashMap.hash(HashMap.java:264)
 at java.util.HashMap.get(HashMap.java:320)
 at org.apache.commons.collections.SequencedHashMap.get(Unknown
 Source)
 at org.hibernate.util.IdentityMap.get(IdentityMap.java:132)
 at org.hibernate.engine.PersistenceContext.getEntry(
 PersistenceContext.java:373)
 at org.hibernate.type.CollectionType.getKeyOfOwner(
 CollectionType.java:289)
 at org.hibernate.engine.Collections.processReachableCollection(
 Collections.java:137)
 at org.hibernate.event.def.FlushVisitor.processCollection(
 FlushVisitor.java:37)

 Thanks,

 --
 Gustavo Noronha Silva
 Coordenação de Segurança e Sustentação
 Ministério do Desenvolvimento Social - Brasil


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: exception in jspc with 5.5.16

2006-04-21 Thread Leon Rosenberg
Ok, it seems that my mind was rather broken than the jspc. We
reinstalled a clean tomcat copy and now it works.

Sorry for disturbing :-)

regards
Leon



On 4/20/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
 I found that same issue was discussed by Allistair and Remy in 2005
 with 5.5.11, and haven't been resolved :

 http://mail-archives.apache.org/mod_mbox/tomcat-users/200508.mbox/[EMAIL 
 PROTECTED]

 Seems that jspc is broken?

 Leon



 On 4/20/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
  no environment.
  just calling from bash on a debian machine:
  $ java -version
  java version 1.5.0_06
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
  Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
 
  $ echo $JAVA_HOME
  /usr/local/java/
 
  which is
  lrwxr-xr-x   1 root staff   17 Apr  5 13:51 java - jdk1.5.0_06_32bit
 
  Apache Ant version 1.6.5 compiled on June 2 2005
 
  Other buildscripts are running well, and the jspc definition is taken
  from the examples on tomcat's site:
  http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html
  Web Application Compilation - section
 
  regards
  Leon
 
  On 4/20/06, Marc Farrow [EMAIL PROTECTED] wrote:
   What ide are you using?  If you set a property at the start of the build
   script that sets java.home to your SDK, then it should use that.  I know 
   in
   NetBeans that properties are immutable, so once set they will not be set
   again.  I am not sure about other environments, but I would guess this is 
   a
   feature of ANT and not the IDE.
  
   hth
  
  
   On 4/20/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
   
On 4/20/06, Marc Farrow [EMAIL PROTECTED] wrote:
 jsp:
 [echo] /home/frs/test_web_tomcat
 [echo] /usr/local/jdk1.5.0_06_32bit/jre
 [echo] /usr/local/jdk1.5.0_06_32bit/jre
 [echo] Generating java files out of root jsps
 [jasper2] java.lang.IllegalStateException: No Java compiler available

 This looks like your compiler is pointing to a JRE instead of JDK.

   
Yes, but how?
The $JAVA_HOME variable is pointing to the jdk, other build scripts
running fine. The java.home in this special build file seems to point
into false direction, but I don't know what could twist it?
   
leon
   


 On 4/20/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
 
  Hi,
 
  in our deployment scripts we precompile jsps for live deployment.
  However, we are in the process of switching from 5.0.x to 5.5.16 and
  the precompilation fails.
  I've searched the net and checked the 5.5 docs but haven't found any
  hints.
 
  Here's the exception:
 
  [EMAIL PROTECTED]:~/bin/testsystem$ ant -f build_web.xml
  Buildfile: build_web.xml
 
  jsp:
  [echo] /home/frs/test_web_tomcat
  [echo] /usr/local/jdk1.5.0_06_32bit/jre
  [echo] /usr/local/jdk1.5.0_06_32bit/jre
  [echo] Generating java files out of root jsps
  [jasper2] java.lang.IllegalStateException: No Java compiler 
  available
  [jasper2] at
  org.apache.jasper.JspCompilationContext.createCompiler(
  JspCompilationContext.java:224)
  [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:979)
  [jasper2] at org.apache.jasper.JspC.execute(JspC.java:1135)
  [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
  [jasper2] at
  sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java
  :39)
  [jasper2] at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  [jasper2] at java.lang.reflect.Method.invoke(Method.java:585)
  [jasper2] at
  org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
  [jasper2] at
  org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] at 
  org.apache.tools.ant.Target.execute(Target.java:341)
  [jasper2] at 
  org.apache.tools.ant.Target.performTasks(Target.java
:369)
  [jasper2] at
  org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  [jasper2] at org.apache.tools.ant.Project.executeTarget(
Project.java
  :1185)
  [jasper2] at
  org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
  DefaultExecutor.java:40)
  [jasper2] at
  org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [jasper2] at org.apache.tools.ant.launch.Launcher.run(
Launcher.java
  :246)
  [jasper2] at org.apache.tools.ant.launch.Launcher.main(
Launcher.java
  :67)
 
  BUILD FAILED
  

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread David Delbecq
There are several ways to find out where tomcat is spending all it's cpu
time
1) when it's a 100% CPU eating time issue a few stacktraces at a 10 or
20 seconds interval. then compare all those trace and try to find a
stacktrace which is recurrent. This is clearly not easy and might
require quite a few hours of analysis to point a list of reccurrent
working area during the various dumps. If you have an endless loop of a
very slow process, it should be present in a thread for all dumps.
2) check twice you don't have memory consumption problems. We noticed a
few time here that tomcat behaving very slowly is a prefail warning of a
memory outtage (The garbage collector becomes aggressive). So increase
max memory and max permergensize. (You should get out of memory errors
anyway in the end if this is the case
3) Use a profiling tool to get reports on CPU usage by various areas of
code. When it comes to debugging CPU usage or memory leaks, profilers
are very usefull. The drawback is you have to run your tomcat in a
profiled environnment which will take note of execution time of all your
method calls. If you can't reproduce your problem on a test server ,that
mean you need to profile your production server, but profiling tomcat
render it about 4 to 10 times slower, depending on the profiler, the
memory on server, etc.


2 points in stack trace worth checking, i noticed 2 threads are not in
sleep state and have a similar part in stack trace, check twice if there
is no endless loop around

at br.gov.mds.suasnob.data.pessoafisica.PessoaFisicaData.getPapelList(
PessoaFisicaData.java:185)
at br.gov.mds.suasnob.data.pessoafisica.PessoaFisicaData.getPapeis(
PessoaFisicaData.java:160)


partial traces:

http-8080-Processor7 daemon prio=1 tid=0x08b6c9f8 nid=0x5048 runnable
[0x6f627000..0x6f6296c0]
at org.hibernate.event.def.AbstractVisitor.processValue(
AbstractVisitor.java:102)
at org.hibernate.event.def.AbstractVisitor.processValue(
AbstractVisitor.java:64)
at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(
AbstractVisitor.java:58)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity
(DefaultFlushEntityEventListener.java:198)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(
AbstractFlushingEventListener.java:190)
at
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions
(AbstractFlushingEventListener.java:70)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(
DefaultAutoFlushEventListener.java:39)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java
:711)
at org.hibernate.impl.SessionImpl.prepareQueries(SessionImpl.java:895)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:885)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at br.gov.mds.suasnob.data.pessoafisica.PessoaFisicaData.getPapelList(
PessoaFisicaData.java:185)
at br.gov.mds.suasnob.data.pessoafisica.PessoaFisicaData.getPapeis(
PessoaFisicaData.java:160)



at org.hibernate.engine.ActionQueue.sortCollectionActions(
ActionQueue.java:292)
at
org.hibernate.event.def.AbstractFlushingEventListener.flushCollections(
AbstractFlushingEventListener.java:244)
at
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions
(AbstractFlushingEventListener.java:71)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(
DefaultAutoFlushEventListener.java:39)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java
:711)
at org.hibernate.impl.SessionImpl.prepareQueries(SessionImpl.java:895)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:885)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at br.gov.mds.suasnob.data.pessoafisica.PessoaFisicaData.getPapelList(
PessoaFisicaData.java:185)
at br.gov.mds.suasnob.data.pessoafisica.PessoaFisicaData.getPapeis(
PessoaFisicaData.java:160)
at sun.reflect.GeneratedMethodAccessor1697.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

..

Gustavo Noronha a écrit :

Hey David!

2006/4/20, David Delbecq [EMAIL PROTECTED]:
  

the kill -3 send a signal, that is you must send it to a process (in you
case the java virtual machine). The sun java machine has the behaviour
to dump a full stacktrace of all it's threads when it receive this. Of
course you won't get the dump in the console where you ran kill it. it
will probably be in catalina.out




Sure; but do you 

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread David Delbecq
Leon Rosenberg a écrit :

I don't know it depends on your implementation of hashCode() method.
Are you using 1.5?

static int hash(Object x) {
int h = x.hashCode(); -- your programm is here

h += ~(h  9);
h ^=  (h  14);
h +=  (h  4);
h ^=  (h  10);
return h;
}

I think chances are low that the you see threads in this method often.
Would you mind checking the hashCode() method implementation of the
objects you put in the map?

Maybe someone programmed some kind of very-cool-hash-code-optimization
and got an infinite loop.
  

  

False :)

Please note the thread dumps tells the Thread http-8080-Processor56 is in

java.util.HashMap.hash(HashMap.java:264)
not in something like com.company.veryCoolClass.hashCode();

as you said, the program is here : int h = x.hashCode()
that mean it is either in the step of putting the value from registers to h , 
either in precall of x.hashCode(). In no way is it currently running 
x.hashCode() :)
Please also note, chance to get Threads in there are not so low when you play a 
lots with Hashmap :)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat WIKI only in polish??? - http://wiki.apache.org/tomcat/

2006-04-21 Thread Leon Rosenberg
No english version?

regards
Leon

http://wiki.apache.org/tomcat/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat WIKI only in polish??? - http://wiki.apache.org/tomcat/

2006-04-21 Thread David Delbecq
ROFLMAO!!

MichalDziczkowski did the polish translation on 18 april, but it seems
he did all his commits on wrong web page :D
The english version is still accessible in the page history.

http://wiki.apache.org/tomcat/FrontPage?action=recallrev=21

You probably must warn a wiki maintainer of this mistake so he can undo
the changes :D

Leon Rosenberg a écrit :

No english version?

regards
Leon

http://wiki.apache.org/tomcat/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Properties file problem

2006-04-21 Thread Marc Farrow
I am sorry, but I do not know what you are trying to do.  The best place for
this type of question would be on a Java list.  This is a list specific to
Tomcat issues.

On 4/20/06, VIKASS NAGPAL [EMAIL PROTECTED] wrote:

 Hi All,

 I have a problem here. I have Pproperties file.
 It has the following code:

 File f = new File(propertyFolder);

 if (!f.exists()) f.mkdir();

 f = new File(propertyFolder +
 System.getProperty(file.separator) +
 propertyFileName);

 if (!f.exists())
 {
 String s = ((this.getClass().getResource(/ +
 propertyFileName)).toString());

 File pf = new File(s.substring(6));

 This code creates a folder with the name
 propertiespaydir and file with the name
 pdr.properties. In order to connect to the database i
 have to read the Servername, Database name, Username
 and password from this file or creates a file with the
 name pdr.properties file. But If i rename this
 pdr.properties file to something else then my code
 does not create the file with the name pdr.properties.
 So I cannot connect to the database. So anyone of you
 knows what change should i make into my existing code
 in order for me to create the file with the name
 pdr.properties in case it does not exist. I would
 really be thankful for any help in this matter.

 Thanks,
 With regards,
 Vikas Nagpal.


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Marc Farrow


Re: Properties file problem

2006-04-21 Thread Hadraba Petr
Hi Vikas,

some details:

I see you're correctly using the getClass.getResource() (I'm using
getServletContext().getResourceAsStream() or
getServletContext().getResource()). But, Why are you creating
resources? You see all the war content in the host OS filesystem
because of unpackWars=true. This is because of performance (I hope)
and if you set this to false, Tomcat will *read* resources (also
classes and anything else) from the WAR file directly! You are mixing
two things together: one are resources (they are using URL instead of
File) and on the other side Host OS FileSystem (the File objects).

So, you store database connection parameters in the property file. I
see two options to solve your problem:
1. Move the property file outside the resources if you want dynamic
creation. For example: temporary directory, any other directory which
location can be hard-wired as initial parameter in the web.xml file.
2. Use Tomcat's database pooler. You give more performence (if you're
not using your own database connection pooler)!


Please explain what you want to do, what's your goal...

Have a nice day

PETR


On 4/21/06, VIKASS NAGPAL [EMAIL PROTECTED] wrote:
 Hi All,

 I have a problem here. I have Pproperties file.
 It has the following code:

 File f = new File(propertyFolder);

 if (!f.exists()) f.mkdir();

 f = new File(propertyFolder +
 System.getProperty(file.separator) +
 propertyFileName);

 if (!f.exists())
 {
 String s = ((this.getClass().getResource(/ +
 propertyFileName)).toString());

 File pf = new File(s.substring(6));

 This code creates a folder with the name
 propertiespaydir and file with the name
 pdr.properties. In order to connect to the database i
 have to read the Servername, Database name, Username
 and password from this file or creates a file with the
 name pdr.properties file. But If i rename this
 pdr.properties file to something else then my code
 does not create the file with the name pdr.properties.
 So I cannot connect to the database. So anyone of you
 knows what change should i make into my existing code
 in order for me to create the file with the name
 pdr.properties in case it does not exist. I would
 really be thankful for any help in this matter.

 Thanks,
 With regards,
 Vikas Nagpal.


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Petr Hadraba
graphic artist and software designer
http://people.hadraba-soft.com/~petr
hadrabap AT bluetone DOT cz


Change location of work directory?

2006-04-21 Thread Trevor Miller
Hi All,

I've started working with the Tomcat embbed server and have managed to
get it running and serving JSPs. What I'd like to know is if there's a
way to explicitly specify a location of the work directory? I wish
to have this under /tmp on linux as opposed to in the tomcat
directory.

Thanks,
Trevor Miller

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with the xsl:import

2006-04-21 Thread BLAND, Geoff, GBM
Using Apache Tomcat 5.0.28 I'm having a problem with the xsl:import command.

I have several Tomcat running on the same server (they could be different
releases of code so can't share resources). 

An XSLT script is called via a JSP to convert XML to HTML (xsl:apply
nameXml=routesummary xsl=/xsl/routesummaryheader.xsl /). 

This routesummaryheader.xsl script then needs to call another XSLT script
routesummarycontent.xsl and it does this via an import, for example,

xsl:import href=http://localhost:8080/aaem/xsl/routesummarycontent.xsl; /

Now this works fine. 

But I run many Tomcat servers on this box and so a specific URI is no good.
So I want to replace that import with a relative URI

xsl:import href=routesummarycontent.xsl /

This does not work, I get Had IO Exception with stylesheet file:
routesummarycontent.xsl.

Note routesummaryheader.xsl and routesummarycontent.xsl are in the same
directory.

I've tried all kinds of relative paths in the import nothing seems to work.

The JSP file is under webapps\app-dir\jsp. The XSLT files are under
webapps\app-dir\xsl.


How do I fix this?

***
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorized and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The Royal 
Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
http://www.rbos.com
http://www.rbsmarkets.com 
***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Change location of work directory?

2006-04-21 Thread Derrick Koes

Yes, set the workDir attribute on the context element. 

-Original Message-
From: Trevor Miller [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 9:21 AM
To: users@tomcat.apache.org
Subject: Change location of work directory?

Hi All,

I've started working with the Tomcat embbed server and have managed to
get it running and serving JSPs. What I'd like to know is if there's a
way to explicitly specify a location of the work directory? I wish to
have this under /tmp on linux as opposed to in the tomcat directory.

Thanks,
Trevor Miller

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering session data

2006-04-21 Thread Filip Hanik - Dev Lists

http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/modules/groupcom/

I'm gonna focus on writing documentation for this module next week, by 
then I will publish it to a site so that you can read it


for a quick start, take a look at the LoadTest and the MapDemo applications.

For a very quick start,

GroupChannel channel = new GroupChannel();
ChannelListener listener = new MyListener();
channel.addChannelListener(listener);
MemberShipListener mlist = new MyMbrShipListener();
channel.addMembershipListener(mlist);
channel.start(channel.DEFAULT);

channel.send(channel.getMembers(),myMsg,0);

Filip


Len Popp wrote:

I'm starting to look at a similar problem. Where can I find info about
the Tomcat Tribes module?
--
Len

On 4/20/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
  

In tomcat 6, maybe 5.5.x we will have a ReplicatedContext, meaning that
the context attributes are replicated.
So you can store data in the ServletContext and it will be available on
the other nodes.

In your situation right now, you can use the Tomcat Tribes module for
communicating between nodes, or other options are Appia, Spread and JGroups.

Filip


erich.oliphant wrote:


Hi,
I have a situation that requires some information  be shared across a cluster.
 The issue is that the classes that manage this info are not particular to a
given session but global to the application such that at session on all
servers in the cluster would need to read/write to these classes.

I am wondering if there's a way to do this with the Clustering support
directly or would I need to use JGroups or something like that.

THanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with the xsl:import

2006-04-21 Thread Marc Farrow
You need to put the XML import file (in your case routesummarycontent.xsl)
somewhere that whomever is providing the resource (Apache or Tomcat) can see
it.  Let me try to elaborate.

We use an AJP connector with Tomcat and receives requests from Apache on
port 8009.  We forward all Servlet stuff to the Tomcat, but we let Apache
handle everything else.  Even images, js files, etc that are contained
within a web application (context).  In order to accomplish this, we have an
alias set up for each web application in Apache.  Thus, when we go to
http://localhost/mywebapp/js/myjsfile.js we know that Apache is pulling up
that page.  However, if we have a js file in a JSP page that is referenced
such as

script src=/mywebapp/js/myjsfile.js language=Javascript/script

we know that Tomcat is processing the JSP page, but Apache is processing the
handling of sending the JS file to the client.  As this is another http
request inside the page that was request.

So, the short of it is that you need to place your XSL somewhere that can be
accessed via HTTP.  So you need to either move the XSL file to a place where
an alias is defined for Apache (even root) or create an alias for your
Tomcat context and then point your html tag to:

xsl:import href=http://localhost/aaem/xsl/routesummarycontent.xsl; /

HTH



On 4/21/06, BLAND, Geoff, GBM [EMAIL PROTECTED] wrote:

 Using Apache Tomcat 5.0.28 I'm having a problem with the xsl:import
 command.

 I have several Tomcat running on the same server (they could be different
 releases of code so can't share resources).

 An XSLT script is called via a JSP to convert XML to HTML (xsl:apply
 nameXml=routesummary xsl=/xsl/routesummaryheader.xsl /).

 This routesummaryheader.xsl script then needs to call another XSLT script
 routesummarycontent.xsl and it does this via an import, for example,

 xsl:import href=http://localhost:8080/aaem/xsl/routesummarycontent.xsl;
 /

 Now this works fine.

 But I run many Tomcat servers on this box and so a specific URI is no
 good.
 So I want to replace that import with a relative URI

 xsl:import href=routesummarycontent.xsl /

 This does not work, I get Had IO Exception with stylesheet file:
 routesummarycontent.xsl.

 Note routesummaryheader.xsl and routesummarycontent.xsl are in the same
 directory.

 I've tried all kinds of relative paths in the import nothing seems to
 work.

 The JSP file is under webapps\app-dir\jsp. The XSLT files are under
 webapps\app-dir\xsl.


 How do I fix this?


 ***
 The Royal Bank of Scotland plc. Registered in Scotland No 90312.
 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
 Authorized and regulated by the Financial Services Authority

 This e-mail message is confidential and for use by the
 addressee only. If the message is received by anyone other
 than the addressee, please return the message to the sender
 by replying to it and then delete the message from your
 computer. Internet e-mails are not necessarily secure. The
 Royal Bank of Scotland plc does not accept responsibility for
 changes made to this message after it was sent.

 Whilst all reasonable care has been taken to avoid the
 transmission of viruses, it is the responsibility of the recipient to
 ensure that the onward transmission, opening or use of this
 message and any attachments will not adversely affect its
 systems or data. No responsibility is accepted by The Royal
 Bank of Scotland plc in this regard and the recipient should carry
 out such virus and other checks as it considers appropriate.
 Visit our websites at:
 http://www.rbos.com
 http://www.rbsmarkets.com

 ***

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Marc Farrow


Re: Change location of work directory?

2006-04-21 Thread Trevor Miller
I assume that's in the server.xml file, which I'm not using. I'm using
the following code with no server.xml:

System.setProperty(catalina.home, getPath());
embedded = new Embedded();
engine = embedded.createEngine();
engine.setDefaultHost(localhost);
host = embedded.createHost(localhost, getPath() + /webapps);
engine.addChild(host);
Context context = embedded.createContext(,getPath() + /webapps/ROOT);
context.addWelcomeFile(index.jsp);
host.addChild(context);
embedded.addEngine(engine);
Connector connector =
embedded.createConnector((java.net.InetAddress)null, 8123, false);
embedded.addConnector(connector);
embedded.start();

ANy ideas. I've looked through the Javadoc API for the Context class
but didn't find anything on workDir there.

On 4/21/06, Derrick Koes [EMAIL PROTECTED] wrote:

 Yes, set the workDir attribute on the context element.

 -Original Message-
 From: Trevor Miller [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 21, 2006 9:21 AM
 To: users@tomcat.apache.org
 Subject: Change location of work directory?

 Hi All,

 I've started working with the Tomcat embbed server and have managed to
 get it running and serving JSPs. What I'd like to know is if there's a
 way to explicitly specify a location of the work directory? I wish to
 have this under /tmp on linux as opposed to in the tomcat directory.

 Thanks,
 Trevor Miller

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Real programmers use Linux!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Change location of work directory?

2006-04-21 Thread Trevor Miller
Figured it out. Cast Context to StandardContext and call setWorkDir. Thanks!!

On 4/21/06, Trevor Miller [EMAIL PROTECTED] wrote:
 I assume that's in the server.xml file, which I'm not using. I'm using
 the following code with no server.xml:

 System.setProperty(catalina.home, getPath());
 embedded = new Embedded();
 engine = embedded.createEngine();
 engine.setDefaultHost(localhost);
 host = embedded.createHost(localhost, getPath() + /webapps);
 engine.addChild(host);
 Context context = embedded.createContext(,getPath() + /webapps/ROOT);
 context.addWelcomeFile(index.jsp);
 host.addChild(context);
 embedded.addEngine(engine);
 Connector connector =
 embedded.createConnector((java.net.InetAddress)null, 8123, false);
 embedded.addConnector(connector);
 embedded.start();

 ANy ideas. I've looked through the Javadoc API for the Context class
 but didn't find anything on workDir there.

 On 4/21/06, Derrick Koes [EMAIL PROTECTED] wrote:
 
  Yes, set the workDir attribute on the context element.
 
  -Original Message-
  From: Trevor Miller [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 21, 2006 9:21 AM
  To: users@tomcat.apache.org
  Subject: Change location of work directory?
 
  Hi All,
 
  I've started working with the Tomcat embbed server and have managed to
  get it running and serving JSPs. What I'd like to know is if there's a
  way to explicitly specify a location of the work directory? I wish to
  have this under /tmp on linux as opposed to in the tomcat directory.
 
  Thanks,
  Trevor Miller
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Real programmers use Linux!



--
Real programmers use Linux!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Access server from outside

2006-04-21 Thread Jonathan Pare
Any of you have an idea why I can't access my websites from outside my home ? 
Thanks.



 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server 
 from outside Date: Thu, 20 Apr 2006 07:44:41 -0400  Hi,   Why can't I 
 access my websites from outside my network ?  On the computer running the 
 server everything's fine: I can access via  - http://localhost/ - 
 http://[myipaddress]/ - http://[mydyndnsservice.com]/   But when I try 
 from work, the page never loads. I'm using Ubuntu 5.10, Tomcat 5.5.16 
 (configured on port 80 so I don't have to type :8080), D-Link DI624+ router 
 (configured with port fowarding: incomming request on port 80 - send it to 
 the computer ip running tomcat) and Firestarter (IpTables) accepting inbound 
 connection from everyone on port 80.   Thanks. 
 _ Profitez 
 des puissants filtres de courriels indésirables articulés sur la technologie 
 brevetée MicrosoftMD SmartScreen. 
 http://join.msn.com/?pgmarket=fr-capage=features/junkmail
_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail

Re: Access server from outside

2006-04-21 Thread David Kerber
Does your ISP allow you to run a server?  Mine blocks pretty much all 
incoming requests.



Jonathan Pare wrote:

Any of you have an idea why I can't access my websites from outside my home ? 
Thanks.




 


From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server from outside Date: Thu, 20 Apr 2006 07:44:41 -0400 
 Hi,   Why can't I access my websites from outside my network ?  On the computer running the server everything's fine: I can 
access via  - http://localhost/ - http://[myipaddress]/ - http://[mydyndnsservice.com]/   But when I try from work, the 
page never loads. I'm using Ubuntu 5.10, Tomcat 5.5.16 (configured on port 80 so I don't have to type :8080), D-Link DI624+ router 
(configured with port fowarding: incomming request on port 80 - send it to the computer ip running tomcat) and Firestarter (IpTables) 
accepting inbound connection from everyone on port 80.   Thanks. 
_ Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail
   


_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail
 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error starting examples with 5.5.16

2006-04-21 Thread Anthony Richardella
Hi,

I'm having a problem with the default install of 5.5.16. When I go into the
manager and try start either /jsp-examples or /servlet examples I get the
following errors. I'm using the Sun jre 1.5.0_06.


catalina.log

Apr 21, 2006 10:24:14 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 21, 2006 10:24:14 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/servlets-examples] startup failed due to previous errors


localhost.log

Apr 21, 2006 10:24:14 AM org.apache.catalina.core.StandardContextlistenerStart
SEVERE: Error configuring application listener of class
listeners.ContextListener
java.lang.ClassFormatError: Extra bytes at the end of class file
listeners/ContextListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
WebappClassLoader.java:1812)
at org.apache.catalina.loader.WebappClassLoader.findClass(
WebappClassLoader.java:866)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1319)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1198)
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3677)
at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4183)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java
:1175)
at org.apache.catalina.manager.HTMLManagerServlet.start(
HTMLManagerServlet.java:527)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(
HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Apr 21, 2006 10:24:14 AM org.apache.catalina.core.StandardContextlistenerStart
SEVERE: Error configuring application listener of class
listeners.SessionListener
java.lang.ClassFormatError: Extra bytes at the end of class file
listeners/SessionListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
WebappClassLoader.java:1812)
at org.apache.catalina.loader.WebappClassLoader.findClass(
WebappClassLoader.java:866)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1319)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1198)
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3677)
at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4183)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java
:1175)
at org.apache.catalina.manager.HTMLManagerServlet.start(
HTMLManagerServlet.java:527)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(
HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at 

RE: Error starting examples with 5.5.16

2006-04-21 Thread Caldarale, Charles R
 From: Anthony Richardella [mailto:[EMAIL PROTECTED] 
 Subject: Error starting examples with 5.5.16
 
 I'm having a problem with the default install of 5.5.16. When 
 I go into the manager and try start either /jsp-examples or
 /servlet examples I get the following errors.

The sample .class files in the 5.5.16 .exe distribution are broken.  Use
5.5.17 or the .zip download for 5.5.16.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[offtopic] Performance check

2006-04-21 Thread Danny Lee

Hi guys!

A really sure question, for those of you, who already finished a 
project. Where can I find some kind of statistics telling me, how many

users per day can produce how many simultaneous clicks. I kind of seen
such a stuff, but can't find it again.

For example, if my application can handle 20 clicks / second, how
many users/day could I approximately handle without big problems? :)

Thanks in advance!

Danny


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [offtopic] Performance check

2006-04-21 Thread Peter Crowther
 From: Danny Lee
 A really sure question, for those of you, who already finished a 
 project. Where can I find some kind of statistics telling me, how many
 users per day can produce how many simultaneous clicks. I kind of seen
 such a stuff, but can't find it again.
 
 For example, if my application can handle 20 clicks / second, how
 many users/day could I approximately handle without big problems? :)

It depends entirely on your application and your user population.  How
many clicks in a user session, how many sessions per day from the same
user?  OK, that's the number of clicks per day from that user.  Divide
your maximum pages served per day by this number, and you get your
absolute maximum number of users per day.  Don't forget to factor in
that applications rarely have the same load over a 24-hour period, so
you'll have to apply some kind of divisor to the results to allow for
peaks and troughs in use.

Only you can answer these questions, as only you know what your
application is and how your users will use it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: Access server from outside

2006-04-21 Thread Jonathan Pare

I contacted my ISP and they are blocking the port 80. They also forbid to run 
any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So 
basicaly, that mean that I could just uninstall tomcat and forget all about it 
!?! 

 Date: Fri, 21 Apr 2006 10:28:41 -0400 From: [EMAIL PROTECTED] To: 
 users@tomcat.apache.org Subject: Re: Access server from outside  Does your 
 ISP allow you to run a server?  Mine blocks pretty much all  incoming 
 requests.   Jonathan Pare wrote:  Any of you have an idea why I can't 
 access my websites from outside my home ?  Thanks.
 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access 
 server from outside Date: Thu, 20 Apr 2006 07:44:41 -0400  Hi,   Why 
 can't I access my websites from outside my network ?  On the computer running 
 the server everything's fine: I can access via  - http://localhost/ - 
 http://[myipaddress]/ - http://[mydyndnsservice.com]/   But when I try 
 from work, the page never loads. I'm using Ubuntu 5.10, Tomcat 5.5.16 
 (configured on port 80 so I don't have to type :8080), D-Link DI624+ router 
 (configured with port fowarding: incomming request on port 80 - send it to 
 the computer ip running tomcat) and Firestarter (IpTables) accepting inbound 
 connection from everyone on port 80.   Thanks. 
 _ Profitez 
 des puissants filtres de courriels indésirables articulés sur la technologie 
 brevetée MicrosoftMD SmartScreen. 
 http://join.msn.com/?pgmarket=fr-capage=features/junkmail   
 _ Profitez 
 des puissants filtres de courriels indésirables articulés sur la technologie 
 brevetée MicrosoftMD SmartScreen. 
 http://join.msn.com/?pgmarket=fr-capage=features/junkmail 
 - To 
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
 [EMAIL PROTECTED] 
_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail

RE: Re: Access server from outside

2006-04-21 Thread Peter Crowther
 From: Jonathan Pare [mailto:[EMAIL PROTECTED] 
 I contacted my ISP and they are blocking the port 80.
[...]
 So basicaly, that mean that I 
 could just uninstall tomcat and forget all about it !?! 

Or change ISP to one that suits your needs.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: Access server from outside

2006-04-21 Thread Steve Ochani
On 21 Apr 2006 at 11:13, Jonathan Pare wrote:

 
 I contacted my ISP and they are blocking the port 80. They also forbid
 to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or
 other. So basicaly, that mean that I could just uninstall tomcat and
 forget all about it !?! 
 

You could run tomcat on a non standard port (or even try the standard port of 
8080) and 
see if that is not blocked. 
However it would still be violating your ISP policy of not running any server.




  Date: Fri, 21 Apr 2006 10:28:41 -0400 From: [EMAIL PROTECTED]
  To: users@tomcat.apache.org Subject: Re: Access server from
  outside  Does your ISP allow you to run a server?  Mine blocks
  pretty much all  incoming requests.   Jonathan Pare wrote: 
  Any of you have an idea why I can't access my websites from outside
  my home ?  Thanks.From:
  [EMAIL PROTECTED] To: users@tomcat.apache.org Subject:
  Access server from outside Date: Thu, 20 Apr 2006 07:44:41 -0400 
  Hi,   Why can't I access my websites from outside my network ?  On
  the computer running the server everything's fine: I can access via
   - http://localhost/ - http://[myipaddress]/ -
  http://[mydyndnsservice.com]/   But when I try from work, the page
  never loads. I'm using Ubuntu 5.10, Tomcat 5.5.16 (configured on
  port 80 so I don't have to type :8080), D-Link DI624+ router
  (configured with port fowarding: incomming request on port 80 -
  send it to the computer ip running tomcat) and Firestarter
  (IpTables) accepting inbound connection from everyone on port 80. 
   Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error listener start during aplication start up

2006-04-21 Thread lee hwaying
I have the following error message while starting up my application in 
Tomcat.

I am using log4j.xml in my custom application. can someone help

thanks.


INFO: XML validation disabled
log4j:WARN No appenders could be found for logger 
(org.apache.catalina.startup.TldConfig).

log4j:WARN Please initialize the log4j system properly.

_
Find just what you are after with the more precise, more powerful new MSN 
Search. http://search.msn.com.my/ Try it now.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [offtopic] Performance check

2006-04-21 Thread Danny Lee

Thanks for your answer!

I see your point. Well in my case this is a usual web-shop portal.
So the question here maybe is: how many normal-behavior shopping
users have to be present on my site to generate user 20 clicks per 
second in the peak-near area, let say 80-90% of the time. I guess 
100-300? :)


I mean even in this case I have 100 clicks in the peak time, and maybe 
have some waiting time (4-5 seconds) but I's not a real issue, because

normal users can tolerate even longer lags...

So... :) Anyone done something similar, any experience? :)

Cheers,

Danny


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: Access server from outside

2006-04-21 Thread Jonathan Pare
Yeah but in my area, I don't have that much choices ! Plus, I have I package 
deal with that ISP (IP phone + log distance call + television + internet).  
Maybe I'll try the other port suggestion and see if they bother my with the 
not running a server policy...
 
Thanks guys !



 Subject: RE: Re: Access server from outside Date: Fri, 21 Apr 2006 16:16:19 
 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org   From: 
 Jonathan Pare [mailto:[EMAIL PROTECTED]   I contacted my ISP and they are 
 blocking the port 80. [...]  So basicaly, that mean that I   could just 
 uninstall tomcat and forget all about it !?!   Or change ISP to one that 
 suits your needs.  - Peter  
 - To 
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: 
 [EMAIL PROTECTED] 
_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail

Re: Access server from outside

2006-04-21 Thread David Kerber
Some ISP's (not all!) will make exceptions for non-commercial, 
low-volume personal web sites if you ask nicely.  You have nothing to 
lose by explaining what you want to do, and asking them to allow a 
single port in to your system.


Dave
.

Jonathan Pare wrote:

I contacted my ISP and they are blocking the port 80. They also forbid to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So basicaly, that mean that I could just uninstall tomcat and forget all about it !?! 

 

Date: Fri, 21 Apr 2006 10:28:41 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Access server from outside  Does your ISP allow you to run a server?  Mine blocks pretty much all  incoming requests.   Jonathan Pare wrote:  Any of you have an idea why I can't access my websites from outside my home ?  Thanks.From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server from outside Date: Thu, 20 Apr 2006 07:44:41 -0400  Hi,   Why can't I access my websites from outside my network ?  On the computer running the server everything's fine: I can access via  - http://localhost/ - http://[myipaddress]/ - http://[mydyndnsservice.com]/   But when I try from work, the page never loads. I'm using Ubuntu 5.10, Tomcat 5.5.16 (configured on port 80 so I don't have to type :8080), D-Link DI624+ router (configured with port fowarding: incomming request on port 80 - send it to the computer ip running tomcat) and Firestarter (IpTables) accepting inbound connection from everyone on port 80.   Thanks. _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail   _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
   


_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail
 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Access server from outside

2006-04-21 Thread David Kerber
Or you could pay for a business line, which would allow servers.  Of 
course it will cost more...



Jonathan Pare wrote:

I contacted my ISP and they are blocking the port 80. They also forbid to run any type of server FTP, HTTP, IRC, MP3, PROXY, SMTP, POP or other. So basicaly, that mean that I could just uninstall tomcat and forget all about it !?! 

 

Date: Fri, 21 Apr 2006 10:28:41 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Access server from outside  Does your ISP allow you to run a server?  Mine blocks pretty much all  incoming requests.   Jonathan Pare wrote:  Any of you have an idea why I can't access my websites from outside my home ?  Thanks.From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Access server from outside Date: Thu, 20 Apr 2006 07:44:41 -0400  Hi,   Why can't I access my websites from outside my network ?  On the computer running the server everything's fine: I can access via  - http://localhost/ - http://[myipaddress]/ - http://[mydyndnsservice.com]/   But when I try from work, the page never loads. I'm using Ubuntu 5.10, Tomcat 5.5.16 (configured on port 80 so I don't have to type :8080), D-Link DI624+ router (configured with port fowarding: incomming request on port 80 - send it to the computer ip running tomcat) and Firestarter (IpTables) accepting inbound connection from everyone on port 80.   Thanks. _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail   _ Profitez des puissants filtres de courriels indésirables articulés sur la technologie brevetée MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-capage=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
   


_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail
 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Access server from outside

2006-04-21 Thread David Kerber

If you keep the data transfer volume low, they probably won't notice...

Jonathan Pare wrote:

Yeah but in my area, I don't have that much choices ! Plus, I have I package deal with that ISP (IP phone + log distance call + television + internet).  
Maybe I'll try the other port suggestion and see if they bother my with the not running a server policy...


Thanks guys !



 

Subject: RE: Re: Access server from outside Date: Fri, 21 Apr 2006 16:16:19 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org   From: Jonathan Pare [mailto:[EMAIL PROTECTED]   I contacted my ISP and they are blocking the port 80. [...]  So basicaly, that mean that I   could just uninstall tomcat and forget all about it !?!   Or change ISP to one that suits your needs.  - Peter  - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
   


_
Profitez des puissants filtres de courriels indésirables articulés sur la 
technologie brevetée MicrosoftMD SmartScreen.
http://join.msn.com/?pgmarket=fr-capage=features/junkmail
 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat clustering session data

2006-04-21 Thread Len Popp
Thanks, Filip!
--
Len

On 4/21/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/modules/groupcom/

 I'm gonna focus on writing documentation for this module next week, by
 then I will publish it to a site so that you can read it

 for a quick start, take a look at the LoadTest and the MapDemo applications.

 For a very quick start,

 GroupChannel channel = new GroupChannel();
 ChannelListener listener = new MyListener();
 channel.addChannelListener(listener);
 MemberShipListener mlist = new MyMbrShipListener();
 channel.addMembershipListener(mlist);
 channel.start(channel.DEFAULT);

 channel.send(channel.getMembers(),myMsg,0);

 Filip


 Len Popp wrote:
  I'm starting to look at a similar problem. Where can I find info about
  the Tomcat Tribes module?
  --
  Len
 
  On 4/20/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 
  In tomcat 6, maybe 5.5.x we will have a ReplicatedContext, meaning that
  the context attributes are replicated.
  So you can store data in the ServletContext and it will be available on
  the other nodes.
 
  In your situation right now, you can use the Tomcat Tribes module for
  communicating between nodes, or other options are Appia, Spread and 
  JGroups.
 
  Filip
 
 
  erich.oliphant wrote:
 
  Hi,
  I have a situation that requires some information  be shared across a 
  cluster.
   The issue is that the classes that manage this info are not particular 
  to a
  given session but global to the application such that at session on all
  servers in the cluster would need to read/write to these classes.
 
  I am wondering if there's a way to do this with the Clustering support
  directly or would I need to use JGroups or something like that.
 
  THanks
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: connector maxProcessor attribute question

2006-04-21 Thread Rumpa Giri
We are currently using 5.0.28 tomcat version. We were referring to docs for 
version 5.0.

Thanks,
Rumpa Giri

Bill Barker [EMAIL PROTECTED] wrote: 
Rumpa Giri  wrote in message 
news:[EMAIL PROTECTED]
I had 2 questions regarding tomcat configuration:

 1) We are currently trying to reconfigure our IIS to point to the tomcats 
 as follows:

 We will have 4 web servers. And 3 app servers each running 4 tomcat 
 instance each  configured to only have AJP connectors. In total 12 tomcat 
 instance running in total.
 And each web server is going to point to all the 12 tomcats for failover 
 at the web server layer. Is there any downside to such a configuration? 
 Earlier we had one web server point to only one app server running 4 
 instances.

 2) In the
 
 
enableLookups=false redirectPort=8443 debug=0
protocol=AJP/1.3 /

 I can define one more attribute named maxProcessors.

 A maxProcessors value of zero (0) signifies thatthe number of 
 processors is unlimited. If not specified, this   atttribute defaults 
 to 20.

 In the documentation it mentions for the [maxProcessors] This should be 
 set to a value that is greater than or equal to the maximum number 
 of concurrent connections the remote web server can open to Tomcat 
 simultaneously.

 In the configuration described above(1), since all the webservers are 
 going to point to all the tomcat instances, we are thinking of putting 
 [maxProcessors value of zero (0) ] in the AJP connector. Is there any 
 disadvantage to that?


The main disadvantage is that the docs are wrong ;-).

If you are using the APR Connector, then you need maxProcessors=-1 to 
achieve this.  If you are using the Java Connector, then 0 gets changed to 
200.



 Thanks,
 Rumpa Giri


 -
 Blab-away for as little as 1�/min. Make  PC-to-Phone Calls using Yahoo! 
 Messenger with Voice. 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.

inscrutable TC 5.5.12 startup

2006-04-21 Thread Chris Pat
Hello
I hope someone can doesnt mind a little coaching. I am
sure this is brain-fade, however I have a struts app
in TC 5.5.12 that gives a cfne for a PlugIn that does
not exist.  Yes I know that is impossible, ultimately,
however I have searched the application's
web/struts-config.xml, the server's server.xml, search
in the classpath, search in the project path, search
in the server root within files for the class,
searched project root within files for the class, all
to no avail.  

Now obviously TC thinks it is being called, it is a
PlugIn class, so it must be somewhere I am just out of
places to look.  Any tips?  tia. 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems configuring SSL connector

2006-04-21 Thread EddieE

I am trying to move from Tomcat 4.1.27 to 5.5.16
I use Tomcat to test round trip http/https communication from a JMS server
to http and https clients.
I'm using keystore files so I needed to add these to server.xml.
I'm using native libraries since it appears that these are required if you
want to use a non-default keystoreFile. I added tcnative-1.dll and
openssl.exe to the PATH.
I tried both JDK 1.4 compatibility and 1.5 and get the same results. The
server starts OK but the https connector will only work as http.
I tried sslProtocol=TLS, SSL and leaving it out.
What am I doing something wrong?
Below is the relevant section of server.xml as well as the server console.

!-- Define a SSL HTTP/1.1 Connector on port 8443 --
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
  
keystoreFile=C:\Tomcat\apache-tomcat-5.5.16\apache-tomcat-5.5.16\server.keystore
   keystorePass=changeit/

Created MBeanServer with ID: 1ef9f1d:10abdbb3f01:-8000:SNCFW-DMZ3:1
Apr 21, 2006 2:34:26 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
Apr 21, 2006 2:34:26 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Apr 21, 2006 2:34:26 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8553
Apr 21, 2006 2:34:27 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Apr 21, 2006 2:34:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 875 ms
Apr 21, 2006 2:34:27 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 21, 2006 2:34:27 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
Apr 21, 2006 2:34:27 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 21, 2006 2:34:29 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
Apr 21, 2006 2:34:29 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Apr 21, 2006 2:34:29 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8553
Apr 21, 2006 2:34:29 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Apr 21, 2006 2:34:29 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 21, 2006 2:34:29 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2421 ms

--
View this message in context: 
http://www.nabble.com/Problems-configuring-SSL-connector-t1488604.html#a4032782
Sent from the Tomcat - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reducing Tomcat (Embedded Or Regular) memory

2006-04-21 Thread Chirag
Hi,

We are trying to upgrade Tomcat from an older version 3.x to 5.x and noticing 
that Tomcat 5.x requires quite more memory than 3.x. We are running it in 
constrained env. with limited  memory and other resources.
 
In order to fully explore all possibilities, we  also ran Embedded Tomcat for 
our web apps and it seems to be saving some memory but not significantly less 
than regular tomcat. (About 3MB saving in embedded)
 
Regular tomcat 5.x with our webapps(total 5) takes about ~66m (RSS portion)
Embedded tomcat with above apps takes about ~63m (RSS portion)
 
I am curious to know are there more tweaks that can be tried on Embedded 
Tomcat to  reduce 
memory usage further ? We tried Embedded Tomcat that creates shared class 
loader and set it as parent classloader on Tomcat engine and adding all of our 
webapps context in engine, which seems to be saving memory upto 3 MB.
 
Is Embedded Tomcat going to help further in reducing memory usage in general 
(more than 3mb)  ?

Are there more ways to reduce memory in regular Tomcat 5.x ? (server.xml is 
pretty much trimmed down to bare minimum, no JMX listens, min threads , no 
extra connectors etc)
 
What portion of Tomcat code internals we can not build Or trim in regular 
Tomcat to save more, if any ?
 
Thanks for your help.
 
Thanks,
Chirag



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



question on jvmRoute parameter (tomcat version 5.0.28)

2006-04-21 Thread Rumpa Giri
According to the 5.0 docs, the jvmRoute description says the following:

Identifier which must be used in load balancing scenarios to enable 
session affinity. The indetifier, which must be unique across all 
Tomcat 5 servers which participate in the cluster, will be appended to 
the generated session identifier, therefore allowing the front end 
proxy to always forward a particular session to the same Tomcat 5 
instance.

In the worker.properties(5.0) the worker_name correspond to the jvmRoute.

we specify the worker names who participate in the loadbalancing. such as

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=server1, server2, server3, server4, 
server5, server6, server7, server8, server9, server10, server11, server12
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1

when you say 

which must be unique across all Tomcat 5 servers which participate in 
the cluster 

do you mean the all the worker names hence the jvmRoute should be unique?

Currently we have:

server1 through server4 is on one machine having 4 tomcat instances.
server5 through server8 is on one machine having 4 tomcat instances.
server9 through server12 is on one machine having 4 tomcat instances.

Thanks,
Rumpa Giri


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

NoClassDefFoundError for Bootstrap on Solaris

2006-04-21 Thread Michael Gesundheit
I have put the jar file on the classpath, I put the path to where the jar is as 
well.
  I don't know about any other option to try.
   
  Any clue?
   
  Thanks,
  -Michael


Re: inscrutable TC 5.5.12 startup

2006-04-21 Thread Chris Pat
Hello
Sorry to self-answer, but for edification purposes.  I undeployed all other 
apps and it worked.  That means the config in another app was being used in the 
startup of the one in question.  I thought this was impossible.  I checked in 
the shared and the PlugIn class was not there.  I ass-umed that the individual 
apps, from their xml startup configuration, were firewalled from each other.  
Well thank you for tolerating the chatter.

Chris Pat [EMAIL PROTECTED] wrote: Hello
I hope someone can doesnt mind a little coaching. I am
sure this is brain-fade, however I have a struts app
in TC 5.5.12 that gives a cfne for a PlugIn that does
not exist.  Yes I know that is impossible, ultimately,
however I have searched the application's
web/struts-config.xml, the server's server.xml, search
in the classpath, search in the project path, search
in the server root within files for the class,
searched project root within files for the class, all
to no avail.  

Now obviously TC thinks it is being called, it is a
PlugIn class, so it must be somewhere I am just out of
places to look.  Any tips?  tia. 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

RE: question on jvmRoute parameter (tomcat version 5.0.28)

2006-04-21 Thread Tim Lucia
The set of worker names is one-to-one and onto the set of jvmRoutes.  I use
the short host name, an underscore and the port number (ajp), i.e.,

Tomcat1_9009
Tomcat2_10009
Tomcat3_11009
Tomcat4_12009

For the worker names and the jvm routes, thus making the identifiers unique,
and following the 1:1 and onto rule.


-Original Message-
From: Rumpa Giri [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 3:51 PM
To: Tomcat UserGroup
Subject: question on jvmRoute parameter (tomcat version 5.0.28)

According to the 5.0 docs, the jvmRoute description says the following:

Identifier which must be used in load balancing scenarios to enable
session affinity. The indetifier, which must be unique across all
Tomcat 5 servers which participate in the cluster, will be appended to
the generated session identifier, therefore allowing the front end
proxy to always forward a particular session to the same Tomcat 5
instance.

In the worker.properties(5.0) the worker_name correspond to the jvmRoute.

we specify the worker names who participate in the loadbalancing. such as

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=server1, server2, server3, server4,
server5, server6, server7, server8, server9, server10, server11, server12
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1

when you say 

which must be unique across all Tomcat 5 servers which participate
in the cluster 

do you mean the all the worker names hence the jvmRoute should be unique?

Currently we have:

server1 through server4 is on one machine having 4 tomcat instances.
server5 through server8 is on one machine having 4 tomcat instances.
server9 through server12 is on one machine having 4 tomcat instances.

Thanks,
Rumpa Giri


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save
big.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL tomcat apache FAILURE

2006-04-21 Thread Crom James B.
 
 
Anyone help! 
I have followed the directions precisely in
http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html , (yes we have
tomcat 5.x) and cannot get port 8443 or 443 to respond at all via web
browser or by a portscan.  
 
Running on a windows 2003 ent edition, apache-tomcat is the ONLY thing
running on this box.  
 
Any advice would be appreciated
 
Jim Crom 
Las Vegas Clark County Library


Logging?

2006-04-21 Thread David Rush

Should Tomcat be logging the HTTP requests that it gets?

I'm debugging 5.5.16 on Windows.  I've installed commons-logging.jar and 
log4j-1.2.13.jar into common/lib, and log4j.properties into common/lib.  
My log4j.properties looks like this right now:


#log4j.rootLogger=INFO, RFA
log4j.appender.RFA=org.apache.log4j.RollingFileAppender
log4j.appender.RFA.File=${catalina.base}/logs/tomcat.log
log4j.appender.RFA.MaxFileSize=50MB
log4j.appender.RFA.MaxBackupIndex=10
log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
log4j.appender.RFA.layout.ConversionPattern=%d %p %t %c - %m%n
#log4j.logger.org.apache=INFO, RFA
log4j.logger.org.apache.catalina=DEBUG, RFA


When I have that last line set to DEBUG, I get so much volume in the log 
file that it's hard to tell which way is up.  When I set it to INFO, I 
don't get any messages that appear to correspond to requests.


How can I get requests and the results of requests to show up in that 
log file, or any log file for that matter?  I've not found any other log 
file that seems to have it.  In the logs directory, I see stdout_*, 
stderr_*.log, and jakarta_service_*.log files, as well as the log4j 
tomcat.log file, but none of these seem to have request/result info.


David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logging?

2006-04-21 Thread Derrick Koes
Try the RequestDumperValve. 

-Original Message-
From: David Rush [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 5:00 PM
To: Tomcat Users List
Subject: Logging?

Should Tomcat be logging the HTTP requests that it gets?

I'm debugging 5.5.16 on Windows.  I've installed commons-logging.jar and
log4j-1.2.13.jar into common/lib, and log4j.properties into common/lib.

My log4j.properties looks like this right now:

#log4j.rootLogger=INFO, RFA
log4j.appender.RFA=org.apache.log4j.RollingFileAppender
log4j.appender.RFA.File=${catalina.base}/logs/tomcat.log
log4j.appender.RFA.MaxFileSize=50MB
log4j.appender.RFA.MaxBackupIndex=10
log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
log4j.appender.RFA.layout.ConversionPattern=%d %p %t %c - %m%n
#log4j.logger.org.apache=INFO, RFA
log4j.logger.org.apache.catalina=DEBUG, RFA


When I have that last line set to DEBUG, I get so much volume in the log
file that it's hard to tell which way is up.  When I set it to INFO, I
don't get any messages that appear to correspond to requests.

How can I get requests and the results of requests to show up in that
log file, or any log file for that matter?  I've not found any other log
file that seems to have it.  In the logs directory, I see stdout_*,
stderr_*.log, and jakarta_service_*.log files, as well as the log4j
tomcat.log file, but none of these seem to have request/result info.

David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: error listener start during aplication start up

2006-04-21 Thread Hadraba Petr
Hi,

this warning says that tomcat is using log4j, but can't find the
configuration file /common/classes/log4j.properties.

But I don't know how tell tomcat to ignore log4j.jar.:-(

More info about Tomcat vs. Log4j:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

PETR


On 4/21/06, lee hwaying [EMAIL PROTECTED] wrote:
 I have the following error message while starting up my application in
 Tomcat.
 I am using log4j.xml in my custom application. can someone help

 thanks.


 INFO: XML validation disabled
 log4j:WARN No appenders could be found for logger
 (org.apache.catalina.startup.TldConfig).
 log4j:WARN Please initialize the log4j system properly.

 _
 Find just what you are after with the more precise, more powerful new MSN
 Search. http://search.msn.com.my/ Try it now.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Petr Hadraba
graphic artist and software designer
http://people.hadraba-soft.com/~petr
hadrabap AT bluetone DOT cz


Re: IE 20 session cookies limitation

2006-04-21 Thread Rick Wong

This is neat.  Thanks!
--
Rick

Peter Rossbach wrote:

Option is

Connector emptySessionPath=true ... /

Then all webapps share the same session id.

Cheers
Peter



Am 16.04.2006 um 15:12 schrieb Tim Funk:

Check the docs - there is an option that will allow tomcat to use the 
same jsessionid for all webapps.


-Tim

Rick Wong wrote:

It's been a while since my last posting of this topic.  I have a 
work-around that perhaps someone may find it useful.
I worked around the issue by implementing a Tomcat Valve, and screen 
out for the jsessionsso cookie on every request.  If I find it, I 
reinsert it back into the response within the valve to touch the 
timestamp of the jssessionsso cookie.  This way, when IE wants to 
throw away a cookie, jsessionsso would be the last one it picks.  
It's not a perfect solution but there is nothing I can do about IE's 
deficiency (how often do you see Microsoft rigidly conforms to a spec?)

Thanks,
--Rick
Rick Wong wrote:

Hi,

I am using Tomcat 5.0.26.  I have 20+ web applications hooked up 
with single-sign-on.  Each web application generates a JESSIONID 
session cookie with a different path, and shares a single 
JSESSIONIDSSO.


When testing my suite of applications, I notice that IE 
consistently drops my login after accessing the 20th web 
application within a session.  I did some research and learned 
about RFC 2109 where HTTP agents should support a minimum of 20 
session cookies per domain.  That appears to be just what IE does.  
The following Microsoft knowledgebase article explains that: 
http://support.microsoft.com/default.aspx?scid=kb;EN-US;306070.  I 
suspect JSESSIONIDSSO was the oldest cookie, and was the first to 
get dropped by IE when reaching over 20 session cookies.  Firefox 
does not have this problem.


Knowing that I cannot easily refactor the application suite to make 
less number of web application ( 19), I am wondering if anyone 
else has this problem, and if and how I might work around this IE 
limitation.


Thanks,
--Rick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems configuring SSL connector

2006-04-21 Thread Markus Schönhaber
EddieE wrote:
 I'm using keystore files so I needed to add these to server.xml.
 I'm using native libraries since it appears that these are required if you
 want to use a non-default keystoreFile.

No. With APR (the native libs) you'll have to configure the OpenSSL way:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS

 I added tcnative-1.dll and 
 openssl.exe to the PATH.
 I tried both JDK 1.4 compatibility and 1.5 and get the same results. The
 server starts OK but the https connector will only work as http.
 I tried sslProtocol=TLS, SSL and leaving it out.
 What am I doing something wrong?

You're mixing the .keystore config with the APR connector that uses OpenSSL. 
If you want to use the .keystore, don't use the native libs.

If your keystore file is not in the default location, set the keystoreFile 
attribute of the Connector appropriately:
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html#SSL%20Support

Regards
  mks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging?

2006-04-21 Thread Markus Schönhaber
David Rush wrote:
 Should Tomcat be logging the HTTP requests that it gets?

Not unless you tell it to.
If you want a complete dump of the requests logged, use RequestDumperValve, as 
Derrick said.
If you simply want an access log, use an AccesLogValve (look at the end of 
server.xml and uncomment the one that suits your needs).

Regards
  mks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reducing Tomcat (Embedded Or Regular) memory

2006-04-21 Thread manivannan57

1) remove unnecessary jars (you think) form your-web-app/WEB-INF/lib and
tomcat-home/common/lib
2) remove unnecessary classes from webapp-root/WEB-INF/classes
3)stop loading unnecessary (other) web applications.
4) avoid the load-on-startup in web.xml - (this will avoid loading
servlets and other classes during startup).
5)avoid connection pooling, and other possible pooling (if you are using).
However this may affect your performance.
6) avoid storing *very fat* objects in session, application, pagecontext and
similiar objects.

Hope, this would help  in saving a considerable memory.

-
Manivannan Palanichamy
http://www.geocities.com/manivannan57


--
View this message in context: 
http://www.nabble.com/Reducing-Tomcat-%28Embedded-Or-Regular%29-memory-t1488640.html#a4037105
Sent from the Tomcat - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems configuring SSL connector

2006-04-21 Thread Dhaval Patel
Yes. Markus is right.

When you add tcnative-1.dll, it means you are enabling APR support in tomcat, 
which is good.

For detail instruction, visit: 
http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html

There is only one problem in the steps described in above link. It works 100% 
correctly with
self-signed certificate but it does not work with Versign/Thwatte signed 
certificate. People have
tested it. So just read the link and follow the steps. It is not difficult at 
all and best of all
it works.

Let us know how it goes with you.

Regards,
D

--- Markus Sch�nhaber [EMAIL PROTECTED] wrote:

 EddieE wrote:
  I'm using keystore files so I needed to add these to server.xml.
  I'm using native libraries since it appears that these are required if you
  want to use a non-default keystoreFile.
 
 No. With APR (the native libs) you'll have to configure the OpenSSL way:
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS
 
  I added tcnative-1.dll and 
  openssl.exe to the PATH.
  I tried both JDK 1.4 compatibility and 1.5 and get the same results. The
  server starts OK but the https connector will only work as http.
  I tried sslProtocol=TLS, SSL and leaving it out.
  What am I doing something wrong?
 
 You're mixing the .keystore config with the APR connector that uses OpenSSL. 
 If you want to use the .keystore, don't use the native libs.
 
 If your keystore file is not in the default location, set the keystoreFile 
 attribute of the Connector appropriately:
 http://tomcat.apache.org/tomcat-5.5-doc/config/http.html#SSL%20Support
 
 Regards
 � mks
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL tomcat apache FAILURE

2006-04-21 Thread Dhaval Patel
Before any suggestion, I have few question:

1) How do you run Tomcat? Standalone or as a service or as a JSP server behind 
IIS?
2) Are you 100% sure that port 8443 and 443 are free?
3) Do you have any failure entry in tomcat log when you start tomcat? If yes, 
what is that?

By looking at exception, here any one can able to see what is going on. So try 
to see what is
going wrong here.

Regards,
D

--- Crom James B. [EMAIL PROTECTED] wrote:

  
  
 Anyone help! 
 I have followed the directions precisely in
 http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html , (yes we have
 tomcat 5.x) and cannot get port 8443 or 443 to respond at all via web
 browser or by a portscan.  
  
 Running on a windows 2003 ent edition, apache-tomcat is the ONLY thing
 running on this box.  
  
 Any advice would be appreciated
  
 Jim Crom 
 Las Vegas Clark County Library
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]