Out of memory

2005-08-11 Thread Yun Yang

Hello,

I am using Tomcat5.0.28. When I try to run my web application, I got
this message:

exception
 
javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.OutOfMemoryError

 
How can I solve this problem? I tried to uninstall tomcat5 as service
using service.bat remove and tried to reinstall it as service in
Windows XP. How can I add option like -xmx512M into service.bat? Or
How can I increase the heap size?

I added this statement into Catalina.bat set JAVA_OPTS=-Xmx512m. It
works. But When I run tomcat5.0 as server it still does not work.

 

Thanks,

 

Yun Yang





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



Tomcat 5.0.28 and JPDA

2005-07-31 Thread Andy Yang
Hi there,

I'm just trying to start up a standalone instance of
Tomcat 5.0.28 in a Windows XP environment
(non-service) with JPDA and I'm getting the following
error when I execute: catalina.bat jpda run

Error [2] in connect() call!
err:: No such file or directory
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1.
FATAL ERROR in native method: No transports
initialized

I'm getting this while running Tomcat with JDK
1.4.2_04. The full startup command is:

c:\j2sdk1.4.2_04\bin\java   -Xdebug -Xrunjdwp:tra
nsport=dt_socket,address=8000 ,server=y,suspend=n 
-Djava.endorsed.dirs=D:\jaka
rta-tomcat-5.0.28\common\endorsed -classpath
c:\j2sdk1.4.2_04\lib\tools.jar;D:
\jakarta-tomcat-5.0.28\bin\bootstrap.jar
-Dcatalina.base=D:\jakarta-tomcat-5.0
.28 -Dcatalina.home=D:\jakarta-tomcat-5.0.28
-Djava.io.tmpdir=D:\jakarta-tom
cat-5.0.28\temp org.apache.catalina.startup.Bootstrap
 start

Has anyone come across this? I was originally running
Tomcat using JDK 1.5 - but ran into similar problems
trying to get debug working. Would there be any
compiled artifacts hanging around that might be
throwing Tomcat off?

Could a software firewall be interfering with things?

Thanks for your time,
Andy

__
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]



email from tomcat

2005-06-14 Thread Jenny Yang
Can anyone tell me how to use email from tomcat?

I was given that task to do before my summer
internship starts.  I did numerous google searches,
and checked out Tomcat books at the bookstore.  I
haven't found anything helpful besides this list.

Thanks.


Jenny Yang 

Dream your dreams with open eyes and make them come true.  ~t.e. lawrence

Fall seven times, stand up eight.  ~japanese proverb




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



Minimum Memory Requirement for TC 5.0.x

2005-01-12 Thread Yang Xiao
Hi all,
What is the minimum memory requirement to run TC 5.0.x in a Linux
environment? or is there such a thing? I can't find it anywhere, which
is kind of amusing.
Many thanks,

Yang

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



Strange problem

2004-12-10 Thread Yang Xiao
Hi all,
I'm running Tomcat 5.0.30 on FC2 with SUN 1.4.1_02 jdk
I'm having this strange problem, I can not access any jsp or servlet
pages using a browser, it seems to be  timing out, but telnet to the
port tomcat is listening then type GET ... works. I can see the
directory structure and regular html pages works fine, any ideas?
Also, there were no error messages in the log either, a tcpdump
indicates the server terminates the connection right after the  http
requst was sent from the browsers (I tried both IE and firefox)

Many thanks!!

Yang

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



Re: off topic - how do i convert an int to char

2004-12-07 Thread Yang Xiao
make a hash or array?


On Tue, 7 Dec 2004 10:34:15 -0500, Nilesh Bhattad [EMAIL PROTECTED] wrote:
 folks,
 sorry for posting this offtopic qns here.. but would someone plz help me out 
 in converting an int value to char? my requirement is very simple. i'm 
 looping thro a list and for each counter i need to get 'a', 'b' and so forth.
 
 basically i need some conversion routine which will convert 0 to 'a', 1 to 
 'b', 2 to 'c' and so on.
 
 again, i apologize for posting such a dumb qns.
 
 - nilesh


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



Question about memory

2004-05-06 Thread Yang Xiao
Hi list,

I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.

I did a simple load testing with JMeter last night and stopped it just
before I went home, so right now there's no incoming request whatsoever, but
TOP still shows heavy memory usage and swapping, it looks like even though
the load has subsided, Tomcat has not released the memory, what can I do
except restart the Tomcat instances to release the memory?

I'm not sure if this is a valid question, so I apologize if I seem to be
lack of some basic understanding of how things work.

Thanks in advance.

Also the tomcats are started with -Xms64 -Xmx256

 

Yang

 

Here's the top output

 

11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07

381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped

CPU states:  cpuusernice  systemirq  softirq  iowaitidle

   total1.0%0.0%   56.1%   0.0% 0.0%0.0%   42.7%

Mem:   513292k av,  505136k used,8156k free,   0k shrd,   64872k
buff

   280548k active, 208500k inactive

Swap: 1044216k av,  52k used,  515328k free7388k
cached

 

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND

 8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc

 8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8684 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8689 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8692 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8695 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8697 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8699 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8700 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8703 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8705 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8707 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8709 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8714 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8717 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8720 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8721 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8726 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8729 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8731 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8734 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8739 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8741 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8744 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8747 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8751 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8755 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8758 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8761 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8764 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8926 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 

 



RE: Question about memory

2004-05-06 Thread Yang Xiao
Hi,
I have development set to false and fork to true, tomcat still doesn't
release the memory, any ideas?

Thanks,
Yang

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 06, 2004 11:32 AM
To: Tomcat Users List
Subject: RE: Question about memory

Just a silly question, but don't you also need to perform some additional
production configuration in your web.xml by setting fork equal to true and
developement equal to false.  It explains it on this page here:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production
%20Configuration

I made some similar modifications and I noticed that tomcat started to
release the memory when the server was not as busy.

Randall



-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 9:07 AM
To: Tomcat Users List
Subject: Question about memory


Hi list,

I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.

I did a simple load testing with JMeter last night and stopped it just
before I went home, so right now there's no incoming request whatsoever, but
TOP still shows heavy memory usage and swapping, it looks like even though
the load has subsided, Tomcat has not released the memory, what can I do
except restart the Tomcat instances to release the memory?

I'm not sure if this is a valid question, so I apologize if I seem to be
lack of some basic understanding of how things work.

Thanks in advance.

Also the tomcats are started with -Xms64 -Xmx256

 

Yang

 

Here's the top output

 

11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07

381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped

CPU states:  cpuusernice  systemirq  softirq  iowaitidle

   total1.0%0.0%   56.1%   0.0% 0.0%0.0%   42.7%

Mem:   513292k av,  505136k used,8156k free,   0k shrd,   64872k
buff

   280548k active, 208500k inactive

Swap: 1044216k av,  52k used,  515328k free7388k
cached

 

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND

 8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc

 8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8684 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8689 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8692 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8695 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8697 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8699 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8700 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8703 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8705 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8707 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8709 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8714 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8717 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8720 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8721 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8726 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8729 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8731 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8734 tomcat16   0  203M 158M 80744 S 0.0

RE: where to define path to workers2.properties

2004-05-06 Thread Yang Xiao
Hi,
By default it's your ${serverRoot}/conf dir, but you can do this
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /usr/local/apache/conf/workers2.propertie

yang
-Original Message-
From: Stefan Burkard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 06, 2004 3:14 PM
To: [EMAIL PROTECTED]
Subject: where to define path to workers2.properties

hi tomcat-users

i have installed and running apache/tomcat/jk2 on a linux-box. in the 
meantime i updated apache and because i use a directory with 
version-number, the path to the apache-rootdir changed.

now my mod_jk2-module searches the workers2.properties configfile still 
in the old apache-directory. can i anywhere define the path to the 
workers2.properties file?

i found some examples for windows where the path is written to the 
registry, but no example for linux

thanks and greetings
stefan


-
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: Question about memory

2004-05-06 Thread Yang Xiao


 -Original Message-
 From: Wade Chandler [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 2:55 PM
 To: Tomcat Users List
 Subject: Re: Question about memory
 
 Yang Xiao wrote:
 
  Hi,
  I have development set to false and fork to true, tomcat still doesn't
  release the memory, any ideas?
 
  Thanks,
  Yang
 
  -Original Message-
  From: Randall Svancara [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 06, 2004 11:32 AM
  To: Tomcat Users List
  Subject: RE: Question about memory
 
  Just a silly question, but don't you also need to perform some
 additional
  production configuration in your web.xml by setting fork equal to true
 and
  developement equal to false.  It explains it on this page here:
 
  http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-
 howto.html#Production
  %20Configuration
 
  I made some similar modifications and I noticed that tomcat started to
  release the memory when the server was not as busy.
 
  Randall
 
 
 
  -Original Message-
  From: Yang Xiao [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 06, 2004 9:07 AM
  To: Tomcat Users List
  Subject: Question about memory
 
 
  Hi list,
 
  I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.
 
  I did a simple load testing with JMeter last night and stopped it just
  before I went home, so right now there's no incoming request whatsoever,
 but
  TOP still shows heavy memory usage and swapping, it looks like even
 though
  the load has subsided, Tomcat has not released the memory, what can I do
  except restart the Tomcat instances to release the memory?
 
  I'm not sure if this is a valid question, so I apologize if I seem to be
  lack of some basic understanding of how things work.
 
  Thanks in advance.
 
  Also the tomcats are started with -Xms64 -Xmx256
 
 
 
  Yang
 
 
 
  Here's the top output
 
 
 
  11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07
 
  381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped
 
  CPU states:  cpuusernice  systemirq  softirq  iowaitidle
 
 total1.0%0.0%   56.1%   0.0% 0.0%0.0%   42.7%
 
  Mem:   513292k av,  505136k used,8156k free,   0k shrd,   64872k
  buff
 
 280548k active, 208500k inactive
 
  Swap: 1044216k av,  52k used,  515328k free7388k
  cached
 
 
 
PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU
 COMMAND
 
   8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
   8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc
 
   8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
   8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc
 
   8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc
 
   8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
   8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
   8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8684 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
   8689 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8692 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
   8695 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8697 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8699 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8700 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8703 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8705 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc
 
   8707 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8709 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8714 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
   8717 tomcat16   0  203M 158M 80744 S 0.0 31.5

RE: Question about memory

2004-05-06 Thread Yang Xiao


 -Original Message-
 From: Wade Chandler [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 6:34 PM
 To: Tomcat Users List
 Subject: Re: Question about memory
 
 Yang Xiao wrote:
 
 
 -Original Message-
 From: Wade Chandler [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 2:55 PM
 To: Tomcat Users List
 Subject: Re: Question about memory
 
 Yang Xiao wrote:
 
 
 Hi,
 I have development set to false and fork to true, tomcat still doesn't
 release the memory, any ideas?
 
 Thanks,
 Yang
 
 -Original Message-
 From: Randall Svancara [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 11:32 AM
 To: Tomcat Users List
 Subject: RE: Question about memory
 
 Just a silly question, but don't you also need to perform some
 
 additional
 
 production configuration in your web.xml by setting fork equal to true
 
 and
 
 developement equal to false.  It explains it on this page here:
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-
 
 howto.html#Production
 
 %20Configuration
 
 I made some similar modifications and I noticed that tomcat started to
 release the memory when the server was not as busy.
 
 Randall
 
 
 
 -Original Message-
 From: Yang Xiao [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 06, 2004 9:07 AM
 To: Tomcat Users List
 Subject: Question about memory
 
 
 Hi list,
 
 I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.
 
 I did a simple load testing with JMeter last night and stopped it just
 before I went home, so right now there's no incoming request
 whatsoever,
 
 but
 
 TOP still shows heavy memory usage and swapping, it looks like even
 
 though
 
 the load has subsided, Tomcat has not released the memory, what can I
 do
 except restart the Tomcat instances to release the memory?
 
 I'm not sure if this is a valid question, so I apologize if I seem to
 be
 lack of some basic understanding of how things work.
 
 Thanks in advance.
 
 Also the tomcats are started with -Xms64 -Xmx256
 
 
 
 Yang
 
 
 
 Here's the top output
 
 
 
 11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07
 
 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped
 
 CPU states:  cpuusernice  systemirq  softirq  iowait
 idle
 
total1.0%0.0%   56.1%   0.0% 0.0%0.0%
 42.7%
 
 Mem:   513292k av,  505136k used,8156k free,   0k shrd,
 64872k
 buff
 
280548k active, 208500k inactive
 
 Swap: 1044216k av,  52k used,  515328k free
 7388k
 cached
 
 
 
   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU
 
 COMMAND
 
  8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
  8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc
 
  8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
  8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc
 
  8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc
 
  8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
  8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
  8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8684 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
  8689 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8692 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc
 
  8695 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8697 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8699 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8700 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8703 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8705 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc
 
  8707 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8709 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc
 
  8714

RE: Mod_JK2 not sure if correctly setup!

2004-05-04 Thread Yang Xiao
The actual content of your workers2.properties and jk2.properties file would
be helpful to us, don't you think?

-Original Message-
From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 1:01 PM
To: [EMAIL PROTECTED]
Subject: Mod_JK2 not sure if correctly setup!

Is it normal to have alot of errors in the Apache error log such as below.
Everything seems to work fine but not
sure why I am getting so many errors:

//Apache Error Log Output

[Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation
[Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation
[Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in
scoreboard
[Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in
scoreboard
[Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in
scoreboard
[Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in
scoreboard
[Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in
scoreboard
[Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2
configured -- resuming normal operations
[Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in
scoreboard
[Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2
[Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down
[Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down
[Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down
[Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down
[Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down
[Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down
[Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error receiving
message body -1 11
[Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error
reading reply
[Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable
error 12



-
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: Mod_JK2 not sure if correctly setup!

2004-05-04 Thread Yang Xiao
Hi,
Everything looks fine, do you have the AJP connector defined in the
server.xml file?

yang

-Original Message-
From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 1:46 PM
To: Tomcat Users List
Subject: Re: Mod_JK2 not sure if correctly setup!

Yes of course:

//WORKERS2.PROPERTIES

# Use only for debugging
[logger]
level=WARN

# Shared memory handling. Needs to be set.
[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
tomcatId=localhost:8009

# Define the ajp13 worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Define the status worker
[status:status]
info=Status worker for displaying runtime information

# Map the status page url
[uri:/jk2-status/*]
group=status:status


//JK2.PROPERTIES

# Set the desired handler list
handler.list=request,container,channelSocket

# Override the default port for the socketChannel
channelSocket.port=8009
channelSocket.address=127.0.0.1



- Original Message - 
From: Yang Xiao [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 1:07 PM
Subject: RE: Mod_JK2 not sure if correctly setup!


 The actual content of your workers2.properties and jk2.properties file
would
 be helpful to us, don't you think?

 -Original Message-
 From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 04, 2004 1:01 PM
 To: [EMAIL PROTECTED]
 Subject: Mod_JK2 not sure if correctly setup!

 Is it normal to have alot of errors in the Apache error log such as below.
 Everything seems to work fine but not
 sure why I am getting so many errors:

 //Apache Error Log Output

 [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() first invocation
 [Tue May 04 23:49:11 2004] [notice] mod_jk.post_config() second invocation
 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3790 in
 scoreboard
 [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
 /usr/local/apache2/conf/workers2.properties
 [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3791 in
 scoreboard
 [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
 /usr/local/apache2/conf/workers2.properties
 [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3792 in
 scoreboard
 [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
 /usr/local/apache2/conf/workers2.properties
 [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3793 in
 scoreboard
 [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
 /usr/local/apache2/conf/workers2.properties
 [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:11 2004] [error] jk2_init() Can't find child 3794 in
 scoreboard
 [Tue May 04 23:49:11 2004] [notice] workerEnv.init() ok
 /usr/local/apache2/conf/workers2.properties
 [Tue May 04 23:49:11 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:11 2004] [notice] Apache/2.0.46 (Unix) mod_jk2/2.0.2
 configured -- resuming normal operations
 [Tue May 04 23:49:12 2004] [error] jk2_init() Can't find child 3795 in
 scoreboard
 [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:35 2004] [notice] workerEnv.init() ok
 /usr/local/apache2/conf/workers2.properties
 [Tue May 04 23:49:35 2004] [error] mod_jk child init 1 -2
 [Tue May 04 23:49:37 2004] [notice] mod_jk2 Shutting down
 [Tue May 04 23:49:38 2004] [notice] mod_jk2 Shutting down
 [Tue May 04 23:49:43 2004] [notice] mod_jk2 Shutting down
 [Tue May 04 23:49:48 2004] [notice] mod_jk2 Shutting down
 [Tue May 04 23:49:49 2004] [notice] mod_jk2 Shutting down
 [Tue May 04 23:49:50 2004] [notice] mod_jk2 Shutting down
 [Tue May 04 23:49:55 2004] [error] channelSocket.receive(): Error
receiving
 message body -1 11
 [Tue May 04 23:49:55 2004] [error] workerEnv.processCallbacks() Error
 reading reply
 [Tue May 04 23:49:55 2004] [error] ajp13.service() ajpGetReply recoverable
 error 12



 -
 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: servlet.http?

2004-04-23 Thread Yang Xiao
Hi
You need to include the servlet-api.jar under $CATALINA_HOME/common/lib in
your classpath.
Yang

-Original Message-
From: Kalin Mintchev [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 23, 2004 4:03 AM
To: [EMAIL PROTECTED]
Subject: servlet.http?


hi all...

this is my first question on this list so please be gentle...

i'm trying to use a servlet that talks to a j2me application on some cell
phone. the thing is when i try to compile the code on the server machine
(i put it under the tomcat's servlet examples) i get an error that i have
the clases in the HTTP servlet package missing. i found them (after
downloading them again) in the server's java source. my question is where
should i put them so the compiler can finde them and compile the
servlet? it turns out there are a lot of servlet src folders..

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]



RE: [newbie] tomcat5+apache2 virtual hosting

2004-04-22 Thread Yang Xiao
Wow, correct me if I'm wrong, but doesn't test.jsp have to be somewhere
under $CATALINA_HOME/ROOT no matter how you configure your virtual host in
Apache?
Yang

-Original Message-
From: Mark Page [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 1:48 PM
To: Tomcat Users List
Subject: Re: [newbie] tomcat5+apache2 virtual hosting

I fooled myself - forgot to clear-down browser cache after doing some
fiddling. :/  Still not working

I am using mod_jk2 - and as far as I can tell apache and tomcat do talk,
for example if I move my test.jsp to $CATALINA/webapps/ROOT and browse
to http:/test.int/test.jsp it works, so I guess that something is wrong
with the context for test.int ??? And also, the 404 is from tomcat, so
apache is handing over to tomcat for .jsp but tomcat can't find them.


On Thu, 2004-04-22 at 18:37, Parsons Technical Services wrote:
 What was it
 
 
 - Original Message - 
 From: Mark Page [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, April 22, 2004 1:24 PM
 Subject: Re: [newbie] tomcat5+apache2 virtual hosting
 
 
  I've sorted it - thanks anyway :)
  
  On Thu, 2004-04-22 at 17:59, Mark Page wrote:
   Hi all,
   
   I'm going nuts trying to do something pretty straight forward, namely
   getting TOMCAT to serve .jsp files via apache virtual hosts and still
   keep the default tomcat stuff at port 8080.
   
   I've read every howto I can find and can only get one or the other to
   work. My confusion seems to revolve around the context element in
   server.xml.
   
   What I want is to be able to do is point at http://localhost:8080 and
   see the tomcat welcome page. I then want to point to
   http://test.int/test.jsp and see the .jsp output.
   
   The test.jsp file resides in /var/www/html/beta but I keep getting
   tomcat 404 error, so I guess it's having problems locating the .jsp
and
   therefore suspect my contexts are incorrect.
   
   I would be grateful is someone could have a look at my server.xml and
   hhtpd.conf snippets and enlighten me.
   
   Regards.
   
   
   
   this is how my server.xml is:
   
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
   
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log. suffix=.txt
   timestamp=true/
   
   Context path= docBase=ROOT debug=0/ !--welcome page--
 /Host
   
   host name=test.int debug=0 appBase=/var/www/html/beta
   unpackWARs=true autoDeploy=true
   
   Context path= docBase=/var/www/html/beta debug=9/ !-- where
   test.jsp resides --
   
   Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=test_int_log. suffix=.txt
   timestamp=true /
   /host
   
   and the relevant bit of httpd.conf:
   
   VirtualHost *
   ServerName test.int
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/www/html/beta
  Location /*.jsp
   JkUriSet worker ajp13:localhost:8009
  /Location
   /VirtualHost
   
   
   
   I have also tried using the workers2.properties file instead of the
   JkUriSet by entering
   
   [uri:test.int/*.jsp]
   worker=ajp13:localhost:8009
   
   but it dosen't seem to make much difference
   
   
   
   
   -
   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]



Catalina.sh startup options

2004-04-21 Thread Yang Xiao
Hi list,

Can someone point me to a link with the complete catalina.sh startup options
and their descriptions? I'm trying to figure out some of the parameters I
have seen people using, but can't find any documentation for it.

Thanks,

Yang

 



RE: Catalina.sh startup options

2004-04-21 Thread Yang Xiao
Sorry, I found those are the java options, not Catalina.sh specific.


-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 11:14 AM
To: Tomcat Users List
Subject: Catalina.sh startup options

Hi list,

Can someone point me to a link with the complete catalina.sh startup options
and their descriptions? I'm trying to figure out some of the parameters I
have seen people using, but can't find any documentation for it.

Thanks,

Yang

 


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



RE: differences between java -s Vs java -X when the JVM is r unning

2004-04-21 Thread Yang Xiao
I think it might be java -server got cut off to java -s
Try ps -elf see if that's the case, I don't see a -s option for java.

Yang

-Original Message-
From: Software [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 11:40 AM
To: Tomcat Users List
Subject: differences between java -s Vs java -X when the JVM is running
Importance: High

Hi i'm using tomcat 4103, when i'm typing this command ps -ef | grep 
javai got many theses lines

/usr/java/j2sdk1.4.0/bin/java -s


What does this line mean and what is the difference between this line 
and  this /usr/java/j2sdk1.4.0/bin/java -X

This line affect the performance on the server


Thnaks for you help

fabian




-
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]



Virtual host setup

2004-04-20 Thread Yongsheng Yang
Hello ,

I want to setup several virtual hosts in a single Tomcat.
I want to use Name-based approach. For this approach, several virtual
hosts share a single IP address.
So I have to bind different web services to same address? for
instance, the address of www.1.com and www.2.com is same and point to
the same Tomcat server.
Any detailed documents?

  

-- 
Best regards,
David  mailto:[EMAIL PROTECTED]
 


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



RE: Connecting the HTTP Server and Tomcat

2004-04-19 Thread Yang Xiao
Hi,
The jsvc utility in commons-daemon is just for this purpose, it allows you
to specify a user TC should run as, and if you read the INSTALL.txt and
Tomcat5.sh under native/ you will know it's very easy to change the startup
method.
Yang

-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 5:35 PM
To: 'Tomcat Users List'
Subject: RE: Connecting the HTTP Server and Tomcat

Hi

Currently I use
  catalina.sh start | stop
to control tomcat 4.1.x and 5.0.x running as root.

Can I change it easily to use commons-daemon (running as non-root)?
A lot of command line options are set in catalina.sh. Would I need to do
this manually ?

Regards,
  Steffen


-
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: Classpath problems with tomcat on Linux 9

2004-04-19 Thread Yang Xiao
Hi,
You need the %@ page import=package % directive to tell it where to look
for it.
Yang

-Original Message-
From: Andy Wadsworth [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 3:11 PM
To: Tomcat Users List
Subject: Re: Classpath problems with tomcat on Linux 9


Still no luck. I'm basically trying to do exactly the same thing
that the jsp-examples/checkbox is doing and I can't get Tomcat
to recognize my UserData.class file. I've tried placing my UserData.class
file in every location possible, and no luck. My next step will be
to downgrade to Tomcat 4 so I can at least try out the examples that
are described in the Tomcat Bible (the examples don't work with
Tomcat 5).

Should I expect Tomcat to find my UserData.class file if I put it
in webapps/myapp/WEB-INF/classes? Do I need to create a web.xml 
or should it find the class file without any web.xml customization?
If anyone has a very simple example that I could drop in to see if
it works, I'd appreciate it. I've already verified that the jsp-examples
all work, but there is a lot of stuff in the web.xml that I shouldn't
need for what I want to do, and finding what I need is probably where
my problems lie.

-Andy.


On Friday 16 April 2004 07:32 pm, Berry, Layton wrote:
 I'm guessing you need to put the UserData class in a package,
 and import it into your savename page.

 Quoting from JSP 2.0 spec, As of JSP 2.0, it is illegal
 to refer to any classes from the unnamed (a.k.a. default) package.

 -Layton

 -Original Message-

 From: Andy Wadsworth [mailto:[EMAIL PROTECTED]

 Sent: Friday, April 16, 2004 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: Classpath problems with tomcat on Linux 9
 
 
 
 I'm just getting started with my JSP and tomcat experience, and while
 learning how JSP works, I'm can't get tomcat to recognize supporting
 class definitions that I have placed in myapp/WEB-INF/classes.
 
 Here's my setup:
 * tomcat 5.0.19, running on RedHat Linux 9.0 Pro
 * no customization to $CATALINA_HOME/conf/web.xml
   no customization to $CATALINA_HOME/conf/server.xml
   added my user account as a manager in
 $CATALINA_HOME/conf/tomcat-users.xml
 * I'm running tomcat using the $CATALINA_HOME/bin/startup.sh
 * I'm running tomcat as my normal login id, although I've also
 tried it as
   root just to make sure it wasn't a file permissions issue.
 * I'm able to use the Tomcat manager at
 http://localhost:8080/manager to
   start/stop/reload/deploy applications
 * The jsp-examples appear to work fine
 
 Here's what I'm trying to do:
 * Created the following index.jsp and placed it in
   $CATALINA_HOME/webapps/test
 
 htmlbody
 form method=post action =savename.jsp
 What's your name?  input type=text name=username size=20
 What's your email? input type=text name=email size=20
 Pinput type=submit
 /form/body/html
 
 * Created the following as $CATALINA_HOME/webapps/test/savename.jsp
 jsp:useBean id=user class=UserData scope=session/
 jsp:setProperty name=user property=*/
 htmlbody
 Name: %= user.getUsername() %BR
 Email: %= user.getEmail() %BR
 /body/html
 
 * Created a UserData.java file that defines a public class UserData
   with username and email fields as type String. Added public
   access methods for setUsername, getUsername, setEmail, getEmail.
   I compiled UserData.java using javac, and to produce UserData.class
   which I placed in $CATALINA_HOME/webapps/test/WEB-INF/classes. The
   UserData.java class does not define a package nor does it import
   anything (line 1 is public class UserData)
 
 * deployed the test application using the tomcat manager and it shows
   that the application is deployed with no errors.
 
 * Using IE 6.0, I enter the url to test.jsp and it displays the form as
   expected. I enter a name and email value into the form and press the
   submit button and I get the following:
  HTTP Status 500 -
  exception
  org.apache.jasper.JasperException: Unable to compile class for JSP
  An error occurred at line: 1 in jsp file: /savename.jsp
 
  Generated sevlet error:
 [javac] Compiling 1 source file
 
 .../work/Catalina/localhost/test/org/apache/jsp/savename_jsp.java:42
  symbol : class UserData
 location: class org.apache.jsp.savename_jsp
 UserDAta user = null
 
 
 I suspect this is a classpath issue but everything I read says
 that if you
 put your classes in appdir/WEB-INF/classes, it will just work.
 
 There must be some basic thing I'm missing. Any help would be very much
 apprciated.
 
 Thanks in advance.
 -Andy.
 
 --
 ###
 # Andy Wadsworth  #
 # #
 # BondMart Technologies, Inc. #
 # [EMAIL PROTECTED]  #
 # #
 ###
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands

RE: How to really destroy a Session

2004-04-16 Thread Yang Xiao
That's if it's a session cookie, is it? You can always use the Cookie API to
force the cookie to expire.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 9:56 AM
To: 'Tomcat Users List'
Subject: RE: How to really destroy a Session

The cookie is removed when the user closes the browser, no ?


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 16, 2004 8:34 AM
 To: [EMAIL PROTECTED]
 Subject: How to really destroy a Session
 
 
 
 
 
 
 Hi all,
 
 I am using Tomcat 5.0.19.
 
 In my application the generated sessions are identified by a 
 cookie on the client. I only allow single sign on. Now I want 
 to destroy the session and I call in a session an 
 invalidate() and the session isn't available. Then the 
 application  redirect the request to the start page. But 
 there is still the cookie with JSESSIONID on the client and 
 there is no new session possible.
 
 Is there a solution to remove these cookies?
 
 Thanks,
 Marc
 
 
 -
 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: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Yang Xiao
This is pretty much what I have and it works fine.
[logger]
level=DEBUG
[config:]
debug=0
debigEnv=0

[uriMap:]
info=Maps the requests, Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/usr/local/apache/logs/jk2.log

[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon
#size=104856
#debug=1

[workerEnv:]
info=Global server options
debug=0
logger=logger.file:0

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
info=Default Load Balancer
debug=10

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
lb_factor=5
tomcatid=tomcat1

# Second Scoket Channel
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1
lb_factor=10
tomcatid=tomcat2

# Third Scoket Channel
[channel.socket:localhost:8029]
port=8029
host=127.0.0.1
lb_factor=10
tomcatid=tomcat3

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# define the second worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019
group=lb

# define the Third worker
[ajp13:localhost:8029]
channel=channel.socket:localhost:8029
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/jsp-examples/*]
info=JSP Examples
group=lb


[uri:/webtest/*]
info=Test JSP Page
group=lb

[status:]

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 7:46 AM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Yes.  I did a full stop and start of apache.  There are no errors in the log
files either.  Do you, or anyone else, have a workers2.properties file of a
working system that you are willing to share?  I've gone through all the
sections and properties in the latest jakarta jk2 document as well as other
How-Tos and don't see what I've missed (I'm afraid I don't understand all of
it
either :).  Does the shm section play a part?  I interpretted it to be
needed
only if one wants to share session data between the differnet tomcat
servers,
and does not have anything to do with load balancing.

Thanks,
-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 Did you restart the Apache2 server? My understanding is JK only reloads it
 only if the section you modified in workers.properties has ver defined.
 Also, check your jk.log and Catalina.log files for errors.
 Yang
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 7:09 PM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Thanks but it doesn't seem to make any difference.  For each tomcat server
I
 added sections like the following:
 
 [ajp13:psahammerhead:8009]
 channel=channel.socket:psahammerhead:8009
 group=lb
 tomcatId=psahammerhead
 
 It still only wants to use one of the servers.  There are other properties
 that
 could be used but they're not documented too well.  Any other suggestions
 would
 be greatly appreciated.
 
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Hi,
  I think you need to further define the workers with 
  
  {ajp13:psahammerhead:8009]
  channel=channel.socket:psahammerhead:8009
  group=lb
  ...
  etc
  
  hope this helps.
  Yang
  
  
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 14, 2004 10:17 AM
  To: [EMAIL PROTECTED]
  Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Hi,
  
  I have set up four tomcat 5.0 servers for load balancing using an
apache2
  server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that
 most
  of
  the user sessions are routed to only one of the tomcat servers even
though
  the
  lb_factor for all is the same, 10.  All tomcat servers seem to be
working
  since
  I can disable all but one in the workers2.properties file to force that
  tomcat
  server to be used.  Chnaging the lb_factor can also cause a different
 tomcat
  server to be used most of the time, but I haven't figured out how to
 control
  the balancing by lb_factor.
  
  Below is the workers2.properties file that I am using.
  
  Thanks for any help you can provide,
  -Tom
  
  # workers2.properties 
  
  [logger]
  level=DEBUG
  
  [config:]
  debug=0
  debugEnv=0
  
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
  
  # Alternate file logger
  [logger.file:0]
  level=DEBUG
  file=/usr/local/apache2/logs/jk2.log
  
  #[shm:]
  #info=Scoreboard. Required for reconfiguration and status with
 multiprocess
  servers
  #file=/usr/local/apache2/logs/jk2.shm
  #size=100
  #debug=0
  #disabled=0
  
  [workerEnv:]
  info=Global server options
  debug=0
  timing=1
  # Default Native Logger (apache2 or win32 )
  # can be overriden to a file logger, useful
  # when tracing win32 related issues
  #logger=logger.file:0
  
  [lb:lb]
  ver=1
  info=Default load balancer.
  debug=10

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Yang Xiao
Yes.

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 9:42 AM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Thanks.  The only change that you made to the tomcat server.xml conf file is
assigning your timcatid values to the jvmRoute property, correct?

Engine name=Catalina defaultHost=localhost debug=0
jvmRoute=psahammerhead

-Tom

--- Yang Xiao [EMAIL PROTECTED] wrote:
 This is pretty much what I have and it works fine.
 [logger]
 level=DEBUG
 [config:]
 debug=0
 debigEnv=0
 
 [uriMap:]
 info=Maps the requests, Options: debug
 debug=0
 
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=/usr/local/apache/logs/jk2.log
 
 [shm]
 info=Scoreboard. Requried for reconfiguration and status with multiprocess
 servers.
 file=anon
 #size=104856
 #debug=1
 
 [workerEnv:]
 info=Global server options
 debug=0
 logger=logger.file:0
 
 # Defines a load balancer named lb. Use even if you only have one machine.
 [lb:lb]
 info=Default Load Balancer
 debug=10
 
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 lb_factor=5
 tomcatid=tomcat1
 
 # Second Scoket Channel
 [channel.socket:localhost:8019]
 port=8019
 host=127.0.0.1
 lb_factor=10
 tomcatid=tomcat2
 
 # Third Scoket Channel
 [channel.socket:localhost:8029]
 port=8029
 host=127.0.0.1
 lb_factor=10
 tomcatid=tomcat3
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 group=lb
 
 # define the second worker
 [ajp13:localhost:8019]
 channel=channel.socket:localhost:8019
 group=lb
 
 # define the Third worker
 [ajp13:localhost:8029]
 channel=channel.socket:localhost:8029
 group=lb
 
 # Map the Tomcat examples webapp to the Web server uri space
 [uri:/jsp-examples/*]
 info=JSP Examples
 group=lb
 
 
 [uri:/webtest/*]
 info=Test JSP Page
 group=lb
 
 [status:]
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 7:46 AM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Yes.  I did a full stop and start of apache.  There are no errors in the
log
 files either.  Do you, or anyone else, have a workers2.properties file of
a
 working system that you are willing to share?  I've gone through all the
 sections and properties in the latest jakarta jk2 document as well as
other
 How-Tos and don't see what I've missed (I'm afraid I don't understand all
of
 it
 either :).  Does the shm section play a part?  I interpretted it to be
 needed
 only if one wants to share session data between the differnet tomcat
 servers,
 and does not have anything to do with load balancing.
 
 Thanks,
 -Tom
 
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  Hi,
  Did you restart the Apache2 server? My understanding is JK only reloads
it
  only if the section you modified in workers.properties has ver
defined.
  Also, check your jk.log and Catalina.log files for errors.
  Yang
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 14, 2004 7:09 PM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Thanks but it doesn't seem to make any difference.  For each tomcat
server
 I
  added sections like the following:
  
  [ajp13:psahammerhead:8009]
  channel=channel.socket:psahammerhead:8009
  group=lb
  tomcatId=psahammerhead
  
  It still only wants to use one of the servers.  There are other
properties
  that
  could be used but they're not documented too well.  Any other
suggestions
  would
  be greatly appreciated.
  
  -Tom
  
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   Hi,
   I think you need to further define the workers with 
   
   {ajp13:psahammerhead:8009]
   channel=channel.socket:psahammerhead:8009
   group=lb
   ...
   etc
   
   hope this helps.
   Yang
   
   
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, April 14, 2004 10:17 AM
   To: [EMAIL PROTECTED]
   Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Hi,
   
   I have set up four tomcat 5.0 servers for load balancing using an
 apache2
   server and mod_jk2 on RedHat 9.0.  The trouble that I am having is
that
  most
   of
   the user sessions are routed to only one of the tomcat servers even
 though
   the
   lb_factor for all is the same, 10.  All tomcat servers seem to be
 working
   since
   I can disable all but one in the workers2.properties file to force
that
   tomcat
   server to be used.  Chnaging the lb_factor can also cause a different
  tomcat
   server to be used most of the time, but I haven't figured out how to
  control
   the balancing by lb_factor.
   
   Below is the workers2.properties file that I am using.
   
   Thanks for any help you can provide,
   -Tom
   
   # workers2.properties 
   
   [logger]
   level=DEBUG
   
   [config:]
   debug=0
   debugEnv

Access Manager and Admin utilities with load balancing enabled

2004-04-15 Thread Yang Xiao
Hi list,

I have to ask this one more time since no one replied to my last post.

 I have load balancing enabled with TC 5.0.19 and JK2 and I changed the line
in server.xml that says

Engine name=Catalina defaultHost=localhost debug=0

to:

Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=tomcat1

but I can no longer access the admin and manager utilities, please help.

 

Yang



RE: looking for jk2

2004-04-15 Thread Yang Xiao
http://www.reliablepenguin.com/clients/misc/tomcat/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 11:18 AM
To: [EMAIL PROTECTED]
Subject: looking for jk2


I'm running Tomcat 4.1.18 and apache 1.3 on linux Mandrake 9.0
I'm trying to migrate from warp to jk2.


Can someone point me an url where I could find a
step by step documentation about how to install and configure jk2.

thanks in advance.


L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or
dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it
and 
notify the sender.

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



RE: auto generation of mod_jk.conf in tomcat 5

2004-04-15 Thread Yang Xiao
Hi,
In httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /jsp-examples/* router


In server.xml
Add this under Server ...
Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /

and this under Host..

Listener className=org.apache.jk.config.ApacheConfig
append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /

That's all there is to it.

Yang
-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 12:35 PM
To: Tomcat Users List
Subject: auto generation of mod_jk.conf in tomcat 5

When we used tomcat 3.2.3, I configured it to autogenerate the 
mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
it??? I like it becouse each time a app is deployed I just have to make 
apache re-read it's conf file to get the new map to work.

how do I configure tomcat 5 to auto-generate it???


-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

-
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: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-15 Thread Yang Xiao
Hi,
Hmm. I commented out the shm.file line in my jk2.properties because it
doesn't seem to be working, but I just did a test with it uncommented, LD
still works fine. 
However, if I use anything other than file=anon in the workers2.properties
file, I don't get the Scoreboard info on the jkstatus page, kind of strange.
Yang


-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 4:55 PM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Does the shm play a role in this?  I note that you have the following:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon
#size=104856
#debug=1

Do your tomcat servers have a corresponding entry in their jk2.properties
file?
 Like this?

channelSocket.port=8019
shm.file=/mnt/logs/jk2.shm

Is this even necessary for load balancing?

-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Yes.
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 15, 2004 9:42 AM
 To: Tomcat Users List
 Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Thanks.  The only change that you made to the tomcat server.xml conf file
is
 assigning your timcatid values to the jvmRoute property, correct?
 
 Engine name=Catalina defaultHost=localhost debug=0
 jvmRoute=psahammerhead
 
 -Tom
 
 --- Yang Xiao [EMAIL PROTECTED] wrote:
  This is pretty much what I have and it works fine.
  [logger]
  level=DEBUG
  [config:]
  debug=0
  debigEnv=0
  
  [uriMap:]
  info=Maps the requests, Options: debug
  debug=0
  
  # Alternate file logger
  [logger.file:0]
  level=DEBUG
  file=/usr/local/apache/logs/jk2.log
  
  [shm]
  info=Scoreboard. Requried for reconfiguration and status with
multiprocess
  servers.
  file=anon
  #size=104856
  #debug=1
  
  [workerEnv:]
  info=Global server options
  debug=0
  logger=logger.file:0
  
  # Defines a load balancer named lb. Use even if you only have one
machine.
  [lb:lb]
  info=Default Load Balancer
  debug=10
  
  # Example socket channel, override port and host.
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1
  lb_factor=5
  tomcatid=tomcat1
  
  # Second Scoket Channel
  [channel.socket:localhost:8019]
  port=8019
  host=127.0.0.1
  lb_factor=10
  tomcatid=tomcat2
  
  # Third Scoket Channel
  [channel.socket:localhost:8029]
  port=8029
  host=127.0.0.1
  lb_factor=10
  tomcatid=tomcat3
  
  # define the worker
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
  group=lb
  
  # define the second worker
  [ajp13:localhost:8019]
  channel=channel.socket:localhost:8019
  group=lb
  
  # define the Third worker
  [ajp13:localhost:8029]
  channel=channel.socket:localhost:8029
  group=lb
  
  # Map the Tomcat examples webapp to the Web server uri space
  [uri:/jsp-examples/*]
  info=JSP Examples
  group=lb
  
  
  [uri:/webtest/*]
  info=Test JSP Page
  group=lb
  
  [status:]
  
  -Original Message-
  From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, April 15, 2004 7:46 AM
  To: Tomcat Users List
  Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
  
  Yes.  I did a full stop and start of apache.  There are no errors in the
 log
  files either.  Do you, or anyone else, have a workers2.properties file
of
 a
  working system that you are willing to share?  I've gone through all the
  sections and properties in the latest jakarta jk2 document as well as
 other
  How-Tos and don't see what I've missed (I'm afraid I don't understand
all
 of
  it
  either :).  Does the shm section play a part?  I interpretted it to be
  needed
  only if one wants to share session data between the differnet tomcat
  servers,
  and does not have anything to do with load balancing.
  
  Thanks,
  -Tom
  
  
  --- Yang Xiao [EMAIL PROTECTED] wrote:
   Hi,
   Did you restart the Apache2 server? My understanding is JK only
reloads
 it
   only if the section you modified in workers.properties has ver
 defined.
   Also, check your jk.log and Catalina.log files for errors.
   Yang
   
   -Original Message-
   From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, April 14, 2004 7:09 PM
   To: Tomcat Users List
   Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0
   
   Thanks but it doesn't seem to make any difference.  For each tomcat
 server
  I
   added sections like the following:
   
   [ajp13:psahammerhead:8009]
   channel=channel.socket:psahammerhead:8009
   group=lb
   tomcatId=psahammerhead
   
   It still only wants to use one of the servers.  There are other
 properties
   that
   could be used but they're not documented too well.  Any other
 suggestions
   would
   be greatly appreciated.
   
   -Tom
   
   
   --- Yang Xiao [EMAIL PROTECTED] wrote:
Hi,
I think you need to further define the workers with 

{ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009

Tomcat 5 Manager utility + JVM Route

2004-04-14 Thread Yang Xiao
Hi list,

I've configured jvmRoute using the following directive in the server.xml
file for load balancing

Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=tomcat1

but I can no longer access manager utility anymore, does anyone know why and
how I can still access it?

Thanks,

Yang

 

Yang Xiao

Oak Hill Platinum Partners, L.L.C.

1100 King Street, Building #4

Rye Brook, NY 10573

Tel: (914) 690-2293

Fax: (914)690-2220

[EMAIL PROTECTED]

 



RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Yang Xiao
Hi,
I think you need to further define the workers with 

{ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
...
etc

hope this helps.
Yang



-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 10:17 AM
To: [EMAIL PROTECTED]
Subject: Load balancing with apache2, mod_jk2  tomcat 5.0

Hi,

I have set up four tomcat 5.0 servers for load balancing using an apache2
server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that most
of
the user sessions are routed to only one of the tomcat servers even though
the
lb_factor for all is the same, 10.  All tomcat servers seem to be working
since
I can disable all but one in the workers2.properties file to force that
tomcat
server to be used.  Chnaging the lb_factor can also cause a different tomcat
server to be used most of the time, but I haven't figured out how to control
the balancing by lb_factor.

Below is the workers2.properties file that I am using.

Thanks for any help you can provide,
-Tom

# workers2.properties 

[logger]
level=DEBUG

[config:]
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/usr/local/apache2/logs/jk2.log

#[shm:]
#info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
#file=/usr/local/apache2/logs/jk2.shm
#size=100
#debug=0
#disabled=0

[workerEnv:]
info=Global server options
debug=0
timing=1
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
ver=1
info=Default load balancer.
debug=10

[channel.socket:psahammerhead:8009]
ver=1
graceful=0
info=A tomcat instance - psahammerhead.
debug=0
disabled=0
group=lb
tomcatId=psahammerhead
lb_factor=10

[channel.socket:psashovelhead:8009]
ver=1
graceful=0
info=A tomcat instance - psashovelhead.
debug=0
disabled=0
group=lb
tomcatId=psashovelhead
lb_factor=10

[channel.socket:psabonnethead:8009]
ver=1
graceful=0
info=A tomcat instance - psabonnethead.
debug=0
disabled=1
group=lb
tomcatId=psabonnethead
lb_factor=10

[channel.socket:psawinghead:8009]
ver=1
graceful=0
info=A tomcat instance - psawinghead.
debug=0
disabled=1
group=lb
tomcatId=psawinghead
lb_factor=10

[status:status]
info=Status worker, displays runtime informations

[uri:/jkstatus]
group=status:status

# Map the Tomcat examples webbapp
[uri:/myapp/*]
info=Map the whole webapp
group=lb







__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
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: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Yang Xiao
Hi,
Did you restart the Apache2 server? My understanding is JK only reloads it
only if the section you modified in workers.properties has ver defined.
Also, check your jk.log and Catalina.log files for errors.
Yang

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 7:09 PM
To: Tomcat Users List
Subject: RE: Load balancing with apache2, mod_jk2  tomcat 5.0

Thanks but it doesn't seem to make any difference.  For each tomcat server I
added sections like the following:

[ajp13:psahammerhead:8009]
channel=channel.socket:psahammerhead:8009
group=lb
tomcatId=psahammerhead

It still only wants to use one of the servers.  There are other properties
that
could be used but they're not documented too well.  Any other suggestions
would
be greatly appreciated.

-Tom


--- Yang Xiao [EMAIL PROTECTED] wrote:
 Hi,
 I think you need to further define the workers with 
 
 {ajp13:psahammerhead:8009]
 channel=channel.socket:psahammerhead:8009
 group=lb
 ...
 etc
 
 hope this helps.
 Yang
 
 
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 14, 2004 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: Load balancing with apache2, mod_jk2  tomcat 5.0
 
 Hi,
 
 I have set up four tomcat 5.0 servers for load balancing using an apache2
 server and mod_jk2 on RedHat 9.0.  The trouble that I am having is that
most
 of
 the user sessions are routed to only one of the tomcat servers even though
 the
 lb_factor for all is the same, 10.  All tomcat servers seem to be working
 since
 I can disable all but one in the workers2.properties file to force that
 tomcat
 server to be used.  Chnaging the lb_factor can also cause a different
tomcat
 server to be used most of the time, but I haven't figured out how to
control
 the balancing by lb_factor.
 
 Below is the workers2.properties file that I am using.
 
 Thanks for any help you can provide,
 -Tom
 
 # workers2.properties 
 
 [logger]
 level=DEBUG
 
 [config:]
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=/usr/local/apache2/logs/jk2.log
 
 #[shm:]
 #info=Scoreboard. Required for reconfiguration and status with
multiprocess
 servers
 #file=/usr/local/apache2/logs/jk2.shm
 #size=100
 #debug=0
 #disabled=0
 
 [workerEnv:]
 info=Global server options
 debug=0
 timing=1
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 ver=1
 info=Default load balancer.
 debug=10
 
 [channel.socket:psahammerhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psahammerhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psahammerhead
 lb_factor=10
 
 [channel.socket:psashovelhead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psashovelhead.
 debug=0
 disabled=0
 group=lb
 tomcatId=psashovelhead
 lb_factor=10
 
 [channel.socket:psabonnethead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psabonnethead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psabonnethead
 lb_factor=10
 
 [channel.socket:psawinghead:8009]
 ver=1
 graceful=0
 info=A tomcat instance - psawinghead.
 debug=0
 disabled=1
 group=lb
 tomcatId=psawinghead
 lb_factor=10
 
 [status:status]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus]
 group=status:status
 
 # Map the Tomcat examples webbapp
 [uri:/myapp/*]
 info=Map the whole webapp
 group=lb
 
 
 
 
 
   
   
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html
 
 -
 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]
 





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
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: Apache2+Jk2+Tomcat5

2004-04-13 Thread Yang Xiao


-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:18 PM
To: Tomcat Users List
Subject: Re: Apache2+Jk2+Tomcat5

On Mon, Apr 12, 2004 at 07:37:31PM -0400, Yang Xiao wrote:
: I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
: I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
: in /usr/local/apache/modules
: But when I start the Tomcat server, I'm getting this error
: 
: INFO: APR not loaded, disabling jni components: java.io.IOException:
: java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
: /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

The error message is your big clue here ;)

Do a web search for the details of what this message means, then run
ldd on libjkjni.so to determine which shared libs it requires. 

Notice which libs ldd says don't exist, and set (or append)
$LD_LIBRARY_PATH accordingly.

-QM

-- 

Thanks, but I double checked the libjkjni.so and LD_LIBRARY_PATH and they
show:
ldd /usr/local/apache/modules/libjkjni.so 
libcrypt.so.1 = /lib/libcrypt.so.1 (0x00be5000)
libapr-0.so.0 = /usr/local/apache/lib/libapr-0.so.0 (0x00415000)
libc.so.6 = /lib/tls/libc.so.6 (0x001b5000)
librt.so.1 = /lib/tls/librt.so.1 (0x00c14000)
libm.so.6 = /lib/tls/libm.so.6 (0x002f)
libnsl.so.1 = /lib/libnsl.so.1 (0x0084c000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0x0043f000)
libdl.so.2 = /lib/libdl.so.2 (0x00314000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x0019d000)

$LD_LIBRARY_PATH
/lib:/lib/tls:/usr/local/apache/lib:/usr/lib:/usr/local/apr/lib:/usr/local/l
ib

What am I doing wrong?

Yang

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



RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Yang Xiao


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 1:49 AM
To: Tomcat Users List
Subject: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

Yang Xiao wrote:

 Hi list,
 I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
 I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
 in /usr/local/apache/modules
 But when I start the Tomcat server, I'm getting this error
 
 INFO: APR not loaded, disabling jni components: java.io.IOException:
 java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
 /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

It is a constant problem with JK2 JNI lib. I've had it on 2.0.2 and on
2.0.4. 
libjkjni.so needs to be linked against all three APR libs: -lapr -laprutil
-lexpat.

This is the case on Linux (Mandrake 9.1) and on Tru64 UNIX (4.0D). After 
modifying the Makefile, it went OK. It loads and works.

Nix.


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

Hi,
Thanks for the help
I went back and modified the Makefile with all 3 libraries as you have said,
recompiled and now I'm getting a different error:
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno

I'm not too good with C library programming, so can you help to explain what
this is?

Thanks,
Yang

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



RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Yang Xiao
Hem, unfortunately, I tried that, which worked, but then tomcat complains
about another XML library not being linked. I'm building Apache from scratch
now... please help.

Yang

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 3:02 PM
To: Tomcat Users List
Subject: Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

Yang Xiao wrote:

Hi,
Thanks for the help
I went back and modified the Makefile with all 3 libraries as you have
said,
recompiled and now I'm getting a different error:
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno

I'm not too good with C library programming, so can you help to explain
what
this is?
  


Ugh, looks like there is another link dependency. libaprutil wants a 
link to GDBM library. Try to locate something looking like 
/usr/lib/lib*dbm* and add that to Makefile, without leading lib, 
like this -ldbm.

Nix.

-
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]



Apache2+Jk2+Tomcat5

2004-04-12 Thread Yang Xiao
Hi list,
I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
in /usr/local/apache/modules
But when I start the Tomcat server, I'm getting this error

INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

Please help!

My jk2.properties file:
# Set the desired handler list
handler.list=apr,request,channelSocket
channelSocket.port=8009
shm.file=/usr/local/tomcat/logs/jk2.shm
apr.NativeSo=/usr/local/apache/modules/libjkjni.so

workers2.properties:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/jsp-examples/*]
group=lb

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

and httpd.conf:
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /usr/local/apache/conf/workers2.propertie



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



RE: Tomcat (4.1) doesn't answer

2004-04-08 Thread Yang Xiao


-Original Message-
From: Gianni Pucciani [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 08, 2004 4:21 AM
To: Tomcat Users List
Subject: Re: Tomcat (4.1) doesn't answer

Parsons Technical Services wrote:
 Gianni,
 
 Try using the IP. If you can get to it with an IP then your issue is with
 the DNS otherwise you have an issue with your network.
I've tryed also with http://myip:8080 without results.

 
 What OS are you running?
Linux RH9. Maybe the problem is in my router configuration.


 What error number are you getting?
 
Connection refused when attempting to contact myhost.mydomain.com.

thanks
 
 Doug
 www.paarsonstechnical.com
 
 
 - Original Message - 
 From: Gianni Pucciani [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, April 07, 2004 5:50 PM
 Subject: Tomcat (4.1) doesn't answer
 
 
 
Hi all,
I've installed Tomcat 4.1 and it runs well when I browse
http://localhost:8080.
With my firewall port open, when I call http://myhost.mydomain.com:8080
I receive connection refused. I use a dinamic dns, that run correctly.
When scan my 8080 port with a port scanning (grc.com) the port is open.
Could anyone give me some advice?
Thanks

Gianni

-
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]

Make sure you disable the iptables firewall, RH9 comes with it configured
sometimes.
Try
#service iptables stop

Yang

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



Apache with JK ApacheConfig Class not found!

2004-04-08 Thread Yang Xiao
Hi list,
I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I
have added the following lines to the server.xml file:
Under Server container
  Listener className=org.apache.ajp.tomcat5.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /

and under Host

Listener className=org.apache.ajp.tomcat5.config.ApacheConfig
append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /


I have tried using tomcat4 according to the How-to, but none of them work
and I get the cnfe which is shown below, thanks in advance!

---
Catalina.start: java.lang.ClassNotFoundException:
org.apache.ajp.tomcat5.config.ApacheConfig
java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java
:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at org.apache.catalina.startup.Catalina.start(Catalina.java:586)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
at org.apache.catalina.startup.Catalina.start(Catalina.java:617)

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



RE: Apache with JK ApacheConfig Class not found!

2004-04-08 Thread Yang Xiao

Argh, found through the old archives, it's changed to
org.apache.jk.config.ApacheConfig

Yang
-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 08, 2004 2:16 PM
To: 'Tomcat Users List'
Subject: Apache with JK ApacheConfig Class not found!

Hi list,
I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I
have added the following lines to the server.xml file:
Under Server container
  Listener className=org.apache.ajp.tomcat5.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk.so /

and under Host

Listener className=org.apache.ajp.tomcat5.config.ApacheConfig
append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so
workersConfig=/usr/local/tomcat/conf/workers.properties /


I have tried using tomcat4 according to the How-to, but none of them work
and I get the cnfe which is shown below, thanks in advance!

---
Catalina.start: java.lang.ClassNotFoundException:
org.apache.ajp.tomcat5.config.ApacheConfig
java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java
:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at org.apache.catalina.startup.Catalina.start(Catalina.java:586)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
at org.apache.catalina.startup.Catalina.start(Catalina.java:617)

-
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]



Please help! Error reading server.xml

2003-09-18 Thread Yang Soon Chiao
Dear Alll,

Anyone have any ideas of this?

ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml
At line 24 /Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

Catalina.start:java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener



Thanks in advance.
Soon Chiao.


Error reading server xml

2003-09-17 Thread Yang Soon Chiao
Everything work fine but suddently it comes out with this error message.

Please advice. Thanks.

ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml at
line 24
/Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

Catalina.start:java.lang.ClassNotFoundException:
org.apache.catalina.mbenas.ServerLifecycleListener
 java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener

Error reading server xml

2003-09-17 Thread Yang Soon Chiao
Here is the error message (sorry for the wrong spelling).


ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml
At line 24 /Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

Catalina.start:java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener



Thanks in advance.
Soon Chiao.

- Original Message - 
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 9:34 AM
Subject: Re: Error reading server xml


 do you have a type somewhere, your to classes are different
 org.apache.catalina.mbenas.ServerLifecycleListener

 look at the spelling of mbean

 Filip
 - Original Message - 
 From: Yang Soon Chiao [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 6:02 PM
 Subject: Error reading server xml


 Everything work fine but suddently it comes out with this error message.

 Please advice. Thanks.

 ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml at
 line 24
 /Server/Listener/
 className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

 Catalina.start:java.lang.ClassNotFoundException:
 org.apache.catalina.mbenas.ServerLifecycleListener
  java.lang.ClassNotFoundException:
 org.apache.catalina.mbeans.ServerLifecycleListener

 -
 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: cannot start tomcat

2003-09-15 Thread Yang Soon Chiao
I put tomcat installation file in /usr/local
then, i un-tar it.


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:37 PM
Subject: RE: cannot start tomcat



 Howdy,
 Looks like a badly installed tomcat - how did you install it?

 Yoav Shapira
 Millennium ChemInformatics
 -Original Message-
 From: Yang Soon Chiao [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 3:49 AM
 To: [EMAIL PROTECTED]
 Subject: cannot start tomcat

 using Tomcat 4.1.27 with Red Hats 8.0 and J2SDK 1.4.1 and I got this error
messages when starting tomcat. I attached my server.xml.

 Below is the error message i get from catalina.out:
 
 ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml at line 24
/Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

 Catalina.start:java.lang.ClassNotFoundException:
org.apache.catalina.mbenas.ServerLifecycleListener
 java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
 

 Please advise. Thanks



 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


 -
 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]



Question on Follow Sym Link

2003-09-13 Thread John Z Yang
Dear all:
I have seen this question floating around, but just can't dig the answer out.

Does anyone know how to let Tomcat follow symbolic links? Just like the FollowSymLink 
option  in Apache configuration. I need to redirect the ROOT directory.

I remember the older version of Tomcat does this, but I just upgraded to 1.4.2, and it 
seems not working.

Many thanks.

John

Error Report

2003-09-13 Thread John Z Yang
Hi,
Is there a way to send a customized error report when our servlet or Tomcat run into 
something wrong? Instead of sending all the detailed stack dump, a more friendly 
message to our customers might be better. I would appreciate it very much if someone 
can give me some pointers on how to customized the error report page.

Many thanks.

John

cannot start tomcat

2003-09-12 Thread Yang Soon Chiao



using Tomcat 4.1.27 with Red Hats 8.0 and J2SDK 
1.4.1 and I got this error messages when starting tomcat. I attached my 
server.xml. 

Below is the errormessage i get from 
catalina.out:

ERROR reading 
/usr/local/jakarta-tomcat-4.1.27/conf/server.xml at line 24 /Server/Listener/ 
className=org.apache.catalina.mbeans.ServerLifecycleListener 
debug=0

Catalina.start:java.lang.ClassNotFoundException: 
org.apache.catalina.mbenas.ServerLifecycleListener
java.lang.ClassNotFoundException: 
org.apache.catalina.mbeans.ServerLifecycleListener


Please advise. 
Thanks
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --

!-- Define 

Re: Simple question on Unicode URL in Tomcat

2003-06-03 Thread John Z Yang
Dear all:
I have a simple question regarding to the Unicode URL support in Tomcat.
If I pass a Unicode URL to Tomcat, can it retrieve the targeted content?

Some of our web pages are named under double byte characters. We have tried various 
ways but all have failed. If you have a work around, please let us know.

Many thanks.

John

Does Tomcat support Unicode URL

2003-06-03 Thread John Z Yang
We still have not figure out a way to resolve doublebyte URL's with Tomcat. I.E. if we 
have an jsp or htm file name which is in Unicode, it seems that tomcat has no way to 
load that page. We tried to encode the characters with % URL encoding, but seems not 
working.
Can anyone help?
Thanks.
John 

Simple question on Unicode URL in Tomcat

2003-06-02 Thread John Z Yang
Dear all:
I have a simple question regarding to the Unicode URL support in Tomcat.
If I pass a Unicode URL to Tomcat, can it retrieve the targeted content?

Some of our web pages are named under double byte characters. We have tried various 
ways to make it work but all failed. If you have a work around, please let us know.

Many thanks.

John

Tomcat 4.1.8 and httpd-2.0.40-11

2003-02-17 Thread Xue-Feng Yang
Hi all,

I tried to connect  Tomcat 4.1.8 and Apache2(httpd-2.0.40-11 ) with jk2 
on my redhat 8.0 box, where apach2 was installed when I installed Redhat 
8.0. I use JDK 1.4.1.

When I used ant to build native, I met some errors. I fixed one error:

 [so] /usr/java/j2sdk1.4.1_01/include/jni.h:27:20: jni_md.h: No such 
file or directory

by copying   /usr/java/j2sdk1.4.1_01/include/linux/jni_md.h to 
/usr/java/j2sdk1.4.1_01/include/

Then I met more(see attched). I cannot resolve this. Could anyone help 
me on this?

Thank you very much,

Xue-Feng

  [so] StdErr:
  [so] In file included from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_thread.c:64:
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:165:17: 
apr.h: No such file or directory
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:166:23: 
apr_errno.h: No such file or directory
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:167:22: 
apr_time.h: No such file or directory
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:168:25: 
apr_strings.h: No such file or directory
  [so] In file included from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_workerEnv.h:68,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:75,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker.h:70,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:69,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h:67,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:67,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_thread.c:65:
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:207: 
parse error before apr_time_t
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:207: 
warning: no semicolon at end of struct or union
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:211: 
warning: data definition has no type or storage class
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:212: 
parse error before maxTime
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:212: 
warning: data definition has no type or storage class
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:215: 
parse error before startTime
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:215: 
warning: data definition has no type or storage class
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:216: 
parse error before jkStartTime
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:216: 
warning: data definition has no type or storage class
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:217: 
parse error before endTime
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:217: 
warning: data definition has no type or storage class
  [so] In file included from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker.h:70,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:69,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h:67,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:67,
  [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_thread.c:65:
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:279: 
parse error before apr_time_t
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:279: 
warning: no semicolon at end of struct or union
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:315: 
`read' redeclared as different kind of symbol
  [so] /usr/include/unistd.h:310: previous declaration of `read'
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:321: 
`write' redeclared as different kind of symbol
  [so] /usr/include/unistd.h:313: previous declaration of `write'
  [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:358: 
parse error before '}' token
   

Re: Tomcat 4.1.18 and httpd-2.0.40-11

2003-02-17 Thread Xue-Feng Yang


Hi all,

I tried to connect  Tomcat 4.1.18 and Apache2(httpd-2.0.40-11 ) with jk2 
on my redhat 8.0 box, where apach2 was installed when I installed Redhat 
8.0. I use JDK 1.4.1.

When I used ant to build native, I met some errors. I fixed one error:

[so] /usr/java/j2sdk1.4.1_01/include/jni.h:27:20: jni_md.h: No such 
file or directory

by copying   /usr/java/j2sdk1.4.1_01/include/linux/jni_md.h to 
/usr/java/j2sdk1.4.1_01/include/

Then I met more(see attched). I cannot resolve this. Could anyone help 
me on this?

Thank you very much,

Xue-Feng

 [so] StdErr:
 [so] In file included from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_thread.c:64: 

 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:165:17: 
apr.h: No such file or directory
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:166:23: 
apr_errno.h: No such file or directory
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:167:22: 
apr_time.h: No such file or directory
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global.h:168:25: 
apr_strings.h: No such file or directory
 [so] In file included from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_workerEnv.h:68, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:75, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker.h:70, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:69, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h:67, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:67, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_thread.c:65: 

 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:207: 
parse error before apr_time_t
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:207: 
warning: no semicolon at end of struct or union
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:211: 
warning: data definition has no type or storage class
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:212: 
parse error before maxTime
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:212: 
warning: data definition has no type or storage class
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:215: 
parse error before startTime
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:215: 
warning: data definition has no type or storage class
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:216: 
parse error before jkStartTime
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:216: 
warning: data definition has no type or storage class
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:217: 
parse error before endTime
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoint.h:217: 
warning: data definition has no type or storage class
 [so] In file included from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker.h:70, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:69, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h:67, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:67, 

 [so]  from 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_thread.c:65: 

 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:279: 
parse error before apr_time_t
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:279: 
warning: no semicolon at end of struct or union
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:315: 
`read' redeclared as different kind of symbol
 [so] /usr/include/unistd.h:310: previous declaration of `read'
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:321: 
`write' redeclared as different kind of symbol
 [so] /usr/include/unistd.h:313: previous declaration of `write'
 [so] 
/root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service.h:358: 
parse error before '}' token
 [so] 

Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread John Z Yang
Hi,
We are using Tomcat3.3.1 and Oracle on Linux.
When we enter DoubleByte Chars (CJK, GB2312) in jsp form input, Tomcat 
turns the characters into 's.

The only way we can get around this problem now is to set the IE browser to 
check the temporary files everytime.

Does anyone knows how to fix this problem?

Many thanks.

John


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



please unsubscribe me from the list,thanks

2002-11-22 Thread yang huijuan






_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



How to configure tomcat to forbid indexing of a directory

2002-11-18 Thread John Z Yang
Dear all:
I am puzzled that in Apache
the httpd.conf has a directive Options Indexes to turn directory mapping on and off, 
but for tomcat there seems no way to block the user from viewing the directory 
structure unless you create an index.jsp file.

Can anyone give me a pointer to the Options equivalent in tomcat configuration?

Many thanks.

John



unable to read uploaded document

2002-10-11 Thread Yang

Hi, 
I'm using tomcat 4 as the standalone server. I can
upload files successfully to server by using struts
upload package, but I can't read uploaded documents
properly like excel or powerpoint documents. I checked
the files in filesystem. All files are there and can
be read from window explorer.
Did anybody know how to work this issue?

Thanks in advance!

Yang


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Where is the examples for Tomcat 4.03 linux/rpm?

2002-03-17 Thread Xue-Feng Yang

Where is the examples for Tomcat 4.03 linux/rpm?


__ 
Find, Connect, Date! http://personals.yahoo.ca

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mod_webapp.so problem

2002-03-16 Thread Xue-Feng Yang

OS: RedHat 7.1
Apache: RedHat default installation, apache-1.3.20-16
Tomcat: 4.01

[warn] Loaded DSO modules/mod_webapp.so uses plain
Apache 1.3 API, this module might crash under EAPI!
(please recompile it with -DEAPI)

Any suggestion?


__ 
Find, Connect, Date! http://personals.yahoo.ca

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Is there a forum for Jboss/Tomcat?

2002-03-08 Thread Xue-Feng Yang

I am looking for a forum for Jboss/Tomcat. If anyone
knows a link, please let me know.

__ 
Find, Connect, Date! http://personals.yahoo.ca

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: SSL problem with tomcat 4.0.2

2002-02-20 Thread Xue-Feng Yang

It looks that I get some prograss.

I made a new .keystore in the default dir, as you
mentioned. 

This time I didn't see the new error message in log
file, but the page still The page cannot be
displayed. 

Any more suggestions.

--- Scott Shorter [EMAIL PROTECTED] wrote:
 In my experience, Tomcat cannot actually rely on any
 keystore except the
 default one, which on W2K seems to appear as
 C:\\Documents and
 Settings\\YOURUSERNAME\\.keystore
 
 HTH,
 Scott
 
  -Original Message-
  From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 20, 2002 2:25 PM
  To: Tomcat Users List
  Subject: SSL problem with tomcat 4.0.2
  
  
  Hi,
  
  OS: win2k
  JDK: 1.3.1
  TOMCAT: 4.0.2
  
  server.xml
  Connector 
 

className=org.apache.catalina.connector.http.HttpConnector
 port=8443 minProcessors=5
  maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0 scheme=https
 secure=true
Factory 
 

className=org.apache.catalina.net.SSLServerSocketFactory
 clientAuth=false 

 

keystoreFile=C:/_work/jsse1.0.2/samples/jssecacerts
 keystorePass=eontecStorePasswd
 protocol=TLS/
  /Connector
  
  After startup and look at https://localhost:8443
  The page cannot be displayed. There are no prints
 out.
  But in the apache_log.2002-02-20 file, I find
  
  2002-02-20 13:59:22
 [org.apache.catalina.connector.warp.WarpConnector]
  Error accepting requests
  java.net.SocketException: socket closed
  at java.net.PlainSocketImpl.socketAccept(Native
  Method)
  at
 

java.net.PlainSocketImpl.accept(PlainSocketImpl.java:424)
  at
 

java.net.ServerSocket.implAccept(ServerSocket.java:246)
  at
 
 java.net.ServerSocket.accept(ServerSocket.java:225)
  at
 

org.apache.catalina.connector.warp.WarpConnector.run(WarpConne
  ctor.java:590)
  at java.lang.Thread.run(Thread.java:484)
  
  Any idea?
  
  Thanks
  
 

__
   
  Web-hosting solutions for home and business!
 http://website.yahoo.ca
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__ 
Web-hosting solutions for home and business! http://website.yahoo.ca

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




where to configure ?

2002-01-23 Thread Yang wanqiang

hi!
I have a web application developed on Redhat7.1+Apache+Tomcat+mysql, 
Now I can input http://host/App/index.jsp or http://host/app/ or http://host/index.jsp 
 in IE to enter my application, but what I want is  just input http://host and then I 
can start my application. Where I can configure to that?



newbie install error

2001-08-16 Thread Chuq Yang

Hi list,
I'm currently trying to install tomcat 3.2.3 on top of a Mandrake
8.0 install.  I am building all of the packages from source, and I have
followed the README file in the jakarta-tomcat-3.2.3-src directory
closely, but I'm getting the following error when I try to install the
jakarta-servletapi package:


Exception in thread main java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main

I have uncompressed the jakarta-ant and jakarta-servletapi source
packages into the jakarta-tomcat-3.2.3-src directory, and the bootstrap of
jakarta-ant worked.  That's as far as I've gotten.

TIA.

Chuq

Chuq Yang
UNIX Administrator
Bigfoot Communications LLC
[EMAIL PROTECTED]






Re: newbie install error

2001-08-16 Thread Chuq Yang

Rob,
I just tried that, but I'm getting the same error.  Any other thoughts?

Chuq


On Thu, 16 Aug 2001, Rob S. wrote:

  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/tools/ant/Main

 This is a problem with 'ant', another Jakarta subproject.  Have you set an 
ANT_HOME environment variable to point to the root of your ant install?

 - r






Does Tomcat work with MS proxy server?

2001-06-12 Thread Sam Yang

Hi,

I am trying to use Tomcat 3.2.1 on my NT 4 server with IIS 4 and Microsoft 
Proxy Server installed. Now Tomcat is working fine with iis via localhost 
so I can access
http://127.0.0.1/examples/jsp/index.html or 
http://127.0.0.1:8080/examples/jsp/index.html. But I can't make it 
accessible via its two ip addresses: 10.XX.XX.XX or 66.XX.XX.XX. BTW, 10.XX 
is a fake address we used for internal network and 66.XX is got from ISP by 
DHCP. I also tried Sun JSWDK 1.01. Same thing. Any ideas will be highly 
appreciated. Thanks a lot for your attentions.

Sam





RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread A Yang

Hi,

Thanks for the help. As it turns out, switching
between requestDispath.forward and response.redirect
will trip you up because of differences in what they
expect as their parameters.

RequestDispatch.forward takes a URL that is a RELATIVE
path but also requires a leading slash.

If you are brilliant (like myself) and you change your
code to use response.encodeRedirectURL but you KEEP
that leading slash, well then. Your response will
treat it like an absolute path and wind up plunking
you into a different servlet context, which Tomcat
will generate a new session for.

Thanks again for your help,
Andy

--- Martin van den Bemt [EMAIL PROTECTED] wrote:
 A different hostname creates a new session which
 could be the problem here..
 (so http://www.example.com and http://example.com
 create a different session even it's the same 
 server/context/etc..
 
 Mvgr,
 Martin
 
  -Original Message-
  From: Alex Fernandez [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 29, 2001 4:57 PM
  To: [EMAIL PROTECTED]
  Subject: Re: response.sendRedirect vs.
 requestDispatcher.forward
 
 
  Conceptually, requestDispatcher.forward() is
 different from
  response.sendRedirect().
 
  In forward(), you are moving inside the same
 webapp, and as such it
  doesn't even reach the client browser. The session
 is maintained.
 
  In sendRedirect(), you're instead moving across
 webapps, and it's the
  browser that redirects to the specified location.
 In fact, it doesn't
  even need to be another servlet, you may redirect
 to an ASP or a static
  page. New request and response are created.
 
  It seems strange that the session is not
 maintained, though, since both
  requests come from the same browser. Perhaps it's
 a bug?
 
  Un saludo,
 
  Alex.
 
  A Yang wrote:
  
   Hi All,
  
   Does anyone know offhand whether the Java
 Servlet
   specification requires a new HttpSession to be
 created
   when using HttpServletResponse.sendRedirect()?
  
   In a servlet, I was using:
  
  
 

getServletConfig().getServletContext().getRequestDispatcher(/Resu
  lt.jsp).forward(req,
   resp);
  
   at the end of a sequence of pages/servlets, but
 I
   wanted to replace it with
  
   response.sendRedirect(/Result.jsp);
  
   instead. The result page prints out the contents
 of
   several javabeans which are stored in the
 session.
  
   This worked fine when all I used were
   requestDispatcher.forward but with
   response.sendRedirect(), all of my session
 attributes
   are gone! In fact, the session id is different
 after
   the sendRedirect.
  
   I'm pretty sure the session is supposed to
 survive
   across any series of GET's and POST's until it
 is
   invalidated explicitly (or timed out).
  
   Any thoughts? I'm using Tomcat 3.2.1
  
   Thanks.
  
  

___
   Do You Yahoo!?
   Get your free @yahoo.ca address at
 http://mail.yahoo.ca
 
 


___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread A Yang

Hi All,

Does anyone know offhand whether the Java Servlet
specification requires a new HttpSession to be created
when using HttpServletResponse.sendRedirect()?

In a servlet, I was using:

getServletConfig().getServletContext().getRequestDispatcher(/Result.jsp).forward(req,
resp);

at the end of a sequence of pages/servlets, but I
wanted to replace it with

response.sendRedirect(/Result.jsp);

instead. The result page prints out the contents of
several javabeans which are stored in the session.

This worked fine when all I used were
requestDispatcher.forward but with
response.sendRedirect(), all of my session attributes
are gone! In fact, the session id is different after
the sendRedirect.

I'm pretty sure the session is supposed to survive
across any series of GET's and POST's until it is
invalidated explicitly (or timed out).

Any thoughts? I'm using Tomcat 3.2.1

Thanks.

___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****

2001-05-16 Thread Yang,Chun

The problem with my mailer (MS Outlook) is that I don't see a return-path
line.

One odd thing is that unsubscribe doesn't seem to work EVEN if one has sent
the unsubscribe request via his/her subscribing address. I  know for sure it
has failed on me. I am positive about my subscribing address being correct
as I saved the instructions of subscribing/unsubscribing sent by the mailing
list when I initially signed up. And I have tried to unsubscribe at least
twice and both times I failed.

The only solution I could come up with is having all messages from tomcat
user, tomcat user list etc... filtered into the delete folder... :-)
Apparently my setup didn't undergo enough permutations of  tomcat and
user such that the attached message wasn't filtered out... :-)

Any ideas ?

-Original Message-
From:   Milt Epstein [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 16, 2001 2:18 PM
To: Tomcat User Mailing List
Subject:* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER
LIST *


Obviously a lot of people are having trouble unsubscribing from this
list.  Most likely these people have tried the simple/direct way of
unsubscribing -- sending email to

  [EMAIL PROTECTED]

-- without success.  That's because that way only works if you send
the unsubscribe request from the address you are subscribed from.
But
many people receive/send their email from a different address than
the
one they originally subscribed from.

Some people (including me and others) have posted instructions on
how
to unsubscribe when faced with this situation.  But it's not clear
that the right people are seeing these messages (I guess you can't
blame them too much, because they're probably not reading the
messages
too closely, because the whole point is they want to get off this
list).  But I'm going to make another attempt to post these
instructions in the hope that it will help someone.  I'll try to
make
the subject line such that even those people that are deleting
everything from the list will stop and notice it (for the people
that
want to stay on the list, sorry about that :-).

First of all, you need to find out what address tomcat-user thinks
you're subscribed from.  To do that, look at the headers of a
message
from the list, and you'll see something like:

Return-Path:
[EMAIL PROTECTED]

The Return-Path header line includes the address tomcat-user thinks
you're subscribed from -- with the @ changed to a = to avoid
having two @'s in the Return-Path.  In this example, that's
joe=domain.com, which translates to [EMAIL PROTECTED]

Once you know that address, you can unsubscribe by sending email to

  [EMAIL PROTECTED]

Voila!

So, if you are having trouble unsubscribing, please give this a try.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



Re: Compilation error of tomcat3.2.1 integrating with apache1.3.19

2001-05-04 Thread Wei Yang

Hi Marc-henri,

Thanks for the information. I added code segments for jk_global.h and jk_pool.h
shown at

http://mikal.org/interests/java/tomcat/archive/view?mesg=13351

 and the compilation finished with no problem and tomcat are doing well with apache.

BTW,  I did not add code segment  for jk_jni_worker.c because of  no such variable
defined
error for handle.

Regards,

Yang Wei

- Original Message -
From: Marc-henri PAMISEUX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 04, 2001 6:15 PM
Subject: Re: Compilation error of tomcat3.2.1 integrating with apache1.3.19


 Hi,

 Yesturday, i've got the same problem...
 The reason ? There is no sys/select.h under HPUX !
 I've post it in this Mailing List, and the answer of john P. Dodge was :

 Another alternative is to add an extra #ifndef in jk_global.h, that way
 the same script will continue to work on other platforms. Change
 jk_global.h to look like...
 
 (jk_global.h somewhere near line 86)
 
 #ifndef NETWARE
 #include netinet/tcp.h
 #include arpa/inet.h
 #include sys/un.h
 #include sys/socketvar.h
  do not include sys/select.h if using HPUX11 
 #ifndef HPUX11
   #include sys/select.h
 #endif
 
 #endif

 That's OK, if you do this, you can generate a mod_jk.so, but it don't works
 with Apache.
 I've seen on the archive of this list that it's a problem with 32 - 64 bits
 compilation.
 Matchim, Brian wrote on Mon, 11 Dec 2000 (let see
 http://mikal.org/interests/java/tomcat/archive/view?mesg=13351 ):

 I far as I can tell, the reason is that HPUX11 is a 64-bit OS, but it uses
 32-bit compilers as default.
 Tomcat's distribution code attempts to use the following dl operations:
 dlopen(), dlload(), dlerror(),
 and dlsym().  Though the code will compile using a 32-bit compiler, it will
 not operate correctly
 and Apache will refuse to start.
 There are two ways around this of course, use a 64-bit compiler (such as
 gcc),
 or you can modify the code to use the 32-bit equivalents, that is,
 shl_load(), shl_open(), etc.

 Well done, but i'm using gcc 2.95.2 on hpux, and it doesn't works...
 So, i decide to go on the gnu gcc site, and i've seen the page
 http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux11 that specify :

 GCC 2.95.2 does not support HP-UX 11, and it cannot generate 64-bit object
 files. Current (as of late 2000)
 snapshots and GCC 3.0 do support HP-UX 11.

 What should we do ?

 I hope i give you some informations to continue, and i hope you'll help me
 to if you find before ;o)) ...

 Regards,

 Marc-Henri PAMISEUX
 [EMAIL PROTECTED]


 - Original Message -
 From: Wei Yang [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, 04 May 2001 02:49
 Subject: Compilation error of tomcat3.2.1 integrating with apache1.3.19


  Hi everone,
 
  I am facing a compilation problem of mod_jk.c to integrate
  with apache web server. The system configuration is :
 
  1. OS : HP-UX 11
  2.Web Server : Apache 1.3.19 in /opt/scs/apache
  3.Tomcat: version 3.2.1 in /opt/scs/tomcat
  4.Java: PA2.0 build 1.2.2.04-00/04/14-PA_RISC2.0 in /opt/java
  5.GCC: version 2.95.3 in /opt/gcc
 
  The command I used to compile mod_jk.c was as below:
 
  %/opt/scs/apache/bin/apxs -o mod_jk.so -I../jk
  -I/opt/java/include -I/opt/java/include/hp-ux -c *.c ../jk/*.c
 
  and the error message was:
 
 
 %gcc -fpic -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O -DSHARE
 D_MODULE -I/
 
 opt/scs/apache/include -I../jk -I/opt/java/include -I/opt/java/include/hp-ux
   -c
  mod_jk.c
  In file included from /opt/scs/apache/include/ap_config.h:1090,
   from mod_jk.c:66:
  /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28:
 warning:
  `__va__list' redefined
  /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
 warning: this is
  the location of the previous definition
  In file included from mod_jk.c:89:
  ../jk/jk_global.h:91: sys/select.h: No such file or directory
  apxs:Break: Command failed with rc=1
 
  Any suggestion or idea will be appreciated.
 
  Thanks in advance.
 
  Yang Wei
 
 
 






Compilation error of tomcat3.2.1 integrating with apache1.3.19

2001-05-03 Thread Wei Yang

Hi everone,

I am facing a compilation problem of mod_jk.c to integrate
with apache web server. The system configuration is :

1. OS : HP-UX 11
2.Web Server : Apache 1.3.19 in /opt/scs/apache
3.Tomcat: version 3.2.1 in /opt/scs/tomcat
4.Java: PA2.0 build 1.2.2.04-00/04/14-PA_RISC2.0 in /opt/java
5.GCC: version 2.95.3 in /opt/gcc

The command I used to compile mod_jk.c was as below:

%/opt/scs/apache/bin/apxs -o mod_jk.so -I../jk
-I/opt/java/include -I/opt/java/include/hp-ux -c *.c ../jk/*.c

and the error message was:

%gcc -fpic -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O -DSHARED_MODULE 
-I/
opt/scs/apache/include -I../jk -I/opt/java/include -I/opt/java/include/hp-ux  -c
mod_jk.c
In file included from /opt/scs/apache/include/ap_config.h:1090,
 from mod_jk.c:66:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28: warning:
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is
the location of the previous definition
In file included from mod_jk.c:89:
../jk/jk_global.h:91: sys/select.h: No such file or directory
apxs:Break: Command failed with rc=1

Any suggestion or idea will be appreciated.

Thanks in advance.

Yang Wei





Build error

2001-04-26 Thread Shih Chin Yang

Hi!
I just downloaded Tomcat 3.2.1 source, then followed the README to
build, unfortunately I got the following error message

BUILD FAILED

/usr/local/shih/jakarta/jakarta-tomcat/build.xml:94: Cannot use classic
compiler, as it is not available A common solution is to set the
environment variable JAVA_HOME
to your jdk directory.

I was sure that JAVA_HOME has been set to my jdk1.3.0_02 directory, and
I ran javac from command line without any problems, could someone
help me? Also, it seems Jakarta-ServletAPI subject no longer exists, is
it still required for building Tomcat?

Your help would be much appreciated,
Shih-Chin




Re: Build error

2001-04-26 Thread Shih Chin Yang

Barbara:

Thanks for your response, actually I did what you said,
echo $JAVA_HOME gave me
/usr/java/jdk1.3.0_02 , which is where I installed JDK

Shih-Chin

Barbara Baughman wrote:

 The fact that javac runs may only mean you have the jdk directory in your
 PATH environment variable.  If you are on unix, use the command
 echo $JAVA_HOME
 to see its definition.  I think the JAVA_HOME environment variable is not
 used by jdk at all.

 Barbara Baughman

 On Thu, 26 Apr 2001, Shih Chin Yang wrote:

  Hi!
  I just downloaded Tomcat 3.2.1 source, then followed the README to
  build, unfortunately I got the following error message
 
  BUILD FAILED
 
  /usr/local/shih/jakarta/jakarta-tomcat/build.xml:94: Cannot use classic
  compiler, as it is not available A common solution is to set the
  environment variable JAVA_HOME
  to your jdk directory.
 
  I was sure that JAVA_HOME has been set to my jdk1.3.0_02 directory, and
  I ran javac from command line without any problems, could someone
  help me? Also, it seems Jakarta-ServletAPI subject no longer exists, is
  it still required for building Tomcat?
 
  Your help would be much appreciated,
  Shih-Chin
 
 




Re: Caching a servlet? Sessions in IE?

2001-03-26 Thread A Yang

 Have you tried setting the cache and expire headers?
 
 Try addding:
 
 response.setHeader("Cache-Control","no-cache");
 //HTTP 1.1
 response.setHeader("Pragma","no-cache"); //HTTP 1.0
 response.setDateHeader ("Expires", 0); //prevents
 caching at the proxy server

I have the following:
 
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "-1");

I even have it in "controller" JSP's which only do
some basic logic and page forwarding. 

It really looks like it's my controller servlet that
is being cached, and I don't understand that at all. 

I shouldn't be setting any headers in the response if
I'm going to forward it somewhere else right?

Andy

___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



Caching a servlet? Sessions in IE?

2001-03-25 Thread A Yang

Hi,

This is a weird one that we can only reproduce in IE.
Netscape works fine. I'm using Tomcat 3.2.1 with
Apache via mod_jk.

I have a "Main Menu" servlet that forwards the user
through a series of JSP/servlet sequences based on a
parameter that identifies which "item" was selected in
the Main Menu.

The problem is that when the user finishes one path,
and is sent back into the Main Menu servlet with
another parameter (i.e., option 2 after completing
option 1), it looks like the Main Menu servlet has
been cached! I have guardian log messages set at the
beginning of the doPost and doGet methods but they
don't get called. Instead, the user simply re-enters
the path they have just completed.

Even if I remove all attributes and invalidate the
session before going back to the Main Menu servlet, it
still continues down the already-travelled path.

Has anyone seen this behaviour before? Sessions seem
to hang around regardless of whether it's been
invalidated or not.

Any help would be greatly appreciated.

Thanks,

___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



Configuring mod_jk

2001-03-23 Thread A Yang

Hello Everyone,

I was just wondering if anyone could help make sure
I've got mod_jk configured properly.

Assuming my host name is www.myhost.com and I have a
servlet context called /tomcat.

In my httpd.conf, I have my DocumentRoot set to the
/tomcat document root (for the sake of testing). I
also have:

DirectoryIndex index.html index.jsp

In my mod_jk.conf, I have the following excerpt:

JkMount .*.jsp ajp13
JkMount /servlet/* ajp13

JkMount /tomcat/*.jsp ajp13
JkMount /tomcat/servlet/* ajp13

So, what this means is that the following work:

www.myhost.com/tomcat/index.jsp
  and 
www.myhost.com/tomcat/myservlet

I'm pretty sure that if I just specify
www.myhost.co/tomcat - then index.jsp gets picked up
automatically. Which is good.

Similarly, www.myhost.com/tomcat/something.htm works.

However, when I try something like:

www.myhost.com
  or
www.myhost.com/something.htm

I get the dreaded infinite-CPU-looping java process
because it's trying to resolve a context and is unable
to.

So, my hypothesis is that Apache is NOT serving up the
html documents, because otherwise, Tomcat via mod_jk
should never have to resolve html files.

Any insight would be appreciated.


___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



Checking for timed-out sessions

2001-03-23 Thread A Yang

Hi,

Can anyone tell me what the proper convention for
checking for invalidated sessions is? Do people really
write code checking for whether the session is valid
EVERY time they are about to refer to one? And if so,
do they just examine the LastAccessedTime and create a
new session accordingly?

If this is the case, then you'd think that part of the
base class functionality would be a method that
automatically compares it to the MaxInactiveInterval -
instead of making me subclass HttpSession myself8)

Also, is the behaviour of a timed-out session defined
if I try to access one? Does Tomcat automatically
invalidate the session after it exceeds the
session-timeout value?

Thanks,

___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



Re: referer

2001-03-01 Thread paxson yang

Carlos wrote:
 
 can any body say me how can i in a JSP page detect which is the referer
 page? from which page comes the visit?
 thanks
 Carlos
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

you can try this

%
  String referer=request.getHeader("referer");
  session.setAttribute("referer",referer);
%

it works fine to me

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




Question about sessions

2001-02-16 Thread A Yang

If I instantiate a javabean from a JSP: 

jsp:useBean id="myBean" class="com.mycorp.somebean"
scope="session"
jsp:setProperty name="myBean" property="*"/
/jsp:useBean

and hand off control to a servlet where I retrieve the
session using:

HttpSession session = req.getSession(false);

Shouldn't session.isNew() return "false" because the
session already exists?

Thanks and regards,
Andy



___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

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




Running Tomcat as non-root

2001-02-06 Thread A Yang

Hello All,

Can anyone tell me how to set up directory permissions
to permit running Tomcat as a non-root user? 

According to previous posts in the mailing list, I
should be using 'su - nobody' when kicking off Tomcat,
but nobody doesn't have authorities to write to
usr/local.

What is the best practise for setting up Tomcat?
/usr/local/tomcat should be owned by Root shouldn't
it? I'm running Red Hat 6.2.

Thanks,


___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

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




Re: Running Tomcat as non-root

2001-02-06 Thread A Yang


 /usr/local/tomcat doesn't necessarily have to be
 owned by root. The only thing you need to so is make

 sure that whichever user you run tomcat as has write

 permissions to the logs, conf and work directories
 (those are the only ones Tomcat writes to I think).

I was a little iffy about leaving the entire conf
directory writable by the nobody group, so I wound up
just checking the java exceptions and permitting group
write access to the affected files - mostly they are
the automatically generated files like *.conf-auto.

On a side note, I found that I was regenerating the
Windows registry settings for redirecting IIS every
time I started up Tomcat.

 This doesn't have to be 'nobody' though. You could 
 create a tomcat or www user for example.

Yes, I just figured I would use the same nobody user
that apache was using.

Would it be best practises to have apache and tomcat
running on separate, minimal userids?

 And if you want it to be owned by root, that's fine,
 just use the group permissions to set the write 
 access.

Do you mean something like:

 1 -r--rw-r-- 1 root nobody1024  foo

Thanks,



___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

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




ClassCastException

2001-02-05 Thread Yang,Chun

Hello all, I am encountering a ClassCastException when compiling a JSP page
in the following scenario:

1)  a servlet MyInitServlet creates an object MyObject and saves it to
the context by

getServletContext().setAttribute("myobj", MyObject);

2)  a JSP page tries to access MyObject by doing:

MyObject mo = (MyObject) application.getAttribute("myobj");

The above statement caused Jasper to throw a
ClassCastException. 

3)  I then tried by introspecting the generic object returned by
application.getAttribute()

mo2 = application.getAttribute("myobj");

And I was able to print out the class name and all the public
methods in the class associated with mo2. And everything looked right. But
the statement

mo2 instanceof MyOjbect

still evaluated to false (hence the ClassCastException)..

What did I do wrong ? 

Your help is greatly appreciated!







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




RE: ClassCastException

2001-02-05 Thread Yang,Chun

Nope, MyObject is not defined as an inner class and is already in a .java
file by itself.

Any more thoughts on this one ?

-Original Message-
From:   Shahed Ali [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, February 05, 2001 6:22 PM
To: [EMAIL PROTECTED]
Subject:Re: ClassCastException

Are you using an inner class for declaring MyObject ?

I faced a similar problem when I daclared a class as below in a jsp
page,
create an object of type ax,
saved it in a session, and retrived it in another jsp page which had
the
same %! class ax ...%
code fragment.

%!
class ax
{
public int x;
}
%

The problem is that you cannot cast inner classes as they are
qualified by
their enclosing class (AFAIK)
Try moving class MyObject to a seprate .java file.

Regards
Shahed



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

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




starting Tomcat with nobody in RH Linux

2001-02-03 Thread A Yang

Hello all,

There has been a fair bit written about starting up
Tomcat under a non-root account, but I'm too much of a
Linux admin newbie that I'm having trouble putting it
all into context.

I have Apache running under nobody, but I'm having
trouble getting Tomcat to. I try to startup Tomcat
using "su - nobody" but run into permissions problems
because my /usr/local/tomcat directory is owned by
root.

I look at Apache, and the owner and groups are numeric
but the values don't match any of my group id's.

I mean, I shouldn't try to add nobody to my root group
right? Red Hat doesn't even define nobody to be a real
user.

What am I missing about file ownership and special
accounts like nobody?

Thanks,


___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

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




starting Tomcat with nobody in RH Linux

2001-02-03 Thread A Yang

Hello all,

There has been a fair bit written about starting up
Tomcat under a non-root account, but I'm too much of a
Linux admin newbie that I'm having trouble putting it
all into context.

I have Apache running under nobody, but I'm having
trouble getting Tomcat to. I try to startup Tomcat
using "su - nobody" but run into permissions problems
because my /usr/local/tomcat directory is owned by
root.

I look at Apache, and the owner and groups are numeric
but the values don't match any of my group id's.

I mean, I shouldn't try to add nobody to my root group
right? Red Hat doesn't even define nobody to be a real
user.

What am I missing about file ownership and special
accounts like nobody?

Thanks,



___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

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




when do i need and how can I update(deploy )

2001-01-24 Thread dong yang

the war file?
thx
Andre Yang

__
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

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




how class reloading without shutdown-startup

2001-01-24 Thread dong yang

I found the related link
http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/43/question_id/240
I understood it as put the class in the web-inf
directory and don't include it in the class path. i
did it but the server couldn't find the class, shall I
edit the web.xml file? or even redeploy the war file?
thx
Andre Yang


__
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

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




unable to open tablibrary

2001-01-18 Thread Yang,Chun

Can someone please shed some light on this one ?

I know, I know. This _should_ have been posted to the taglib user mailing
list and it has been! The problem is there doesn't seem to be a lot of
traffic on that mailing list and I haven't received any meaningful
help/suggestion..

Thanks for bearing with me.


 Hi, I have encountered the following error message when I try to
 run a jsp
 page with a simple empty bodycontent tag.
 The error message reads:
 org.apache.jasper.compiler.CompileException:
 D:\chun\testarea\taglib\helloworldtag.jsp(0,0) Unable to open
 taglibrary
 http://www.yangc.com/taglib/testtags : null
 The entries for the afore-mentioned taglib in web.xml is:
 taglib
 taglib-uri
http://www.yangc.com/taglib/testtags
 /taglib-uri
 taglib-location
/WEB-INF/taglib/test-taglib.tld
 /taglib-location
 /taglib
 And the test-taglib.tld which is located in
 CONTEXT_ROO/WEB-INF/taglib has
 the following entry:
   tag
   namehw/name
   tagclassHelloWorldTag/tagclass
   bodycontentempty/bodycontent
   info
   /info
   /tag
 And the jsp page is as simple as
 %@ taglib uri="http://www.yangc.com/taglib/testtags"
 prefix="foo" %
 html
 body

 foo:hw/

 hr

 /body
 /html

 What could pssibly be wrong ? I read the documentation
 several times and
 simply couldn't figure this out !

 btw, the environment I am working in is Apache1.3.14(win32) and
 TomCat3.2.1

 Your help is greatly appreciated!
 
   -- 
   --
   Marius Scurtescu, Software Engineer
   Tel: (604) 899-2835 Fax: (604) 899-2899
   mailto:[EMAIL PROTECTED]
   Multiactive Software Inc. http://www.multiactive.com
   --
   Attract and retain customers with Multiactive Software --
   proud winners of PC WEEK's "Best of COMDEX" award.
   --

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




Large Scale Tomcat use

2001-01-12 Thread A Yang

Hi,

I was just curious - if I wanted to architect a
multi-tier web app environment, what would be the best
approach in terms of scalability, performance and
security:

1. Apache -- Firewall -- Standalone Tomcat -- Firewall
-- DB
2. Apache -- Firewall -- Apache/Tomcat -- Firewall --
DB
3. Apache/Tomcat -- Firewall -- Standalone Tomcat --
Firewall -- DB
4. Apache/Tomcat -- Firewall -- Apache/Tomcat --
Firewall -- DB
5. Apache/Tomcat -- Firewall -- DB
6. Apache/Tomcat -- Firewall -- Apache/Tomcat --
Firewall -- DB

"Apache/Tomcat" refers to Apache w/ mod_jk.so and
Tomcat running on the same machine.

I'm not familiar with the recommended approaches
towards distributing Apache and Tomcat, so some of
these options might not make sense (ok, none of them
might make sense...)

Just thought I'd see if anyone has "best practices" or
experience with doing so - this seemed related to load
balancing, but I thought I'd try a new thread.

Regards,
Andy



___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

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




the archive

2001-01-11 Thread Yang,Chun


Please bear with my ignorance. But what is the URL for the mailing list
archive ? I subscribed through the page
http://jakarta.apache.org/site/mail.html
and didn't see any link pointing to the archive...

Thanks.

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