Tomcat crash with no error messages!

2005-08-29 Thread Kenneth Litwak
Hi,

  I have an application that is the only application running on a given
tomcat instance (there are multiple tomcat instances on the same box).
The application has been running for weeks, but the code has not been
changed for weeks.  Suddenly, Friday afternoon the application began
failing as soon as it tried to do anything besides check an id in LDAP.
The failure causes the tomcat process to crash.  Unfortunately, nothing
shows up on Catalina.out, or in the log4j logs that the application
generally writes both errors and progress to.  So I'm not sure what to
do to diagnose the problem.  Any suggestions for the first step?  If I
had an error message, that would be good.  Thanks.

Ken


 Kenneth D. Litwak
Software Engineer III
IMT
Azusa Pacific University
901 E. Alosta
Azusa, CA 91702


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



RE: Diagnosing Tomcat Hang

2005-08-15 Thread Kenneth Litwak
   Thanks for the suggestion.  That does not seem to be the problem,
unfortunately.  So I'm still looking for a way to deal with this
problem.  Again, I'm thinking about acquiring/buying software that will
tell me more about what is going on, though I wish in the short term I
had a better idea, because I support students who are unable to register
for classes because of this.  Thanks.

Ken
.

-Original Message-
From: Lintang JP [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 11:53 PM
To: Tomcat Users List
Subject: Re: Diagnosing Tomcat Hang

have U check your Connector settings, maxAcceptConnection part ? this 
settings describe maximum connection will be accepted by tomcat, if it's

reached, then tomcat will put the rest connection request in hold,
waiting 
for other connection untill they finished. By that time, the tomcat
looks 
hang. 

hope it helps.

On 8/13/05, Kenneth Litwak [EMAIL PROTECTED] wrote:
 
 I have a Java web app running on tomcat on Linux Red hat on an Intel
 box with 2 GR of RAM. We're having trouble because the application
 intermittently hangs. The threads never go anywhere near the max. The
 CPU usage never goes above 2%. The memory does not get used up.
 Nevertheless, the tomcat server hangs. Obviously this could be a
 deadlock. Or, it could be connected to the fact that the application
 uses a third-party tool, which requires a JDBC connection to a
 middleware network program on the database server, called Omnidex.
What
 I need to know is how I can go about figuring out what's going wrong.
 In the short term if there's something I can do in tomcat logging or
 tracing, I'd like to know. Also, I'm interested in suggestions for
 software to purchase that can do a better job of analyzing what is
going
 on in the JVM to track down what is going on. The problem appears and
 then goes way and then reappears. It is clearly linked to number of
 users, but the problem appears with only 18 users at a time. So I know
 that none of you can tell me what's wrong. I'm looking for where to
 start doing diagnostics. I have a whole book on Tomcat development and
 it has not a single section on tomcat problem solving. Thanks.
 
 
 
 Ken
 
 
 
 
 


-- 
---
http://www.psychotazkia.or.id

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



Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
  I have a Java web app running on tomcat on Linux Red hat on an Intel
box with 2 GR of RAM.  We're having trouble because the application
intermittently hangs.  The threads never go anywhere near the max.  The
CPU usage never goes above 2%.  The memory does not get used up.
Nevertheless, the tomcat server hangs.Obviously this could be a
deadlock. Or, it could be connected to the fact that the application
uses a third-party tool, which requires a JDBC connection to a
middleware network program on the database server, called Omnidex.  What
I need to know is how I can go about figuring out what's going wrong.
In the short term if there's something I can do in tomcat logging or
tracing, I'd like to know.  Also, I'm interested in suggestions for
software to purchase that can do a better job of analyzing what is going
on in the JVM to track down what is going on.  The problem appears and
then goes way and then reappears.  It is clearly linked to number of
users, but the problem appears with only 18 users at a time.  So I know
that none of you can tell me what's wrong.  I'm looking for where to
start doing diagnostics.  I have a whole book on Tomcat development and
it has not a single section on tomcat problem solving.  Thanks.

 

Ken

 



RE: Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
Hi Radek,

  Does this produce a stack trace from Tomcat to Catalina.out or does
the thread trace go to the operating system's standard out? Thanks.

Ken


-Original Message-
From: Radek Wierzbicki [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 12:42 PM
To: Tomcat Users List
Subject: Re: Diagnosing Tomcat Hang

Hi.

Did you try sending a JVM process a QUIT signal (kill -3)? That will
produce a thread dump on a standart output. Do that when your
application hangs. From the thread dump you can deduct which thread
causes a problem.

--Radek W.

Kenneth Litwak wrote:
   I have a Java web app running on tomcat on Linux Red hat on an Intel
 box with 2 GR of RAM.  We're having trouble because the application
 intermittently hangs.  The threads never go anywhere near the max.
The
 CPU usage never goes above 2%.  The memory does not get used up.
 Nevertheless, the tomcat server hangs.Obviously this could be a
 deadlock. Or, it could be connected to the fact that the application
 uses a third-party tool, which requires a JDBC connection to a
 middleware network program on the database server, called Omnidex.
What
 I need to know is how I can go about figuring out what's going wrong.
 In the short term if there's something I can do in tomcat logging or
 tracing, I'd like to know.  Also, I'm interested in suggestions for
 software to purchase that can do a better job of analyzing what is
going
 on in the JVM to track down what is going on.  The problem appears and
 then goes way and then reappears.  It is clearly linked to number of
 users, but the problem appears with only 18 users at a time.  So I
know
 that none of you can tell me what's wrong.  I'm looking for where to
 start doing diagnostics.  I have a whole book on Tomcat development
and
 it has not a single section on tomcat problem solving.  Thanks.
 
  
 
 Ken
 
  
 
 


-
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: Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
(Thread.java:534)

http-8081-Processor42 daemon prio=1 tid=0x08472780 nid=0x7ed4 in
Object.wait() [8cb2c000..8cb2]
at java.lang.Object.wait(Native Method)
- waiting on 0x9096cec8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked 0x9096cec8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

http-8081-Processor41 daemon prio=1 tid=0x0838cb00 nid=0x7ed3 in
Object.wait() [8cb6d000..8cb6dccc]
at java.lang.Object.wait(Native Method)
- waiting on 0x9096cbf0 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked 0x9096cbf0 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

http-8081-Processor40 daemon prio=1 tid=0x0838be20 nid=0x7ed2 in
Object.wait() [8cbae000..8cbaeccc]
at java.lang.Object.wait(Native Method)
- waiting on 0x9096c918 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:655)
- locked 0x9096c918 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)


-Original Message-
From: Radek Wierzbicki [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 12:42 PM
To: Tomcat Users List
Subject: Re: Diagnosing Tomcat Hang

Hi.

Did you try sending a JVM process a QUIT signal (kill -3)? That will
produce a thread dump on a standart output. Do that when your
application hangs. From the thread dump you can deduct which thread
causes a problem.

--Radek W.

Kenneth Litwak wrote:
   I have a Java web app running on tomcat on Linux Red hat on an Intel
 box with 2 GR of RAM.  We're having trouble because the application
 intermittently hangs.  The threads never go anywhere near the max.
The
 CPU usage never goes above 2%.  The memory does not get used up.
 Nevertheless, the tomcat server hangs.Obviously this could be a
 deadlock. Or, it could be connected to the fact that the application
 uses a third-party tool, which requires a JDBC connection to a
 middleware network program on the database server, called Omnidex.
What
 I need to know is how I can go about figuring out what's going wrong.
 In the short term if there's something I can do in tomcat logging or
 tracing, I'd like to know.  Also, I'm interested in suggestions for
 software to purchase that can do a better job of analyzing what is
going
 on in the JVM to track down what is going on.  The problem appears and
 then goes way and then reappears.  It is clearly linked to number of
 users, but the problem appears with only 18 users at a time.  So I
know
 that none of you can tell me what's wrong.  I'm looking for where to
 start doing diagnostics.  I have a whole book on Tomcat development
and
 it has not a single section on tomcat problem solving.  Thanks.
 
  
 
 Ken
 
  
 
 


-
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: Diagnosing Tomcat Hang

2005-08-12 Thread Kenneth Litwak
]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked 0x91e484c0 (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at
org.apache.catalina.core.StandardServer.await(StandardServer.java:513)
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

VM Thread prio=1 tid=0x080999e0 nid=0x7cf0 runnable 

VM Periodic Task Thread prio=1 tid=0x080b69a8 nid=0x7cf6 waiting on
condition 
Suspend Checker Thread prio=1 tid=0x080b2a50 nid=0x7cf3 runnable 
: msg - view: LoadingData
: msg - command: null
: msg - external: null
: msg - forwarding url : /loading_data.jsp
: msg - view: Validate
: msg - command: null
: msg - external: null

-Original Message-
From: Radek Wierzbicki [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 12, 2005 3:25 PM
To: Tomcat Users List
Subject: Re: Diagnosing Tomcat Hang

Hi Kenneth,

the threads below are the actual http-processors - threads that answer
requests and they will always show some socket code.

Some of the processors from your listing have a status 'locked' - they
are waiting for some other objects to release some resource.

Were there any more messages below?

In the thread dump you have to look for deadlocks (listed at the bottom)
and processors that are busy with the code of your web application
(maybe some JDBC code) - check the status of those.

Here is a document from Sun about analyzing java stack traces:
http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/i
ndex.html

--Radek W.


Kenneth Litwak wrote:
 Sorry Radek for the last message.  Okay, I've got a thread dump. I'm
not
 sure what the meaning is of what I'm looking at, however.  Below is
the
 beginning of the thread dump.  I'd appreciate help in understanding
what
 I'm looking at or knowing what else in the dump I need to examine.
 About fifteen lines down is stuff about sockets. I wonder if that's of
 importance.  Does this beginning part of the dump show where the
actual
 hang is taking place?  Thanks.
 
 Ken 
 
 http-8081-Processor50 daemon prio=1 tid=0x085fdaa8 nid=0x7edc in
 Object.wait() [8c56e000..8c56eccc]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x9096e798 (a
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:429)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:655)
   - locked 0x9096e798 (a
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:534)
 
 http-8081-Processor49 daemon prio=1 tid=0x083d54f8 nid=0x7edb
runnable
 [8c5af000..8c5afccc]
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
   - locked 0x915a59f0 (a java.net.PlainSocketImpl)
   at java.net.ServerSocket.implAccept(ServerSocket.java:448)
   at java.net.ServerSocket.accept(ServerSocket.java:419)
   at

org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Defau
 ltServerSocketFactory.java:60)
   at

org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:368)
   at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:54
 9)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:683)
   at java.lang.Thread.run(Thread.java:534)
 
 http-8081-Processor48 daemon prio=1 tid=0x083d4330 nid=0x7eda in
 Object.wait() [8c5f..8c5f0ccc]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x9096e1e8 (a
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:429)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:655)
   - locked 0x9096e1e8 (a
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Thread.run(Thread.java:534)
 
 http-8081-Processor47 daemon prio=1 tid=0x083d3180 nid=0x7ed9 in
 Object.wait() [8c631000..8c631ccc]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x9096dd00 (a
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:429)
   at

org.apache.tomcat.util.threads.ThreadPool

Max thread/session timeouts

2005-07-21 Thread Kenneth Litwak
  We're running an application on Tomcat that often hits the limit of
150 threads.  Can someone with experience changing this value give me
advice on it?  How big can you make this number?  How much extra memory
do I need if I say change it to, say, 500?  Thanks.

 

Ken



Re: DBCP datasource works on 5.0.28 but fails on 5.5.

2005-07-21 Thread Kenneth B. Harwood
This issue was originally submitted by Steve Kirk on 20-May-2005
and RESOLVED on 22-May.  FYI, I experienced the same error(s) as 
Steve and tried all the same things Steve did before discovering 
Steve's question (and thread) on the User List.  The fix (as first
advised by Lutz  Nicola) was to create the configuration files with
the proper settings.  I'm running:

Apache 2.0.54 (w/the latest mod_jk)
TC 5.5.9 (w/multiple instances)
mySQL Server 4.1
Win2K Pro (w/multiple IP addresses)

The thread was very helpful.  I solved my problem after QUADRUPLE
CHECKING my web.xml and context.xml files.  I don't know what
exactly fixed it, but this is what I did (and currently have):

WEB.XML
1) Remove the resource-ref related to my database connection 

CONTEXT.XML
1) Use the improved Resource element style.  
That is, define as many params as possible within the Resouce Tag:

   Resource name=jdbc/mysqlTestDb auth=Container 
type=javax.sql.DataSource/

2) Define additional non/essential parameters within the ResourceParams Tag:

   ResourceParams name=jdbc/mysqlTestDb
parameter
namefactory/name
valueorg.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/value
/parameter
parameter
 nametestWhileIdle/name
 valuetrue/value
/parameter
parameter
 nametimeBetweenEvictionRunsMillis/name
 value1/value
/parameter
parameter
 nameminEvictableIdleTimeMillis/name
  value6/value
/parameter
   /ResourceParams

3) Note possible incorrect documentation

Note I am using org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory.

According to the TC docs, the factory setting should be:
org.apache.commons.dbcp.BasicDataSourceFactory

There was another thread on this userlist (I can't locate it now) which 
advised using a different class. All I can say is that when I extract the 
class list from /Tomcat/common/lib/naming-factory-dbcp.jar,
I do *not* see org.apache.commons.dbcp.BasicDataSourceFactory.

-

Now my SQL statement (w/TagLib) works just fine:

  ...
c:catch var=err1
  sql:update sql=INSERT INTO mytable VALUES (?)
  dataSource=jdbc/mysqlTestDb var=ok
sql:param value=${p1}/
  /sql:update
/c:catch

 - Ken H.

RE: CATALINA_BASE

2005-07-13 Thread Kenneth B. Harwood
it turns-out that my problem was defining CATALINA_BASE improperly
for the Win2K service.  i was setting CATALINE_BASE as an Enviroment
variable. for example:

  MS-DOS CATALINA_BASE=...

and then i Start'ed the Service.  wrong! that is NOT how to define config 
params for the Tomcat (all MS-Windows?) Service.  as a result, when my 
Tomcat Service started, it had no knowledge of my environment variable and
just defaulted CATALINA_BASE to CATALINA_HOME.

i fixed the problem by running the Service Management GUI (tomcat5w.exe). 
under startup options i added a line: -Dcatalina.base=G:/tomcatuser
and that did the job.

shame on me for developing under Win2K instead of FreeBSD.

thanks to all for reviewing/answering my post.

 - ken harwood


i'm running the latest tomcat (5.5.9) on Win2K Pro.
Tomcat works in the default configuration.  thanks.
i'm trying to get Tomcat working using CATALINA_BASE.
that is, i want a second Tomcat instance to serve my 
webapps from a directory different than the default.  

the default directory is (F:\tomcat 5.5\webapps\myapp).
the secondary is (G:\tomcatuser\webapps\myapp).
CATALINA_HOME=F:\tomcat 5.5
CATALINA_BASE=G:\tomcatuser

[snip]

Tomcat seems to ignore my second configuation.  
that is, when i start tomcat it keeps trying to fetch
my web pages from the [F:] disk's directory.



CATALINA_BASE

2005-07-12 Thread Kenneth B. Harwood
i'm running the latest tomcat (5.5.9) on Win2K Pro.
Tomcat works in the default configuration.  thanks.
i'm trying to get Tomcat working using CATALINA_BASE.
that is, i want a second Tomcat instance to serve my 
webapps from a directory different than the default.  

the default directory is (F:\tomcat 5.5\webapps\myapp).
the secondary is (G:\tomcatuser\webapps\myapp).
CATALINA_HOME=F:\tomcat 5.5
CATALINA_BASE=G:\tomcatuser

the [G:] directory structure and user files looks to be 
perfectly in order. for example, 

 G:\tomcatuser
  [conf][webapps]  [log]
{server.xml}   [myapp]
{context.xml}   *.jsp

Tomcat seems to ignore my second configuation.  
that is, when i start tomcat it keeps trying to fetch
my web pages from the [F:] disk's directory.

fyi, i have apache2 httpd in front of Tomcat, using the
AJP/1.3 protocol.  no problems with the connection!
if i can get the apache web server talking to Tomcat,
then this CATALINE_BASE thing should not be too difficult
to set-up.  what the heck am i doing wrong?

other information:
1) i do NOT really need multiple instances running.  
i just want to keep my Tomcat executables on drive
[F:] and my development stuff on drive [G:].  so, i
haven't tested the system with 1 instance running.

2 i already know about 'appBase'.  what i want is
for my Tomcat development instance to start-up 

thanks.

 - ken harwood



Re: CATALINA_BASE

2005-07-12 Thread Kenneth B. Harwood
woops.
i just saw a CATALINA_BASE thead in May '05.
i'll take a look at that.

is there a user-list SEARCH form anywhere or do
i need to check the archives manually month-by-month?

- ken h.

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



Re: CATALINA_BASE

2005-07-12 Thread Kenneth B. Harwood
what is the minimum file configuration required to run multiple Tomcat
instances?
conceptually, i shouldn't need an ENTIRE Tomcat file installation in my
second
(third, fourth, whatever) directory;   Tomcat should only require a small
amount of
customizing  in the target directory(s).

for example, the secondary conf directory should only require a modified
server.xml file.  that way, when Tomcat is starting up and it detects that
CATALINA_BASE is defined, the program should know to gather it's
instance configuration information from the second server.xml file instead
of the primary one.

or, are there a whole bunch of files that would need to be brought over and
modified?  if that's the case then that would be a violation of good design
practice.
philosophically, all the localized stuff should be in a single file.

sorry to sound so academic-lite about the subject.

 - ken h.




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



Re: my build structure..opinions wanted

2005-05-27 Thread Kenneth Jensen
I have this target in my build-file. This makes Eclipse transfer my
webapp in a jar file to the Tomcat server, which then automatically
reloads it.

target name=deploy depends=jar description=Deploy webapp to server
copy file=${jarfile} todir=${webappdir}/WEB-INF/lib /
exec executable=/usr/bin/scp 
   arg file=${jarfile}/
   arg value=tomcat.mydomain.dk:${webappdir}/WEB-INF/lib/
/exec
/target

---
Cheers,
Kenneth



On 5/27/05, Steve Kirk [EMAIL PROTECTED] wrote:
 
 Don't leave the source on the production server, but it's fine in
 development.  Strictly speaking your source files are inaccessible by web
 clients if they are under WEB-INF, but better safe than sorry.  Why not
 store the src in another folder altogether - eclipse won't care where it is
 presumably, and this is slightly better practice.
 
 The other approach is to build a jarfile from a build script (e.g. using
 ant), then copy the jar to the webapps/ directory, TC will auto-deply it.
 Some would say this is the only way to do it.  However it does slow things
 down when you are making frequent small changes to code.  For my money, the
 value of a jar is ease of portability, which is a factor if you are writing
 for true cross-container support.
 
 I built classes direct to classes/ for a long time, then made the effort to
 switch to jar deployment in development, after being persuaded by people on
 this list.  I'm glad I've done both, but to be honest I think I do prefer
 building to classes, as it's quicker and I can't see a disadvantage to it
 during dev.
 
 Your approach that sounds a quite practical solution to me.  Does eclipse
 precompile JSPs for you too?
 
 One other thing to watch is that logging.properties and properties files go
 in the classes/ folder, so if you use these, be careful that eclipse does
 not delete them when rebuilding your classes.
 
  -Original Message-
  From: gabor [mailto:[EMAIL PROTECTED]
  Sent: Friday 27 May 2005 13:16
  To: tomcat-user@jakarta.apache.org
  Subject: my build structure..opinions wanted
 
 
 
  hi,
 
  i'm starting a project using jsp + javaBeans..
  i've worked with java a lot, but i have not much experience with web
  applications..
 
  for now my idea is that the application will be using
  javabeans, and jsp
  for displaying the data...
 
  i use eclipse for the development, which nicely compiles every source
  file automatically when i edit them.
 
  that's why i came up with the following idea:
 
  i'll create a directory in tomcat/webapps (let's call it 'mywebapp').
  put my source files into mywebapp/WEB-INF/src, and instruct eclipse to
  put the compiled .class files into mywebapp/WEB-INF/classes.
 
  this way, i simply edit the files, press ctrl-s (to save them),
  switch to the browser window, and press refresh, and already i get the
  new results (because eclipse already compiled the file, and tomcat
  detected the change).
 
  i tested this approach, and it works ok.
 
  is this a suitable approach? are there any dangers with this approach?
 
  gabor
 
 
  -
  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]



How to read a file on disk from a servlet

2005-05-27 Thread Kenneth Jensen
I have a servlet that must verify signatures on parts of requests, and
for that I need to include a keystore file with my trusted certs. 
This keystore has nothing to do with the server itself and not to be
used with SSL/TLS, just with this one webapp.

How do I get my servlet to read the keystore file, say if I put it in
$CATAILNA_HOME/webapps/mywebapp/WEB-INF/lib/mykeystore.jks.

If I just ask for the file lib/mykeystore.jks or another relative
path, then the path is relative to the system property user.dir (which
I don't know beforehand, depends on the person who started Tomcat last
time).

I would rather not use an absolute path, and the request will not
include information about the URL of the file ...

Any advice?

Thanks.
---
Cheers,
Kenneth

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



Re: How to read a file on disk from a servlet

2005-05-27 Thread Kenneth Jensen
Thanks for both of your advices.

JNDI is probably the smart way of doing it, but I am not familiar with
it (beyond recognising the name and concept), and right now, the last
thing I need is another tech thing to worry about (finishing a student
project). :-)

The ServletContext.getResource depends on a URL string from the
request, as far as I can see, and I could not get it to work quickly,
so I ended up wth this rather silly hack in the servlet init() method:

ServletContext context = getServletConfig().getServletContext();
String slash = System.getProperty(file.separator);
keystore = context.getRealPath(/) + WEB-INF + slash +
getInitParameter(keystorefile);

That way, I just have to know the relative path to the webapps WEB-INF dir.

Thanks,
Kenneth

On 5/27/05, Peter Crowther [EMAIL PROTECTED] wrote:
  From: Kenneth Jensen [mailto:[EMAIL PROTECTED]
  How do I get my servlet to read the keystore file, say if I put it in
  $CATAILNA_HOME/webapps/mywebapp/WEB-INF/lib/mykeystore.jks.
 
 http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletConte
 xt.html#getResource(java.lang.String)
 
 - Peter
 


-- 
---
Cheers,
Kenneth

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



RE: On windows XP

2005-05-18 Thread Joy Kenneth Harry
The reason is Tomcat 5.5.9 will run on JDK 5.0 onwards.
I was not made for Older JDK's...
Try once on J2SDK 1.5and see.




Joy Kenneth

-Original Message-
From: Jobish P [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 17, 2005 9:51 PM
To: tomcat-user@jakarta.apache.org
Subject: On windows XP


Hi,

I am not getting the tomcat home page while trying to run tomcat in
Windows XP. I had set the JAVA_HOME and CATALINA_HOME path variables.
And stopped other servers(IIS ans apche) running in the system.
But I couldn't see anything by typing http://localhost:8080. The
utilitie's that I used are tomcat 5.5.9.exe and j2sdk1.4.2_07.

It will be of great help if any of you could help in this
regard.



-Jobish P


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



Inspiration for mulltiuser Tomcat hosting on a university

2005-05-17 Thread Kenneth Jensen
Hello,

I am responsible for running a servlet-service on my university, where
students can get their servlets and jsp pages hosted, as part of their
classes or projects.
Currently we have an old 4.x Tomcat running on an absolutely crap 233
MHz pentium, and I have decided to make a serious upgrade to that,
bringing the installation up to date - both HW and SW. :-)

So, what I would like help with, is finding a setup that will give my
users the maximum freedom and service level, while keeping the manual
maintenance and administration  needs at an absolute minimum - we are
a public university, so we don't have unlimited ressources.

Currently we have around 160 contexts in the server.xml file,
meaning that ca. 160 users have servlet-sites that need hosting.

The basics requirements for the server are:
* Operating system is Fedora Linux, and the jdk will be whatever
version of Sun JDK that suits the job (1.4 or 1.5 atm.).
* The server should detect new users that have servlets
automagically, e.g. at when restarting Tomcat or similar OR students
should be able to deploy webapps themselves, without admin
interaction.
* Students access their home-directories over NFS or samba, so either
the Tomcat server should provide shares to the world, or it should
grab the sites from NFS.
* the server will (mostly) be accessed through a proxy server running
Apache, but should run as a standalone Tomcat.
* Students will NOT have shell access to the server. (nor ftp/sftp/rsh/telnet)

Things I would like to have:
+ The server should be robust against poor code, so that one user who
calls System.exit(0) or who has an infinite loop will not shut the
whole thing down or bring it to a standstill. If this requires a
(small) cluster or multiple instances of Tomcat, so be it.  (more fun
for me ;-)
+ I would just lurve to have the logfiles (INCLUDING stdout and
stderr) for each context written to a separate logfile, so each
student can access the logfile for his/her own servlets, to ease their
work when debugging/developing. Currently they have NO access to logs.

I can't come up with more things now, but there are probably some. :)

In the current setup we start Tomcat from a script, which looks in the
webapps/user directory and generates the server.xml file from the
contents. The subdirectories under webapps/user are being rsynced from
the users' servlet folders on our home-directory servers every hour or
so.

As can be seen from this message, I am not exactly a Tomcat guru,
though I have been using it for some time now, both as a developer
through projects (I am a student myself) and as an admin.

I hope some of you have ideas for this or maybe even experience from
running Tomcat in larger installations.

Thanks.
---
Cheers,
Kenneth

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



DBCP Exception

2005-05-17 Thread Joy Kenneth Harry

Hi,
Can anyone tell why I am getting this exception.


SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc
e, name=jdbc/oracle


Thanks
Joy Kenneth Harry
Infosys Tech Ltd

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



DBCP Exception

2005-05-11 Thread Joy Kenneth Harry

Hi,
Can anyone tell why I am getting this exception.


SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc
e,
name=jdbc/oracle


Thanks
Joy Kenneth

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



DBCP Exception

2005-05-10 Thread Joy Kenneth Harry

Hi,
Can anyone tell why I am getting this exception.


SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=java
x.sql.DataSource,name=jdbc/oracle


Thanks
Joy Kenneth



DBCP Exception

2005-05-10 Thread Joy Kenneth Harry


Hi,
Can anyone tell why I am getting this exception.


SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc
e,
name=jdbc/oracle


Thanks
Joy Kenneth


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



RE: Problem with Log4J starting TOMCAT 5.5.9

2005-05-06 Thread Joy Kenneth Harry


Remove the commons-logging.jar  from WEB-INF\lib and place log4j.jar in it
And
Place log4j.xml in WEB-INF\classes folder



Joy Kenneth



-Original Message-
From: Alex Pure [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 8:41 PM
To: Tomcat Users List
Subject: RE: Problem with Log4J starting TOMCAT 5.5.9

my english es bad

puede ser por que has instalado tu TomCat/Java como usuario
intentalo como Administrador sobre tu maquina

-Mensaje original-
De: Rogério Saulo [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 06 de mayo de 2005 8:30
Para: tomcat-user@jakarta.apache.org
Asunto: Problem with Log4J starting TOMCAT 5.5.9


HI, 
I have installed TOMCAT 5.5.9 on my Windows XP jdk 1.5.0 and when I start 
the server I receive the following error :

log4j:WARN No appenders could be found for logger (
org.apache.catalina.startup.ClassLoaderFactory).
log4j:WARN Please initialize the log4j system properly.
 The server starts, but the logs are broken.
 Thanks
Rogerio

--
Esta comunicación representa las opiniones y puntos de vista del 
autor y no reflejan necesariamente la posición del MIMDES. Este 
mensaje y todos los archivos que contenga, son confidenciales y son 
sólo para su destinatario. Si usted no es el destinatario original, 
es posible que haya recibido este mensaje por error, en cuyo caso 
cualquier uso, distribución, derivación o copia de este mensaje 
está estrictamente prohibido. Si usted recibe este mensaje por 
error, sírvase notificar inmediatamente a [EMAIL PROTECTED] 
y borrar el mensaje de su casilla sin conservar copia.


-
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: Consecutive threads

2005-04-21 Thread Kenneth Jensen
On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 If I run a long query, followed by a series of short queries ( different
 browsers/pcs ) then the latter all wait for the long query to return
 rather than completing first as I expected.

A quick guess would be that your first query starts a transaction and
locks some DB-resources, and the following queries have to wait for
them to become unlocked.


---
Cheers,
Kenneth

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



How to Switch of logging in Tomcat 5.5

2005-03-17 Thread Joy Kenneth Harry



Logging in Tomcat 5.5

2005-03-17 Thread Joy Kenneth Harry
Hi,
I have a webapp in tomcat. I am using a separate Log4j.xml for it, in
its WEB-INF classes folder.

I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to
false so that I do not get the general Tomcat logs.

But even then my project logs are getting mixed with the TOMCAT logs.
Is there any way to disable TOMCAT logs.



Joy Kenneth




Logging in Tomcat 5.5

2005-03-17 Thread Joy Kenneth Harry

Hi,
I have a webapp in tomcat. I am using a separate Log4j.xml for it, in
its WEB-INF classes folder.

I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to
false so that I do not get the general Tomcat logs.

But even then my project logs are getting mixed with the TOMCAT logs.
Is there any way to disable TOMCAT logs.



Joy Kenneth





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



Fw: The value for the useBean class attribute com.company.product.thing is invalid.

2004-08-21 Thread Kenneth Ho \(IT Department Ltd\)
Hi,

I have an application running on Tomcat 4.1.24 with JapserReport 0.5.0. When
I try to print JasperReport with large amount of data, there is a
OutofMemoryError there. The tomcat will then shutdown unexpectedly.

I search on google and set java -Xms256m -Xmx512m, but it doesn't help.

I find it difficult to change to report design to limit the search result.

Is there any setting I can control Tomcat's memory usage or restart tomcat
programmically when it is shut down?

Thanks in advance.

Kenneth


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



catalina.out - how to stop WarpEngine[Apache]: Mapping request messages

2004-07-23 Thread Brossard, Kenneth R.
For every request tomcat handles the message  WarpEngine[Apache]: Mapping request  
is logged in my catalina.out file.  I've tried setting all debug levels=0 in the 
server.xml file but this message continues to show up.

Is there any way to stop this message?  

The rpm versions of apache and tomcat running are:
apache-1.3.27-2.7.2
tomcat4-4.0.6-2

Thanks
Kenny 
  
This e-mail message is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information of Transaction Network Services.Any 
unauthorized review, use, disclosure or distribution is prohibited.  If you are not 
the intended recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message. 

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



RE: Log rotation HOWTO

2004-07-01 Thread Kwan, Kenneth Y
You may use cronolog from http://cronolog.org/. And, modify the
catalina.sh as following in the start part.

elif [ $1 = start ] ; then

  shift
  if [ $1 = -security ] ; then
echo Using Security Manager
shift
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
  -Djava.security.manager \
  -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@
start|/usr/local/sbin/cronolog /usr/local/tomcat/logs/catalina.out.%Y-%m-%d
 /dev/null 21 

  if [ ! -z $CATALINA_PID ]; then
echo $!  $CATALINA_PID
  fi
  else
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@
start|/usr/local/sbin/cronolog /usr/local/tomcat/logs/catalina.out.%Y-%m-%d
 /dev/null 21 

  if [ ! -z $CATALINA_PID ]; then
echo $!  $CATALINA_PID
  fi
  fi

Kenneth Kwan
-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 10:04 PM
To: [EMAIL PROTECTED]
Subject: Log rotation HOWTO


I haven't been able to find a clear answer to this anywhere online, 
hopefully you fine folks can help...

I need a way to rotate my stdout log in Tomcat 5.0.18.  It could be dalily 
or weekly (monthly might be OK too).

Is thre any way to do this?  I assume so, so how?  Thanks in advance all!

_
Get fast, reliable Internet access with MSN 9 Dial-up - now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/


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


RE: Apache http / mod_rewrite / mod_jk

2004-04-07 Thread Kwan, Kenneth Y
Instead of directly redirect to mod_jk, can you just use mod_write to
insert a directory prefix which can trigger mod_jk?

Kenneth 
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:28 AM
To: Tomcat Users List
Subject: Apache http / mod_rewrite / mod_jk


All,
The archives show this questions being asked all the time, but with no 
useful responses. Please let me know if this is a known unresolved or 
unresolvable issue.

All solutions posted anywhere for jsessionid makes Apache go beaindead 
apparently use a mod_rewrite incantation similar to the following:

   IfModule mod_rewrite.c
   RewriteEngine on
   # Force URLs with a jsessionid to go to Tomcat. Necessary because
   # Apache doesn't recognise that the semi-colon is special.
   RewriteRule   ^(/.*;jsessionid=.*)$   $1 [T=jserv-servlet]
   /IfModule

While I'm sure this worked out great the people using mod_jserv back in 
1997, it does not work for mod_jk. For one thing, it does not even let 
you specify which worker to use :(

Back in the day, Craig responded by pointing to a Tomcat FAQ entry which 
no longer exists, but presumably had something to do with Apache's 
mod_rewrite.

On the other hand, a solution was posted (and confirmed by some readers) 
that the following works:

JkMount /test/*;jsessionid=* ajp13

This seems very obvious, and there's a caveat about how it might not 
work on older versions of mod_jk. It apparently does not work for me. 
I'm using mod_jk (not mod_jk2), version 1.2.5 (current release) on 
Apache 2.0.48 as a dynamic module on Linux -- everything compiled myself 
with nothing out of the ordinary.

Can anyone offer any advice? I've just been sucking it up and ignoring 
this problem for a while, now (years). Is there actually a solution out 
there for this? Am I just mistyping the JkMount configuration?

Anyone, please help.

Thanks,
-chris

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


Re: Application directory outside webapp in tomcat

2004-03-09 Thread Kenneth Ho \(IT Department Ltd\)
Thanks for all replies.

My Tomcat version is 4.1.24. I think I should modify server.xml.

I will try to configure it.


- Original Message -
From: Harry Mantheakis [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 4:58 PM
Subject: Re: Application directory outside webapp in tomcat


 With Tomcat 5 you specify the 'docbase' in the META-INF/context.xml file.


  Is that possible to have application directory located outside the
default
  webapp directory inside tomcat?
 
  How to configure the server.xml to do it?
 
  I've tried to do that but failed.
 
  Please help.
 
  Kenneth


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



Application directory outside webapp in tomcat

2004-03-07 Thread Kenneth Ho \(IT Department Ltd\)
Is that possible to have application directory located outside the default webapp 
directory inside tomcat?

How to configure the server.xml to do it?

I've tried to do that but failed.

Please help.

Kenneth



Do servlet threads ever die?

2004-03-01 Thread Kenneth H. Cox
Problem: I call native code (Tcl) from my servlet.  Tcl's thread model 
forces me to run Tcl only on the thread that created the Tcl interpreter.  
So now how do I cleanup these interpreters?  The cleanup code needs to be 
run on the creating thread.

I am using Tomcat 5.

Do servlet threads ever die besides during shutdown?  If not, I may have 
no problem.

Can I register a listener to be invoked on the thread before it shuts 
down?  A Tomcat-specific answer is fine.

Suggestions very much appreciated.

Ken Cox

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


RE: Another Try at MySQL Connection Pooling

2004-02-11 Thread Kenneth
Well, it's not that I'm an expert...  I actually have had that problem
once or twice, and most of the time the problem was in the context.xml

I've always specified my webapps' Context in a separated file (which I
believe you're also doing), but when I messed up with server.xml I had
some namingExceptions like that one.

I saw then that I was defining a Resource element OUTSIDE the
Context scope.  Once, it was from a completely different webapp
(ps!) and later on, I has the same error when trying to access a
Resource created my the admin webapp.

So, since then, I always code manually the Resource element inside the
Context in my context.xml.  It kept me out of trouble so far, and no
more namingExceptions...  Maybe it's a coincidence, maybe that's not why
you're getting that Exception, but it's worth a check up.  Make sure
your Resource is inside the Context and, just in case, code it again
(don't copy/paste, just in case).  If that's not working, you'll only
have wasted 15 minutes...

Good luck!

Ken 

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



Failure to load listener path dependent?

2003-11-17 Thread Kenneth LaFrance
Hi,

I'm a new user using Tomcat 5.0 on W2K.  I'm going through some tutorials
and am having trouble adding listeners where I want them. Below my
webapps/WEB-INF/classes directory I have a com/jspbook directory. I have a
number of servlets in the jspbook directory that work fine.  As soon as I
add a listener I get a NoClassDefFoundError. Here is a snippet from the
log file:

2003-11-17 07:57:37 SessionListener: contextDestroyed()
2003-11-17 07:57:37 ContextListener: contextDestroyed()
2003-11-17 07:57:37 SessionListener: contextDestroyed()
2003-11-17 07:57:37 ContextListener: contextDestroyed()
2003-11-17 07:57:46 ContextListener: contextInitialized()
2003-11-17 07:57:46 SessionListener: contextInitialized()
2003-11-17 07:57:46 Error configuring application listener of class
com.jspbook.SiteLogger
java.lang.NoClassDefFoundError: com/jspbook/SiteLogger (wrong name:
SiteLogger)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
..

Here is how it is defined in the web.xml file - (it is the first entry after
web-app, and yes it is in the jspbook directory):

listener
  listener-classcom.jspbook.SiteLogger/listener-class
/listener

If I move this to the default classes directory and change the listener
definition to the following *it works fine*:

listener
  listener-classSiteLogger/listener-class
/listener

I've tried several different directories, directory levels, etc. but I can
only get it to work in the default classes directory. I've compared it to
the jsp-examples structure and web.xml file used here, but I cannot see what
is being done differently. My gut says I haven't uncommented something or
configured something correctly but I'm not sure what.

Any help would be appreciated. Thanks in advance,

Ken 

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



RE: Failure to load listener path dependent?

2003-11-17 Thread Kenneth LaFrance
That was it - thank you.

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 17, 2003 11:40
To: Tomcat Users List
Subject: Re: Failure to load listener path dependent?


Kenneth,
 As soon as I
 add a listener I get a NoClassDefFoundError. Here is a snippet from the
 java.lang.NoClassDefFoundError: com/jspbook/SiteLogger (wrong name:
 SiteLogger)

Your SiteLogger.java file is missing a package declaration at the top 
of the file. That's why it can find the file, but says wrong name. The 
name it sees is the fully-qualified class name, which in the case has no 
package. Add the package declaration and you should be fine.

-chris


-
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: Réf. : RE: dbcp pool size

2003-11-08 Thread Kenneth
Sorry, but I'm quite new to this, and I'd like to know if I'm doing it OK.
I'm using dbcp with mySQL and I always specify this parameter:

parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

Is this OK?  Will I get the same error Meissa does?

Thanks.

Ken


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



Re: Tomcat 4.1.27 Running as a Service

2003-10-27 Thread Kenneth
Hi,

check whether your Tomcat service is up or not.  It happened something like
that to me once, and when I checked (Control Panel-Tools-Computer
Administration-Services  Applications or something like that) mi service
was always down when I started my computer.  I re-configured it and it all
went well.  Since then, my Tomcat service started every time I started my
computer, as a service.

Hope it helps,

Ken
- Original Message - 
From: Hardee, Brenda G NAVSAFECEN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 1:32 PM
Subject: Tomcat 4.1.27 Running as a Service


  I have installed Tomcat ver 4.1.27 as a service on my WIN2000 machine,
however, I cannot reach the site through a browser window (I.E.).  I can
reach the site through my browser when I run Tomcat with the startup option.
There must be some setup options that I don't have configured correctly, can
you assist me?  vr, Brenda Hardee



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



RNIF + Tomcat + Axis

2003-10-15 Thread Kenneth Westelinck
Hi all,

Maybe this is a little off-topic, but here goes anyway. Does anyone in the 
list have experience with using Tomcat (together with Axis or something 
else) to implement the Rosetta Net Implementation Framework?

regards,

Kenneth

_
Ken je het magazine Glamo al? http://www.msn.be/glamo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: RNIF + Tomcat + Axis

2003-10-15 Thread Kenneth Westelinck
Howdy,
I personally don't, but that'd be a cool project ;)  If you go down the
path and reach something interesting, please feel free to share your
experience with the list ;)
Well is this combination the best way to go? From what I've read so far RNIF 
is a like ebXML, so I think I can use Axis to handle incoming RosettaNet 
messages right?

_
Op zoek naar makkelijk recept? http://www.msn.be/culinair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ssl client authentication drives me crazy

2003-10-14 Thread Kenneth Westelinck
This article solved everything for me:
http://ws.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html
Follow it to the letter and you will get it to work. Trust me.


From: Twan Munster [EMAIL PROTECTED]
Reply-To: Twan Munster [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: ssl client authentication drives me crazy
Date: Tue, 14 Oct 2003 09:33:26 +0200
Hello,

With apache client authentication was so simple. Now my boss wants to use 
it for smartcard login and I have to use tomcat with cocoon. Thats why I 
need the client authentication with ssl to work. But I just can't fix it 
can anyone please help me. All examples wont work I always get errors like  
Unsupported SSL v2.0 ClientHello,  no cipher suites in common and handshake 
error

Can somebody please tell me how to use keytool. I've got the following 
certificates and I use them in apache like this:

1 server.crt = server certificate
2 ca.crt = chain certificate
3 ca-bundle.crt = lots of certificates for client authentication
4 server.key = i really don't know how to get this one in keytool
Thnx

Twan Munster
_
Chatten met je online vrienden via MSN Messenger. http://messenger.msn.be
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4 + ssl + client authentication

2003-10-10 Thread Kenneth Westelinck
Client cert verification is done against the TrustStore, not the KeyStore.
Tomcat 5 has some improvements for this.  Tomcat 4 is still a bit limited.
 I have no idea what is goin wrong. Can someone tell me how to make this
 work?

Assuming that you don't want to just import the signing cert into cacerts
(see the JSSE docs for how to do this), then you need to have something
like:
CATALINA_OPTS=-Djavax.net.ssl.trustStore=/path/to/my/truststore 
-Djavax.net
.ssl.trustStorePassword=myTrustStorePassword

At the moment, your TrustStore file has to be in the same format as your
KeyStore file (a nasty limitation that I haven't gotten around to fixing 
:).
Yep, done that. Yesterday after sending this mail I was able to get it to 
work authenticating using the imported client key in Mozilla and putting the 
signed client key in this truststore. So it is working now using Mozilla 
(nice).
So now I found out there is a keyStore property as well (stupid me), and I 
was able to authenticate using my Java client against the server (nice 
again). If someone is interested in the code, this is the client part (just 
for testing):

System.setProperty(javax.net.ssl.trustStore, f:/client.keystore);
   System.setProperty(javax.net.ssl.keyStore, f:/client.keystore);
   System.setProperty(javax.net.ssl.keyStorePassword,changeit);
HttpClient httpclient = new HttpClient();
Protocol myhttps =
new Protocol(
https,
new StrictSSLProtocolSocketFactory(false),
8443);
httpclient.getHostConfiguration().setHost(myhost, 8443, myhttps);
GetMethod httpget = new GetMethod(/);
httpclient.executeMethod(httpget);
with StrictSSLProtocolSocketFactory the same code as the sample code you can 
download from the Apache/HTTPClient site. One question though ... suppose 
the client keyStore has different keys, how can one tell to the code to use 
key A or key B (for the moment there's only one key in this keyStore). Using 
mozilla it is simple, he just asks which key to use.

Thank you for your help.

regards,

Kenneth

_
Mis onze Back To School special niet! http://www.msn.be/backtoschool
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 4 + ssl + client authentication

2003-10-09 Thread Kenneth Westelinck
Hi all,

I've been searching the internet for 2 days now and still haven't found a 
solution for my problem. I am trying to set up a Tomcat 4 server running in 
HTTPS mode, contacted by a client written in Java. The client is using 
HTTPClient from apache. I have done everything the document at 
http://ws.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html describes. 
If I disable client authentication in the tomcat config, the client is able 
to comunicate with the server. If I enable the authentication the client 
aborts with the following exception:
java.net.SocketException: Software caused connection abort: JVM_recv in 
socket input stream read
	at java.net.SocketInputStream.socketRead0(Native Method)
...

I enabled all possible debugging on the Tomcat server and this is part of 
what I found in the console:
Thread-10, WRITE:  SSL v3.1 Handshake, length = 625
Thread-10, READ:  SSL v3.1 Handshake, length = 141
*** Certificate chain
***
Thread-10, SEND SSL v3.1 ALERT:  fatal, description = bad_certificate
Thread-10, WRITE:  SSL v3.1 Alert, length = 2

The client's certificate cannot be bad. It was signed with the server's key 
and it's in the server's keystore.

I have no idea what is goin wrong. Can someone tell me how to make this 
work?

MTIA

regards,

Kenneth

_
Op zoek naar makkelijk recept? http://www.msn.be/culinair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[tomcat 4.1.2x] Bug in Response Header Encoding ???

2003-10-09 Thread Kwan, Kenneth Y
Title: [tomcat 4.1.2x] Bug in Response Header Encoding ???





Hi all


Has anyone found after upgrading to 4.1.24 / 4.1.27, you cannot download file with filename contains non-iso characters, e.g. big5, etc. The problem seems in header encoding where the servlet engine always encode the headers(e.g. Content-Disposition: filename=xxx) in UTF-8 irrespective the ContentType setting. The problem does not found in 4.0.6

Can anyone help?


Kenneth



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

questions related to context root configuration on tomcat 4.1.27 ...

2003-09-08 Thread Kenneth Tang
Hi,



I have questions related to context root configuration on
tomcat 4.1.27.

For our company's web application, we put our application specific files
under WEB-INF.  During startup, our application checks if those files
are there and startup our application based on properties inside the
files.  We put the war file under CATALINA_HOME\webapps and all the
content of the war file got extracted into CATALINA_HOME\webapps.
Everything works fine. However, problem comes up when we want to set the
context path other than the default one(the war file name)...

I put context element in server.xml and try to use for example,
abc/foo other than just foo for the context path.  However, our
application specific files cannot be found under WEB-INF.  I have
checked that not all the content of the war file (included our
application specific files) are extracted to the workdir directory (by
default CATALINA_HOME\work). 

I have tried to use exploded web application structure other than war
file.  The result is the same.  Only few files got copied into the
workdir.

 

My questions are: 

How can I make tomcat (4.1) extract / unjar all context from the war to
the workdir in this case (use context path other than the default)?
Or, is there any way that I can set tomcat (4.1) to extract some
particular files from the war file into the workdir during startup
time?

 

 

Thanks a lot,

 

Ken

 



questions related to context root configuration on tomcat 4.1.27 ...

2003-09-08 Thread Kenneth Tang
Hi,



I have questions related to context root configuration on
tomcat 4.1.27.

For our company's web application, we put our application specific files
under WEB-INF.  During startup, our application checks if those files
are there and startup our application based on properties inside the
files.  We put the war file under CATALINA_HOME\webapps and all the
content of the war file got extracted into CATALINA_HOME\webapps.
Everything works fine. However, problem comes up when we want to set the
context path other than the default one(the war file name)...

I put context element in server.xml and try to use for example,
abc/foo other than just foo for the context path.  However, our
application specific files cannot be found under WEB-INF.  I have
checked that not all the content of the war file (included our
application specific files) are extracted to the workdir directory (by
default CATALINA_HOME\work). 

I have tried to use exploded web application structure other than war
file.  The result is the same.  Only few files got copied into the
workdir.

 

My questions are: 

How can I make tomcat (4.1) extract / unjar all context from the war to
the workdir in this case (use context path other than the default)?
Or, is there any way that I can set tomcat (4.1) to extract some
particular files from the war file into the workdir during startup
time?

 

 

Thanks a lot,

 

Ken

 



TC 4.1.24 can't find my servlet-classes?

2003-09-02 Thread Kenneth Ahn Jensen
After using Tomcat for a long time, I seem to be getting into trouble
lately. My Tomcat suddenly does not automatically find the servlets in
context-dir/WEB-INF/classes - so I have to make a web.xml file for each
context.

My server.xml is pretty much like the original, except for the user contexts
which all look like this:

 Context path=/user/testuser docBase=user/testuser debug=0
  reloadable=true crossContext=true/

The servlets are then placed like:
{$CATALINA_HOME}/webapps/user/testuser/WEB-INF/classes/HelloWorld.class

However, I get a 404 error when requesting
http://ip:port/user/testuser/servlet/HelloWorld - which I'm pretty sure
worked until a month ago (when the system crashed). Also I know for a fact
that it works on TC 4.04.

The {$CATALINA_HOME}/webapps/user/testuser/index.jsp gets loaded just fine
from the URL http://ip:port/user/testuser/index.jsp, so Tomcat has noticed
the context.

Any input will be much appreciated, as I have been trying to make this work
for some time now and I don't seem to get closer... :-(

The server is running students servlets on a university, and a lot of them
are just beginning on programming, so they shouldn't care about deployment
details (at least thats what the teachers tell me, the sysadmin :-).

I'm running Tomcat 4.1.24 with Sun Java 1.4.2 on Redhat 8.0 (and Mandrake
9.1).
-- 
Mvh
Kenneth


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



Re: TC 4.1.24 can't find my servlet-classes?

2003-09-02 Thread Kenneth Ahn Jensen
Sonja Löhr wrote:

 sorry, I gave you a wrong path,
 I mean of course
 $CATALINA_HOME/conf/web.xml

Thank you very much.
That was exactly the answer I needed. :-)

-- 
Mvh
Kenneth


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



Re[2]: Servlets JSPs log to different files

2003-08-01 Thread Kenneth Brooks
I currently do the following.
See the 3 or 4 sections of code below.

I have a servlet that is loaded at the time tomcat starts.
Pay no attention to the crap coding in this file, but you get the idea

 BEGIN EimplementLogger.java ///
package whateverpackage.log;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

import org.apache.log4j.xml.*;

import javax.naming.NamingException;
import javax.naming.Context;
import javax.naming.InitialContext;

public class EimplementLogger extends HttpServlet {
   DOMConfigurator domConfig;

  public void init() throws ServletException {
 // init code here
 domConfig = new DOMConfigurator();

 // point to log4j configuration file
 Context ctx = null;
 String log4jxmlfilepath = null;

 try {
ctx = new InitialContext();
 } catch (NamingException e) {
//   System.out.println(Couldn't build an initial context :  + e);
   return;
 }

 try {
log4jxmlfilepath = (String)(ctx.lookup(java:/comp/env/log4jxmlfilepath));
 } catch (NamingException e) {
   System.out.println(JNDI lookup failed :  + e);
 }

 domConfig.configure(log4jxmlfilepath + log4j.xml);
   }

}
/ END EimplementLogger.java 

In my web.xml i have the following to start this servlet up.
servlet
servlet-name
EimplementLogger
/servlet-name

servlet-class
whateverpackage.log.EimplementLogger
/servlet-class
load-on-startup5/load-on-startup
/servlet

then in the class (bean) that has no idea about the context i have the
following:
   protected org.apache.log4j.Logger logWriter =
   org.apache.log4j.Logger.getLogger(nameoffiletoappearinlog);

and i use it like so
logWriter.debug(here is a debug statement);

hope that helps

-ken






Friday, August 1, 2003, 8:51:28 PM -\][/

AB G'day,

AB Can anyone expand on this further and explain how to use a Log4j logger
AB reference in beans that do not have a notion of what the underlying servlet
AB context is?  The only way I can see how to get this to work is to pass the
AB logger reference as an argument in the bean's constructor.  

AB My query does seem to be out of context for this list so my apologies in
AB advance.

AB AB

AB -Original Message-
AB From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
AB Sent: Saturday, 2 August 2003 3:24 AM
AB To: Tomcat Users List
AB Subject: RE: Servlets  JSPs log to different files



AB Howdy,
AB Then use log4j.

AB Yoav Shapira
AB Millennium ChemInformatics


-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 1:18 PM
To: Tomcat Users List
Subject: Re: Servlets  JSPs log to different files



 How are you logging in your servlets?  Are you using 
 System.out/System.err?  If so, don't use them, and instead use the
 ServletContext#log(..) methods.

Actually, they are mostly beans with no ServletContext :(

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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




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


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




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




/][/-\][\


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



Re[2]: 500 Custom Error

2003-07-31 Thread Kenneth Brooks
We have a 2nd dev box that is 4.1.24 and QA will be 4.1.24 also.
So that's why i was checking on all of this stuff before production.
:)

Thanks for the reply.

Oh, btw. The 500 error page works under 4.1.24 just peachy.

-ken

Wednesday, July 30, 2003, 8:58:56 AM -\][/


SY Howdy,

 Are Custom Error pages available for 500 errors?

SY 500's are tough, as they are internal server (i.e. not your webapp's)
SY errors.  I don't recall the spec on this point, but at some point I
SY thought error page customization only had to be available for 300 and
SY 400 range HTTP status.

SY As 500's can occur anywhere in the request processing pipeline, it's
SY difficult to provide the custom error page hook for them.

 This is under tomcat 4.0.4. (Although production will be under
 4.1.24)

SY Not a good idea: there are significant differences between the 4.0.x and
SY 4.1.x branch of tomcat, and you should at least test, if not develop, on
SY 4.1.24 before deploying to it.

SY Yoav Shapira



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



Apache2/Tomcat 4.1.24 hang with ..%5c.. pattern !!!

2003-07-29 Thread Kwan, Kenneth Y
Title: Apache2/Tomcat 4.1.24 hang with ..%5c.. pattern !!!





Just found if ..%5c.. is contained in request url, apache2/tomcat will hang for processing and never return. Also found Error flushing... in mod_jk.log, e.g.

http://yourserver/examples/..%5c../any.jsp 


However, the problem does not occur in Apache2/Tomcat 4.0.6 and Tomcat 4.1.24 Alone


Anyone found similar problem?


Kenneth 



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

500 Custom Error

2003-07-29 Thread Kenneth Brooks
 Are Custom Error pages available for 500 errors?

 I can get custom 404 pages to show but cannot get 500 pages.
 I still get the same old 500 blue  white screen.

 This is under tomcat 4.0.4. (Although production will be under
 4.1.24)


 Kenneth  mailto:[EMAIL PROTECTED]


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



Re: How do I listen for threads starting and stopping?

2003-05-31 Thread Kenneth H. Cox
Sorry; I was unclear.  I'm planning to use TclBlend to start one
Tcl interpreter per thread (a Tcl interp cannot jump threads and
so cannot be pooled).  Starting and initializing these interps is
somewhat heavyweight, so my plan was to keep them around until
Tomcat discards the thread or the thread dies of natural causes,
at which point I would like to be notified, so I can free my interp
(and the memory allocated by its native code).
Unless (duh?) a ThreadLocal variable will do this for me.  Yes,
it seems that it will.  Thanks for kicking my brain back into gear.
p.s. Any other Tomcat / TclBlend users out there?  I'm hunting
for a combination of JDK/TclBlend/Tcl/Thread that play together.
Ken

On Wed, 28 May 2003 22:00:56 -0700, Bill Barker [EMAIL PROTECTED] 
wrote:

The simplest (portable) way to do this is to pretend that Threads are the
same as Requests, and use request.setAttribute(foo,bar).  These will
automatically be discarded (i.e. eligible for GC) at the end of the 
Request.
If you need to do explicit cleanup, then you have to wait for TC 5.x, 
which
has RequestListeners to tell you when the Request starts and ends.

Kenneth H. Cox [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have some per-thread data that I need to dispose of
when Tomcat connector thread goes away.  I'm using the
Coyote Connector.  Is there a way to do it?  A Tomcat-specific
mechanism is just fine for now, thank you.
I found HttpConnector.addLifecycleListener(), but all the
methods are marked deprecated and I'm not sure how to get at the
HttpConnector in the first place.
Any pointers in the right direction would be greatly appreciated.

Regards,
kenstir
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/




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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How do I listen for threads starting and stopping?

2003-05-29 Thread Kenneth H. Cox
I have some per-thread data that I need to dispose of
when Tomcat connector thread goes away.  I'm using the
Coyote Connector.  Is there a way to do it?  A Tomcat-specific
mechanism is just fine for now, thank you.
I found HttpConnector.addLifecycleListener(), but all the
methods are marked deprecated and I'm not sure how to get at the 
HttpConnector in the first place.

Any pointers in the right direction would be greatly appreciated.

Regards,
kenstir
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk2: Can't find child in scoreboard error msg

2003-02-24 Thread Kenneth Rothwell
I am using Apache/2.0.44 (Unix) mod_ssl/2.0.44 OpenSSL/0.9.6g 
mod_jk2/2.0.2 on a Solaris 8.

Apache forwards requests to Tomcat , but I get suspicious messages in 
apache/logs/error_logs when a servlet is accessed...

[Thu Feb 20 23:50:39 2003] [error] jk2_init() Can't find child 25336 in 
scoreboard
[Thu Feb 20 23:50:39 2003] [error] mod_jk child init 1 -2

The process number changing with each request. Are these messages 
critical since the request forwarding works correctly. I have been 
searched the mailing lists all night for an explanation on the error 
message with no success. Can someone tell me how the scoreboard works 
for mod_jk2?

I keep everything default in jk2.properties.

And use the following workers2.properties file

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Announce a status worker
[status:status]
# Uri mapping

[uri:/status/*]
worker=status:status
[uri:/aps/*]
worker=ajp13:localhost:8009
[uri:/tmm/*]
worker=ajp13:localhost:8009
[uri:/XMLServlet/*]
worker=ajp13:localhost:8009
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk2 Can't find child in scoreboard

2003-02-21 Thread Kenneth Rothwell
I am using Apache/2.0.44 (Unix) mod_ssl/2.0.44 OpenSSL/0.9.6g 
mod_jk2/2.0.2 on a Solaris 8.

Apache forwards requests to Tomcat , but I get suspicious messages in 
apache/logs/error_logs when a servlet is accessed...

[Thu Feb 20 23:50:39 2003] [error] jk2_init() Can't find child 25336 in 
scoreboard
[Thu Feb 20 23:50:39 2003] [error] mod_jk child init 1 -2

The process number changing with each request. Are these messages 
critical since the request forwarding works correctly.  I have been 
searched the  mailing lists all night for an explanation on the error 
message with no success. Can someone tell me how the scoreboard works 
for mod_jk2?

I keep everything default in jk2.properties.

And use the following workers2.properties file

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Announce a status worker
[status:status]
# Uri mapping

[uri:/status/*]
worker=status:status
[uri:/aps/*]
worker=ajp13:localhost:8009
[uri:/tmm/*]
worker=ajp13:localhost:8009
[uri:/XMLServlet/*]
worker=ajp13:localhost:8009
-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx


War files / codeBase and security permissions (v4.0.4)

2003-02-08 Thread Kenneth J Baker

I'm deploying a war file with unpackWARs=false.  I am trying to grant
permissions to this war in 04webapps.policy.

Here is what I've tried...

Given the examples this is what I would expect to work but doesn't:
grant codeBase file:${catalina.home}/webapps/iface.war!/- {
permission java.security.AllPermission;
};


This doesn't work (but works if unpackWARs=true):
grant codeBase file:${catalina.home}/webapps/iface/- {
permission java.security.AllPermission;
};


This works because this is where tomcat extracts the war to (with unpackWARs set to 
false)
grant codeBase file:${catalina.home}/work/Standalone/localhost/iface/- {
permission java.security.AllPermission;
};


What is the correct way to specify permissions to give to a war file?

Thanks,
Ken


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




charset fail to set browser encoding

2002-06-14 Thread Kenneth Tang

Hi,

I am new in using Tomcat.  I got a problem in displaying i18n char in
jsp page.

I got a simple jsp page as below:

html
head
  META http-equiv=Content-Type content=text/html; charset=gb2312
/head
font face=Verdana, Arial, Helvetica, sans-serifbfont
size=3×¢²á/font/b/font

The charset have been set to gb2312.  However, one have to change the
encoding manually inside the 
brower in order to view the encoding correctly.

I have also tried to change the file extension from xx.jsp to
xx.html.  It works in xx.html extension, 
but fail to display correct encoding in xx.jsp.

Am I miss something? Could any one give me a hand on it?

Thanks in advanced!

Regards,
--kenneth


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




RE: Can anyone give me an idea of the maximum hit rate for Tomcat on a PC

2002-05-21 Thread Kwan, Kenneth Y

With simple JSP, a few hundreds per second on RH7.0, single PII400, tomcat
3.x, Apache 1.3.9, 128M RAM. Please test and advise your finding on 1GHz CPU

-Original Message-
From: Simon Crase [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: Can anyone give me an idea of the maximum hit rate for Tomcat on a
PC


I'm trying to get a feel for the maximum number of pages I can expect Tomcat
to serve per second on a reasonable PC - say 1G RAM and a 1 processor
speed around 1GHz.

I know the correct answer is it depends, but I'd appreciate any feedback
on whether I should be looking at tens of hits, hundreds or whatever for a
best case - very simple pages without any database access, as it will be a
few days before I get to make any measurements.


Regards,


Simon



Simon A. Crase

Invetech Pty Ltd
Private Bag 44
495 Blackburn Road
Mount Waverley  Vic  3149

Phone:  61 3 9211 7933
Mobile: 0408 579 006
Fax:61 3 9211 7702 (facsimile)
e-mail: [EMAIL PROTECTED] 
___ 
IMPORTANT - This email and any attachments may be confidential. Any
retransmissions, dissemination or other use of these materials by
persons or entities other than the intended recipient is prohibited. If
received in error, please contact us and delete all copies. Before
opening or using attachments, check them for viruses and defects. Our
liability is limited to resupplying any affected attachments. [Any
representations or opinions expressed in this e.mail are those of the
individual sender, and not necessarily those of Vision Systems Limited].



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

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




RE: Log4j initialization problem

2002-03-20 Thread Kwan, Kenneth Y
Title: RE: Log4j initialization problem





I found the same problem as well. It seems that for the same JVM (even with different webapps) all use the same(i.e. the last initialized) config file.

Kenneth


-Original Message-
From: James Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 4:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Log4j initialization problem


Hello,


I have tried the ServletContextListener approach suggested below by
Sriram (thanks !) and I am still having the same problem, i.e. I get the
log file (specified in my log4j.properties file) created under whatever
directory I am at when I issue the tomcat start command. It appears
that the log file is being created and placed in the current working
directory if I specify only the file name in the log4j.properties
File entry. If I specify the full path, such as


log4j.appender.A1.File=/var/tomcat/webapps/myapp/LogMessages.txt


then it creates and places the file exactly where it the entry
specifies. But I want to just specify the filename and have it created
under the webapp's context directory, that way I won't have to remember
to change the log4j.properties entry whenever the webapp is moved to
another context directory or installed on another machine which might
have a different webapps directory path.


So is there a way to get the log file to be created and placed under its
webapp's context directory ?


Also would it be more appropriate to post this topic/thread to the log4j
user group ([EMAIL PROTECTED]) ?


Thanks in advance for any suggestions or clues.



-James




 Hello,


 I don't have access to my computer right now, but here's roughly what
I
 do to use log4J within my Servlet 2.3 API compliant webapps.


 1. Create a properties file called log4j.properties
 2. Place this in WEB-INF folder.
 3. Write a ContextListener and in the contectInitialized method,
access the
 servlet context. Make sure you place this Listener implementation
along
 with your other classes and that you add an entry for it in web.xml
 4. Ask the servlet context to get the following resource as a stream
 e.g. InputStream is =
 servletContext.getResourceAsStream(/WEB-INF/log4j.properties);
 5. Create a properties file that'll initialize with this property
file.
 Properties properties = new Properties();
 properites.load(is);
 is.close();
 6. Now pass this newly initialized properties object to the
 PropertyConfigurator...

 That's it.

 Sriram




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


How to obtain original request url?

2002-03-20 Thread Kwan, Kenneth Y
Title: How to obtain original request url?





I have configured my webapp with customized error page for 404 error. Does anyone know how can I obtain the original requested URL?

Thanks


Kenneth Kwan




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


Placing context root in public_html

2002-01-30 Thread Kenneth Johnson

I have tomcat installed as a standalone on my office computer and can successfully run 
servlets when they are installed with the context root under the web-apps directory 
with the standard deployment directory configuration. 

In Chapter SRV 9. of Sun's Web Application specs they say,
 A servlet container can establish rules for automatic generation of web 
applications. For example a ~user/ mapping could be used to map to a web application 
based at /home/user/public_html/.

We cannot figure out how to do this. We have tomcat installed on a Linux system 
running under Apache. I will be teaching a class using servlets. We would like to have 
the students establish their context roots in a public_html directory in their own 
account. We have the servlet examples that come with Tomcat setup in my public_html 
directory and I placed one of my servlets there and successfully ran it by simply 
using the example's uri  www.ourdomain:8080/~johnsonk/servlet/ServletClassName with my 
servlet's class name instead of one of the examples. The problem is that we cannot get 
tomcat to run updated versions of that servlet. Even if I completely delete the 
servlet class file it still runs the original version.

In server.xml we have the following entries that we believe are relevant

Listener className=org.apache.catalina.startup..Userconfig
  directoryName=public_html
  userClass=org.apache.catalina.startup.PasswdUserDatabase/

Context path=/johnsonk docBase=/home/johnsonk/public_html debug=0 
reloadable=true/

What does the reloadable=true imply? Are we missing something? What triggers 
reloading of a new version of the servlet? In my standalone set up whenever I update 
the servlet it immediately runs the new version. Is this because it is in the web-apps 
directory? Should the web.xml file differ from the standard setup?  




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




RE: jkconf? Does it work in 4.0.1? Where's workers.properties?

2001-12-18 Thread Kwan, Kenneth Y

Just copy the workers.properties from 3.x

Kenneth

-Original Message-
From: Scott Merritt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:30 AM
To: 'Tomcat Users List'
Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties?


Is it possible to manually create these?  I mean, where do I find out what
goes in a workers.properties file?  I have no clue without installing 3.3,
and I'm guessing I'll have to do some tweaking on the files it generates.

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:09 AM
To: 'Tomcat Users List'
Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties?


Tomcat 4.x originally came with just mod_webapp as the
connector, which doesn't require these extra files that
mod_jk does.  Integration of mod_jk support with Tomcat 4.x
is still on going.  Since Tomcat 3.x is quite different
from Tomcat 4.x (compare server.xml files for example),
is means that some of what you find in the Tomcat 3.3
documentation isn't going to apply to Tomcat 4.x.  The
jkconf option is a good example.  This is a feature that
applies only to Tomcat 3.3.  None of the Tomcat 4.x releases
does auto-config generation (mod_webapp didn't need it).  I
believe the next releases of Tomcat 4.x will contain some
support for this.  For the time being you have to
create them manually, or if you feel like investing in
the disk space, install a version Tomcat 3.3 to help
generate them.

Cheers,
Larry

 -Original Message-
 From: Scott Merritt [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 17, 2001 6:50 PM
 To: 'Tomcat Users List'
 Subject: jkconf? Does it work in 4.0.1? Where's workers.properties?
 
 
 Hmm... My next question is, how come I can't find a 
 workers.properties file?
 
 I'm using Tomcat 4.0.1 and trying to get it to autgen the 
 config files...
 None of these generate anything:
 ./startup.sh jkconf
 ./catalina.sh jkconf
 
 Okay...  So I figured I'd do it manually, but I don't see any
 workers.properties file to follow the simple example in the 
 3.3 mod_jk
 docs 
 (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html)
 
 Hmm...  Now what?  Confused.  Does Tomcat 4 not do this conf writing
 anymore?
 
 --
 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]

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




RE: [ajp13]bad read -103

2001-12-12 Thread Kwan, Kenneth Y
Title: RE: [ajp13]bad read -103





It also exists in my Linux box RH 7.1 with Apache 1.3.2x and mod_jk


Rgds
-Original Message-
From: Reto Badertscher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 6:23 PM
To: Tomcat Users List
Subject: AW: [ajp13]bad read -103



Hi,


i'm using the same configuration and get the same messages. Don't know what
it means, but the application works OK and there are no entries in my
iis_redirect log.
Perhaps somebody knows what causes the messages?


Regards


Reto


-Ursprungliche Nachricht-
Von: Andy Soedibjo [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 12. Dezember 2001 10:14
An: [EMAIL PROTECTED]
Betreff: [ajp13]bad read -103



Hi all,


I'm a new comer ... so please forgive me if there is any mistake in my
sentences. ;-)
I've tried to use tomcat 4.0.1 as a servlet engine with IIS 5.0 using
isapi_redirect.dll.
And, after doing some configurations, i can successfully configure the
tomcat, and it works fine.
But, in the tomcat's console, I see this error/warning message [ajp13]bad
read -103.


I've tried to follow Henri Gomez's instruction to use ajp.jar and
tomcat-util.jar in http://jakarta.apache.org/~hgomez/ajp13-tc4.0/
but it still give the same message. Anybody know this problem?


This is my connector configuration :
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75 acceptCount=10
debug=0 connectionTimeout=0 /


Thanks in advance.


Regards,
Andy.



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




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


Jakarta-Tomcat 4.01 startup problem

2001-11-30 Thread Kenneth Fung

To who it may concern,

I have installed jakarta-tomcat 4.01 RPM on My Redhat Linux 7.0.
However, there is no *.sh files as described in Tomcat documentation,
so I download the ZIP version and extract *.sh files and additional
/webapps for startup. I found even I have setup environment variables
such as JAVA_HOME and CATALINA_HOME, they seems to have no effect on
startup.sh when it want to search the path as described in the file. At
the end I add the variables settings manually in the startup.sh file.
When everything is ok( JDK1.3.1 also been installed), I typed:
$CATALINA_HOME/bin/startup.sh
and there is only a message of memory allocation error left, then
nothing else...
The only successful way is that:
$CATALINA_HOME/bin/catalina.sh debug
run
I can find the index page in URL: http://localhost:8180
Is there any problem with the startup.sh file?
How can I use it as a daemon?

Look forward to your message!
Best regards!

Kenneth


_
Do you Yahoo!?
¦æ¸U¨½¸ô http://travel.yahoo.com.hk
Comprehensive travel guide at http://travel.yahoo.com.hk

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




RE: Tomcat 4.0 and Poolman

2001-11-22 Thread Kwan, Kenneth Y
Title: RE: Tomcat 4.0 and Poolman





This also works on my TC4.0.1  Poolman 2.0.4


-Original Message-
From: KL OOI [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 4:12 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.0 and Poolman



put all the Poolman related JAR files into
TOMCAT_HOME/webapps/yourapps/WEB-INF/lib
and poolman.xml into TOMCAT_HOME/webapps/yourapps/WEB-INF/classes


this is work for me on TC 3.3 + Poolman 2.0.4


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 3:57 PM
Subject: Tomcat 4.0 and Poolman



 Hi Folks

 I have searched the archives and there is lots of messages saying people
 are having problems with Tomcat 4.0 and Poolman, but there is no follow
 up messages saying definitly that these two do not work together, or how
 things can be configured so they do work in harmony.
 Can someone please tell me if it is possible to get them working together.

 Cheers

 Tony



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




_


Do You Yahoo!?


Get your free @yahoo.com address at http://mail.yahoo.com





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


RE: Tomcat 3.2.3 and Linux JDK 1.3.1

2001-11-19 Thread Kwan, Kenneth Y
Title: RE: Tomcat 3.2.3 and Linux JDK 1.3.1





try ulimit -s 2048 


-Original Message-
From: Michael Weissenbacher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 2:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat 3.2.3 and Linux JDK 1.3.1



i've stopped using the sun jdk on linux and i am using the ibm jdk now
because it has far better performance and i didn't expience any lockup
problems with it.


michael


-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 10:59 PM
To: Tomcat Users List
Subject: Tomcat 3.2.3 and Linux JDK 1.3.1



Have people found any problems running Tomcat 3.2.3 on JDK 1.3.1? We found
that Tomcat seemed to get locked up under JDK 1.3.1 on Linux, but when
reverting back to 1.3.0, the problem does not appear.


Does anybody have any experience or know what's happening? It sure would be
a pain to discover that Tomcat won't run reliably under a released JDK.


Thanks,
David



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




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


Ho to change default ContentType ?

2001-08-27 Thread Kwan, Kenneth Y

By default, JSP compiler generates ¡§response.setContentType(¡§text/html;
charset=ISO-8859-1¡¨) in every JSP page. I can change the type by manually
inserting ¡§response.setContentType(¡§text/html; charset=xxx¡¨) in every JSP
page. 

Is there any way to change the ¡§default¡¨ charset in ContentType such that
there is no need to setContentType manually?

Kenneth



Re: Trouble running a servlet

2001-08-15 Thread Kenneth Litwak

  I'm trying to run Tomcat on W2K disconnected from
the Internet.  In asking for help, I got one reply
which said
What solved the last of my disconnected-laptop 
issues (on Win98 at least)  
was adding a LOCALHOST entry in 
c:\windows\hosts (create it if needed):

  127.0.0.1 localhost

Win98 looks here first before it tries accessing 
your configured DNS
servers, which is when it would try to access the 
network.

Unfortunately, my system already has hosts files and
they all include 127.0.01 localhost.  Thanks.


Ken


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Newbie help needed: error running JSP

2001-08-15 Thread Kenneth Litwak

   I just ran my first JSP that uses a form and got an
error. Unfortunately, the stack trace doesn't tell me
where in the JSP the error occured (that I can tell)
or where in my helper bean the problem ight be.  I'd
heard that JSPs are hard to debug, and now I see why. 
The JSP engine is not very helpful with what's wrong. 
Here's the stack trace, followed by the JSP code.

Location: /examples/jsp/form/Form.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Attempted a bean
operation on a null object.
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:424)
at
jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._jspService(_0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at
org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

JSP code:
html
body bgcolor=#c8d8f8
form action=/examples/jsp/form/Form.jsp
method=post
center
table cellpadding=4 cellspacing=2 border=0

th bgcolor=#FF colspan=2
font size=5User Registration/font
/th

tr
td valign=top 
bFirst Name/b 
br
input type=text name=firstName size=15/td
td  valign=top
bLast Name/b
br
input type=text name=lastName size=15/td
/tr

tr
td valign=top colspan=2
bE-Mail/b 
br
input type=text name=email size=20
br/td
/tr

tr
td  valign=top colspan=2
bWhat languages do you program in?/b
br
input type=checkbox name=languages
value=JavaJavanbsp;nbsp; 
input type=checkbox name=languages
value=C++C++nbsp;nbsp;nbsp;nbsp;nbsp;
input type=checkbox name=languages
value=CCbr
input type=checkbox name=languages
value=PerlPerlnbsp;nbsp;
input type=checkbox name=languages
value=COBOLCOBOL
input type=checkbox name=languages
value=VBVBbr
/td
/tr

tr
td  valign=top colspan=2
bHow often can we notify you regarding your
interests?/b
br
input type=radio name=notify value=Weekly
checkedWeeklynbsp;nbsp;
input type=radio name=notify
value=MonthlyMonthlynbsp;nbsp; 
input type=radio name=notify
value=QuarterlyQuarterly 
br/td
/tr

tr
td  align=center colspan=2
input type=submit value=Submit input
type=reset  value=Reset
/td
/tr

/table
/center
/form
%-- Create the bean only when the form is posted --%
%
if (request.getMethod().equals(POST))
 {
%
jsp:useBean id=formHandler
class=com.shopping.FormBean
%-- provide a setProperty tag and ensure that the
setter methods are invoked via introspection 
--%
jsp:setProperty name=formHandler property=*/
/jsp:useBean
p
hr
font color=red
bYou submitted:P
First Name:/bbr
%-- invoke the getter method to display the firstName
using the getProperty tag --%
jsp:getProperty name=formHandler
property=firstName/br
brbLast Name:/bbr
%-- invoke the getter method to display the lastName
using the getProperty tag --%
jsp:getProperty name=formhandler
property=lastName/br
brbEmail:/bbr
%-- invoke the getter method to display the email
address using the getProperty tag 
jsp:getProperty name=formHandler
property=email/br
--%
bLanguages:/bbr
%
   String[] lang = formHandler.getLanguages();
   if (!lang[0].equals(1)) 
   {
out.println(ul);
for (int i=0; ilang.length; i++)
out.println(li+lang[i]);
out.println(/ul);
   }
   else out.println(Nothing was selectedbr);
%
bNotification:/bbr
%-- invoke the getter method to display the
notification status using the getProperty tag 
--%
jsp:getProperty name=formHandler
property=notify/br
br
%
}
%
/font
/body
/html

I think this would be better as an attachment but lots
of mailing lists don't like those, so ugly or not,
there it is.  Thanks.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Newbie help needed: error running JSP

2001-08-15 Thread Kenneth Litwak

Rob S. wrote:
ot to be a jerk or anything, your newbie help 
questions are fine and all,
but the problem is that the only connection they 
have to Tomcat is that
you're using the container.

It's like if I emailed the GCC or Visual Studio 
lists saying, how come I'm
getting all of these memory leaks in my 
programs?  See what I'm saying?
You really should pick up a book on JSPs / 
Servlets...

   Rob, I understand your point.  The reason I posted
here is that the stack trace appears to me completley
unique to Tomcat. Weblogic might produce totally
different information, as might Websphere as might the
J2EE RI.  I don't know what from the stack trace is
unique to Tomcat, and therefore a config error I've
made, and what is common to all JSP engines.  How do
you know the diference?  Thanks.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Newbie help needed: error running JSP

2001-08-15 Thread Kenneth Litwak

Thanks Jann for the help.  That's what I ndeed to
know:  where to look for the error.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

  I'm afraid this it doens't work in ROOT or examples.
How would I create a context for ROOT?  Another pster
told me I needed to look at my servlet.xml file which
should be in the config directory.  I don't know how
the names difer between platforms, but my Conf
directory under jakarta-tomcat-3.2.1 doens't have a
servlet.xml file.  What ight it be called instead on
Win 2000?  Thanks.


Ken

Your output from starting TOMCAT (in your earlier 
post) did not indicate a 
context being created for ROOT, just examples 
and admin.  Try putting 
it in the examples application and use the same 
url syntax:

http://localhost:8080/examples/servlet/LibraryServlet

As delivered, TOMCAT uses ROOT as the default 
webapp.  So, you may also be 
able to reach the application at:

http://localhost:8080/servlet/LibraryServlet

- Richard




On Monday 13 August 2001 07:40 pm, you wrote:
 I still make make this work.  I've made 
sure my
 servlet class is in
 TOMCAT_HOME\webapps\ROOT\WEB-INF\clsses and get 
this
 Not Found (404)

 Original request:
 http://localhost:8080/servlet/LibraryServlet

 Not found request:
 http://localhost:8080/servlet/LibraryServlet

 This has to be something basic, and it's got to 
be me,
 but I cna't figure out what is wrong.  Thanks.


 Ken

 
__
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

  Well, I still haven't been able to make tomcat work
for me on Win 2000.  Interestingly, I went to a
different machine, running Solaris 8.  I downloaded
Tomcat 3.2.3, instlaled it, put my code in the
Root/classes, and ran it with
http://localhost:8080/servlet/LibraryServlet
and it worked like a champ.  
The only real diference between the Solaris setup
(besdies it being Solaris) and the Win 2000 setup is
that on Win 2000, I've got Netscape set up touse a
manual proxy, and in that state, Netwcape won't talk
to the Internet.  On the Solaris machine, whre I can
talk to the Internet and also go to localhost:8080,
things work fine.  Does this help at all in
determining why the Win 2000 setup won't work? 
Thanks.


Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

   Okay, I made my Win 2000  trouble go away by
removing proxy settings in NetscRape and signing on to
the Internet through my ISP.  Now everything works
fine.  The question I have still, however, is:  how
can I avoid this?  I should not have to tie up my
phone line just to use Tomcat on my PC.  That's silly.
 How can I get around this please? Thanks.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Trouble running a servlet

2001-08-14 Thread Kenneth Litwak

Robb wrote:
Are we talking about not being able to access 
localhost because you have a
proxy setup?  You can keep your proxy setup, just 
add an exception that
tells Netscape not to go to the Internet for the 
host 'localhost'.

I see the exception box, but I don't know what to put
there.  Thanks.


Ken



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Two configuration questions

2001-08-14 Thread Kenneth Litwak

1.  Where do I put a JSP file?  Where do I put
associated helper beans and custom tags? 

2.  I want to access from a JSP's helper bean or a
servlet running on Tomcat on one host an EJB running
on the J2EE RI on another server on a separate host. 
If this were a standalone client I'd just give the
client some new JNDI code and provide the proper
client side jar.  How do I do this with Tomcat?  WOuld
my servlet or helper bean simply run the same JNDI
code?  Where do you put jar files for client side jars
for EJBs on Tomcat?  Thanks.



Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Trouble running a servlet

2001-08-13 Thread Kenneth Litwak

I'm trying to run a basic servlet tutorial using
tomcat on Win 2000 with Netscape. It doens't work.

I start tomcat, and get
2001-08-13 03:34:12 - ContextManager: Adding context
Ctx( /examples )
2001-08-13 03:34:12 - ContextManager: Adding context
Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error
messages
2001-08-13 03:34:12 - ContextManager: Adding context
Ctx(  )
2001-08-13 03:34:12 - ContextManager: Adding context
Ctx( /test )
2001-08-13 03:34:13 - PoolTcpConnector: Starting
HttpConnectionHandler on 8080
2001-08-13 03:34:13 - PoolTcpConnector: Starting
Ajp12ConnectionHandler on 8007

Next, I go to Netscpae and tyr to opne a page.  The
final URL i sue is 
http://localhost:8080/ROOT/WEB-INF/classes/MyServletClass.class
That fails with a 404

THen I moved he code and tried
http:/localhost:8080/webapps/examples/WEB-INF/classes/Myservletcalss.class
That didn't work either.  The tomcat screen in both
cases listed the URL, followed by the word null.  
I khave doen this under the ROOT directory wiht a
servlet on Solaris without a hitch Now that I'm trying
it on WIndows in a diferent environment, it won/t
work.

I've tried changing the Netscape settings for ptoxy. 
I swithced them to Manual proxy, and set the http IP
address to 127..01, and the prot for everything to
8080.  This still doens't work.  I'm not trying to do
anything fancy.  I jsut want to be able to stat the
sever, and code and run JSPs and servlets.  I'd
appreciate help with this basic problem.  Thanks.

   If it matters,I'm not on the Internet, but I was
told htat's irrelevant. 

Ken


__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



Re: Trouble running a servlet

2001-08-13 Thread Kenneth Litwak

I still make make this work.  I've made sure my
servlet class is in
TOMCAT_HOME\webapps\ROOT\WEB-INF\clsses and get this
Not Found (404)

Original request:
http://localhost:8080/servlet/LibraryServlet

Not found request:
http://localhost:8080/servlet/LibraryServlet 

This has to be something basic, and it's got to be me,
but I cna't figure out what is wrong.  Thanks.


Ken

__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



Re: meta search

2001-08-07 Thread Kenneth Westelinck

Arik,

Maybe you can use HTDig, from
http://www.htdig.org/


hope this helps,

Kenneth



From: Arik Levin [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: meta search
Date: Tue, 7 Aug 2001 13:35:26 +0200


   I'm looking for an open source Meta Search.

   If anybody out there know a good one please get back to me...


   Thanks...
   Arik



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Starting TOMCAT on Windows 98

2001-06-14 Thread Rowe, Kenneth

I had this problem and I added this line at the beginning of my startup.bat:

SET JAVA_HOME=d:\jdk1.3.1

Ken

-Original Message-
From: Steffen Hainke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 7:01 AM
To: [EMAIL PROTECTED]%internet
Subject: Starting TOMCAT on Windows 98


How can help me in this case:

i try to run tomcat under windows 98 second version. After setting
..._HOMES and run start.bat. i get this output:

Including all jars in ..\lib in your CLASSPATH.

Using CLASSPATH:
..\classes;..\lib\SERVLET.JAR;..\lib\PARSER.JAR;..\lib\JAXP.JAR
;..\lib\ANT.JAR;..\lib\WEBSER~1.JAR;..\lib\JASPER.JAR

Starting Tomcat in new window
Startet eine Anwendung für Windows oder MS-DOS.

START [Optionen] Programm [Argument...]
START [Optionen] dokument.erw

/m[inimized] Startet die Anwendung als Symbol (Hintergrund).
/max[imized] Startet die Anwendung maximiert (Vordergrund).
/r[estored]  Startet die Anwendung im wiederhergestellten Fenster
(Vordergrund)
 [Standard].
/w[ait]  Zeigt die DOS-Eingabeaufforderung erst wieder nach dem
Beenden
 der Anwendung an.


i am using jdk1.2!

Thanks for help






RE: IIS and Tomcat

2001-06-06 Thread Kenneth Westelinck

Hi,

If you want to stop tomcat acting as a standalone web server just delete 
these lines in server.xml:

!-- Normal HTTP --
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
  Parameter name=port value=8080/
/Connector

This works for 3.2.1 and 3.2.2 . Don't know about other versions though.

hope this helps,

Kenneth Westelinck


From: Chris Faulkner [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: IIS and Tomcat
Date: Tue, 5 Jun 2001 07:13:03 +0100

Hi

Thanks, this pretty much confirms what I thought. The crucial question,
though, is whether I can have Tomcat functioning in harness with IIS to
serve my servlets but not have it operation as a web server. When its
running in support of IIS, I also have the Tomcat web server running on 
port
8080. Maybe I've overdone my install !

The other bit I'm stuck on is how to install a jar and access the classes 
in
it.

Thanks very much

Chris

  -Original Message-
  From: Todd Sussman [mailto:[EMAIL PROTECTED]]
  Sent: 06 June 2001 07:36
  To: [EMAIL PROTECTED]
  Subject: RE: IIS and Tomcat
 
 
  The messages show you are running IIS as the webserver and it is
  redirecting the servlets to tomcat.  When you shutdown tomcat, IIS can
  no longer redirect the servlets to tomcat and therefor you get an error.
  I have never set Tomcat as a stand alone server, but it can be done.
 
  Todd
 
  -Original Message-
  From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 05, 2001 12:50 AM
  To: [EMAIL PROTECTED]
  Subject: IIS and Tomcat
 
 
  Hi
 
  I am just trying to get my servlets tested on IIS (windows 2000) and
  Tomcat.
  I have done all the set-up steps, the isapi_redirect stuff seems to be
  functioning. I have IIS on W2K with Tomcat 3.2.2 and JDK 1.3.0_02. IIS
  is on
  the usual port 80.
 
  If I start up tomcat run, tomcat starts and initialises everything
  (IIS is
  also running at this time)
 
  http://localhost:8080/examples/servlet/SnoopServlet
 
  I can see that its coming from Tomcat.
 
  If I hit
 
  http://localhost/examples/servlet/SnoopServlet
 
  This also works and it tells me that the port is 80 and the server is
  Tomcat. However, I know that the port 80 is being served by IIS and I
  can
  see the request in the IIS logs, being redirected to
  /jakarta/isapi_redirect.dll. Why is it telling me that the web server is
  Tomcat ?
 
  So it all looks good, except that if I do a tomcat stop, then the
  servlet
  requests to IIS start to fail. Is this expected ? If so, can I run
  tomcat
  without opening up that 8080 port ? Maybe I'm a bit confused  but I'd
  like
  to have tomcat managing my servlets without essentially having a second
  web
  server running.
 
  Secondly, how do I get a jar loaded and get access to the classes within
  that jar ? Where do I put it and how can classes in it be aliased ?
 
  Thirdly, and probably related, how can I use the servlet tag in my
  .shtml
  web pages. I was using Apache JSSI previously.
 
  Thanks very much
 
 
  Chris Faulkner
 
 
 
 


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: ===Session Question===

2001-05-22 Thread Kwan, Kenneth Y

Anil

Just on top of normal session validation, add 1 session attribute in
servlet1 to indicate that this session is valid+ and remove this attribute
in servlet2. So, after leaving serlvet2, the session is valid everywhere
except servlet2.

Kenneth Kwan

-Original Message-
From:   anil [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, May 23, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject:Re: ===Session Question===

Thanks for the idea Alin. But that will invalidate all the
attributes in the
session. I want to keep some. And some to keep only in the request
context (what
ever you call).

request.getSession(true) - this will create new session if you do
not have a
session. I am not sure what will happen with
request.getSession(false) if you already have a session, I guess you
can't
access any session variables in that servlet because it is kind of
ignoring the
session. (I am not an expert on this).

anil

Alin Simionoiu wrote:

 I was thinking at something more simple then this.
 When you pass an object  between servlet1 and servlet2, you pass
also the
 request object ( HttpServletRequest..)
 So, in servlet2 you can do HttpSession session =
 request.getSession(false);right?.. ( where request is the
request object
 passed by servlet1)..
 After  you serve you're client you can simple do a :
session.invalidate();
 and you're session that was passed from Servlet1 is no more a
valid one.

 Alin



Re: I am writing detailed documentation on virtual hosting...

2001-04-25 Thread Kenneth Westelinck

Scott,


I'm very interested in this document and I would like to read it. Could you 
send a URL to this mailing list once you've finished a first version.


regards,

Kenneth Westelinck

From: Scott Tatum [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: I am writing detailed documentation on virtual hosting...
Date: Wed, 25 Apr 2001 11:20:54 -0500

It seems like half the questions posted these days to the mailing list
have something to do with virtual hosting. The existing documentation
covers most of the bases, but it is spread across several documents and
contains outdated information that is confusing (e.g. mod_jserv).

Therefore, I am in the process of writing detailed documentation on
setting up virtual hosting. The documentation right now has a few
limitations:

1. Only Tomcat 3.2.x will be discussed. There is no production version
of Tomcat 4, and everyone using Tomcat 3 should be using the latest
version.
2. Only mod_jk will be discussed. Everyone who is setting up Tomcat now
should be using mod_jk - I see no reason to discuss mod_jserv.
3. Setup is only for a unix environment. I don't currently have any
experience setting up Tomcat in a Windows environment, though setting up
Tomcat standalone should be almost identical.
4. Only webserver integration discussed is with Apache. This is the only
webserver I have experience integrating Tomcat with. I would do some
testing with IIS but I don't have access to it. If someone else would be
willing to provide similar documentation for IIS and/or iPlanet
integration, that would be great!

Below is an initial outline for the document. The documentation will of
course be in HTML, and I will try to mimic the formatting style of the
existing documentation. I welcome suggestions for
changes/additions/enhancements to this outline - I came up with it very
quickly. Once I get some feedback from this I will begin writing the
documentation, hopefully within in the next couple of days.

Virtual Hosting and Tomcat

1. Introduction
2. Virtual Hosting Options
2.1 Tomcat Standalone
2.2 Tomcat with Apache
2.2.1 Apache + Single Tomcat Instance
2.2.2 Apache + Multiple Tomcat Instances
2.4 AJP12 vs. AJP13
2.5 General Do's and Dont's
3. Configuring Tomcat Standalone
3.1 Configuration Files Involved
3.2 Modifying server.xml
4. Configuring Tomcat + Single Tomcat Instance
4.1 Configuration Files Involved
4.2 Configuring server.xml
4.3 Configuring workers.properties
4.4 Configuring uriworkermap.properties
4.5 Configuring mod_jk.conf
4.6 Testing and Troubleshooting
5. Configuring Tomcat + Multiple Tomcat Instances
4.1 Configuration Files Involved
4.2 Creating and Configuring Separate server.xml Files
4.3 Configuring workers.properties
4.4 Configuring uriworkermap.properties
4.5 Configuring mod_jk.conf
4.6 Testing and Troubleshooting

-Scott

--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Memory buildup on Tomcat JVM

2001-04-23 Thread Kenneth Westelinck

Hi,

What VM are you using? We had a similar problem when running our processes 
on 1.3 . When running them on 1.2.2 the problem seemed to be solved. Maybe 
you should try a different VM and check if your problem persists.

hope this helps,

Kenneth Westelinck


From: Shravan Shashikant [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Memory buildup on Tomcat JVM
Date: Tue, 24 Apr 2001 00:26:01 -0500 (CDT)

Hi there,
   Was wondering whether you guys had a similar problem as I have been
having.A servlet code has hashtables and vectors in it and I do alot of
assignment for these vectors/hashtables in the code..around 1000 vector
elemtns and 100 hs elemnts.i clean it up after execution and set them to
null,but my memory for the java vm starts around 9k when the code starts
executing and at the end of its at around 24K(chked it out in the task
manager)..basically it doesnt seem to cause much trouble but was wondering
what the problem is and if it can be rectified..
Thanks and Regards,
Shravan


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Tomcat default

2001-04-23 Thread Kenneth Westelinck

Hi,

Check tomcat-users.xml file in tomcat home/conf .


regards,

Kenenth Westelinck


From: yuzz [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Tomcat default
Date: Tue, 24 Apr 2001 13:46:04 +0800

hello,
anybody knows what is tomcat admin default username and password??

--
yuzz
System Engineer
EmasOnline Dot Com Sdn. Bhd.
http://www.EmasOnline.com
[EMAIL PROTECTED]
Tel No: 606+ 3345666 ext 2174
Fax No: 606+ 3372233
#Slackware live...




_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Changing DocumentRoot

2001-04-23 Thread Kenneth Westelinck

Hi,


Adding this to server.xml should solve your problem:

Context path=/ docBase=/usr/local/www/data/


hope this helps,

Kenneth Westelinck

From: Christoph Kukulies [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Changing DocumentRoot
Date: Mon, 23 Apr 2001 12:49:18 +0200 (CEST)

After having noticed that embedded jsp statements *could* work
with my configuration where apache was serving http requests
while tomcat was only doing the servlets I want to switch to tomcat
as the sole webserver. At least here in a small intranet environment
I think I could afford. Don't know if tomcat can sustain heavy
load in Internet environment though and if it's fast enough
compared to apache.

Anyway, I figured out that I only had to change the port value of the
HttpConnection Handler from 8080 to 80.

But how can I change the DocumentRoot to point to /usr/locaol/www/data
(where my apache server had it's root) while maintaining the
servlets under $TOMCAT_HOME/webapps?

Simply creating a symbolic link in the filesystem of the server
wouldn't work, would it?


--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




creating mod_jk.so on AIX

2001-04-19 Thread EXT-Chung, Kenneth



 Hi my friends

 Problems: apxs:Break: Command failed with rc=255
 Platform: AIX 4.3.3
 Tomcat source: jakarta-tomcat-3.2.1-src
 Apache source: apache_1.3.19

 I have gotten to the point of trying to creating mod_jk.so on AIX 4.3.3
 I have sucessuflly compiling all *.c in ../jk and apache1.3/mod_jk.c
 1) Except jk_jni_worker.c, it has some compliants. But I am still be able to
 creating the jk_jni_worker.o.

  2) When it gets to the point of creating mod_jk.o, it failed with 
   apxs:Break: Command failed with rc=255

  I hope someone who has some experience with that, please give me
  some helps.


 Thanks

 The rest is the error message.
 
 
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-qnogenpcomp -qnousepcomp -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
 -I/s/users/xv042b/apache/apache_1.3.19/include -I../jk -I/usr/jdk_base/include 
-I/usr/jdk_base/include/aix  -c ../jk/jk_jni_worker.c
"../jk/jk_jni_worker.c", line 731.28: 1506-068 (W) Operation between types 
"long(*)(const struct JNIInvokeInterface_***,const struct 
JNINativeInterface_***,void*)" and "void*" is not allowed.
"../jk/jk_jni_worker.c", line 732.43: 1506-068 (W) Operation between types 
"long(*)(void*)" and "void*" is not allowed.

...
  -o mod_jk.so jk_uri_worker_map.o jk_map.o jk_sockbuf.o jk_lb_worker.o 
jk_ajp13_worker.o jk_worker.o jk_pool.o jk_jni_worker.o jk_ajp13.o jk_util.o 
jk_msg_buff.o jk_connect.o jk_ajp12_worker.o mod_jk.o 
apxs:Break: Command failed with rc=255
make: 1254-004 The error code from the last command is 1.





Problems with creating mod_jk.so on AIX

2001-04-19 Thread EXT-Chung, Kenneth



 Hi my friends

 Problems: apxs:Break: Command failed with rc=255
 Platform: AIX 4.3.3
 Tomcat source: jakarta-tomcat-3.2.1-src
 Apache source: apache_1.3.19

 I have gotten to the point of trying to creating mod_jk.so on AIX 4.3.3
 I have sucessuflly compiling all *.c in ../jk and apache1.3/mod_jk.c
 1) Except jk_jni_worker.c, it has some compliants. But I am still be able to
 creating the jk_jni_worker.o.

  2) When it gets to the point of creating mod_jk.o, it failed with 
   apxs:Break: Command failed with rc=255

  I hope someone who has some experience with that, please give me
  some helps.


 Thanks

 The rest is the error message.
 
 
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-qnogenpcomp -qnousepcomp -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
 -I/s/users/xv042b/apache/apache_1.3.19/include -I../jk -I/usr/jdk_base/include 
-I/usr/jdk_base/include/aix  -c ../jk/jk_jni_worker.c
"../jk/jk_jni_worker.c", line 731.28: 1506-068 (W) Operation between types 
"long(*)(const struct JNIInvokeInterface_***,const struct 
JNINativeInterface_***,void*)" and "void*" is not allowed.
"../jk/jk_jni_worker.c", line 732.43: 1506-068 (W) Operation between types 
"long(*)(void*)" and "void*" is not allowed.

...
  -o mod_jk.so jk_uri_worker_map.o jk_map.o jk_sockbuf.o jk_lb_worker.o 
jk_ajp13_worker.o jk_worker.o jk_pool.o jk_jni_worker.o jk_ajp13.o jk_util.o 
jk_msg_buff.o jk_connect.o jk_ajp12_worker.o mod_jk.o 
apxs:Break: Command failed with rc=255
make: 1254-004 The error code from the last command is 1.





problems with creating mod_jk.so on AIX

2001-04-19 Thread EXT-Chung, Kenneth

 Hi my friends
 
  Problems: apxs:Break: Command failed with rc=255
  Platform: AIX 4.3.3
  Tomcat source: jakarta-tomcat-3.2.1-src
  Apache source: apache_1.3.19
 
  I have gotten to the point of trying to creating mod_jk.so on AIX 4.3.3
  I have sucessuflly compiling all *.c in ../jk and apache1.3/mod_jk.c
  1) Except jk_jni_worker.c, it has some compliants. But I am still be able to
  creating the jk_jni_worker.o.
 
   2) When it gets to the point of creating mod_jk.o, it failed with 
apxs:Break: Command failed with rc=255
 
   I hope someone who has some experience with that, please give me
   some helps.
 
 
  Thanks
 
  The rest is the error message.
  
  
 cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-qnogenpcomp -qnousepcomp -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite 
-DNO_DL_NEEDED  -I/s/users/xv042b/apache/apache_1.3.19/include -I../jk 
-I/usr/jdk_base/include -I/usr/jdk_base/include/aix  -c ../jk/jk_jni_worker.c
 "../jk/jk_jni_worker.c", line 731.28: 1506-068 (W) Operation between types 
"long(*)(const struct JNIInvokeInterface_***,const struct 
JNINativeInterface_***,void*)" and "void*" is not allowed.
 "../jk/jk_jni_worker.c", line 732.43: 1506-068 (W) Operation between types 
"long(*)(void*)" and "void*" is not allowed.
 
 ...
   -o mod_jk.so jk_uri_worker_map.o jk_map.o jk_sockbuf.o jk_lb_worker.o 
jk_ajp13_worker.o jk_worker.o jk_pool.o jk_jni_worker.o jk_ajp13.o jk_util.o 
jk_msg_buff.o jk_connect.o jk_ajp12_worker.o mod_jk.o 
 apxs:Break: Command failed with rc=255
 make: 1254-004 The error code from the last command is 1.
 
 



RE: creating mod_jk.so on AIX

2001-04-19 Thread EXT-Chung, Kenneth

Unfortunately, our AIX 4.3.3 box is not loaded with gcc.
After I moved files to ../jk/.
I ran
bdvdc14i:xv042b: apxs -c  -o mod_jk.so *.o
  -o mod_jk.so jk_ajp12_worker.o jk_ajp13.o jk_ajp13_worker.o jk_connect.o 
jk_jni_worker.o jk_lb_worker.o jk_map.o jk_msg_buff.o jk_pool.o jk_sockbuf.o 
jk_uri_worker_map.o jk_util.o jk_worker.o mod_jk.o 
apxs:Break: Command failed with rc=255

or

bdvdc14i:xv042b: apxs -c  -o mod_jk.so ../jk/*.o
  -o mod_jk.so ../jk/jk_ajp12_worker.o ../jk/jk_ajp13.o ../jk/jk_ajp13_worker.o 
../jk/jk_connect.o ../jk/jk_jni_worker.o ../jk/jk_lb_worker.o ../jk/jk_map.o 
../jk/jk_msg_buff.o ../jk/jk_nwmain.o ../jk/jk_pool.o ../jk/jk_sockbuf.o 
../jk/jk_uri_worker_map.o ../jk/jk_util.o ../jk/jk_worker.o ../jk/mod_jk.o 
apxs:Break: Command failed with rc=255


It always came back with "apxs:Break: Command failed with rc=255"

Any cludes ???


 --
 From: Mark Johnson[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Thursday, April 19, 2001 1:19 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: creating mod_jk.so on AIX
 
 I ran into what may be a similar problem on a linux machine. When I ran
 apxs to create mod_jk.so, I got a similar message.
 
 The problem: ld was looking for *.o in ../jk/, but running apxs had
 placed *.o in . (ie, the current directory). Note: I was using an apxs
 from an earlier install of apache in a /usr/src rather than
 /usr/local/src, which I suspect is the problem.
 
 Search for jk_jni_worker.o. If it's in the current directory, here's a
 quick (dumb) solution:
 # mv *.o ../jk/.
 then rerun apxs.
 



Re: Good book

2001-04-12 Thread Kenneth Westelinck

Hi,

I'm not sure if there's a good book yet about Tomcat. I think some dudes on 
this mailing list are working on that. There is however a good website which 
is being updated frequently and describes everything you need to administer 
a Tomcat web site.


hope this helps.

Kenneth Westelinck


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Good book
Date: Thu, 12 Apr 01 11:08:00 EDT

Hi,

  Being a newbie to TOMCAT and Java.  Is there a good book or some other 
type of reading material for TOMCAT.  I work as a system administrator and 
will not be developing JAVA servlet applications.  But, I do need to 
understand the ins and outs of TOMCAT for installation, configurations and 
security.  I don't understand the information in the various files, like 
server.xml, web.xml, etc and their releationships.

Dave


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: Good book

2001-04-12 Thread Kenneth Westelinck

Hi,

I'm sorry, I forgot to mention the URL (my mistake :-). It's on 
tomcat.mslinn.com .


regards,

Kenneth Westelinck


From: Georges Boutros [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: Good book
Date: Thu, 12 Apr 2001 11:29:07 -0400

what is this web site
do you have the address

-Original Message-----
From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Good book


Hi,

I'm not sure if there's a good book yet about Tomcat. I think some dudes on
this mailing list are working on that. There is however a good website 
which

is being updated frequently and describes everything you need to administer
a Tomcat web site.


hope this helps.

Kenneth Westelinck


 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Good book
 Date: Thu, 12 Apr 01 11:08:00 EDT
 
 Hi,
 
   Being a newbie to TOMCAT and Java.  Is there a good book or some other
 type of reading material for TOMCAT.  I work as a system administrator 
and
 will not be developing JAVA servlet applications.  But, I do need to
 understand the ins and outs of TOMCAT for installation, configurations 
and
 security.  I don't understand the information in the various files, like
 server.xml, web.xml, etc and their releationships.
 
 Dave
 

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: classpath question

2001-04-11 Thread Kenneth Westelinck

No.

From: Chris Bailey [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: classpath question
Date: 11 Apr 2001 11:00:00 -0700

[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]

I have a web app that uses several jar files.  I have these in a lib
directory that has a symlink in my WEB-INF dir.  However, they don't
seem to get picked up.  It only seems to work if I put them in
TOMCAT_HOME/lib.  Do I need to do some other configuration?

--
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: /examples/servlet

2001-04-10 Thread Kenneth Westelinck

Hi,

If you're trying to make the examples work with apache just include the 
tomcat-apache.conf file in httpd.conf . This always works for me.

Hope this helps.


regards,

Kenneth Westelinck


From: Kamesh J [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: /examples/servlet
Date: Tue, 10 Apr 2001 12:45:17 +0530

when the request is coming for URL
http://localhost:8080/examples/servlet/HelloWorldExample,Tomcat responds
without any problem.
But when the request is coming for URL
http://localhost/examples/servlet/HelloWorldExample apache is taking charge
and gives file not found error.
I have ApJservMount /examples/servlet /examples in tomcat-apache.conf file
and including it in httpd.conf file

I have RHL6.2,Tomcat3.2.1,apache 1.3.12
waiting eagerly for ur reply
kamesh jayachandran



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: DirectoryIndex - /servlet/MyServlet

2001-04-09 Thread Kenneth Westelinck

Hi,

You could place an index.html page with the following content in the htdocs 
directory of apache:

html
   head
  meta http-equiv="refresh" content="0; 
url=http://www.mydomain.com/servlet/MyServlet"
   /head
/html


regards,

Kenneth Westelinck


From: Christian Bjørnbak [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: DirectoryIndex - /servlet/MyServlet
Date: Mon, 9 Apr 2001 08:09:44 +0200

Hi

How do I setup Apache to use /servlet/MyServlet as DirectoryIndex?

Let's say I have the following url: http://www.mydomain.com

I would like to get it translated it to
http://www.mydomain.com/servlet/MyServlet

/Christian Bjørnbak

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Urgent help

2001-04-09 Thread Kenneth Westelinck

Hi,

I don't think you can use Apache as a real FTP server. You can, of course, 
download and upload stuff to your server via HTTP.

If you want to us a real FTP server it depends on your OS which server to 
use. If you're using a UNIX like operating system the best choice (I think) 
is to use wu-ftp. You can download this server from www.wuftpd.org . If 
you're using Windows you can search www.download.com for an FTP server to do 
the trick.

Hope this helps.

regards,

Kenneth Westelinck


From: "Suresh Krishna M (RBIN/DBA-JOT)" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Urgent help
Date: Tue, 10 Apr 2001 05:05:44 +0200

hello all,
 my application uses the apache server and tomcat.my need is 
that
i should be able to use the FTP server on the apache server. please guide 
me
through if apache can support(or act as both FTP and HTTP server).please
give the relavant info if u have.
thanx in advance





_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: WinME installation tip

2001-04-03 Thread Kenneth Westelinck

Hi,


There's another way to do this, use this command to extend your environment 
space:

c:\ COMMAND.COM /E:4096 /P


regards,

Kenneth Westelinck




From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: WinME installation tip
Date: Tue, 3 Apr 2001 00:56:26 -0700

(Forgive me for trying tomcat on WinME -- I promise not to try to make this
a production environment!)

FWIW, I kept getting errors, especially Out of Environment Space errors,
until I renamed my TOMCAT_HOME directory to "\tc". After this change,
bin\startup worked magically.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Tomacat

2001-03-30 Thread Kenneth Westelinck

Hi,


I think this is enough:

SET PATH=%PATH%;C:\DMI\WIN32\BIN;C:\JDK1.3\bin;C:\jdk1.3\lib
SET TOMCAT_HOME=C:\jakarta-tomcat-3.2.1
SET JAVA_HOME=C:\jdk1.3

Instead of what you've written.


hope it helps,

Kenneth Westelinck

From: "Sonia Sh" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "Tomcat-User@Jakarta. Ap" [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Tomacat
Date: Fri, 30 Mar 2001 16:27:57 +0100

Hi
Following your suggestion I concentrated on Tomcat alone.  Now I've 
unzipped the files in
C:\jakarta-tomcat-3.2.1 directory.  JDK is installed in C:\JDK1.3
I've set the following in Autoexec.bat...

SET PATH=%PATH%;C:\DMI\WIN32\BIN;C:\JDK1.3\bin;C:\jdk1.3\lib;
set 
ClassPath=%ClassPath%;C:\jakarta-tomcat-3.2.1\bin;c:\jakarta-tomcat-3.2.1\lib;C:\jdk1.3\lib
set ClassPath=%ClassPath%;%TOMCAT_HOME%/classes
set TOMCAT_HOME=C:\jakarta-tomcat-3.2.1\src\org\apache\tomcat;
set JAVA_HOME=C:\jdk1.3;

Now when I try to run startup it says bad command or file name.
Please help me I'm completely tired of this thing by now.
Regards and Thanks
Sonia

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: chart in jsp

2001-03-26 Thread Kenneth Westelinck

Hi,


Maybe you should use an applet.


regards,

Kenneth Westelinck

From: Ludovic Maitre [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp
Date: Mon, 26 Mar 2001 14:34:46 +0200

Altuð Altýntaþ (Koç.Net) wrote:
 
  are there  any way to draw a dynamic chart in jsp ?
 
  any source  or idea ?
 
  thanks ..
 
  Altug

Perhaps that you can generate an SVG image (cf www.w3.org) from your
data but it's more easy with XML than with JSP.
And your public must have a SVG plugin on their browser.

Regards,

--
  [EMAIL PROTECTED]

  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




  1   2   >