Deploying native libs in a WAR archive

2001-02-23 Thread McCann David

Hi, 

Is there a standard location in a WAR archive where native libraries should
be placed (e.g. WEB-INF/lib) so that they can be loaded by a servlet using
System.loadLibrary() ? Given that there is no requirement for a WAR file to
be actually expanded into a file system by its container, it seems
impossible to do this portably ...

Even if the WAR file were to be expanded, like in Tomcat, is the container
required to adjust its %PATH% and/or $LD_LIBRARY_PATH in order to find the
library at runtime ? What's the deal with Tomcat ?

Sorry if this is a FAQ, but I've found nothing in the documentation or
at Sun's website.

Thanks, 
David McCann. 

=
Metropolitan DS | Tel: +43 1 53139 2935
Gonzagagasse 16 | Fax: +43 1 53139 3278
A-1010 Vienna   | [EMAIL PROTECTED]
Austria | http://www.metropolitan.at
= 

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




Re: Broken pipe error

2001-02-23 Thread Xavier Escandell

Thanks for the anwser, but:
- The servlet is not garbage collected. When I check it in the mornig, after all
night of inactivity, the servlet is active.
- Yesterday, I included a connection pooling class. Thus, the servlet re-starts
the connection.But I get a "connection reset by peer" error, when trying first
access. The second access works fine.

Any idea?

Regards,
Xavier

Randy Layman wrote:

 The answer is no - Tomcat knows nothing about your socket
 connections and therefore can't close them.  A couple of things come to mind
 - first the Oracle drivers might be releasing the connection, check their
 documentation about this.  Also, what is the behavior if your servlet is
 garbage collected?  Could it be that your servlet is being garbage collected
 and therefore you are somehow half-way closing the connection?

 Randy

 -Original Message-
 From: Xavier Escandell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 8:01 AM
 To: [EMAIL PROTECTED]
 Subject: Broken pipe error

 Hi:
 I get "broken pipe error" when trying to re-execute a servlet after
 several hours of innactivity. Then I must re-start Tomcat to get all
 running again.
 The servlet is connected to a database using oracle thin driver, these
 connection is still active.
 So my question is:
 It is possible that the socket between Tomcat and database is being
 closed by Tomcat?
 If the answer is yes, how can I configure these timeout.

 Regards.
 Xavier Escandell.

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

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




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




Error during JNI connect attempt

2001-02-23 Thread Rob Mulder

Hi,

Thanks to you I got the isapi_redirect working. I want to take this to the
next step and try to run the redirection in IIS via the JNI_Connect. However
IIS 5.0 stops and restarts all the time now. The JVM does not start. I get
the following error message in my jvmstd.out log file:

Starting up StartupThread
ERROR reading c:\java\jakarta-tomcat\conf\server.xml
At Line 54 /Server/ContextManager/Connector/
classname=org.apache.tomcat.service.JNIEndpointConnector 

FATAL: configuration error

All the configurations have been performed as described in the IIS Howto and
In-Process How to documents.

Server config is Win2k advanced Server SP1, and IIS 5.0, JDK1.3 and Tomcat
3.2

Regards Rob 

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




Fw: port 8080

2001-02-23 Thread Guillermo de Miguel



Hi everyone!

I have a servlet that calls to a CGI in a system of 
payment, this cgi makes requests to my servlet and has to get the data; but 
there is a problem and is that the server containing the cgi can't obtain datas 
from ports (8080 used by default by Tomcat). I would like to know in there is 
possible to change for this particular the port to the standard or otherwise if 
it´s possible convert a servlet to CGI and how make it.
All advises will be very 
thanked!!!


Re: servlet-zones

2001-02-23 Thread Rui M . Silva Seabra

On Fri, Feb 23, 2001 at 12:18:32PM +, Patric Lichtensteiger wrote:
 server.xml:
   Context path="/" docBase="servlets/" debug="0" reloadable="true" 
   /Context

Try putting server.xml like this while mantainning tomcat.conf like that

 tomcat.conf:
   ApJServMount /servlet /root
   Location /WEB-INF/ 
   AllowOverride None
   deny from all
   /Location
 

But I'd give mod_jk a try instead of mod_jserv.

Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

 PGP signature


RE: servlet-zones

2001-02-23 Thread Randy Layman


Have you disabled the ServletInvoker request interceptor in your
server.xml file?  Basically, old versions of JServ and Tomcat supported a
URL of /servlet/fully.qualified.classname as a method to call servlets
without setting up explict aliases.  This isn't part of the servlet spec,
but its still there to be backward compatible.  Basically it looks for
anything like /servlet/ and tries to run it.

Also, there is another message on this same thread that talks about
the Apache end, of which I know very little.

Randy

-Original Message-
From: Patric Lichtensteiger [mailto:[EMAIL PROTECTED]]
Sent: None
To: [EMAIL PROTECTED]
Subject: servlet-zones


hi there

my pulse is on  200... soon ;-)

i read the tomcat docu 100 times and checked the examples, but it seems 
that i'm to stupid for understanding...

i added a directory called servlets to the tomcat-tree. so i made the 
following additions to server.xml and tomcat.conf:

server.xml:
Context path="/servlet" docBase="servlets/" debug="0"
reloadable="true" 
/Context

tomcat.conf:
ApJServMount /servlet /root
Location /WEB-INF/ 
AllowOverride None
deny from all
/Location


directory-tree:
-C:
-Tomcat:
- conf
- doc
- servlets
- webapps
etc etc etc


can someone tell me, why this doesnt work and what i have to do? i'm 
fighting since two day's with this problem... and i got no more ideas left 
right now... 


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

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




RE: port 8080

2001-02-23 Thread Saurabh Shukla



you 
can change the port in tomcat's server.xml if thiscan help 
you.

Shuklix

  -Original Message-From: Guillermo de Miguel 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 23, 
  2001 6:23 PMTo: [EMAIL PROTECTED]Subject: 
  Fw: port 8080
  Hi everyone!
  
  I have a servlet that calls to a CGI in a system 
  of payment, this cgi makes requests to my servlet and has to get the data; but 
  there is a problem and is that the server containing the cgi can't obtain 
  datas from ports (8080 used by default by Tomcat). I would like to know in 
  there is possible to change for this particular the port to the standard or 
  otherwise if it´s possible convert a servlet to CGI and how make 
  it.
  All advises will be very 
thanked!!!


RE: servlet-zones

2001-02-23 Thread Saurabh Shukla


hi,

In Server.xml
Context path="/servlet" docBase="servlets/" debug="0" reloadable="true" 
/Context


docbase = "servlets/"  you should mention the COMPLETE path.

ie if your servets lie in c:\data\www\app\servelet it should be.

Context path="/servlet" docBase="c:\data\www\app\servelet" debug="0"
reloadable="true" 
/Context



Shuklix

hi there

my pulse is on  200... soon ;-)

i read the tomcat docu 100 times and checked the examples, but it seems
that i'm to stupid for understanding...

i added a directory called servlets to the tomcat-tree. so i made the
following additions to server.xml and tomcat.conf:

server.xml:
Context path="/servlet" docBase="servlets/" debug="0" reloadable="true" 
/Context

tomcat.conf:
ApJServMount /servlet /root
Location /WEB-INF/ 
AllowOverride None
deny from all
/Location


directory-tree:
-C:
-Tomcat:
- conf
- doc
- servlets
- webapps
etc etc etc


can someone tell me, why this doesnt work and what i have to do? i'm
fighting since two day's with this problem... and i got no more ideas left
right now...


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



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




Re: Broken pipe error

2001-02-23 Thread Xavier Escandell

The protocol seems to be correct. The thin driver is quite old (classes111.zip)
but it match up with the database.
Could this driver be in charge of closing connexions?

Xavier.

Randy Layman wrote:

 This seems really strange.  What it sounds like to me it the JDBC
 connects one and gets a "Connection reset by peer" error.  Then the second
 (anre presumably more) connections are successful.  If this is the case I
 would check that your drivers and database match up (in other words, not
 using an old dirver with a new database or vice versa - this may not be
 applicable to the Oracle thin drivers, I don't know) and also check that you
 are using the correct protocol.  It really shounds like a problem for you,
 your DBA, and Oracle, though.

 Randy

 -Original Message-
 From: Xavier Escandell [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 6:34 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Broken pipe error

 Thanks for the anwser, but:
 - The servlet is not garbage collected. When I check it in the mornig, after
 all
 night of inactivity, the servlet is active.
 - Yesterday, I included a connection pooling class. Thus, the servlet
 re-starts
 the connection.But I get a "connection reset by peer" error, when trying
 first
 access. The second access works fine.

 Any idea?

 Regards,
 Xavier

 Randy Layman wrote:

  The answer is no - Tomcat knows nothing about your socket
  connections and therefore can't close them.  A couple of things come to
 mind
  - first the Oracle drivers might be releasing the connection, check their
  documentation about this.  Also, what is the behavior if your servlet is
  garbage collected?  Could it be that your servlet is being garbage
 collected
  and therefore you are somehow half-way closing the connection?
 
  Randy
 
  -Original Message-
  From: Xavier Escandell [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 22, 2001 8:01 AM
  To: [EMAIL PROTECTED]
  Subject: Broken pipe error
 
  Hi:
  I get "broken pipe error" when trying to re-execute a servlet after
  several hours of innactivity. Then I must re-start Tomcat to get all
  running again.
  The servlet is connected to a database using oracle thin driver, these
  connection is still active.
  So my question is:
  It is possible that the socket between Tomcat and database is being
  closed by Tomcat?
  If the answer is yes, how can I configure these timeout.
 
  Regards.
  Xavier Escandell.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

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

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

--
Xavier Escandell Ballester
Consultor Junior

Java Center   http://www.javacenter.org
Fundaci IBIT http://www.ibit.org



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




RES: RES: apachectl start .... error message

2001-02-23 Thread Pedro Henrique Ponchio

Thks again, but where can I find the hosts files on my Red Hat 6.2
system? I already edit the name of the host to atechapp in the linuxconf
utility, but even editing the httpd.conf file to accept this name, the
error message about host name still appear ... 

So, any other suggestion??

Regards,

Pedro

-Mensagem original-
De: lee fellows [mailto:[EMAIL PROTECTED]]
Enviada em: Friday, February 23, 2001 9:34 AM
Para: [EMAIL PROTECTED]
Assunto: Re: RES: apachectl start  error message


Pedro,

  Put the server name and ip address in your hosts file.

  Hope this helps.


Pedro Henrique Ponchio wrote:
 
 Helps a lot, thk u! However, Im facing another problem: now, only my
 apache arent starting up, shows the follow error message on my
 mod_jserv.log:
 


 **
 [22/02/2001 11:23:19:124] (EMERGENCY) Error setting defaults:
 ApJServDefaultHost
  name "localhost" can't be resolved


 **
 
 I already edit the httpd.conf and the "ServerName" directive to
 recognize the name properly, but ... still could not start. I put the
IP
 address into the servername directive of the httpd file, once I dont
 have a valid DNS name.
 
 Can anyone help me??
 
 -Mensagem original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Enviada em: Tuesday, February 20, 2001 4:41 PM
 Para: [EMAIL PROTECTED]
 Assunto: Re: apachectl start  error message
 
 Looks something like this
 
 --with-java-platform=1 or 2 (generally no need to specify this)
 --with-java=/path/to/binary/java
 --with-javac=/path/to/binary/javac
 --with-javadoc=/path/to/binary/javadoc
 --with-jar=/path/to/binary/jar
 --enable-EAPI
 
 (Note the enable --enable-EAPI )
 
 all from page
 http://java.apache.org/jserv/install/howto.unix_install.html
 
 Hope this helps
 
 Rory
 
 http://java.apache.org/jserv/install/howto.unix_install.html
 - Original Message -
 From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 20, 2001 2:18 PM
 Subject: RES: apachectl start  error message
 
  10x very much, I will try to find that documentation ...
 
 
 
  -Mensagem original-
  De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Enviada em: Tuesday, February 20, 2001 4:01 PM
  Para: [EMAIL PROTECTED]
  Assunto: Re: apachectl start  error message
 
 
  I ran into the same problem some time back. Just recompile your
  mod_jserv
  with the -EAPI (not -DEAPI) switch. Check the docs for exact
switches
  and
  make this is one of them. I do however recommend mod_jk.so instead
of
  mod_jserv (unless you are trying to do load balancing with session
  replication)
 
  Hope this helps,
 
  Rory
 
  - Original Message -
  From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 20, 2001 1:40 PM
  Subject: apachectl start  error message
 
 
   Hi all, this error message appear when I try to startup Apache:
  
   Starting httpd: [Tue Feb 20 14:37:58 2001] [warn] Loaded DSO
   libexec/mod_jserv.s
   o uses plain Apache 1.3 API, this module might crash under EAPI!
  (please
   recompi
   le it with -DEAPI)
   [FAILED]
  
   How can I recompile the mod_jserv.so in my system??
  
   Thks!!!
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email:
[EMAIL PROTECTED]
  
  
  
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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


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




Re: port 8080

2001-02-23 Thread Peter Andersén



Hi
you can switch port on tomcat.
I would suspect that is in server.xml under conf 
catalog.

Peter

  - Original Message - 
  From: 
  Guillermo de Miguel 
  To: [EMAIL PROTECTED] 
  Sent: Friday, February 23, 2001 1:53 
  PM
  Subject: Fw: port 8080
  
  Hi everyone!
  
  I have a servlet that calls to a CGI in a system 
  of payment, this cgi makes requests to my servlet and has to get the data; but 
  there is a problem and is that the server containing the cgi can't obtain 
  datas from ports (8080 used by default by Tomcat). I would like to know in 
  there is possible to change for this particular the port to the standard or 
  otherwise if it´s possible convert a servlet to CGI and how make 
  it.
  All advises will be very 
thanked!!!


Context-param troubles...

2001-02-23 Thread Laurent LAUBIN

Hi everybody,

I'm definetly getting crasy with a context param ... I want to offer init
parameters to all my JSP pages... so In the WEB-INF/web.xml file of my
application, I've put something like :
...
  context-param
  param-nameRmiServer/param-name
  param-value//10.10.10.7/BOB/param-value
  description
 Nom de l'objet RMI de connexion.
  /description
/context-param   
...
Who can I retrieve this value from a JSP Pages... I've tried many things
like getServletContext().getInitPArameter("RmiServer"); and it always
returns null ...


Heppp Pleaaze 

Tcha.

___
Laurent LAUBIN  S2M
Ingnieur systme   2, rue des champs - BP 2282
Tl : +33 232 64 33 76  27950 St-Marcel - France
Fax : +33 232 21 25 99  http://www.s2m.fr/
___
 

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




Re[2]: WebServer-Tomcat linking problem...

2001-02-23 Thread Sandor Spruit


Dave,

On Wednesday, February 18, 2026, 3:30:46 AM, you wrote:
   
Don't you think this is bit odd ? I noted your mail was always on top
of my tomcat users folder, sorted by creation time :)

Dave I have successfully built mod_jk.so on both FreeBSD and Redhat 6.2, along
Dave with Apache with and without dynamic modules, SSL, PHP, etc. It is
Dave not a developer issue if you got a good compile -- it is almost certainly
Dave a configuration issue and screw up on your part. Don't blame the code.

Dave I will say in your defense, though, that the documentation and general
Dave layout of things totally sucks on tomcat 3.2.1. The learning curve is
Dave way too high. That shit should just work, period. I recently spent some
Dave serious time trying to compile mod_jk on a box where there really ARE
Dave developer issues (Mac OS X Public Beta, aka Darwin 1.2). It was
Dave not doable, because the tomcat code base is not really portable to all
Dave unix's. In contrast, I was able to build Caucho Resin's Apache
Dave connector (which uses the GNU ./configure system) out of the box,
Dave so Resin is what we'll be using. It's faster, too.

[rest of e-mail snipped]

Cheers,
Sandor
-- 
ir A.G.L. Spruit, Utrecht University, the Netherlands
Institute of information and computing sciences
"There is a bit of magic in everything, and then some
loss to even things out" (from: Lou Reed, "Magic and Loss")



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




Problems with gabled mod_jk

2001-02-23 Thread Peter Andersén





Hi have installed and tested with both apache 
1.3.17 and 1.3.14 and 1.3.12 same result.

I have compiled my apache to support 
DSO.
./configure --prefix=/usr/local/apache 
--enable-module=so
i have checked with httpd -l and seen that the dso 
support is their.

But when i try to execute the mod_jk.conf-auto that 
tomcat creates i get an error on the LoadModule jk_module 
libexec/mod_jk.so
I have used the precompiled version form tomcats 
homepage.
The error is saying that this module is 
garbeld.
complete error messages API module structure 
'jk_module' in file /usr/local/apache/libexec/mod_jk.so is garbled - perhaps 
this is not an apache module DSO.
Any out there having suggestion what to do, im 
pretty new to linux so it should not be to advanced and if you suggest any 
advance step it would be extremly helpful to get a step by step 
instruction.

If i try on the same machine where i have apache installed with shipment 
thru RPM and it is version 1.3.12 this is working but it also only have core.c 
and mod_so.c compiled into the apache kernel. The other version is downloads 
from Apache and it seems to be something im missing when compiling or im not 
sure

Looking forward to see if somebody can help 
me.
Regards
Peter 
Andersen


RE: Problems with gabled mod_jk

2001-02-23 Thread John Towell

This one should be on an FAQ somewhere.  I experienced the same message.  It
resulted from using a mod_jk.so that was packed in an RPM.  The solution was
to get the source from the tomcat site and build a new mod_jk.so by
following the directions in the mod_jk howto that comes with tomcat
documents. Good luck!

 

-Original Message-
From: Peter Andersn
To: [EMAIL PROTECTED]
Sent: 2/23/01 8:03 AM
Subject: Problems with gabled mod_jk

Hi have installed and tested with both apache 1.3.17 and 1.3.14 and
1.3.12 same result.
 
I have compiled my apache to support DSO.
./configure --prefix=/usr/local/apache --enable-module=so
i have checked with httpd -l and seen that the dso support is their.
 
But when i try to execute the mod_jk.conf-auto that tomcat creates i get
an error on the LoadModule jk_module libexec/mod_jk.so
I have used the precompiled version form tomcats homepage.
The error is saying that this module is garbeld.
complete error messages API module structure 'jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
apache module DSO.
Any out there having suggestion what to do, im pretty new to linux so it
should not be to advanced and if you suggest any advance step it would
be extremly helpful to get a step by step instruction.
 
If i try on the same machine where i have apache installed with shipment
thru RPM and it is version 1.3.12 this is working but it also only have
core.c and mod_so.c compiled into the apache kernel. The other version
is downloads from Apache and it seems to be something im missing when
compiling or im not sure
 
Looking forward to see if somebody can help me.
Regards
Peter Andersen

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




Re: Problems with gabled mod_jk

2001-02-23 Thread Peter Andersén

Thanks
But im  not using the mod_jk that ships with rpm, i have downloaded the
precompiled version that exists on jakartas homepage.
But do you think this is a version that is compiled for RPM or?
I could compile it , but im not that keen to spend another 4 hours to
compile this and end up with the same results.
Since im pretty new to this evry step takes loong time to conclude.

Regards
Peter A
- Original Message -
From: "John Towell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 3:02 PM
Subject: RE: Problems with gabled mod_jk


This one should be on an FAQ somewhere.  I experienced the same message.  It
resulted from using a mod_jk.so that was packed in an RPM.  The solution was
to get the source from the tomcat site and build a new mod_jk.so by
following the directions in the mod_jk howto that comes with tomcat
documents. Good luck!



-Original Message-
From: Peter Andersn
To: [EMAIL PROTECTED]
Sent: 2/23/01 8:03 AM
Subject: Problems with gabled mod_jk

Hi have installed and tested with both apache 1.3.17 and 1.3.14 and
1.3.12 same result.

I have compiled my apache to support DSO.
./configure --prefix=/usr/local/apache --enable-module=so
i have checked with httpd -l and seen that the dso support is their.

But when i try to execute the mod_jk.conf-auto that tomcat creates i get
an error on the LoadModule jk_module libexec/mod_jk.so
I have used the precompiled version form tomcats homepage.
The error is saying that this module is garbeld.
complete error messages API module structure 'jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
apache module DSO.
Any out there having suggestion what to do, im pretty new to linux so it
should not be to advanced and if you suggest any advance step it would
be extremly helpful to get a step by step instruction.

If i try on the same machine where i have apache installed with shipment
thru RPM and it is version 1.3.12 this is working but it also only have
core.c and mod_so.c compiled into the apache kernel. The other version
is downloads from Apache and it seems to be something im missing when
compiling or im not sure

Looking forward to see if somebody can help me.
Regards
Peter Andersen

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



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




Using ResourceBundle with JSP

2001-02-23 Thread Markus Keller mssc

Hi List

I have to write a web application that supports multiple languages. When I
write a servlet with the needed *.properties files in the classes directory
it works fine. But when i do something like % messages =
ResourceBundle.getBundle("language",currentLocale); % in a JSP page I
receive  a MissingResourceException when the properties files are in the
same directory as the jsp file. When I save the porperties files in the
TOMCAT_HOME\work\default\myapp directory, where tomcat saves the servlets
created from my JSP files, the files work. Now saving the properties files
in the work directory is a bad idea I think. How can I tell tomcat where to
search for the properties files if I use them in a JSP page? I will be glad
for every tipp.

Markus


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




FWD: RE: Newbiee - JSP Example ?

2001-02-23 Thread tomcat user

Thank you for the suggestion. I added this to my classpath, but still no
love. Here is my path and classpath:

C:\OpenSource\jakarta-tomcat-3.2.1\binpath
PATH=c:\java\jdk1.3\bin

C:\OpenSource\jakarta-tomcat-3.2.1\binecho %classpath%
;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;C:\IBM
Connectors\classes;C:\Testing\infobus;C:\Jav
a\jdk1.3\jre\lib\rt.jar;;.;c:\java\jdk1.3\lib\tools.jar;c:\opensource\jakarta-tomcat-3.2.1
\webapps\examples\jsp\test

I tried compiling the generated servlet code on my own, but I still get
these same errors. I think my configuration is OK, maybe it's something
wrong with the syntax in the JSP page? Any other suggestions??

--Original Message--
From: "Wayne E. Porter" [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Sent: February 22, 2001 9:51:11 PM GMT
Subject: RE: Newbiee - JSP Example ?


I solved a similar problem by adding JAVA_HOME/lib/tools.jar (where for me
JAVA_HOME = d:/jdk1.3) to the classpath in the system's environment
variables.

-Original Message-
From: tomcat user [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 2:36 PM
To: [EMAIL PROTECTED]
Subject: Newbiee - JSP Example ?


I'm using the following:

Tomcat 3.2.1 w/out Apache
JDK1.3
WinNT4.0

I'm a new user of Tomcat and I would like a little help in getting my simple
example working.

Here is my problem. I have a simple .jsp that is trying to get a value from
a getter of a java bean. I have all this code in the examples.war under
TOMCAT_HOME\webapps. I have my test.jsp located under
TOMCAT_HOME\webapps\examples\jsp\test. My Test.java/class is located under
TOMCAT_HOME\webapps\examples\WEB-INF\classes.   NOTE: right now, I'm just
trying to get my bean class loaded, before I attempt my getter.

Here is my url: http://localhost:8080/examples/jsp/test/test.jsp   after
running this, I get this output:

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fj
sp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:63:
Class jsp.test.Test not found.
Test happy = null;
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_
0002ftest_0002ftest_0002ejsptest_jsp_0.java:66:
Class jsp.test.Test not found.
happy= (Test)
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_
0002ftest_0002ftest_0002ejsptest_jsp_0.java:71:
Class jsp.test.Test not found.
happy = (Test) Beans.instantiate(this.getClass().getClassLoader(), "Test");

*
Test.jsp:
!-- A JSP to test --

jsp:useBean id="happy" scope="page" class="Test" /

html
head
titleTest Bean/title
/head

BThe result is: /B

/html

Test.java
public class Test {

private final String happy = "happy";

public String getHappy() {
return this.happy;
}
}


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

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


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
Title: RE: Newbiee - JSP Example ?





I solved a similar problem by adding JAVA_HOME/lib/tools.jar (where for me JAVA_HOME = d:/jdk1.3) to the classpath in the system's environment variables.

-Original Message-
From: tomcat user [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 2:36 PM
To: [EMAIL PROTECTED]
Subject: Newbiee - JSP Example ?



I'm using the following:


Tomcat 3.2.1 w/out Apache
JDK1.3
WinNT4.0


I'm a new user of Tomcat and I would like a little help in getting my simple
example working.


Here is my problem. I have a simple .jsp that is trying to get a value from
a getter of a java bean. I have all this code in the examples.war under
TOMCAT_HOME\webapps. I have my test.jsp located under
TOMCAT_HOME\webapps\examples\jsp\test. My Test.java/class is located under
TOMCAT_HOME\webapps\examples\WEB-INF\classes. NOTE: right now, I'm just
trying to get my bean class loaded, before I attempt my getter.


Here is my url: http://localhost:8080/examples/jsp/test/test.jsp after
running this, I get this output:


org.apache.jasper.JasperException: Unable to compile class for
JSPC:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:63:

Class jsp.test.Test not found.
Test happy = null;
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:66:

Class jsp.test.Test not found.
happy= (Test)
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:71:

Class jsp.test.Test not found.
happy = (Test) Beans.instantiate(this.getClass().getClassLoader(), Test);


*
Test.jsp:
!-- A JSP to test --



RE: Servlet problem

2001-02-23 Thread tomcat user

I'm sorry that I can't answer your question right now. I'm a newbie and I
can't get my own JSP to compile. Since you have made if further than me,
could you be so kind and take a look at the posting with the title,
"Newbiee, JSP Example ?"

--Original Message--
From: [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
Sent: February 23, 2001 11:14:19 AM GMT
Subject: Servlet problem


Hi!I have a problem with running a servlet.I use win98,I can execute JSP
page(also mine) and i can execute the servlet examples.I can't use my
servlet!How can i do?Where i have to put it?and how to visualize the
result?

THANKS A LOT!!!...also if you don't know how!



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


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

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




Re: RE: Newbiee - JSP Example ?

2001-02-23 Thread Peter Andersén



I do not understand your code.
I looked at the attachment that you had is this 
what you got in your jsp page or?
Is the test a class that you have built or 
?

!-- A JSP to test -- 
jsp:useBean id="happy" scope="page" class="Test" 
/ 
html head 
titleTest Bean/title /head 
BThe result is: /B 
/html 
Test.java public class Test { 

private final String happy = "happy"; 
public String getHappy() { return 
this.happy; } } 


  - Original Message - 
  From: 
  tomcat 
  user 
  To: [EMAIL PROTECTED] 
  Cc: [EMAIL PROTECTED] 
  Sent: Friday, February 23, 2001 3:11 
  PM
  Subject: FWD: RE: Newbiee - JSP Example 
  ?
  Thank you for the suggestion. I added this to my classpath, but 
  still nolove. Here is my path and 
  classpath:C:\OpenSource\jakarta-tomcat-3.2.1\binpathPATH=c:\java\jdk1.3\binC:\OpenSource\jakarta-tomcat-3.2.1\binecho 
  %classpath%;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;C:\IBMConnectors\classes;C:\Testing\infobus;C:\Java\jdk1.3\jre\lib\rt.jar;;.;c:\java\jdk1.3\lib\tools.jar;c:\opensource\jakarta-tomcat-3.2.1\webapps\examples\jsp\testI 
  tried compiling the generated servlet code on my own, but I still getthese 
  same errors. I think my configuration is OK, maybe it's somethingwrong 
  with the syntax in the JSP page? Any other suggestions??--Original 
  Message--From: "Wayne E. Porter" [EMAIL PROTECTED]To: 
  "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]Sent: February 22, 
  2001 9:51:11 PM GMTSubject: RE: Newbiee - JSP Example ?I 
  solved a similar problem by adding JAVA_HOME/lib/tools.jar (where for 
  meJAVA_HOME = d:/jdk1.3) to the classpath in the system's 
  environmentvariables.-Original Message-From: tomcat 
  user [mailto:[EMAIL PROTECTED]]Sent: Thursday, February 22, 2001 2:36 
  PMTo: [EMAIL PROTECTED]Subject: Newbiee - JSP Example 
  ?I'm using the following:Tomcat 3.2.1 w/out 
  ApacheJDK1.3WinNT4.0I'm a new user of Tomcat and I would like 
  a little help in getting my simpleexample working.Here is my 
  problem. I have a simple .jsp that is trying to get a value froma getter 
  of a java bean. I have all this code in the examples.war 
  underTOMCAT_HOME\webapps. I have my test.jsp located 
  underTOMCAT_HOME\webapps\examples\jsp\test. My Test.java/class is located 
  underTOMCAT_HOME\webapps\examples\WEB-INF\classes. NOTE: right 
  now, I'm justtrying to get my bean class loaded, before I attempt my 
  getter.Here is my url: 
  http://localhost:8080/examples/jsp/test/test.jsp afterrunning 
  this, I get this output:org.apache.jasper.JasperException: Unable to 
  compile class 
  forJSPC:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:63:Class 
  jsp.test.Test not found.Test happy = 
  null;^C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:66:Class 
  jsp.test.Test not found.happy= 
  (Test)^C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:71:Class 
  jsp.test.Test not found.happy = (Test) 
  Beans.instantiate(this.getClass().getClassLoader(), 
  "Test");*Test.jsp:!-- A JSP to 
  test --jsp:useBean id="happy" scope="page" class="Test" 
  /htmlheadtitleTest 
  Bean/title/headBThe result is: 
  /B/htmlTest.javapublic class Test 
  {private final String happy = "happy";public String getHappy() 
  {return 
  this.happy;}}__FREE 
  Personalized Email at Mail.comSign up at 
  http://www.mail.com/?sr=signup-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, email: 
  [EMAIL PROTECTED]__FREE 
  Personalized Email at Mail.comSign up at 
  http://www.mail.com/?sr=signup
  
  

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


hit counter/statistics for Tomcat

2001-02-23 Thread michael . brohl




Hello,

are there any tools for Tomcat and/or Apache available which can log session
activity
(number of sessions, how long the sessions are alive, error statistics etc.)?

Which tools can be recommended?

Regards

Michael Brohl



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




Re: Servlet problem

2001-02-23 Thread Peter Andersén

Hi
You can put your servlet under
D:\jakarta-tomcat-3.2.1\webapps\examples\WEB-INF\classes
run it with class name there is a servlet here already to start this do
following http://127.0.0.1:8080/examples/servlet/SnoopServlet


/Peter A

- Original Message -
From: "tomcat user" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 3:15 PM
Subject: RE: Servlet problem


 I'm sorry that I can't answer your question right now. I'm a newbie and I
 can't get my own JSP to compile. Since you have made if further than me,
 could you be so kind and take a look at the posting with the title,
 "Newbiee, JSP Example ?"

 --Original Message--
 From: [EMAIL PROTECTED]
 To: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
 Sent: February 23, 2001 11:14:19 AM GMT
 Subject: Servlet problem


 Hi!I have a problem with running a servlet.I use win98,I can execute JSP
 page(also mine) and i can execute the servlet examples.I can't use my
 servlet!How can i do?Where i have to put it?and how to visualize the
 result?

 THANKS A LOT!!!...also if you don't know how!



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


 __
 FREE Personalized Email at Mail.com
 Sign up at http://www.mail.com/?sr=signup

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



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




Re: RES: RES: apachectl start .... error message

2001-02-23 Thread lee fellows

Pedro,

  You will find the hosts file in the /etc directory.  You will need
root privilages to
modify it.

  The hosts file has the following format:
IP address[space or tab]hostname[space or tab]alias.  I,E.,
127.0.0.1   localhost
10.0.0.1my.server.net   my

  You will need to add the IP address, if it is not already in there,
and
the hostname as reported in the error message from apache.

  Hope this helps.


Pedro Henrique Ponchio wrote:
 
 Thks again, but where can I find the hosts files on my Red Hat 6.2
 system? I already edit the name of the host to atechapp in the linuxconf
 utility, but even editing the httpd.conf file to accept this name, the
 error message about host name still appear ...
 
 So, any other suggestion??
 
 Regards,
 
 Pedro
 
 -Mensagem original-
 De: lee fellows [mailto:[EMAIL PROTECTED]]
 Enviada em: Friday, February 23, 2001 9:34 AM
 Para: [EMAIL PROTECTED]
 Assunto: Re: RES: apachectl start  error message
 
 Pedro,
 
   Put the server name and ip address in your hosts file.
 
   Hope this helps.
 
 Pedro Henrique Ponchio wrote:
 
  Helps a lot, thk u! However, Im facing another problem: now, only my
  apache arent starting up, shows the follow error message on my
  mod_jserv.log:
 
 
 
  **
  [22/02/2001 11:23:19:124] (EMERGENCY) Error setting defaults:
  ApJServDefaultHost
   name "localhost" can't be resolved
 
 
  **
 
  I already edit the httpd.conf and the "ServerName" directive to
  recognize the name properly, but ... still could not start. I put the
 IP
  address into the servername directive of the httpd file, once I dont
  have a valid DNS name.
 
  Can anyone help me??
 
  -Mensagem original-
  De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Enviada em: Tuesday, February 20, 2001 4:41 PM
  Para: [EMAIL PROTECTED]
  Assunto: Re: apachectl start  error message
 
  Looks something like this
 
  --with-java-platform=1 or 2 (generally no need to specify this)
  --with-java=/path/to/binary/java
  --with-javac=/path/to/binary/javac
  --with-javadoc=/path/to/binary/javadoc
  --with-jar=/path/to/binary/jar
  --enable-EAPI
 
  (Note the enable --enable-EAPI )
 
  all from page
  http://java.apache.org/jserv/install/howto.unix_install.html
 
  Hope this helps
 
  Rory
 
  http://java.apache.org/jserv/install/howto.unix_install.html
  - Original Message -
  From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 20, 2001 2:18 PM
  Subject: RES: apachectl start  error message
 
   10x very much, I will try to find that documentation ...
  
  
  
   -Mensagem original-
   De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Enviada em: Tuesday, February 20, 2001 4:01 PM
   Para: [EMAIL PROTECTED]
   Assunto: Re: apachectl start  error message
  
  
   I ran into the same problem some time back. Just recompile your
   mod_jserv
   with the -EAPI (not -DEAPI) switch. Check the docs for exact
 switches
   and
   make this is one of them. I do however recommend mod_jk.so instead
 of
   mod_jserv (unless you are trying to do load balancing with session
   replication)
  
   Hope this helps,
  
   Rory
  
   - Original Message -
   From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, February 20, 2001 1:40 PM
   Subject: apachectl start  error message
  
  
Hi all, this error message appear when I try to startup Apache:
   
Starting httpd: [Tue Feb 20 14:37:58 2001] [warn] Loaded DSO
libexec/mod_jserv.s
o uses plain Apache 1.3 API, this module might crash under EAPI!
   (please
recompi
le it with -DEAPI)
[FAILED]
   
How can I recompile the mod_jserv.so in my system??
   
Thks!!!
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email:
 [EMAIL PROTECTED]
   
   
   
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 

fix for bug 535?

2001-02-23 Thread matthew denner

Dear all,

think i may have tracked down the problem with bug 535 in the tomcat bug
database.  the bug reports deadlock in connection handlers and specifically
reports that thread stack trace ends:

"Thread-15" prio=1 tid=0x816d920 nid=0x22e0 waiting for monitor entry 
[0xbadff000..0xbadffb28]
at java.util.Hashtable.get(Hashtable.java:319)
at
org.apache.tomcat.util.PrefixMapper.getLongestPrefixMatch(PrefixMapper.java:220)
at
org.apache.tomcat.request.SimpleMapper1.contextMap(SimpleMapper1.java:258)

i took a quick look at PrefixMapper.getLongestPrefixMatch() and i think the
problem is that the while loop:

   while (s.length() = 0) {
//if(debug8) context.log( "Prefix: " + s  );
container = myMap.prefixMappedServlets.get(s);

if (container == null) {
s=URLUtil.removeLast( s );
}  else {
if( myMap.mapCacheEnabled ) {
// XXX implement LRU or another replacement alghoritm
myMap.mapCache.put( path, container );
}
return container;
}
}

will never terminate if it doesn't find a match?  basically 
URLUtil.removeLast() returns an empty string if it can't find a '/'.  this
means an empty string is always = 0 and so the loop never ends.  so i 
suspect that it's just unlucky that the thread stack trace is always
reporting line 220 as where it's getting stuck (it's actually going through
the code ever-so fast!).

someone want to comment on whether this addresses the issue (or whether i'm
out of step and it has been fixed ... if so, update the bug!) in tomcat 3.2.1
as we're currently badly affected by this.

i also have a fix for some classloader issues but that's for another mail ...

Cheers,
Matt

-
Sessami is a trademark of Escape Velocity Technology Mobile Services Limited.
All information contained in this e-mail is confidential and for the use of
the addressee only.  If you receive this message in error please notify.

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




Fw: Problem.....About Aliasing

2001-02-23 Thread Raju Desai


Raju Desai
Mahindra British Telecom LTD,pune.
Email : [EMAIL PROTECTED]
Phone : 020-5424301(Ext:1408)


- Original Message -
From: Pier P. Fumagalli [EMAIL PROTECTED]
To: Raju Desai [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 6:17 PM
Subject: Re: Problem.About Aliasing


 Raju Desai [EMAIL PROTECTED] wrote:

  Hello,
  I am using Apache as my webserver and tomcat as my servlet context.
  I am facing the problem in configuring the aliasing for the servlet e.g
  Normall the servlets in tomcat_home/roots/classes runs with the
following URl
  in the borwser.
 
  http://localhost:8080/servlet/SnoopServlet
  if i want to run all my servlets with the following URl then what are
the
  changes that i ahve to make in the configuration files and where.
  http://localhost:8080/SnoopServlet( want to run my servlets with
this
  path)
 
 
  In case of javawebserver there is a setting for the invoker servlet and
we can
  set that as / = invoker and it starts working but i was not able to find
a
  similar setting here.
  Will u please guide me.I will be highly obliged if u can give me some
real
  piece of useful information.

 Write to the tomcat-user mailing list
 --
 --
--
 Pier P. Fumagalli
mailto:[EMAIL PROTECTED]



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




RES: RES: RES: apachectl start .... error message

2001-02-23 Thread Pedro Henrique Ponchio

Its works! I change the name in the host file and I have my apache and
Tomcat working!!!

Wow! I still have hope in the humanity!!  ;)

[]s

-Mensagem original-
De: lee fellows [mailto:[EMAIL PROTECTED]]
Enviada em: Friday, February 23, 2001 11:40 AM
Para: [EMAIL PROTECTED]
Assunto: Re: RES: RES: apachectl start  error message


Pedro,

  You will find the hosts file in the /etc directory.  You will need
root privilages to
modify it.

  The hosts file has the following format:
IP address[space or tab]hostname[space or tab]alias.  I,E.,
127.0.0.1   localhost
10.0.0.1my.server.net   my

  You will need to add the IP address, if it is not already in there,
and
the hostname as reported in the error message from apache.

  Hope this helps.


Pedro Henrique Ponchio wrote:
 
 Thks again, but where can I find the hosts files on my Red Hat 6.2
 system? I already edit the name of the host to atechapp in the
linuxconf
 utility, but even editing the httpd.conf file to accept this name, the
 error message about host name still appear ...
 
 So, any other suggestion??
 
 Regards,
 
 Pedro
 
 -Mensagem original-
 De: lee fellows [mailto:[EMAIL PROTECTED]]
 Enviada em: Friday, February 23, 2001 9:34 AM
 Para: [EMAIL PROTECTED]
 Assunto: Re: RES: apachectl start  error message
 
 Pedro,
 
   Put the server name and ip address in your hosts file.
 
   Hope this helps.
 
 Pedro Henrique Ponchio wrote:
 
  Helps a lot, thk u! However, Im facing another problem: now, only
my
  apache arent starting up, shows the follow error message on my
  mod_jserv.log:
 
 


  **
  [22/02/2001 11:23:19:124] (EMERGENCY) Error setting defaults:
  ApJServDefaultHost
   name "localhost" can't be resolved
 


  **
 
  I already edit the httpd.conf and the "ServerName" directive to
  recognize the name properly, but ... still could not start. I put
the
 IP
  address into the servername directive of the httpd file, once I
dont
  have a valid DNS name.
 
  Can anyone help me??
 
  -Mensagem original-
  De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Enviada em: Tuesday, February 20, 2001 4:41 PM
  Para: [EMAIL PROTECTED]
  Assunto: Re: apachectl start  error message
 
  Looks something like this
 
  --with-java-platform=1 or 2 (generally no need to specify this)
  --with-java=/path/to/binary/java
  --with-javac=/path/to/binary/javac
  --with-javadoc=/path/to/binary/javadoc
  --with-jar=/path/to/binary/jar
  --enable-EAPI
 
  (Note the enable --enable-EAPI )
 
  all from page
  http://java.apache.org/jserv/install/howto.unix_install.html
 
  Hope this helps
 
  Rory
 
  http://java.apache.org/jserv/install/howto.unix_install.html
  - Original Message -
  From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 20, 2001 2:18 PM
  Subject: RES: apachectl start  error message
 
   10x very much, I will try to find that documentation ...
  
  
  
   -Mensagem original-
   De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
   Enviada em: Tuesday, February 20, 2001 4:01 PM
   Para: [EMAIL PROTECTED]
   Assunto: Re: apachectl start  error message
  
  
   I ran into the same problem some time back. Just recompile your
   mod_jserv
   with the -EAPI (not -DEAPI) switch. Check the docs for exact
 switches
   and
   make this is one of them. I do however recommend mod_jk.so instead
 of
   mod_jserv (unless you are trying to do load balancing with session
   replication)
  
   Hope this helps,
  
   Rory
  
   - Original Message -
   From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, February 20, 2001 1:40 PM
   Subject: apachectl start  error message
  
  
Hi all, this error message appear when I try to startup Apache:
   
Starting httpd: [Tue Feb 20 14:37:58 2001] [warn] Loaded DSO
libexec/mod_jserv.s
o uses plain Apache 1.3 API, this module might crash under EAPI!
   (please
recompi
le it with -DEAPI)
[FAILED]
   
How can I recompile the mod_jserv.so in my system??
   
Thks!!!
   
   
   
 
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, email:
 [EMAIL PROTECTED]
   
   
   
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email:
[EMAIL PROTECTED]
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email:
[EMAIL PROTECTED]
  
  
  
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 

RE: Many JSPs not working!

2001-02-23 Thread tomcat user

Try adding this:  set PATH=c:\jdk1.3\bin
This should give it access to the javac tool which it needs to compile the
servlet java code.

--Original Message--
From: "\)ason" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: February 23, 2001 4:20:30 AM GMT
Subject: Many JSPs not working!


Nearly all of my JSP files (including the examples that came with tomcat!)
are not working --

each time I request them it gives me a 500 error that reads:

Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
...
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
...
When I start tomcat, it does include   c:\jdk1.3\lib\tools.jar   already, so
I'm clueless as to what is wrong.
If anyone has had the same problem, please let me know.
(Also let me know if there are known problems with tomcat and win98, which
is what i'm running on).


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

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




Problem with welcome-file

2001-02-23 Thread Thierry Leveque



Hi

I have set a page 
context "/tornado" in my server.xml file.
And when I call a 
Url like 
www.domain.com/tornado/index.jsp

It 
works.

But when I 
try
www.domain.com/tornado

It doesn't. I got a file not found 
error.

The console say that it try to find //tornado/index.jsp 
!!! "//"??

 2001-02-23 10:14:46 - Ctx( ): 
404 R( + //tornado/index.jsp + null) JSP file not 
found

If I remove the index.jsp file from the directory, 
Tomcat send back the file list of the /tornado directory as it 
should.

I try to change my web.xml file to use another welcome 
file (like index2.jsp) and it did the same thing:
 2001-02-23 10:14:46 - Ctx( ): 
404 R( + //tornado/index2.jsp + null) JSP file not 
found

I use Tomcat 3.2 stand alone on a Sun-solaris 
7server.

Can someone help me?
Thierry Leveque Wysdom Inc. cell: 514-575-6466 
tel: 514-395-6060 poste 138 fax: 514-395-6080 



RE: fix for bug 535?

2001-02-23 Thread Randy Layman


This is a known bug (as you found) and the fix has reportedly been
made in the nightly builds and will be in the upcoming Tomcat 3.2.2. and 3.3
releases.

There is a work around for this - if you leave the ROOT context then
everything should work.

Randy

-Original Message-
From: matthew denner [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 9:35 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: fix for bug 535?


Dear all,

think i may have tracked down the problem with bug 535 in the tomcat bug
database.  the bug reports deadlock in connection handlers and specifically
reports that thread stack trace ends:

"Thread-15" prio=1 tid=0x816d920 nid=0x22e0 waiting for monitor entry 
[0xbadff000..0xbadffb28]
at java.util.Hashtable.get(Hashtable.java:319)
at
org.apache.tomcat.util.PrefixMapper.getLongestPrefixMatch(PrefixMapper.java:
220)
at
org.apache.tomcat.request.SimpleMapper1.contextMap(SimpleMapper1.java:258)

i took a quick look at PrefixMapper.getLongestPrefixMatch() and i think the
problem is that the while loop:

   while (s.length() = 0) {
//if(debug8) context.log( "Prefix: " + s  );
container = myMap.prefixMappedServlets.get(s);

if (container == null) {
s=URLUtil.removeLast( s );
}  else {
if( myMap.mapCacheEnabled ) {
// XXX implement LRU or another replacement alghoritm
myMap.mapCache.put( path, container );
}
return container;
}
}

will never terminate if it doesn't find a match?  basically 
URLUtil.removeLast() returns an empty string if it can't find a '/'.  this
means an empty string is always = 0 and so the loop never ends.  so i 
suspect that it's just unlucky that the thread stack trace is always
reporting line 220 as where it's getting stuck (it's actually going through
the code ever-so fast!).

someone want to comment on whether this addresses the issue (or whether i'm
out of step and it has been fixed ... if so, update the bug!) in tomcat
3.2.1
as we're currently badly affected by this.

i also have a fix for some classloader issues but that's for another mail
...

Cheers,
Matt


-
Sessami is a trademark of Escape Velocity Technology Mobile Services
Limited.
All information contained in this e-mail is confidential and for the use of
the addressee only.  If you receive this message in error please notify.

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

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




RE: servlet not quite working - Fixed

2001-02-23 Thread Kelley, Jeff

The problem was the  I was using in the command args.  The  tried to run
the process in the background, which didn't work.  Removing the  allowed
the xterm to popup on the screen.


 -Original Message-
 From: Kelley, Jeff 
 Sent: Tuesday, February 20, 2001 4:57 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  servlet not quite working
 
 I am trying to run a servlet that will pop an xterm up on the remote
 computer.  I do not get an error when compiling or calling the servlet,
 but I don't get the xterm to pop up.  
 
 Here is the java file I am using:
 
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.util.Enumeration;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 
 public class TestServlet extends HttpServlet {
 
 public void doGet(HttpServletRequest request, HttpServletResponse
 response)
 throws ServletException, IOException
 {
 PrintWriter out = response.getWriter();
 response.setContentType("text/plain");
 
 // Create command sring to run on server. request.getRemoteAddr()
 will
 // get you the ip address of the remote machine. The :0 sets the
 display
  number
 //
 String[] callAndArgs = { "/usr/bin/X11/xterm",
 "-display " + request.getRemoteAddr() + ":0 " };
 
 // Some output to what we are doing
 out.println("Test Servlet");
 out.println("Remote Addr: " + request.getRemoteAddr());
 out.println("Remote Command: " + callAndArgs[0]);
 out.println("Remote Command Args: " + callAndArgs[1]);
 
 out.println("If this works you should see an xterm");
 out.println("Is you xserver running?( exceed maybe)");
 
 // Get a our runtime object, then execute a process using our
 command st
 ring
 Runtime rt = Runtime.getRuntime();
 Process p = rt.exec(callAndArgs);
 
 }
 }
 
 and here is the output I get:
 
 Test Servlet Remote Addr: "correct ip address"
 Remote Command: /usr/bin/X11/xterm 
 Remote Command Args: -display "correct ip address":0  
 If this works you should see an xterm 
 Is you xserver running?( exceed maybe) 
 
 Any ideas as to why I never get the actual xterm to popup on my computer?
 
 

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




RE: Broken pipe error

2001-02-23 Thread Rob Tanner

I've never specifically worked with Oracle, but one thing I do know 
generally is that most DBMS's of my aquaintance don't like open 
connections that remain inactive for a long period of time (and 
overnight qualifies as a long period of time).  One database I use a 
lot is MySQL.  If the connection remains inactive for too long, MySQL 
will close that connection but remember that it had closed it due to 
inactivity.  When I try to run a query again using that connection that 
on my end I think is open, the database returns an error because the 
connection is closed, but it reopens it.  Thus, the second time 
everything works just fine.

I would think that you should be able to trap that kind of an error 
specifically in an SQLException (says he who has never tried it).  The 
error "connection reset by peer" is certainly a clue, but also not 
definitive since other things can cause that kind of an error too.  Out 
of curiousity, is that error being generated as an SQLException or an 
IOException?

Hope that helps (and also hope I haven't just rehashed something you've 
already thoroughly examined).

-- Rob


--On Friday, February 23, 2001 07:43:21 AM -0500 Randy Layman 
[EMAIL PROTECTED] wrote:


This seems really strange.  What it sounds like to me it the JDBC
 connects one and gets a "Connection reset by peer" error.  Then the
 second (anre presumably more) connections are successful.  If this is
 the case I would check that your drivers and database match up (in
 other words, not using an old dirver with a new database or vice
 versa - this may not be applicable to the Oracle thin drivers, I
 don't know) and also check that you are using the correct protocol.
 It really shounds like a problem for you, your DBA, and Oracle,
 though.

Randy


 -Original Message-
 From: Xavier Escandell [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 6:34 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Broken pipe error


 Thanks for the anwser, but:
 - The servlet is not garbage collected. When I check it in the
 mornig, after all
 night of inactivity, the servlet is active.
 - Yesterday, I included a connection pooling class. Thus, the servlet
 re-starts
 the connection.But I get a "connection reset by peer" error, when
 trying first
 access. The second access works fine.

 Any idea?

 Regards,
 Xavier

 Randy Layman wrote:

 The answer is no - Tomcat knows nothing about your socket
 connections and therefore can't close them.  A couple of things come
 to
 mind
 - first the Oracle drivers might be releasing the connection, check
 their documentation about this.  Also, what is the behavior if your
 servlet is garbage collected?  Could it be that your servlet is
 being garbage
 collected
 and therefore you are somehow half-way closing the connection?

 Randy

 -Original Message-
 From: Xavier Escandell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 22, 2001 8:01 AM
 To: [EMAIL PROTECTED]
 Subject: Broken pipe error

 Hi:
 I get "broken pipe error" when trying to re-execute a servlet after
 several hours of innactivity. Then I must re-start Tomcat to get all
 running again.
 The servlet is connected to a database using oracle thin driver,
 these connection is still active.
 So my question is:
 It is possible that the socket between Tomcat and database is being
 closed by Tomcat?
 If the answer is yes, how can I configure these timeout.

 Regards.
 Xavier Escandell.

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

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




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

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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]


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




Re: RES: RES: apachectl start .... error message

2001-02-23 Thread Rob Tanner

Missed the beginning of this thread so I don't know the context of the discussion.  By 
hosts file, do you mean /etc/hosts?  In that case it's in /etc.

-- Rob


--On Friday, February 23, 2001 10:49:10 AM -0300 Pedro Henrique Ponchio 
[EMAIL PROTECTED] wrote:

 Thks again, but where can I find the hosts files on my Red Hat 6.2
 system? I already edit the name of the host to atechapp in the
 linuxconf utility, but even editing the httpd.conf file to accept
 this name, the error message about host name still appear ...

 So, any other suggestion??

 Regards,

 Pedro

 -Mensagem original-
 De: lee fellows [mailto:[EMAIL PROTECTED]]
 Enviada em: Friday, February 23, 2001 9:34 AM
 Para: [EMAIL PROTECTED]
 Assunto: Re: RES: apachectl start  error message


 Pedro,

   Put the server name and ip address in your hosts file.

   Hope this helps.


 Pedro Henrique Ponchio wrote:

 Helps a lot, thk u! However, Im facing another problem: now, only my
 apache arent starting up, shows the follow error message on my
 mod_jserv.log:


 *
 ***
 **
 [22/02/2001 11:23:19:124] (EMERGENCY) Error setting defaults:
 ApJServDefaultHost
  name "localhost" can't be resolved

 *
 ***
 **

 I already edit the httpd.conf and the "ServerName" directive to
 recognize the name properly, but ... still could not start. I put the
 IP
 address into the servername directive of the httpd file, once I dont
 have a valid DNS name.

 Can anyone help me??

 -Mensagem original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Enviada em: Tuesday, February 20, 2001 4:41 PM
 Para: [EMAIL PROTECTED]
 Assunto: Re: apachectl start  error message

 Looks something like this

 --with-java-platform=1 or 2 (generally no need to specify this)
 --with-java=/path/to/binary/java
 --with-javac=/path/to/binary/javac
 --with-javadoc=/path/to/binary/javadoc
 --with-jar=/path/to/binary/jar
 --enable-EAPI

 (Note the enable --enable-EAPI )

 all from page
 http://java.apache.org/jserv/install/howto.unix_install.html

 Hope this helps

 Rory

 http://java.apache.org/jserv/install/howto.unix_install.html
 - Original Message -
 From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 20, 2001 2:18 PM
 Subject: RES: apachectl start  error message

  10x very much, I will try to find that documentation ...
 
 
 
  -Mensagem original-
  De: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] Enviada em: Tuesday, February
  20, 2001 4:01 PM
  Para: [EMAIL PROTECTED]
  Assunto: Re: apachectl start  error message
 
 
  I ran into the same problem some time back. Just recompile your
  mod_jserv
  with the -EAPI (not -DEAPI) switch. Check the docs for exact
 switches
  and
  make this is one of them. I do however recommend mod_jk.so instead
 of
  mod_jserv (unless you are trying to do load balancing with session
  replication)
 
  Hope this helps,
 
  Rory
 
  - Original Message -
  From: "Pedro Henrique Ponchio" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 20, 2001 1:40 PM
  Subject: apachectl start  error message
 
 
   Hi all, this error message appear when I try to startup Apache:
  
   Starting httpd: [Tue Feb 20 14:37:58 2001] [warn] Loaded DSO
   libexec/mod_jserv.s
   o uses plain Apache 1.3 API, this module might crash under EAPI!
  (please
   recompi
   le it with -DEAPI)
   [FAILED]
  
   How can I recompile the mod_jserv.so in my system??
  
   Thks!!!
  
  
  
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED] For additional
   commands, email:
 [EMAIL PROTECTED]
  
  
  
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 

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

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

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


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





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,

RE: Shutdown problem

2001-02-23 Thread Jurrius, Mark

I had the same problem using HP-Unix and Tomcat.  The problem had to do with
two things trying to share the same port number.  We fixed the problem by
changing the port number in the server.xml:

Connector className="org.apache.tomcat.service.SimpleTcpConnector" --
 Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/ --
 Parameter name="port" value="8080"/ --
 /Connector --

I hope this helps.

Mark


-Original Message-
From:   Sambit Mishra [mailto:[EMAIL PROTECTED]]
Sent:   Friday, February 23, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject:Shutdown problem

Hi Folks!!
I am using Tomcat 3.2 on Solaris.

My problem is I can not shutdown the server and bring it up with the
tomcat.sh stop/start command. I get the exception "Fatal:
java.net.BindException: Address already in use...". I have to kill a
process which reads "../green_thread/.." as a workaround.

Any suggestions?

Thanks.
-Sambit


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

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




RE: Servlet Questions - Newbie - Please help !!!

2001-02-23 Thread Michael Wentzel

 What is a session?  There is a Session Class in J2SDKEE. Is 
 that the same
 as sessions in servlet ? 
 
 
 As I understand, a session is just a vanilla object that lies around
 for awhile. When a request with the session object's ID arrives, the
 servlet finds the corresponding session object and proceeds from
 there.  But who does the management of the session objects?  
 Who creates
 them, etc?

While Tomcat is a servlet engine and webserver this is not really the
place for these questions.  I would have to recommend getting a GOOD
servlets book(for example, the Oreilly one, I believe the just released
a new edition not long ago).  While this is an arena for open discussion
we should all also do our own share of personal research on the subject.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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




Re: Fw: Problem.....About Aliasing

2001-02-23 Thread Jiri Trnka

  You need change configuration of Apache. File mod_jk.conf-auto should contain
  following line:

  JkMount /servlet/* ajp12

   You need replace this with:

   JkMount /* ajp12

Also in file web.xml shloud be:

servlet-mapping
  servlet-nameSnoopServlet/servlet-name
  url-pattern/SnoopServlet/url-pattern
/servlet-mapping  

   The problem is: with this configuration everything will be running through
   Tomcat.
  
   Jiri Trnka

 Raju Desai
 Mahindra British Telecom LTD,pune.
 Email : [EMAIL PROTECTED]
 Phone : 020-5424301(Ext:1408)
 
 
 - Original Message -
 From: Pier P. Fumagalli [EMAIL PROTECTED]
 To: Raju Desai [EMAIL PROTECTED]
 Sent: Friday, February 23, 2001 6:17 PM
 Subject: Re: Problem.About Aliasing
 
 
  Raju Desai [EMAIL PROTECTED] wrote:
 
   Hello,
   I am using Apache as my webserver and tomcat as my servlet context.
   I am facing the problem in configuring the aliasing for the servlet e.g
   Normall the servlets in tomcat_home/roots/classes runs with the
 following URl
   in the borwser.
  
   http://localhost:8080/servlet/SnoopServlet
   if i want to run all my servlets with the following URl then what are
 the
   changes that i ahve to make in the configuration files and where.
   http://localhost:8080/SnoopServlet( want to run my servlets with
 this
   path)
  
  
   In case of javawebserver there is a setting for the invoker servlet and
 we can
   set that as / = invoker and it starts working but i was not able to find
 a
   similar setting here.
   Will u please guide me.I will be highly obliged if u can give me some
 real
   piece of useful information.
 
  Write to the tomcat-user mailing list
  --
  --
 --
  Pier P. Fumagalli
 mailto:[EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: Broken pipe error

2001-02-23 Thread Shahed Ali

This error drove my nuts.
I was using Informix.

Finally we used a connection pool called DbBroker from www.javaexchange.com.

This pool constantly runs a thread that checks connection status and
resets or recreates them if the connection is bad.

After using this pool, all of our broken pipe erros are gone.
And since there is a repair thread running, we never get a bad connection in
our jsp pages
unless the db server is stopped.

The pool checks connection status before dispensing them.

Regards
Shahed.



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




RE: ContextManager: Error reading request, ignored, repeats

2001-02-23 Thread Todd Carmichael

This problem DOES not occur with Sun JDK 1.3 with Hotspot

-Original Message-
From: Todd Carmichael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:02 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: ContextManager: Error reading request, ignored, repeats


Has anyone dug into this problem?  I am seeing the same problem Win2k, 4cpu
box using IBM JDK 1.3.  

-Original Message-
From: Carles Pi-Sunyer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 5:58 PM
To: '[EMAIL PROTECTED]'
Subject: ContextManager: Error reading request, ignored, repeats


I installed tomcat on a new machine and I'm getting an error I haven't seem
before. My enviroment is:
JDK1.3 (but jdk1.2.2 also produces the error)
Window NT 4.0
tomcat 3.2.1

The error starts when tomcat starts and repeats every 2-4 seconds as tomcat
runs. It dosn't appear to be keeping tomcat from working. Does anyone know
what causes this and how I can fix it?

2001-02-15 05:43:56 - ContextManager: Error reading request, ignored -
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1099)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
0)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)

Thanks,
Carles

Carles Pi-Sunyer
Stario, Inc.
http://www.stario.com
[EMAIL PROTECTED]
408 844-8333 ex:326
 

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

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

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




bugs

2001-02-23 Thread Carlos

can anybody says me which is the tomcat bugs url?
thanks


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




how to Unload classes

2001-02-23 Thread uthay

Anybody knows how to unload classes given a tomcat context?




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


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




Tomcat IIS How to

2001-02-23 Thread sohail . rana

Hi 
I am having problems running PWS with Tomcat. If you could help me I would
be grateful.

What Am I running
NT4 (SP6) workstation
Tomcat 3.2.1
PWS 4

I followed the instruction but don't understand one of them 


 (I use the name jakarta), its executable must be our
c:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll. For PWS, you'll
 need to use regedit and add/edit the "Filter DLLs" key under
 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters.
This key contains a "," separated list of dlls ( full
 paths ) - you need to insert the full path to isapi_redirect.dll. 


OK, for PWS I need to add Filter DLLs as key and .isapi_redirect.dll as
a value (I guess), but my question is what is the name of the string. I am
not sure, so created the Key (Filter DLLs) under Parameters and add the
value to the default key.

All the other settings are OK. But I can not access the .../examples, and
always get 404. Also notice the /tomcat/logs/ dir did not produce isapi.log
file.

Can you see what am I doing wrong? Please let me know.

Kind Regards
Sohail

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




RE: tomcat, apache, and mod_jk

2001-02-23 Thread Adam Fowler

Hi,

I think they're just .so files so the default config files are portable. You
can tell M$ Developer studio to call the files whatever you like really. The
default apache ones are always .so's though. Probably just a wierd exception
to the rule!

Glad to hear it's working.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: Steve Buroff [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Buroff, Steven
Subject: RE: tomcat, apache, and mod_jk


Thanks much, that worked fine.
The reason I thought I needed a .so
(even though I realize that's a Unix "shared object"
and windows use dll's (dynamic linked objects) is
that all of the files in Apaches modules directory
were .so. I turned a couple on (uncommented the
LoadModules's) just to see and apache started with
no problems. Do you happen to understand that?
Everything is working now. I'm just asking this for
my own edification. Thanks very much for your help.

Steve

-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat, apache, and mod_jk


Hi,

Nah, you don't need the .so, just mod_jk.dll.

You can get it from:-
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38
6/mod_jk.dll

Read the documentation at:-
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

And where it mentions mod_jk.so just replace with mod_jk.dll and it'll work
fine. *cringe*

Hope that helps+works. The documentation is a bit misleading on the subject
of win32 platforms.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"


-Original Message-
From: Steve Buroff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 1:11 PM
To: tomcatUser
Cc: Buroff, Steven
Subject: tomcat, apache, and mod_jk


I'm running Apache 1.3.17 and tomcat 3.2.1 on NT 4.0
I'm trying to use mod_jk. Apparently I need a mod_jk.so
even though this is NT. At least, all the files in apache's
modules directory are xxx.so. Does anyone know where
I can get the correct mod_jk.so for this combination of
Apache and tomcat? I need the binary, I'm not set up to
build it. Thanks much.

Steve Buroff


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


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



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




RE: need help,please, second time to post it.

2001-02-23 Thread Adam Fowler

Hi,

Did you change the IP address in tomcat.properties or workers.properties?

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: need help,please, second time to post it.


hi, there,
when I start tomcat with apache, I got error below:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 145
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
= 145
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.

how come to this?
it happened after I changed ip address of my solaris.

rgds
sun


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



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




RE: ContextManager: Error reading request, ignored, repeats

2001-02-23 Thread Todd Carmichael

Let me clarify and expound, 
with Sun JDK 1.3 java -server I receive the same error as IBM JDK 1.3
with java -hotspot, I do not get this error but die a horrible death after
an hour:

#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F57494E13120E43505002D4
#

abnormal program termination

-Original Message-
From: Todd Carmichael [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 8:43 AM
To: '[EMAIL PROTECTED]'
Subject: RE: ContextManager: Error reading request, ignored, repeats


This problem DOES not occur with Sun JDK 1.3 with Hotspot

-Original Message-
From: Todd Carmichael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:02 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: ContextManager: Error reading request, ignored, repeats


Has anyone dug into this problem?  I am seeing the same problem Win2k, 4cpu
box using IBM JDK 1.3.  

-Original Message-
From: Carles Pi-Sunyer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 5:58 PM
To: '[EMAIL PROTECTED]'
Subject: ContextManager: Error reading request, ignored, repeats


I installed tomcat on a new machine and I'm getting an error I haven't seem
before. My enviroment is:
JDK1.3 (but jdk1.2.2 also produces the error)
Window NT 4.0
tomcat 3.2.1

The error starts when tomcat starts and repeats every 2-4 seconds as tomcat
runs. It dosn't appear to be keeping tomcat from working. Does anyone know
what causes this and how I can fix it?

2001-02-15 05:43:56 - ContextManager: Error reading request, ignored -
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1099)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
0)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)

Thanks,
Carles

Carles Pi-Sunyer
Stario, Inc.
http://www.stario.com
[EMAIL PROTECTED]
408 844-8333 ex:326
 

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

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

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

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




RE: Problems with gabled mod_jk

2001-02-23 Thread Adam Fowler

Hi,

It's EEAASSYY...kind of. *memories of 5 days of
reading/e-mailing*

You need to recompile it else it'll never work! Have a look at my exhaustive
howto for mod_jk at http://willow.cc.edu/docs/adminguide . You can find the
source from there too.

A few of us are working on getting RPM's made for Redhat(done)
Mandrake(gimme time!) and SUSE(anyone?) ao it'll be really easy soon.

Redhat RPMs can be found at
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/

Hope this works.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: Peter Andersn [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 8:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Problems with gabled mod_jk


Thanks
But im  not using the mod_jk that ships with rpm, i have downloaded the
precompiled version that exists on jakartas homepage.
But do you think this is a version that is compiled for RPM or?
I could compile it , but im not that keen to spend another 4 hours to
compile this and end up with the same results.
Since im pretty new to this evry step takes loong time to conclude.

Regards
Peter A
- Original Message -
From: "John Towell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 3:02 PM
Subject: RE: Problems with gabled mod_jk


This one should be on an FAQ somewhere.  I experienced the same message.  It
resulted from using a mod_jk.so that was packed in an RPM.  The solution was
to get the source from the tomcat site and build a new mod_jk.so by
following the directions in the mod_jk howto that comes with tomcat
documents. Good luck!



-Original Message-
From: Peter Andersn
To: [EMAIL PROTECTED]
Sent: 2/23/01 8:03 AM
Subject: Problems with gabled mod_jk

Hi have installed and tested with both apache 1.3.17 and 1.3.14 and
1.3.12 same result.

I have compiled my apache to support DSO.
./configure --prefix=/usr/local/apache --enable-module=so
i have checked with httpd -l and seen that the dso support is their.

But when i try to execute the mod_jk.conf-auto that tomcat creates i get
an error on the LoadModule jk_module libexec/mod_jk.so
I have used the precompiled version form tomcats homepage.
The error is saying that this module is garbeld.
complete error messages API module structure 'jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
apache module DSO.
Any out there having suggestion what to do, im pretty new to linux so it
should not be to advanced and if you suggest any advance step it would
be extremly helpful to get a step by step instruction.

If i try on the same machine where i have apache installed with shipment
thru RPM and it is version 1.3.12 this is working but it also only have
core.c and mod_so.c compiled into the apache kernel. The other version
is downloads from Apache and it seems to be something im missing when
compiling or im not sure

Looking forward to see if somebody can help me.
Regards
Peter Andersen

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



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



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




RE: tomcat, apache, and mod_jk

2001-02-23 Thread Steve Buroff

Thanks very much.

Steve

-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 12:24 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat, apache, and mod_jk


Hi,

I think they're just .so files so the default config files are portable. You
can tell M$ Developer studio to call the files whatever you like really. The
default apache ones are always .so's though. Probably just a wierd exception
to the rule!

Glad to hear it's working.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: Steve Buroff [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:27 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Buroff, Steven
Subject: RE: tomcat, apache, and mod_jk


Thanks much, that worked fine.
The reason I thought I needed a .so
(even though I realize that's a Unix "shared object"
and windows use dll's (dynamic linked objects) is
that all of the files in Apaches modules directory
were .so. I turned a couple on (uncommented the
LoadModules's) just to see and apache started with
no problems. Do you happen to understand that?
Everything is working now. I'm just asking this for
my own edification. Thanks very much for your help.

Steve

-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat, apache, and mod_jk


Hi,

Nah, you don't need the .so, just mod_jk.dll.

You can get it from:-
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38
6/mod_jk.dll

Read the documentation at:-
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

And where it mentions mod_jk.so just replace with mod_jk.dll and it'll work
fine. *cringe*

Hope that helps+works. The documentation is a bit misleading on the subject
of win32 platforms.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"


-Original Message-
From: Steve Buroff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 1:11 PM
To: tomcatUser
Cc: Buroff, Steven
Subject: tomcat, apache, and mod_jk


I'm running Apache 1.3.17 and tomcat 3.2.1 on NT 4.0
I'm trying to use mod_jk. Apparently I need a mod_jk.so
even though this is NT. At least, all the files in apache's
modules directory are xxx.so. Does anyone know where
I can get the correct mod_jk.so for this combination of
Apache and tomcat? I need the binary, I'm not set up to
build it. Thanks much.

Steve Buroff


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


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



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


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




Re: problem upgrading to tomcat4.0 from tomcat3.2

2001-02-23 Thread eddie tsai

hi craig,

thanks for the suggestion. here is the result of my finding. i have
checked that i do not have a servlet.jar or jsdk.jar file in my
%JAVA_HOME/jre/lib/ext directory.

1. to be sure, i have reinstalled tomcat4.0 02/22/2001 nightly build on a
new directory. created a RS directory (and its subdirectories) under
webapps directory. compiled the following test servlet and put the
bytecode file into the classes directory. no script was
modified. everything is working for this case. here is the servlet code
and web.xml for my RS context.

TestServlet.java:

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

public class TestServlet extends GenericServlet {

public void service(
ServletRequest request,
ServletResponse response) throws IOException,
ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("html");
out.println("body");
out.println("head");
out.println("titleHello World!/title");
out.println("/head");
out.println("body");
out.println("h1Hello World!/h1");
out.println("/body");
out.println("/html");
}
}

web.xml:
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"

web-app

servlet
servlet-name
Test
/servlet-name
servlet-class
TestServlet
/servlet-class
/servlet

/web-app

2. since i want my servlets to be in a package, i put following the
package
statement in the code. 

package com.nn.rn.rs;

compiled it and put the bytecode in com/nn/rn/rs directory under
the classes directory. changed the servlet-class to
com.nn.rn.rs.TestServlet in the web.xml file. restarted tomcat and
everything is still fine.


3. since i want my servlets to reside in c:\projects\com\..., i put the
bytecode file there. i modified catalina.bat to include c:\projects in
the class path to look for my servlet. restarted tomcat and i got the
following error. when i tried to fix this error by including the
servlet.jar in my class path, i got the "not a servlet" error described
in the original note. 

where did i go wrong? thanks for your help!


Exception Report:
javax.servlet.ServletException: Error allocating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:557)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:513)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:325)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:262)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:386)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2087)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at

Áß±¹/½Å±Ô µµ¸ÞÀÎ ¾È³»

2001-02-23 Thread ilovedomain
Title: 





  
  

  
  


  

  


  
  



  

  


  
  
¾È³çÇϼ¼¿ä. ¾ÆÀÌ·¯ºêµµ¸ÞÀÎ ÀÔ´Ï´Ù !

ÇöÀç ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼­´Â Áß±¹ 
µµ¸ÞÀÎ(com.cn)µî·Ï°ú ½Å±Ô ±¹Á¦ 
µµ¸ÞÀÎ(.biz/.info/.pro/.name) µî·Ï ¿¹¾à ¼­ºñ½º¸¦ Á¦°øÇÏ°í 
ÀÖ½À´Ï´Ù.

  
  
  
  

  
  -
  CN[Áß±¹]µµ¸ÞÀÎÀ̶õ? 
  

  
  
  
  

  
  
Çѱ¹À» ´ëÇ¥ÇÏ´Â ±¹°¡ µµ¸ÞÀÎÀº co.kr À̸ç Áß±¹À» ´ëÇ¥ÇÏ´Â ±¹°¡ µµ¸ÞÀÎÀº 
  com.cn ÀÔ´Ï´Ù. CNÀº CHINAÀÇ ¿µ¹® 
À̴ϼÈÀÔ´Ï´Ù.

  
  
  
  

  
  -
  CN[Áß±¹]µµ¸ÞÀÎÀÇ 
  Çʿ伺

  
  
  
  

  
  

  1. µµ¸ÞÀÎ 
  µî·ÏÀº ÀÎÅÍ³Ý ºñÁî´Ï½ºÀÇ Ã¹ ½ÃÀÛÀÔ´Ï´Ù. 'ÁÁÀº µµ¸ÞÀÎÀÇ È®º¸´Â ÀÎÅÍ³Ý ºñÁî´Ï½ºÀÇ Å« ¹Øõ'À̶ó´Â 
  ¸»ÀÌ ÀÖµíÀÌ µµ¸ÞÀÎ È®º¸´Â ÀÎÅÍ³Ý »ç¾÷ÀÇ Ãʱ⿡ À־ Å« ºñÁßÀ» Â÷ÁöÇÕ´Ï´Ù. µû¶ó¼­ Áß±¹ ÁøÃâÀ» ¿°µÎ¿¡ µÐ ±â¾÷ ¶Ç´Â °³ÀÎÀ̶ó¸é ÇʼöÀûÀ¸·Î ÇØ´ç µµ¸ÞÀÎÀ» È®º¸ÇÏ¿©¾ß 
  ÇÕ´Ï´Ù. ÁÁÀº µµ¸ÞÀÎÀ» ¹Ì¸® È®º¸Çϰųª, ÃßÈÄ¿¡ »ý±æ ¼ö ÀÖ´Â ¹®Á¦ÀÇ ¼ÒÁö¸¦ »çÀü¿¡ ¹æÁöÇÏ¿©¾ß 
  ÇÕ´Ï´Ù. 2. 
  Áß±¹ ½ÃÀåÀº 'ÇöÀç ³²¾Æ ÀÖ´Â À¯ÀÏÇÑ °Å´ë ½ÃÀå'À̶ó ºÒ¸³´Ï´Ù. Áß±¹ÀÇ ÀÎÅÍ³Ý Àα¸°¡ Áö³­ÇØ ¸»¿¡´Â 
  2õ250¸¸¸íÀ¸·Î ±ÞÁõÇß´Ù°í Çϸç 2004³â²²´Â 1¾ï2õ¸¸¸í¿¡ 
  µµ´ÞÇÒ °ÍÀ̶ó ÇÕ´Ï´Ù.
  
  * ±Í»çÀÇ Áß±¹µµ¸ÞÀÎÀ» ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼­ Áö±Ý 
  È®º¸ÇϽʽÿä!Áß±¹¿¡¼­ÀÇ 
  ÀÎÅÍ³Ý ÆÄ¿ö´Â COM.CN ÀÔ´Ï´Ù. 
  


  
-
  Áß±¹ 
  µµ¸ÞÀεî·ÏÇϱâ

  
  



  
  -
  ½Å±Ô ±¹Á¦ µµ¸ÞÀÎ µî·Ï 
¿¹¾à½Åû ´ë»ó ³×ÀÓ

  
  
  
  

  
  
.biz/.info/.pro/.name 


  
  
  
  

  
  -
  ½Å±Ô µµ¸ÞÀÎ µî·Ï °³½ÃÀÏ 
  

  
  
  
  

  
  
2001³â »ó¹Ý±â * 
  ±Í»çÀÇ ½Å±Ô ±¹Á¦ µµ¸ÞÀÎÀ» ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼­ Áö±Ý 
  È®º¸ÇϽʽÿä! 

  
  

  -
½Å±Ô ±¹Á¦ µµ¸ÞÀÎ 
  ¿¹¾àÇϱâ
  

  contact us at [EMAIL PROTECTED]




running tomcat...

2001-02-23 Thread cooper smith

I've downloaded tomcat onto my apache development server, but since I want
to run it standalone first, I 've put in its own directory. I've started it
successfully, or at least its, server process is running. Unfortunately,
this is where the user guide that came with the kit stops. How do I test it.
What do I do now?


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




Dual Processor Woes !!

2001-02-23 Thread Shahed Ali

Hi All,

I have 2 Intel Solaris 8 Systems with JDK 1.3 (with java -server option set)

One is a single processor unit and one is dual processor.

On the single processor system, every thing works fine.

On the dual processor system, I have had the strangest of problems
like :-
mod_jk does not return to apache after receiving a service request.
and various other strange problems.

Is this a threading issue with the Solaris JDK from sun on dual processor
systems ?

Thanks
Shahed,


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




Re: USE of SERVLET/SERVLETtag in the apache/tomact webserver

2001-02-23 Thread Craig R. McClanahan

namita bansal wrote:

 Hi

 Does Apache/Tomcat supports Servlets Tag?

 I am trying to migrate a site (which uses SERVLET Tags extensively) from Java Web 
Server to Apache/Tomcat. But the pages having these tags do not execute properly on 
the apache/tomcat. Does Anyone know of a Workaround?


Tomcat does not currently support the servlet tag, although adding that support is 
on the "it would be nice if someone contributed this code" list.

As an alternative, you might consider switching to JSP pages and using jsp:include 
tags instead.


 Thanks in advance,
 kapil


Craig McClanahan



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




Re: Using ResourceBundle with JSP

2001-02-23 Thread Craig R. McClanahan

Markus Keller mssc wrote:

 Hi List

 I have to write a web application that supports multiple languages. When I
 write a servlet with the needed *.properties files in the classes directory
 it works fine. But when i do something like % messages =
 ResourceBundle.getBundle("language",currentLocale); % in a JSP page I
 receive  a MissingResourceException when the properties files are in the
 same directory as the jsp file. When I save the porperties files in the
 TOMCAT_HOME\work\default\myapp directory, where tomcat saves the servlets
 created from my JSP files, the files work. Now saving the properties files
 in the work directory is a bad idea I think. How can I tell tomcat where to
 search for the properties files if I use them in a JSP page? I will be glad
 for every tipp.


Resource bundles are searched for on the web application's "class path", not in
the document root directory.  So, if you have a file "Foo.properties" that you
want to access as a ResourceBundle, put it in the WEB-INF/classes directory of
your web app (or inside a JAR file under WEB-INF/lib).


 Markus


Craig McClanahan



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




Neebie question...

2001-02-23 Thread Gary Bentley

Sorry about this but I'm stuck...

I've already got JServ working with Apache, and alls fine...

However, I'm trying to get Tomcat working and I'm wondering where the hell
do I put the .class files?

There is an example that has a mount point:

/examples/servlet /examples

Where /examples maps to: path/jakarta-tomcat-3.2.1/webapps/examples

Now I know that the Tomcat is working because when I go to:

http://localhost/examples/servlet/HelloWorldExample

I do get the "Hello World!" and if I shutdown Tomcat I get a Server error...

Now, the problem I have is that there are NO class files in the
/webapps/examples directory...

So when I try and add my own mount point I keep getting a message back from
Tomcat that it cannot find the class files...however I am doing the same as
the examples mount point...but where do I stuff the class files???  The
class files seem to be in the WEB-INF/classes directory, but I can't see
where that is referenced in the server.xml?  Also, do I need to have a
WEB-INF directory with the web.xml file?  Does anyone have any further
information on this???

This seemed so much easier on JServ...

Can anyone help?

G.

P.S.  Also, does anyone know how to stop Tomcat automatically tagging
/servlet onto the end of the mount point when it generates the
tomcat-apache.conf file, I don't want my Users to have to put in the servlet
everytime...and I don't want to have to edit it myself everytime I reload!


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




Re: bugs

2001-02-23 Thread Craig R. McClanahan

Carlos wrote:

 can anybody says me which is the tomcat bugs url?
 thanks


http://nagoya.apache.org/bugzilla/

Please use product category "Tomcat 3" for bug reports related to 3.2.1,
and "Tomcat 4" for bug reports replated to 4.0.

Craig McClanahan



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




First time user - gripe!

2001-02-23 Thread Caprio, Mike



So, the other day I started the process of installing Tomcat on my 
Win98 development box running PWS 4.0.  Nine hours of time later,
I've got the darn thing running - but I could have saved those
nine hours of time if somebody would just update the file:

tomcat-iis-howto.html

so that Step 8 in the section "Configuring the ISAPI Redirector"
is more clear and concise and actually says:

"add/edit the 'Filter DLLs' STRING VALUE"

instead of :

"add/edit the 'Filter DLLs' KEY"

After going through all the FAQs and troubleshooting steps, I
finally got on the mailing list archive and found a recent message
stating that "Filter DLLs" should be a string value.

Think of how much time and anguish you Tomcat developers could
save us users if you'd just change that one word and produce some 
accurate documentation!

For lack of a nail...


Mike Caprio 
Software Engineer Microwave Radio Corporation
[EMAIL PROTECTED]101 Billerica Avenue, Building 6
978-671-5770North Billerica, MA  01862-1256

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




RE: Neebie question...

2001-02-23 Thread Kyle Burke

%=drive letter%:\%=tomcat folder%\webapps\ROOT\WEB-INF\classes

-Original Message-
From: Gary Bentley [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Neebie question...


Sorry about this but I'm stuck...

I've already got JServ working with Apache, and alls fine...

However, I'm trying to get Tomcat working and I'm wondering where the hell
do I put the .class files?

There is an example that has a mount point:

/examples/servlet /examples

Where /examples maps to: path/jakarta-tomcat-3.2.1/webapps/examples

Now I know that the Tomcat is working because when I go to:

http://localhost/examples/servlet/HelloWorldExample

I do get the "Hello World!" and if I shutdown Tomcat I get a Server error...

Now, the problem I have is that there are NO class files in the
/webapps/examples directory...

So when I try and add my own mount point I keep getting a message back from
Tomcat that it cannot find the class files...however I am doing the same as
the examples mount point...but where do I stuff the class files???  The
class files seem to be in the WEB-INF/classes directory, but I can't see
where that is referenced in the server.xml?  Also, do I need to have a
WEB-INF directory with the web.xml file?  Does anyone have any further
information on this???

This seemed so much easier on JServ...

Can anyone help?

G.

P.S.  Also, does anyone know how to stop Tomcat automatically tagging
/servlet onto the end of the mount point when it generates the
tomcat-apache.conf file, I don't want my Users to have to put in the servlet
everytime...and I don't want to have to edit it myself everytime I reload!


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



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




RE: Áß±¹/½Å±Ô µµ¸ÞÀÎ ¾È³»

2001-02-23 Thread Kyle Burke
Title: 



What 
the heII?

  -Original Message-From: ilovedomain 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 23, 2001 1:46 
  PMTo: [EMAIL PROTECTED]Subject: Áß±¹/½Å±Ô 
  µµ¸ÞÀÎ ¾È³»
  
  


  


  
  

  

  
  


  
  
  

  

  
  


  ¾È³çÇϼ¼¿ä. ¾ÆÀÌ·¯ºêµµ¸ÞÀÎ ÀÔ´Ï´Ù !
  
  ÇöÀç ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼´Â Áß±¹ µµ¸ÞÀÎ(com.cn)µî·Ï°ú ½Å±Ô ±¹Á¦ µµ¸ÞÀÎ(.biz/.info/.pro/.name) 
  µî·Ï ¿¹¾à ¼ºñ½º¸¦ Á¦°øÇÏ°í ÀÖ½À´Ï´Ù.
  




  

-
CN[Áß±¹]µµ¸ÞÀÎÀ̶õ? 
  
  




  


  Çѱ¹À» ´ëÇ¥ÇÏ´Â ±¹°¡ µµ¸ÞÀÎÀº co.kr À̸ç 
Áß±¹À» ´ëÇ¥ÇÏ´Â ±¹°¡ µµ¸ÞÀÎÀº com.cn ÀÔ´Ï´Ù. CNÀº CHINAÀÇ 
¿µ¹® À̴ϼÈÀÔ´Ï´Ù.
  




  

-
CN[Áß±¹]µµ¸ÞÀÎÀÇ 
  Çʿ伺
  




  


  
1. 
µµ¸ÞÀÎ µî·ÏÀº ÀÎÅÍ³Ý ºñÁî´Ï½ºÀÇ Ã¹ ½ÃÀÛÀÔ´Ï´Ù. 'ÁÁÀº 
µµ¸ÞÀÎÀÇ È®º¸´Â ÀÎÅÍ³Ý ºñÁî´Ï½ºÀÇ Å« ¹Øõ'À̶ó´Â ¸»ÀÌ 
ÀÖµíÀÌ µµ¸ÞÀÎ È®º¸´Â ÀÎÅÍ³Ý »ç¾÷ÀÇ Ãʱ⿡ ÀÖ¾î¼ Å« 
ºñÁßÀ» Â÷ÁöÇÕ´Ï´Ù. µû¶ó¼ Áß±¹ 
ÁøÃâÀ» ¿°µÎ¿¡ µÐ ±â¾÷ ¶Ç´Â °³ÀÎÀ̶ó¸é ÇʼöÀûÀ¸·Î ÇØ´ç 
µµ¸ÞÀÎÀ» È®º¸ÇÏ¿©¾ß ÇÕ´Ï´Ù. ÁÁÀº µµ¸ÞÀÎÀ» ¹Ì¸® 
È®º¸Çϰųª, ÃßÈÄ¿¡ »ý±æ ¼ö ÀÖ´Â ¹®Á¦ÀÇ ¼ÒÁö¸¦ »çÀü¿¡ 
¹æÁöÇÏ¿©¾ß ÇÕ´Ï´Ù. 2. Áß±¹ ½ÃÀåÀº 'ÇöÀç ³²¾Æ 
ÀÖ´Â À¯ÀÏÇÑ °Å´ë ½ÃÀå'À̶ó ºÒ¸³´Ï´Ù. Áß±¹ÀÇ ÀÎÅÍ³Ý 
Àα¸°¡ Áö³ÇØ ¸»¿¡´Â 2õ250¸¸¸íÀ¸·Î ±ÞÁõÇß´Ù°í Çϸç 2004³â²²´Â 1¾ï2õ¸¸¸í¿¡ µµ´ÞÇÒ °ÍÀ̶ó 
ÇÕ´Ï´Ù.

* ±Í»çÀÇ Áß±¹µµ¸ÞÀÎÀ» 
¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼ Áö±Ý 
È®º¸ÇϽʽÿä!Áß±¹¿¡¼ÀÇ ÀÎÅÍ³Ý ÆÄ¿ö´Â COM.CN ÀÔ´Ï´Ù. 


  
  

  -
Áß±¹ 
  µµ¸ÞÀεî·ÏÇϱâ
  


  
  
  

-
½Å±Ô ±¹Á¦ 
  µµ¸ÞÀÎ µî·Ï ¿¹¾à½Åû ´ë»ó ³×ÀÓ
  




  


  .biz/.info/.pro/.name 
  
  




  

-
½Å±Ô µµ¸ÞÀÎ µî·Ï 
  °³½ÃÀÏ 
  




  


  2001³â »ó¹Ý±â * ±Í»çÀÇ ½Å±Ô ±¹Á¦ µµ¸ÞÀÎÀ» ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼ Áö±Ý È®º¸ÇϽʽÿä! 
  
  


  
-
  ½Å±Ô ±¹Á¦ µµ¸ÞÀÎ 
¿¹¾àÇϱâ

  
contact us at 
[EMAIL PROTECTED]


image upload

2001-02-23 Thread Ambarish V Vaidya

hi guys,
 can anyone tell me where will i get the code to upload images on tomcat. 

thanks

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





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




application JSP object

2001-02-23 Thread Jason Novotny


This book on JSP's "Wedb development with Java Server Pages" by
Fields and Kolb which I highly recommend suggests creating a DB pool
like the following:

%! static private DBConnectionPool pool = null;
 public void jspInit() {
  pool = (DBConnectionPool)
application.getAttribute("dbPool");
 if (pool == null) {
pool = DbConnectionPool.getPool(...);
application.setAttribute("dbPool", pool);
}
}
} %

Similarly, I'd like to shutdown the pool when Tomcat is shutdown:

%! public void jspDestroy() {
if (pool != null)
pool.destroy();
application.removeAttribute("dbPool");
}
} %

However, when I try something like this I get "undefinded variable:
application" Then I look at the java file Tomcat generates and it looks
like all the implicit objects get initialized in the service() methods,
so that it has no understanding of the variables set in the jspInit()
function.

How does one go about creating a single instance of an application
scoped object that can be initialized and shutdown?

Thanks very much, Jason



--
Jason Novotny   [EMAIL PROTECTED]
Home: (510) 704-9917Work: (510) 486-8662
NERSC Distributed Computing http://www-didc.lbl.gov




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




RE: application JSP object

2001-02-23 Thread Michael Wentzel

 This book on JSP's "Wedb development with Java Server Pages" by
 Fields and Kolb which I highly recommend suggests creating a DB pool
 like the following:
 
 %! static private DBConnectionPool pool = null;
  public void jspInit() {
   pool = (DBConnectionPool)
 application.getAttribute("dbPool");
  if (pool == null) {
 pool = DbConnectionPool.getPool(...);
 application.setAttribute("dbPool", pool);
 }
 }
 } %
 
 Similarly, I'd like to shutdown the pool when Tomcat is shutdown:
 
 %! public void jspDestroy() {
 if (pool != null)
 pool.destroy();
 application.removeAttribute("dbPool");
 }
 } %
 
 However, when I try something like this I get "undefinded 
 variable:
 application" Then I look at the java file Tomcat generates 
 and it looks
 like all the implicit objects get initialized in the 
 service() methods,
 so that it has no understanding of the variables set in the jspInit()
 function.
 
 How does one go about creating a single instance of an application
 scoped object that can be initialized and shutdown?
 

Well, one way would be to write a pure GenericServlet that instantiates
your pool(as static) as necessary and is called at startup(see the load 
on startup property in server.xml to do this) and then the servlet
would do any necessary maintenance itself on being destroyed(at shutdown).

Another is to create a bean with application scope.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb(JG)!

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




RE: image upload

2001-02-23 Thread Kyle Burke

Java Servlet Programming by Jason Hunter (Chapter 4)

http://www.servlets.com/jsp/examples/index.html



-Original Message-
From: Ambarish V Vaidya [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: image upload


hi guys,
 can anyone tell me where will i get the code to upload images on tomcat. 

thanks

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





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



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




Servlet problem

2001-02-23 Thread Carlos López M.

Hi i want to use oreilli upload class and It just doens work

Here is the diferent code, could somebody tell if something is wrong

Directori

/webapps/
  /serv/uploadtest.html
/servlet/UploadTest.java

web.xml, where does the UploadTest.java supose to be??

servlet
servlet-name
UploadTest
/servlet-name
servlet-class
UploadTest.java
/servlet-class
load-on-startup
   4
/load-on-startup
/servlet

servlet-mapping
servlet-name
UploadTest
/servlet-name
url-pattern
/servlet/UploadTest
/url-pattern
/servlet-mapping

Html Code

FORM METHOD=POST ENCTYPE=multipart/form-data ACTION="/servlet/UploadTest"

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




JServ - mod_jk

2001-02-23 Thread Brett W. McCoy

I am trying to migrate some applications from Apache/JServ to Tomcat using
mod_jk, and I am having trouble getting Tomcat to find servlets that are
in my classpath.

The web application is really just a presentation layer on top of a
proprietary application server built with Java.  Many of the various
packages that the application server is built from have servlets
associated with them.  Right now, these classes are not archived but are
under a development directory which is in the classpath.  Here is the
basic structure of the entire system (this is on Windows 2000):

\dev\src -- has all of the Java packages, unarchived, including servlet
 classes.  This is in the CLASSPATH

\dev\public_html -- document root (JSPs)  Apache is pointing here and a
 Context also exists in server.xml

\3rdpart\jakarta -- TOMCAT_HOME
\3rdparty\apache -- APACHE_HOME

Tomcat and Apache work fine using the default contexts (i.e., everything
under /examples works just fine).

Now, when I start up the servers, the index.jsp under the document root
loads, runs some JavaScript to see if cookies are enabled:

if (document.cookie.indexOf("acceptCookies=")  0)
  {
top.location.replace("/Error/Cookie/");
  }
  else
  {

top.location.replace("/servlets/com.appserver.servlets.Login");
  }

When the redirect occurs, I get

Not Found (404)

Original request: /servlets/com.appserver.servlets.Login

Not found request: /servlets/com.appserver.servlets.Login

in the browser.

The JSPs are building and compiling just fine (the compiled classes are
showing up under %TOMCAT_HOME%\work), but the servlet classes are just not
being seen.

What am I missing?

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
You will receive a legacy which will place you above want.



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




RE: Servlet problem

2001-02-23 Thread Michael Wentzel

 Here is the diferent code, could somebody tell if something is wrong
 
 Directori
 
 /webapps/
 /serv/uploadtest.html
 /servlet/UploadTest.java
 
 web.xml, where does the UploadTest.java supose to be??
 

 servlet
 servlet-name
 UploadTest
 /servlet-name
 servlet-class
 UploadTest.java
 /servlet-class
   load-on-startup
4
   /load-on-startup
 /servlet

First, the servlet-class should be your class not your source files.
Therefore if your class is in package servlet.UploadTest it would be
servlet-class
servlet.UploadTest
/servlet-class

If you are not using a package specifier it would just be
servlet-class
UploadTest
/servlet-class

Second, you should put your class file in 
WEB-INF/classes/package/classname.class

 
   servlet-mapping
 servlet-name
 UploadTest
 /servlet-name
 url-pattern
 /servlet/UploadTest
 /url-pattern
 /servlet-mapping

The reason the example servlets are ./servlet/ServletName is not because
they're in the servlet package but because that is the default mapping.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb(JG)!

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




RE: Servlet problem

2001-02-23 Thread Kyle Burke

You're editing the wrong web.xml file first of all.  The one you're changing
is used to configure your webapps.

You need to edit the %=your drive letter%:\%=your tomcat
folder%\webapps\ROOT\WEB-INF\web.xml file.

Your code:
servlet-class
UploadTest.java // ".java" is BAD
/servlet-class

The right code added to the %=your drive-letter%:\%=your tomcat
folder%\webapps\ROOT\WEB-INF\web.xml file:

servlet-mapping
servlet-nameUploadTest/servlet-name
url-pattern%=add whatever alias you want to use%/url-pattern
/servlet-mapping



-Original Message-
From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: Servlet problem


Hi i want to use oreilli upload class and It just doens work

Here is the diferent code, could somebody tell if something is wrong

Directori

/webapps/
  /serv/uploadtest.html
/servlet/UploadTest.java

web.xml, where does the UploadTest.java supose to be??

servlet
servlet-name
UploadTest
/servlet-name
servlet-class
UploadTest.java
/servlet-class
load-on-startup
   4
/load-on-startup
/servlet

servlet-mapping
servlet-name
UploadTest
/servlet-name
url-pattern
/servlet/UploadTest
/url-pattern
/servlet-mapping

Html Code

FORM METHOD=POST ENCTYPE=multipart/form-data ACTION="/servlet/UploadTest"

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



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




Re: Servlet problem

2001-02-23 Thread Filip Hanik

the .java should not be in web-apps
compile it into a .class file and put it into webapps/serv/WEB-INF/classes/
Tomcat classloader will search this directory for classes
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
- Original Message -
From: "Carlos Lpez M." [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 1:37 PM
Subject: Servlet problem


 Hi i want to use oreilli upload class and It just doens work

 Here is the diferent code, could somebody tell if something is wrong

 Directori

 /webapps/
   /serv/uploadtest.html
 /servlet/UploadTest.java

 web.xml, where does the UploadTest.java supose to be??

 servlet
 servlet-name
 UploadTest
 /servlet-name
 servlet-class
 UploadTest.java
 /servlet-class
 load-on-startup
4
 /load-on-startup
 /servlet

 servlet-mapping
 servlet-name
 UploadTest
 /servlet-name
 url-pattern
 /servlet/UploadTest
 /url-pattern
 /servlet-mapping

 Html Code

 FORM METHOD=POST ENCTYPE=multipart/form-data
ACTION="/servlet/UploadTest"

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




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




RE: Servlet problem

2001-02-23 Thread Carlos López M.

Thanks for the tip, but another question what's  has to go in the /servlet/
folder

-Mensaje original-
De: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Enviado el: Viernes, 23 de Febrero de 2001 03:24 p.m.
Para: '[EMAIL PROTECTED]'
Asunto: RE: Servlet problem


 Here is the diferent code, could somebody tell if something is wrong

 Directori

 /webapps/
 /serv/uploadtest.html
 /servlet/UploadTest.java

 web.xml, where does the UploadTest.java supose to be??


 servlet
 servlet-name
 UploadTest
 /servlet-name
 servlet-class
 UploadTest.java
 /servlet-class
   load-on-startup
4
   /load-on-startup
 /servlet

First, the servlet-class should be your class not your source files.
Therefore if your class is in package servlet.UploadTest it would be
servlet-class
servlet.UploadTest
/servlet-class

If you are not using a package specifier it would just be
servlet-class
UploadTest
/servlet-class

Second, you should put your class file in
WEB-INF/classes/package/classname.class


   servlet-mapping
 servlet-name
 UploadTest
 /servlet-name
 url-pattern
 /servlet/UploadTest
 /url-pattern
 /servlet-mapping

The reason the example servlets are ./servlet/ServletName is not because
they're in the servlet package but because that is the default mapping.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb(JG)!

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



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




RE: Servlet problem

2001-02-23 Thread Kyle Burke

The "UploadTest.class" file.

-Original Message-
From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlet problem


Thanks for the tip, but another question what's  has to go in the /servlet/
folder

-Mensaje original-
De: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Enviado el: Viernes, 23 de Febrero de 2001 03:24 p.m.
Para: '[EMAIL PROTECTED]'
Asunto: RE: Servlet problem


 Here is the diferent code, could somebody tell if something is wrong

 Directori

 /webapps/
 /serv/uploadtest.html
 /servlet/UploadTest.java

 web.xml, where does the UploadTest.java supose to be??


 servlet
 servlet-name
 UploadTest
 /servlet-name
 servlet-class
 UploadTest.java
 /servlet-class
   load-on-startup
4
   /load-on-startup
 /servlet

First, the servlet-class should be your class not your source files.
Therefore if your class is in package servlet.UploadTest it would be
servlet-class
servlet.UploadTest
/servlet-class

If you are not using a package specifier it would just be
servlet-class
UploadTest
/servlet-class

Second, you should put your class file in
WEB-INF/classes/package/classname.class


   servlet-mapping
 servlet-name
 UploadTest
 /servlet-name
 url-pattern
 /servlet/UploadTest
 /url-pattern
 /servlet-mapping

The reason the example servlets are ./servlet/ServletName is not because
they're in the servlet package but because that is the default mapping.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb(JG)!

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



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



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




Re: Servlet problem

2001-02-23 Thread Filip Hanik

nothing! :)
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
- Original Message -
From: "Carlos Lpez M." [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 2:08 PM
Subject: RE: Servlet problem


 Thanks for the tip, but another question what's  has to go in the
/servlet/
 folder

 -Mensaje original-
 De: Michael Wentzel [mailto:[EMAIL PROTECTED]]
 Enviado el: Viernes, 23 de Febrero de 2001 03:24 p.m.
 Para: '[EMAIL PROTECTED]'
 Asunto: RE: Servlet problem


  Here is the diferent code, could somebody tell if something is wrong
 
  Directori
 
  /webapps/
/serv/uploadtest.html
  /servlet/UploadTest.java
 
  web.xml, where does the UploadTest.java supose to be??
 

  servlet
  servlet-name
  UploadTest
  /servlet-name
  servlet-class
  UploadTest.java
  /servlet-class
  load-on-startup
 4
  /load-on-startup
  /servlet

 First, the servlet-class should be your class not your source files.
 Therefore if your class is in package servlet.UploadTest it would be
 servlet-class
 servlet.UploadTest
 /servlet-class

 If you are not using a package specifier it would just be
 servlet-class
 UploadTest
 /servlet-class

 Second, you should put your class file in
 WEB-INF/classes/package/classname.class

 
  servlet-mapping
  servlet-name
  UploadTest
  /servlet-name
  url-pattern
  /servlet/UploadTest
  /url-pattern
  /servlet-mapping

 The reason the example servlets are ./servlet/ServletName is not because
 they're in the servlet package but because that is the default mapping.

 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com
 mailto:[EMAIL PROTECTED]

 - Punisher of those who cannot spell dumb(JG)!

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



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




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




RE: Servlet problem

2001-02-23 Thread Michael Wentzel

 Thanks for the tip, but another question what's  has to go in 
 the /servlet/
 folder

The servlet folder shouldn't actually exist at all.  If you take a look
at the TOMCAT_HOME/conf/web.xml file you will see that the invoker
servlet(which handles "calling" the servlet requested) maps to the
servlet "folder".  This is ONLY a mapping.  It is there for servlets
which you do not create a specific mapping for in your webapps web.xml file.

Does this make sense?


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb(JG)!

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




deep web.xml problem

2001-02-23 Thread Dresmond.McLaurin

-Hi Tomcats

I have read all the postings concerning the correct setup for web.xml under
tomcat 3.2.1.  I did not see a posting that describes my problem.   I am
testing the coreservlets.ShowMessage servlet and the
tso.servjsp.servletapi.SimpleInitServlet.Both servlets should display
init-params after doGet() embeds in HTML.

I have debugged and debugged and debugged for a few days now and I am
stumped...
I have my webapp\test context debug=9, and also using lots of
System.out.println() in the init() and doGet() methods.
I have load-on-startup set for both servlets, so when Tomcat starts I see
my messages and we are 100% sure that web.xml is read when servlets are
loaded..., BUT doGet() method returns null for all init-params, every time
in both servlets.  I have used init() with and without the ServletConfig
parameter...

It seems inconsistent that when I remove the load-on-startup, then the
1st envocation of init() also returns null for all init-params.  Tomcat
acts like he can see the init-params if he pre-loads the servlets, but
otherwise Tomcat seems to be a blind cat.

See here for yourself, this is screen scrape from Tomcat log when I have
load-on-startup... You can see both servlets loading and web.xml being
read ok...

2001-02-23 04:22:26 - Ctx( /va3test ): XmlReader - init  /va3test
webapps/va3test
2001-02-23 04:22:26 - ContextManager: SimpleMapper1: SM: extension map
/va3test/*.jsp Ct (jsp(org.apache.jasper.servlet.JspServlet/null) )
2001-02-23 04:22:26 - Ctx( /va3test ): Reading D:
\Tomcat\jakarta-tomcat-3.2.1\webapps\va3test\WEB-INF\web.xml
2001-02-23 04:22:26 - ContextManager: AccessInterceptor: Init  null
/va3test null
2001-02-23 04:22:26 - Ctx( /va3test ): Loading -2147483646 jsp
2001-02-23 04:22:26 - Ctx( /va3test ): Loading -2147483646 ShowMessage
init() says message = This Is Web.xml message
init() says repeats = 10
2001-02-23 04:22:26 - Ctx( /va3test ): Loading -2147483646
SimpleHttpServlet
init() says mydriver = Hi, I am driver
init() says myurl = www.xxx.yyy.zzz
init() says myuserID = meUserid

Yet, when I point my browser at the same servlets, I get null value for all
params... HELP :(

my conclusions from 4 days of debuggin:
1) Running Apache 1.3.14 with Tomcat 3.2.1 on NT4.0 and jre 1.3.0-C.
2) The problem must not be the location of web.xml since Tomcat finds it
when load-on-startup.
3) The problem must not be init(), for same reason.
4) The problem must not be the web.xml syntax for same reason.
5) The doGet() must be ok, because it shows null for all the values.
6) The Browser does not have old copy of page in cache because we empty
cache before each http request.


Can anyone help, please?  Regards.


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




RE: Servlet problem

2001-02-23 Thread Michael Wentzel

 The "UploadTest.class" file.
 
 -Original Message-
 From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 5:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Servlet problem
 
 
 Thanks for the tip, but another question what's  has to go in 
 the /servlet/
 folder

I believe Lopez is referring to the servlet folder in his webapp
instance folder.  There shouldn't even be a servlet folder in
this location.  The UploadTest class file should go in

webapps/WEBAPP-NAME/WEB-INF/classes/package/UploadTest.class.

This is where all your class should go.  Likewise, all webapp jars
should go in

webapps/WEBAPP-NAME/WEB-INF/lib.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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




RE: Servlet problem

2001-02-23 Thread Carlos López M.

Hey tanks you all, everithing work just fine. And I manage to upload the
file.

-Mensaje original-
De: Kyle Burke [mailto:[EMAIL PROTECTED]]
Enviado el: Viernes, 23 de Febrero de 2001 04:03 p.m.
Para: [EMAIL PROTECTED]
Asunto: RE: Servlet problem


You're editing the wrong web.xml file first of all.  The one you're changing
is used to configure your webapps.

You need to edit the %=your drive letter%:\%=your tomcat
folder%\webapps\ROOT\WEB-INF\web.xml file.

Your code:
servlet-class
UploadTest.java // ".java" is BAD
/servlet-class

The right code added to the %=your drive-letter%:\%=your tomcat
folder%\webapps\ROOT\WEB-INF\web.xml file:

servlet-mapping
servlet-nameUploadTest/servlet-name
url-pattern%=add whatever alias you want to use%/url-pattern
/servlet-mapping



-Original Message-
From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: Servlet problem


Hi i want to use oreilli upload class and It just doens work

Here is the diferent code, could somebody tell if something is wrong

Directori

/webapps/
  /serv/uploadtest.html
/servlet/UploadTest.java

web.xml, where does the UploadTest.java supose to be??

servlet
servlet-name
UploadTest
/servlet-name
servlet-class
UploadTest.java
/servlet-class
load-on-startup
   4
/load-on-startup
/servlet

servlet-mapping
servlet-name
UploadTest
/servlet-name
url-pattern
/servlet/UploadTest
/url-pattern
/servlet-mapping

Html Code

FORM METHOD=POST ENCTYPE=multipart/form-data ACTION="/servlet/UploadTest"

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



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



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




RE: Servlet problem

2001-02-23 Thread Kyle Burke

I stand corrected.  Thanks Michael.

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:54 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet problem


 The "UploadTest.class" file.

 -Original Message-
 From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 5:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Servlet problem


 Thanks for the tip, but another question what's  has to go in
 the /servlet/
 folder

I believe Lopez is referring to the servlet folder in his webapp
instance folder.  There shouldn't even be a servlet folder in
this location.  The UploadTest class file should go in

webapps/WEBAPP-NAME/WEB-INF/classes/package/UploadTest.class.

This is where all your class should go.  Likewise, all webapp jars
should go in

webapps/WEBAPP-NAME/WEB-INF/lib.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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



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




RE: deep web.xml problem

2001-02-23 Thread Michael Wentzel

 Yet, when I point my browser at the same servlets, I get null 
 value for all
 params... HELP :(
 
 my conclusions from 4 days of debuggin:
 1) Running Apache 1.3.14 with Tomcat 3.2.1 on NT4.0 and jre 1.3.0-C.
 2) The problem must not be the location of web.xml since 
 Tomcat finds it
 when load-on-startup.
 3) The problem must not be init(), for same reason.
 4) The problem must not be the web.xml syntax for same reason.
 5) The doGet() must be ok, because it shows null for all the values.
 6) The Browser does not have old copy of page in cache 
 because we empty
 cache before each http request.
 
 
 Can anyone help, please?  Regards.

Can't say for sure but why not store init params in static vars if your
servlet class on load-on-startup call to init i.e.

private static String msg = null;

public init()
{
// initialize static class vars here
}

then use these in your get method instead of refetching them?

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!


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




Newbies UNITE!

2001-02-23 Thread aras

I admit it, I'm a ... newbie.  It makes me ill having to admit that considering
I've been coding for almost twenty years.  Old dogs new tricks.

Here's the deal.

I've been trying to use TomCat for about a month.  That time isn't work hours
because I'm doing this at night (2-3 hours per).  Anyway, I've been on this
list for all that time and have seen literally thousands of emails.  Most of
them being in the newbie variety.

Here's what I'm thinking.  If there are ten to fifteen newbies out there who
are in somewhat of my situation, let's join forces and kick this thing in the
butt.  Now, I would imagine if your using TomCat 8 HR/Day (meaning "it's  your
job"), you'll be going too fast for us.  You might want to stick to this list.

We need the ability to exchange massive amount of information.  Everything from
e-mail to chat.  In fact, if you have any communications ideas I'm willing to
listen.  I guess it would be almost like a TUG (TomCat User Group) except we
won't have any experts.  We'll be able to use tomcat-user list for the "expert"
type questions.  I'd like us to develop "our own" How-To's and eventually , if
they turn out correct, submit them to the project.

Reply directly to me and include to this list if you'd like


The time is now.


Steve

[EMAIL PROTECTED]




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




Another Problem

2001-02-23 Thread Carlos López M.

Ok I got the upload file working but this is in the apj12 protocol
I dont know why this protocol breaks my application. I tested it before
whit apj13 and my application works fine but I cant upload large files
Any sudgestions??

Whith apj13 the upload works fine but whit realy small files but it breaks
whit large files.

Thanks


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




Do you think this could work

2001-02-23 Thread Carlos López M.

Do you guys think this could work and dont cause problems

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

Thanks

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




tomcat 4 and JSP compile problem

2001-02-23 Thread Michael Dewhirst

I am running FreeBSD4.2, tomcat 4.0-b1, linux-jdk1.3.0

Can you help me fix this:

When I try to run the JSP examples on Tomcat 4, I get the following error:
___

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for
JSPtomcat/bin/../work/localhost/examples/_0002fjsp_0002fnum_0002fnumguess_00
02ejspnumguess_jsp_0.java:153: Incompatible type for method. Explicit cast
needed to convert java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:159)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:171)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:328)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:251)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:464)
at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
42)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)
at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
818)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)


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




Re: tomcat 4 and JSP compile problem

2001-02-23 Thread Craig R. McClanahan

Michael Dewhirst wrote:

 I am running FreeBSD4.2, tomcat 4.0-b1, linux-jdk1.3.0


Most likely explanation is an old copy of servlet.jar on your class path, or in
your Java system extensions directory ($JAVA_HOME/jre/lib/ext).  The
handlePageException() method was updated relatively recently.


 Can you help me fix this:


Craig McClanahan



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




RE: Problems with gabled mod_jk

2001-02-23 Thread Jones, Stephen

I think the problem is that the distributed binary just does not work on
Linux! This is extremely frustrating and it means (to me) that the Tomcat
3.2.1 binary distribution does not work on Linux! This is just another bug
that would take 5 minutes to fix...

Can't somebody just recompile it and commit it!?!?!?

Steve

 -Original Message-
 From: Adam Fowler [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems with gabled mod_jk
 
 
 Hi,
 
 It's EEAASSYY...kind of. *memories of 5 days of
 reading/e-mailing*
 
 You need to recompile it else it'll never work! Have a look 
 at my exhaustive
 howto for mod_jk at http://willow.cc.edu/docs/adminguide . 
 You can find the
 source from there too.
 
 A few of us are working on getting RPM's made for Redhat(done)
 Mandrake(gimme time!) and SUSE(anyone?) ao it'll be really easy soon.
 
 Redhat RPMs can be found at
 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/
 
 Hope this works.
 
 Regards,
 Adam.
 
 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 Carroll College, WI, USA(2000-2001)
 web: http://gucciboy.dyndns.org/aff9
 e-mail: [EMAIL PROTECTED]
 "Every new beginning comes from some other beginning's end"
 
 
 
 -Original Message-
 From: Peter Andersn [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 8:11 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Problems with gabled mod_jk
 
 
 Thanks
 But im  not using the mod_jk that ships with rpm, i have 
 downloaded the
 precompiled version that exists on jakartas homepage.
 But do you think this is a version that is compiled for RPM or?
 I could compile it , but im not that keen to spend another 4 hours to
 compile this and end up with the same results.
 Since im pretty new to this evry step takes loong time to 
 conclude.
 
 Regards
 Peter A
 - Original Message -
 From: "John Towell" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 23, 2001 3:02 PM
 Subject: RE: Problems with gabled mod_jk
 
 
 This one should be on an FAQ somewhere.  I experienced the 
 same message.  It
 resulted from using a mod_jk.so that was packed in an RPM.  
 The solution was
 to get the source from the tomcat site and build a new mod_jk.so by
 following the directions in the mod_jk howto that comes with tomcat
 documents. Good luck!
 
 
 
 -Original Message-
 From: Peter Andersn
 To: [EMAIL PROTECTED]
 Sent: 2/23/01 8:03 AM
 Subject: Problems with gabled mod_jk
 
 Hi have installed and tested with both apache 1.3.17 and 1.3.14 and
 1.3.12 same result.
 
 I have compiled my apache to support DSO.
 ./configure --prefix=/usr/local/apache --enable-module=so
 i have checked with httpd -l and seen that the dso support is their.
 
 But when i try to execute the mod_jk.conf-auto that tomcat 
 creates i get
 an error on the LoadModule jk_module libexec/mod_jk.so
 I have used the precompiled version form tomcats homepage.
 The error is saying that this module is garbeld.
 complete error messages API module structure 'jk_module' in file
 /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this 
 is not an
 apache module DSO.
 Any out there having suggestion what to do, im pretty new to 
 linux so it
 should not be to advanced and if you suggest any advance step it would
 be extremly helpful to get a step by step instruction.
 
 If i try on the same machine where i have apache installed 
 with shipment
 thru RPM and it is version 1.3.12 this is working but it also 
 only have
 core.c and mod_so.c compiled into the apache kernel. The other version
 is downloads from Apache and it seems to be something im missing when
 compiling or im not sure
 
 Looking forward to see if somebody can help me.
 Regards
 Peter Andersen
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




Re: TC3.2.1 - response commit on included JSPs

2001-02-23 Thread cmanolache

 I won't contest that, but I would suggest considering
 the idea that the final, or intended destination is
 not necessarily the browser.  In the case of an
 included resource, it is the calling servlet that is
 acting as client to the included resource.  In good OO
 design, it should be in the control of that client
 what to do with the data that has been 'committed' by
 the included resource.

Except that this is explicitely specified - the flush()
in JspWriter should be propagated to the next stream.

" if that destination is another character or
 byte stream, flush it."

In this case, the destination is the servlet output
stream - and it has to be flushed.

And it is also explicitely stated that the included
servlet can commit the response ( in RequestDispatcher 
spec )

 Looking at the Tomcat 3.2.1 code, I see that this
 situation is still further broken in this regard
 because inside inside the

We had a lot of problems with buffering - and changing 
3.2.1 may be very dangerous ( because of many 
inter-dependecies like session,etc).

The main change in 3.3 is removing many of the 
dependencies and cleaning the code. M

 I realize also, from looking around in the CVS
 repositories that the 'facade' package is history so I
 am not familiar yet with how newer versions of tomcat
 implement the include() method.  Have they removed
 this offending call?

Yes, and the whole buffering has been reimplemented.
BTW, both solution should work with the current code -
you can make the OutputBuffer ( the main component
in the new buffer implementation ) ignore the flush(),
etc.

( in 3.3 the Buffer is the central element - instead of
hiding it inside the Stream it is now a first-class 
internal object, that can be controled via API )


 It becomes clearer and clearer to me that I'm going to have to swallow
 upgrading to a newer version of Tomcat than 3.2.1.  Which version
 should I jump in on?  Sigh...

I would say 3.3 :-)

We hope to have a beta in few weeks - the code is already
usable and stable.

Costin


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




web.xml generator for JSPC'd JSPs

2001-02-23 Thread Jones, Stephen


Is there a web.xml generator out there for JSP pages which have been
pre-compiled using JSPC???

My company prefers to ship w/ precompiled pages, but every time we change a
JSP page's name, add one, or whatever, we have to manually update the
web.xml file to redirect requests for like file_1.jsp to the servlet called
file_0005f1  (sucks because we have 100+ JSP's to maintain)

Is there a (java) utility out there to generate an appropriate web.xml file
for a given set of servlets?
If not, is there demand in the community for this? (I might write one)

Steve Jones

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




tomcat and apache not happening

2001-02-23 Thread Jennifer Dyess

I'm running solaris 8 intel
tomcat 3.2
apache 1.3.14

So, i thought i had all this configured properly.  But, it doesn't look like
apache is sending jspservlet requests to tomcat.  My mod_jk.so seems to have
compiled correctly (finally) and apache doesn't give any errors when it
starts.
I've tried a couple of different configs in my httpd.conf.

first I addded the following to the http.conf:
Include /usr/tomcat/conf/mod_jk.conf-auto

I get a "page cannot be displayed" when I try http://localhost/examples
this is what it logs in the access log: "GET /examples HTTP/1.1" 301 336

then I removed the Include statement and added the directives directly into
the httpd.conf:

#Load mod-jk - this is the Tomcat Apache plugin
LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c

#Configure mod_jk
JkWorkersFile /usr/tomcat/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevelwarn

JkMount /*.jsp ajp13
JkMount /JspServlets/* ajp13

Still no luck.
Any suggestions?


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




too many processes will not die (then out of memory)

2001-02-23 Thread Terence Kwan




Tomcat 
3.2.1
Red Hat 
2.2.14
Linux JDK 
1.3.0

We are running the tomcat on 
the server. For each http request, it will create 2 more jdk process/thread (ps 
-aux |grep java|wc). After more hits, the processes number go up to 500. Then 
after more hit, tomcat will respond as "out of memory".

1. Why the process does not 
die? even after the session timeout limit of 30 minutes.
2. How can I make the server 
more stable?

Thanks

TK


Secure MessageDigest Login using JSP

2001-02-23 Thread Ryan



Hello,

 I want to be able to use the 
MessageDigest class to make a secure login to a jsp page.

 Ultimately, I want the user to 
interact with a form and submit data entries into a mySQL database. This type of 
thing is very new to me and I was wondering if anyone could lead me to any good 
resources.

thanx
-ryan


Re: tomcat and apache not happening

2001-02-23 Thread Ryan

make sure that server.xml has a context manager.

-ryu


- Original Message -
From: "Jennifer Dyess" [EMAIL PROTECTED]
To: "Tomcat-User@Jakarta. Apache. Org" [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 5:06 PM
Subject: tomcat and apache not happening


 I'm running solaris 8 intel
 tomcat 3.2
 apache 1.3.14

 So, i thought i had all this configured properly.  But, it doesn't look
like
 apache is sending jspservlet requests to tomcat.  My mod_jk.so seems to
have
 compiled correctly (finally) and apache doesn't give any errors when it
 starts.
 I've tried a couple of different configs in my httpd.conf.

 first I addded the following to the http.conf:
 Include /usr/tomcat/conf/mod_jk.conf-auto

 I get a "page cannot be displayed" when I try http://localhost/examples
 this is what it logs in the access log: "GET /examples HTTP/1.1" 301 336

 then I removed the Include statement and added the directives directly
into
 the httpd.conf:

 #Load mod-jk - this is the Tomcat Apache plugin
 LoadModulejk_module  libexec/mod_jk.so
 AddModule mod_jk.c

 #Configure mod_jk
 JkWorkersFile /usr/tomcat/conf/workers.properties
 JkLogFile /usr/local/apache/logs/mod_jk.log
 JkLogLevelwarn

 JkMount /*.jsp ajp13
 JkMount /JspServlets/* ajp13

 Still no luck.
 Any suggestions?


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



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




INDEX.JSP

2001-02-23 Thread Ryan



Right now when I use apache if I enter one of my 
virtual domains as the url on my web-browser, the index.html in the root 
directory will show up instead of a directory listing.

I would like to make it so that a page named 
index.jsp will do the same thing. I want my homepage to be a jsp page and not 
html.

Right now, the way I have tomcat set up. only pages 
in ../../../jsp/, which i have specified in the context manager seem to work 
with jsp files.

thanx
 -ryan


RE: tomcat and apache not happening

2001-02-23 Thread Jennifer Dyess

the server.xml has the following:

Context path="/examples"
 docBase="webapps/examples"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:13 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat and apache not happening


make sure that server.xml has a context manager.

-ryu


- Original Message -
From: "Jennifer Dyess" [EMAIL PROTECTED]
To: "Tomcat-User@Jakarta. Apache. Org" [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 5:06 PM
Subject: tomcat and apache not happening


 I'm running solaris 8 intel
 tomcat 3.2
 apache 1.3.14

 So, i thought i had all this configured properly.  But, it doesn't look
like
 apache is sending jspservlet requests to tomcat.  My mod_jk.so seems to
have
 compiled correctly (finally) and apache doesn't give any errors when it
 starts.
 I've tried a couple of different configs in my httpd.conf.

 first I addded the following to the http.conf:
 Include /usr/tomcat/conf/mod_jk.conf-auto

 I get a "page cannot be displayed" when I try http://localhost/examples
 this is what it logs in the access log: "GET /examples HTTP/1.1" 301 336

 then I removed the Include statement and added the directives directly
into
 the httpd.conf:

 #Load mod-jk - this is the Tomcat Apache plugin
 LoadModulejk_module  libexec/mod_jk.so
 AddModule mod_jk.c

 #Configure mod_jk
 JkWorkersFile /usr/tomcat/conf/workers.properties
 JkLogFile /usr/local/apache/logs/mod_jk.log
 JkLogLevelwarn

 JkMount /*.jsp ajp13
 JkMount /JspServlets/* ajp13

 Still no luck.
 Any suggestions?


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



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


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




RE: too many processes will not die (then out of memory)

2001-02-23 Thread Kim soon il




 

ServiceMachine
jdk1.2 
+ apache 1.3.12 + tomcat 3.2.1 and using mod_jserv.so
 
TestMachine
 
jdk1.3 + apache 1.3.14 + tomcat 3.2.1 and mod_jk.so 

 In 
Test Machine I test programingthat is 
fine.
 Then Service 
Mode change mod_jserv.so == mod_jk.so
 Then Same 
problem is come

 Change 
Service Machine mod_jk.so == mod_jserv.so 
 then 
the problem is go 
out..


  -Original Message-From: Terence Kwan 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 24, 2001 
  10:15 AMTo: [EMAIL PROTECTED]Subject: too 
  many processes will not die (then out of memory)
  
  Tomcat 
  3.2.1
  Red Hat 
  2.2.14
  Linux JDK 
  1.3.0
  
  We are running the tomcat on 
  the server. For each http request, it will create 2 more jdk process/thread 
  (ps -aux |grep java|wc). After more hits, the processes number go up to 500. 
  Then after more hit, tomcat will respond as "out of 
  memory".
  
  1. Why the process does not 
  die? even after the session timeout limit of 30 minutes.
  2. How can I make the server 
  more stable?
  
  Thanks
  
  TK


RE: tomcat and apache not happening

2001-02-23 Thread Jennifer Dyess

here are my config files


-Original Message-
From: Jennifer Dyess [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 6:01 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat and apache not happening


the server.xml has the following:

Context path="/examples"
 docBase="webapps/examples"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:13 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat and apache not happening


make sure that server.xml has a context manager.

-ryu


- Original Message -
From: "Jennifer Dyess" [EMAIL PROTECTED]
To: "Tomcat-User@Jakarta. Apache. Org" [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 5:06 PM
Subject: tomcat and apache not happening


 I'm running solaris 8 intel
 tomcat 3.2
 apache 1.3.14

 So, i thought i had all this configured properly.  But, it doesn't look
like
 apache is sending jspservlet requests to tomcat.  My mod_jk.so seems to
have
 compiled correctly (finally) and apache doesn't give any errors when it
 starts.
 I've tried a couple of different configs in my httpd.conf.

 first I addded the following to the http.conf:
 Include /usr/tomcat/conf/mod_jk.conf-auto

 I get a "page cannot be displayed" when I try http://localhost/examples
 this is what it logs in the access log: "GET /examples HTTP/1.1" 301 336

 then I removed the Include statement and added the directives directly
into
 the httpd.conf:

 #Load mod-jk - this is the Tomcat Apache plugin
 LoadModulejk_module  libexec/mod_jk.so
 AddModule mod_jk.c

 #Configure mod_jk
 JkWorkersFile /usr/tomcat/conf/workers.properties
 JkLogFile /usr/local/apache/logs/mod_jk.log
 JkLogLevelwarn

 JkMount /*.jsp ajp13
 JkMount /JspServlets/* ajp13

 Still no luck.
 Any suggestions?


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



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


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


?xml version="1.0" encoding="ISO-8859-1"?

Server
!-- Debug low-level events in XmlMapper startup --
xmlmapper:debug level="0" /

!-- 

Logging:

 Logging in Tomcat is quite flexible; we can either have a log
 file per module (example: ContextManager) or we can have one
 for Servlets and one for Jasper, or we can just have one
 tomcat.log for both Servlet and Jasper.  Right now there are
 three standard log streams, "tc_log", "servlet_log", and
 "JASPER_LOG".  

	 Path: /logs/

	 The file to which to output this log, relative to
	 TOMCAT_HOME.  If you omit a "path" value, then stderr or
	 stdout will be used.

	 Verbosity: warn

	 Threshold for which types of messages are displayed in the
	 log.  Levels are inclusive; that is, "WARNING" level displays
	 any log message marked as warning, error, or fatal.  Default
	 level is WARNING.

	 verbosityLevel values can be: 
	FATAL
	ERROR
	WARNING 
INFORMATION
DEBUG

	 Timestamps:

	 By default, logs print a timestamp in the form "-MM-dd
	 hh:mm:ss" in front of each message.  To disable timestamps
	 completely, set 'timestamp="no"'. To use the raw
	 msec-since-epoch, which is more efficient, set
	 'timestampFormat="msec"'.  If you want a custom format, you
	 can use 'timestampFormat="hh:mm:ss"' following the syntax of
	 java.text.SimpleDateFormat (see Javadoc API).  For a
	 production environment, we recommend turning timestamps off,
	 or setting the format to "msec".

	 Custom Output:

	 "Custom" means "normal looking".  "Non-custom" means
	 "surrounded with funny xml tags".  In preparation for
	 possibly disposing of "custom" altogether, now the default is
	 'custom="yes"' (i.e. no tags)

	 Per-component Debugging:

	 Some components accept a "debug" attribute.  This further
	 enhances log output.  If you set the "debug" level for a
	 component, it may output extra debugging information.
--

!-- if you don't want messages on screen, add the attribute
path="logs/tomcat.log" 
	 to the Logger element below
--
Logger name="tc_log" 
verbosityLevel = "INFORMATION" 
/

Logger name="servlet_log" 
path="logs/servlet.log"
/

Logger name="JASPER_LOG" 
	path="logs/jasper.log"
verbosityLevel = "INFORMATION" /

!-- You can add a "home" attribute to represent the "base" for 
 all relative paths. If none is set, the TOMCAT_HOME property
 will be used, and if not set "." will be used.
 webapps/, work/ 

Ensure that servlet has loaded

2001-02-23 Thread Dmitry Rogatkin

Does an option as load servlet by demand exist? I didn't find any API to just ensure 
that servlet has been loaded (init method is called) without actually hitting serve 
method. I know that using any static code in a servelt is against of rules, but 
sometimes it's helpful.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


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




RE: tomcat and apache not happening

2001-02-23 Thread Jennifer Dyess

Any suggestions would be appreciated.  I've been working on this for a while
now.

-Original Message-
From: Jennifer Dyess [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 6:26 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat and apache not happening


here are my config files


-Original Message-
From: Jennifer Dyess [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 6:01 PM
To: [EMAIL PROTECTED]
Subject: RE: tomcat and apache not happening


the server.xml has the following:

Context path="/examples"
 docBase="webapps/examples"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:13 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat and apache not happening


make sure that server.xml has a context manager.

-ryu


- Original Message -
From: "Jennifer Dyess" [EMAIL PROTECTED]
To: "Tomcat-User@Jakarta. Apache. Org" [EMAIL PROTECTED]
Sent: Friday, February 23, 2001 5:06 PM
Subject: tomcat and apache not happening


 I'm running solaris 8 intel
 tomcat 3.2
 apache 1.3.14

 So, i thought i had all this configured properly.  But, it doesn't look
like
 apache is sending jspservlet requests to tomcat.  My mod_jk.so seems to
have
 compiled correctly (finally) and apache doesn't give any errors when it
 starts.
 I've tried a couple of different configs in my httpd.conf.

 first I addded the following to the http.conf:
 Include /usr/tomcat/conf/mod_jk.conf-auto

 I get a "page cannot be displayed" when I try http://localhost/examples
 this is what it logs in the access log: "GET /examples HTTP/1.1" 301 336

 then I removed the Include statement and added the directives directly
into
 the httpd.conf:

 #Load mod-jk - this is the Tomcat Apache plugin
 LoadModulejk_module  libexec/mod_jk.so
 AddModule mod_jk.c

 #Configure mod_jk
 JkWorkersFile /usr/tomcat/conf/workers.properties
 JkLogFile /usr/local/apache/logs/mod_jk.log
 JkLogLevelwarn

 JkMount /*.jsp ajp13
 JkMount /JspServlets/* ajp13

 Still no luck.
 Any suggestions?


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



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


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


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




RE: too many processes will not die (then out of memory)

2001-02-23 Thread Terence Kwan



What if I 
am not using Apache at all? I am just using tomcat as the web server and jsp engine. So, the problem is not related to 
mod_jk.so or mod_jserv.so. Should I use 
apache?


  -Original Message-From: Kim soon il 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 24, 2001 
  10:05 AMTo: [EMAIL PROTECTED]Subject: RE: 
  too many processes will not die (then out of memory)
  
   
  
  ServiceMachine
  jdk1.2 
  + apache 1.3.12 + tomcat 3.2.1 and using 
mod_jserv.so
   
  TestMachine
   
  jdk1.3 + apache 1.3.14 + tomcat 3.2.1 and mod_jk.so 
  
   In 
  Test Machine I test programingthat is 
  fine.
   Then 
  Service Mode change mod_jserv.so == mod_jk.so
   Then Same 
  problem is come
  
   Change 
  Service Machine mod_jk.so == mod_jserv.so 
   then 
  the problem is go 
  out..
  
  
-Original Message-From: Terence Kwan 
[mailto:[EMAIL PROTECTED]]Sent: Saturday, February 24, 2001 
10:15 AMTo: [EMAIL PROTECTED]Subject: too 
many processes will not die (then out of memory)

Tomcat 
3.2.1
Red Hat 
2.2.14
Linux JDK 
1.3.0

We are running the tomcat 
on the server. For each http request, it will create 2 more jdk 
process/thread (ps -aux |grep java|wc). After more hits, the processes 
number go up to 500. Then after more hit, tomcat will respond as "out of 
memory".

1. Why the process does not 
die? even after the session timeout limit of 30 minutes.
2. How can I make the 
server more stable?

Thanks

TK


Hello

2001-02-23 Thread charlie Wren

Hello,

Can any one help me the following problem

I have my own property file containing some database
setup parameters and some other parameters, how can I
load these parameters into Tomcat server when I start
it? and How do I know the parameters I need is loaded?

Thanks in advance for your help.

Regards,

Cz

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: Newbies UNITE!

2001-02-23 Thread Karl Martino

Steve,
This is an excellent idea.  Count me in as well.  I
can see a weblog site being the center of the newbies
group.  It can point to interesting tidbits, and tie
everything together.

-Karl

--- aras [EMAIL PROTECTED] wrote:
 I admit it, I'm a ... newbie.  It makes me ill
 having to admit that considering
 I've been coding for almost twenty years.  Old dogs
 new tricks.
 
 Here's the deal.
 
 I've been trying to use TomCat for about a month. 
 That time isn't work hours
 because I'm doing this at night (2-3 hours per). 
 Anyway, I've been on this
 list for all that time and have seen literally
 thousands of emails.  Most of
 them being in the newbie variety.
 
 Here's what I'm thinking.  If there are ten to
 fifteen newbies out there who
 are in somewhat of my situation, let's join forces
 and kick this thing in the
 butt.  Now, I would imagine if your using TomCat 8
 HR/Day (meaning "it's  your
 job"), you'll be going too fast for us.  You might
 want to stick to this list.
 
 We need the ability to exchange massive amount of
 information.  Everything from
 e-mail to chat.  In fact, if you have any
 communications ideas I'm willing to
 listen.  I guess it would be almost like a TUG
 (TomCat User Group) except we
 won't have any experts.  We'll be able to use
 tomcat-user list for the "expert"
 type questions.  I'd like us to develop "our own"
 How-To's and eventually , if
 they turn out correct, submit them to the project.
 
 Reply directly to me and include to this list if
 you'd like
 
 
 The time is now.
 
 
 Steve
 
 [EMAIL PROTECTED]
 
 
 
 

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


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




RE: INDEX.JSP

2001-02-23 Thread guyr



In 
apache's httpd.conf, look for the line

DirectoryIndex index.html 

and 
add index.jsp (or blah.gasp or anything you want) onto the end of 
it.

  -Original Message-From: Ryan 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 23, 2001 8:04 
  PMTo: [EMAIL PROTECTED]Subject: 
  INDEX.JSP
  Right now when I use apache if I enter one of my 
  virtual domains as the url on my web-browser, the index.html in the root 
  directory will show up instead of a directory listing.
  
  I would like to make it so that a page named 
  index.jsp will do the same thing. I want my homepage to be a jsp page and not 
  html.
  
  Right now, the way I have tomcat set up. only 
  pages in ../../../jsp/, which i have specified in the context manager seem to 
  work with jsp files.
  
  thanx
   
-ryan


j_security_check example error

2001-02-23 Thread Patrick O'Brien

Is there any reason that the example for form authentication does not work.

I have 3.2.1 and running the example gives me a 404 error when I try to
submit the login info.

examples/jsp/security/login/j_security_check

Patrick O'Brien
Senior VP, Chief Technology Officer
MyOptionValue.com, LLC
443-253-3641

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