I just try posting again, last time I didn't get any answers...
I've just upgraded to Tomcat 3.2 (from 3.1) and now I sometimes gets
this error:
=== Cut ===
- ContextManager: Error reading request, ignored -
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(Conte
Hi ,
Im using a Bean with scope="session" as follows.
I am using the same bean in many JSP pages.
The Bean has a constructor which I expect to be called Only once for a
session created.
But the Constructor is getting called for each JSP page I access.Im also
using same 'id' value (
Hello,i have allready installed Tomcat 3.2
with IIS5.0 on my machine using Windows 2000 professional. also i
have set the ISAPI filters in IIS (using isapi_redirect.dll from
jakarta.apache.org). It's working very well (.html, .asp and .jsp files). but
the .isa (IIS ISAPI file, we created it
thanks,
i got the mod_jk.so working now on my machine.
but somehow i cannot get it working on the other machine.
on my machine i have ...
1. apache user parvez:parvez
2. permisions to htdocs -> parvez:parvez
3. permissions to jsp/servlets -> parvez:parvez
and it works
but on the other machin
Hi All
I have downloaded the latest
version of tomcat and using tha t.
1. Is this the licensed Version .?
2. is there any Enterprise Vesion that has to be
purchased . ?
3. How many Users this will support ?.
Pl if i get the answers for this it will be
On 12/28/00 9:26 PM, "andyjee" <[EMAIL PROTECTED]> wrote:
> wrong email address sent!
Huh?
--
James Duncan Davidson[EMAIL PROTECTED]
!try; do()
--
Hi ALL!
Can anyone help me with simple question
Should i register ALL sevlets in my WEB-INF/web.xml
or there is any other simple way to register all of them , or
not
register them at all ?
Thank you !!
p.s tomcat 3.2.1 + apache(mod_jk)
Hello andyjee,
Friday, December 29, 2000, 8:26:39 AM, you wrote:
a> wrong email address sent!
a> - Original Message -
a> From: James Duncan Davidson <[EMAIL PROTECTED]>
a> To: <[EMAIL PROTECTED]>
a> Sent: Thursday, December 28, 2000 11:47 PM
Hi ALL!
Can anyone help me with simple questio
wrong email address sent!
- Original Message -
From: James Duncan Davidson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 11:47 PM
Subject: Re: unsubscribe me please
> On 12/28/00 7:08 PM, "Kunal Mehta" <[EMAIL PROTECTED]> wrote:
>
> > unsubscribe
>
> Send
Hi Mr. Tomcat,
I am just installing tomcat into my Win2000 machine. and follow the
installation guide as provided. However, I can't get it up and running. My
question is does Tomcat run under IIS 5.0/Win2000 platform?
thanks and best regards,spl
On 12/28/00 7:08 PM, "Kunal Mehta" <[EMAIL PROTECTED]> wrote:
> unsubscribe
Send email to [EMAIL PROTECTED]
--
James Duncan Davidson[EMAIL PROTECTED]
!try; do()
-
Hi all,
OK, I admit it, this is peripheral to tomcat, sort of...
But I've been trying to load up jwma (the Model 2 webmail thang), and
I've been getting this
cannot load servlet name: jwma
message at startup. And nothing else... makes it a little hard to
debug...
The context exists under /admi
unsubscribe
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
I had an error in command of./apachectl configtest:
API module structure 'jk_module' in file
/usr/local/apache_1.3.12/libexec/mod_jk.so is garbled-
perhaps this is not an Apache module DSO?
I want to cooperate Tomcat3.2 beta 8 with apache 1,3.12.
I copied mod_jk.so into apache_1.3.12/libexec and a
Please tell me what do you write in your browser when you try to test it
"Hawkins, Keith (Keith)" wrote:
> Hello,
> I have been struggling with getting the isapi_redirect.dll to work with
> IIS/PWS.
> I have checked and rechecked the steps specified in the Tomcat IIS HowTo
> document by
Is anyone actually using the ajp13 protocol with mod_jk?
I tried it but had to switch back to ajp12. It seems faster
but less reliable. I am getting the following error messages
in mod_jk.log. All these messages occur multiple
times. They only occur when I use the ajp13 protocol.
In mod_jk.lo
Title: netscape timing out
I am using tomcat 3.2.1 release build on winnt4.0
when I use jsp:forward, IE works fine.Netscape gets timed out.
<%
str1 = "myPage.jsp";
str1 = response.encodeURL(str1);
%>
Any idea?
Thanks,
Jayesh
Hi,
My TOMCAT_HOME has a directory path c:\Program Files\Apache
Group\jakarta-tomcat3.2.1
As the directory path has spaces, I specified the path as "c:\Program
Files\Apache Group\jakarta-tomcat3.2.1" for wrapper.tomcat_home in
wrapper.properties. This seems to be a bug. Not using quotes obviousl
Has anyone seen this one before?
I have a servlet that's being loaded from a jar in the classpath. All the
other jars needed for the servlet to run (jdbc etc) are also in the
classpath. Note, this is not a webapp - the classes are in the system
classpath. Tomcat loads fine, and displays the proper
Thanks for all the help.
My problem was that I had entiries in my server.xml which caused the same
directory to be loaded, but under seprate contexts.
When I checked the jasper.log or tomcat.log, I saw what was going on.
Thanks
Shahed.
On my system I added the classpath to my mm.mysql installation directory or
/usr/local/mm.mysql.jdbc-1.2c This was enough to give me access to my
database.
Here is some sample code that you can modify to retrive data from your
database.
import java.sql.*;
import java.io.*;
public class newjava
Hi
I'm running Mandrake Linux 7.0
With apache running I have still been able to start and stop Tomcat.
Try starting Tomcat and running the example Servlet and JSP routines
provided.
Mark.
- Original Message -
From: Shailaja Someshwar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Fr
I am
trying to get IIS/PWS to redirect servlet and jsp requests to Tomcat via the
isapi_redirect.dll.
I can
see activity in the isapi.log file which indicates the filter is trapping on the
URL and
(supposedly) redirecting to it to the Tomcat
process. But I always get 404 Not Found respons
Hi all,
Would anybody please be so kind to shine some light on the error message
below that I keep getting with Tomcat 3.2 and 3.2.1. Surprisingly, 3.1 and
4.0 work fine.
Thanks,
Jaap
--
C:\java\tomcat3.21\bin>tomcat run
Including all jars in ..\lib in your CL
Did you try diting your web.xml file in your project diectory.See the
examples folder in your tomcat installation and follow the same technique
Ram
>From: Shailaja Someshwar <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Not Found(404) for virtual hosts
>Date
<%@ page import=".GZIPOutputStream" %>
<%@ page import="java.io.OutputStream" %>
<%
OutputStream
out1 = response.getOutputStream(); out = new
PrintWriter(new GZIPOutputStream(out1), false);
/*you should use the response.setContentType()
*/
resp
Hi, I recently downloaded the Acme API, but I am not
sure where to put it. Can anyone help please?
Thanks
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
In addition to Mark's comments.
Since the init() method is an instance method (not static) one has to make
an assumption that it can be called once for each instance. However I would
like to believe that it will be called no more than once for a particular
instance.
Filip
- Original Messag
In Tomcat 3.2.x, specifying more than one name for a servlet in web.xml
causes a separate instance to be created for each name and each instances
init() method will et invoked. Essentially creating a new servlet for each
name as opposed to multiple names for a single instance of the servlet.
The
<%@ page import=".GZIPOutputStream" %>
<%@ page import="java.io.OutputStream" %>
<%
OutputStream
out1 = response.getOutputStream(); out = new
PrintWriter(new GZIPOutputStream(out1), false);
/*you should use the response.setContentType()
*/
response.setHeader("Content-
Ralph,
worker.inprocess refers to the type of deployment
where tomcat is going to run in the webserver process.
Defacto, this applies to the Win32 scenario, not a
unix box where tomcat will run on it's own pid.
So (unless I am mistaken) this is a non-issue in your case.
There is actually quite a
Keep in mind the mod_jk.conf-auto file is there for your convenience
only. ajp13 and ajp12 are only used to communicate with Apache Web
Server through the mod_jk connector. Whatever you include will be
used.
You seem to be duplicating efforts. You are inlcuding the
mod_jk.conf-auto and then re
I didn't mention that part :-)
Obviously, there's no point in tomcat calling the
doGet/doPost methods - they're meant to be
passed in data about the calling browser etc.,
and output an HTML page. That just doesn't
make sense in the "load-on-startup" situation.
You define (actually, over-ride) th
I have gotten Apache
1.3.14 and Tomcat 3.2.1 to work. I'm not sure if ajpv13 protocol is being
used; how can I be sure ?
I have added the
following lines at the end of my httpd.conf.
# Amit Added
include
D:/Tomcat/conf/mod_jk.conf-auto
# Use ajpv13 protocol thru the ajp13
adapter
# Ro
Dear Simon:
I've tried what you told me but the servlet doesn´t gets executed, it´s
just preloaded.
Any ideas?
Thanks for your help,
Nicolás
- Original Message -
From: "Kitching Simon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 27, 2000 7:16 AM
Subject: RE
I have seen the same thing, it does not appear that init is called twice but
that you get 2 instances of the servlet loaded. Perhaps something to do
with aliases. My work around was to not specify a context in server.xml but
only specify the servlet mapping in my web.xml.
David.
-Original
1) Set Tomcat's debug level to something big (say 20).
2) Add a System.out.println() call to the begin and end or your init()
method. Include a timestamp.
3) Add a call to Thread.currentThread().dumpStack() to the start of your
init() method.
4) Post the output here.
It is extremely unlikely
I want to use GZip compression on JSP page.
I've done this with a servlet using the following code:
OutputStream out1 =
response.getOutputStream(); out = new
PrintWriter(new GZIPOutputStream(out1),
false); response.setHeader("Content-Encoding",
"gzip");
..
How
I think by removing
from the server xml
- Original Message -
From:
Shahed Ali
To: [EMAIL PROTECTED]
Sent: Thursday, December 28, 2000 6:15
PM
Subject: & Multiple
Contexts
Hi,
I have a entry in my server.xml pointing to a
webapp.
Th
You need to change the http.conf file in Apache and
change your workers.propeties file ect and if you want your server.xml file.
Read the doc "Working with mod_jk closely. Where it show a directory structure
like
JkWorkersFile
/usr/local/jakarta-tomcat/conf/workers.properties (partial exa
I am using Tomcat 3.2.1. The session is certainly valid, because
though I get a null pointer exception when I try to invalidate it, I can
still perform actions with that user...ie data is still in the session.
I am storing the session in a Map. I don't have a code snippet (its a
large/complex
"Daniel E. Reed" wrote:
> hehe - ooops!
>
> It looked like a foreground process (starting a background process), and
> when it didn't return me to a prompt, I thought it was freezing. Guess I
> should have paid more attention. Thanks!
Oh, it _did_ return you to a prompt:
> > > [root@linrr /ro
Use ant or copy web.xml - set server.xml using
examples as a reference. That is why the examples are there.
- Original Message -
From:
srikanth
To: [EMAIL PROTECTED]
Sent: Friday, December 29, 2000 1:56
AM
Subject: urgent...
how to install a new
web-appli
If the docs are confusing I agree, but the example given in Working with
mod_jk for the worker.properties file is for Solaris and I sure the
directory structure is very similar in Linux. The examples provided in
tomcat is a great way to see where to place your servlets and JSP pages,
also how to s
Hi,
I have a entry in my server.xml pointing to a
webapp.
This webapp is in the webapps directory.
When I start tomcat, it loads 2 contexts each refering to the
same application.
one is webapps/myapp and the other is www.host.com
I have now moved my app to a separate directory, and o
> 2 - Apache delegates the servlet to make the authentication. This would be
> the very best solution, but I suppose it is impossible (could an Apache
> module implement this feature?)
> You can do this! Turn off authentication in Apache and implement it in
> your Servlet.
It's not what I want
Billy Turchin typed the following on 11:18 AM 12/28/2000 -0500
> Hi again, here is a follow up to the problem I was having that I
>emailed about earlier. When I would get my first hit, I would save the
>HttpSession at that time in a static class accessible by all servlets.
>If instead I save the
Thanks for all the input.
Solution:
in the javascript file (call it javascript.jsp)
<% response.setContentType("text/javascript"); %>
mark all comment blocks with
<%--
comment .
--%>
you can include the javascript jsp file like a normal script file.
the only thing better than a soluti
Its that you are looking for?
Inside jk_pool.h, at line 92, you need to add this,
#elif defined(NETWARE)
typedef long longjk_pool_atom_t;
#else //ADD THIS LINE
typedef long longjk_pool_atom_t; // ADD THIS LINE
#endif
Simon Orch
Hi again,
Can you do something, please:
Try compiling all with gcc:
for a in *.c
do
gcc -DUW=700 -DUSE_HSREGEX -I -c $a
done
gcc -share -o mod_jk.so *.o
Jed Duty wrote:
> Thanks that is getting me closer. Now I am back to the error I was getting
> with mod_jserv when I tried to compil
hehe - ooops!
It looked like a foreground process (starting a background process), and
when it didn't return me to a prompt, I thought it was freezing. Guess I
should have paid more attention. Thanks!
-Dan
- Original Message -
From: "Kurt Bernhard Pruenner" <[EMAIL PROTECTED]>
To: <[E
On 12/28/2000 at 9:27 AM Tim Cronin wrote:
> This works fine in IE. but causes Netscape to hang.
What's the simplest example that causes Netscape to hang?
Is this the sort of thing you're doing?
Hello World from HTML
HelloWorld();
<% out.println("Hello World from JSP"); %>
function Hel
Hi,
I am loading a servlet on startup. In the init(), I have a
setting some system properties, and
doing some logging.
When I inspect the logs, its seems that the init method is
called exactly 3 times.
Any idea whats going on ?
I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 In
Hi again, here is a follow up to the problem I was having that I
emailed about earlier. When I would get my first hit, I would save the
HttpSession at that time in a static class accessible by all servlets.
If instead I save the HttpSession when an object is bound to a session,
via HttpSessionB
Shailaja Someshwar wrote:
>
> Hello
>
> I've read in docs that Tomcat needs to be started
> before Apache. I am working on RH Linux 6.2 on Intel
> System.
>
> How to go about doing this...I've got a tomcat init
> script from FAQ which can start and stop tomcat...now
> how to automate this to st
Hello,
I have been struggling with getting the isapi_redirect.dll to work with
IIS/PWS.
I have checked and rechecked the steps specified in the Tomcat IIS HowTo
document by Gal Shachor.
I keep getting 404-Not Found errors even though the redirector is
recognizing the URL as one
that matches the
I'm not sure if I know exactly what you're after here, but I'll throw a
couple of thoughts out there. It sounds like you want to use JSP pages to
keep all your JavaScript code so that you don't have to send comments to the
client. I haven't tried this, but I'm thinking something like this should
Hi all, I just upgraded to a new version of Tomcat and I've been
having problems with the HttpSession. My web application allows me to
invalidate any of the currently running sessions from an administration
component. So when new sessions are created, I save a reference to
them. This was work
Howdy all,
I have spent a bit of time pulling all the stuff together I
needed to get Tomcat on NetWare and also how to integrate
it with Apache on NetWare. I was looking on how to submit
docs into the CVS tree (is that the right place?) and well
being a newbe to CVS trees, I decided to post t
>- I dont see why a js file won't be handled like a jsp regarding source
>control and revision history.
this is not a problem. It is handled by source control, But I don't want
to send revision history and code documentation to client machines.
>- It costs you in performance to use js in jsp - y
For some background on authentication with Tomcat, see
<
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto
>
<
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg03534.html
>
1 - Apache authenticates the user whith basic (or other) method, and
servlet are enab
1 - read out the request headers, you get the username and password
(almost) directly
String auth = request.getHeader("authorization"); // as send by
apache
if (auth == null) return true;
try {
auth = new String((new
sun.misc.BASE64Decoder()).decodeBuffer(auth.substring(6)))
Marco wrote:
> 2 - Apache delegates the servlet to make the authentication. This would be
> the very best solution, but I suppose it is impossible (could an Apache
> module implement this feature?)
You can do this! Turn off authentication in Apache and implement it in
your Servlet.
-- Charles
Eylon wrote:
>How can I write and test my JSP on NT platform?
You'll have to download and install a jdk along with
tomcat. You'll find a jdk at http://www.javasoft.com/
and tomcat at http://jakarta.apache.org/.
There should be sufficient documentation with tomcat
to get you up and running. Wo
Hi,
I have developed a servlet application using Tomcat as servlet engine and
Apache as webserver, under linux plattform.
In some circumstances the servlet app is located in a reserved area of the
web site, this area is defined with basic authentication in the apache
httpd.conf. The problem is: r
Hello
I've read in docs that Tomcat needs to be started
before Apache. I am working on RH Linux 6.2 on Intel
System.
How to go about doing this...I've got a tomcat init
script from FAQ which can start and stop tomcat...now
how to automate this to start before httpd.
Thanks
Shailaja
___
How can I write and test my JSP on NT platform?
Thanks,
Eylon.
TopTier Israel www.toptier.com
4 Hacharoshet St. Ra'anana 43657, Israel
Tel: +972.9.7430940 Ext 143. Fax: +972.9.7463089
Eylon Steiner, Software Engineer
[EMAIL PROTECTED]
"Daniel E. Reed" wrote:
> [root@linrr /root]# 2000-12-27 08:07:18 - ContextManager: Adding context
> Ctx( /examples )
> 2000-12-27 08:07:19 - ContextManager: Adding context Ctx( /admin )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2000-12-27 08:07:19 - ContextManager: Adding cont
Am I recalling correctly that Tomcat 3.x *does not* support chunked
transfer encoder, but Tomcat 4.0 does? How does this work if I've got
Apache as a front end (Apache does support chunked encoding). Can
Apache decide to chunk encode a response that is supplied by Tomcat, or
is mod_jserv/jk more
I can't vouch for the Apache virtual hosts part, but to make it
available for all your Tomcat applications, you can put the jar in the
lib folder, along with servlet.jar. You may also need to add it to your
classpath.
You may get other offerings, but if not, there's a simple plug-and-play
JDBC s
On 12/28/00 3:15 AM, "Ravindran Venkatapathy" <[EMAIL PROTECTED]> wrote:
> Please unsubscribe me
Please follow the advice I just gave to Mark.
--
James Duncan Davidson[EMAIL PROTECTED]
!try
On 12/28/00 3:10 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> unsubscribe
Send email to [EMAIL PROTECTED]
--
James Duncan Davidson[EMAIL PROTECTED]
!try; do()
Hello
Where do I need to place the mm.jdbc driver for MySQL
in tomcat directory so that its available system wide
and all of the Apache virtual hosts.
Also can someone direct me to a sample application to
test my JDBC connection is working or not, as I do not
know much about Java.
Thanks in adv
Please unsubscribe me
Ravindran
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
unsubscribe
Put the content under the web apps.
Create a new folder which says ur application name
.
Put ur Jsp under the application and create w
web-inf and place all the class files.
This will work and we have tested a application
sucessfully.
Regards
Narayanan.
- Original Message -
Assuming the web-application is properly designed,
put it under the webapps folder, and Tomcat will
detect it. If it is in a WAR, Tomcat will expand
it first.
If you want to develop a web-application, see
< http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html >
***
Eeeeh - I couldn't find one so I compiled it myself.
It worked as straightforward as described in
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
after downloading the source jakarta-tomcat-3.2.1-src.tar.gz from
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src
Is there any documentation concerning the settings in workers.properties?
The defaults which come with it are apparently for Windows but I'm using
Linux.
In particular:
worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
java wrapper JAVA_HOME/jre/bin/java ?
I'd also appre
how to install a new web-application?".
We had the same problem, and we also increased these limits in the OS
(Linux).
However, it seems that the JVM (1.3 by SUN) has an internal limit of around
1024:
we created a program in c which opens FD as much as it can, and it reached
the limit specified by the OS. However, same program in java
I had that problem too. Some notes:
- I dont see why a js file won't be handled like a jsp regarding source
control and revision history.
- It costs you in performance to use js in jsp - you make the Tomcat
generate them again and again for each request. I guess that the js code is
quite static
When I started apache with the cooperation between apache1.3.12 and
tomcat3.2beta8,
I had an error:
API module structue 'jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled-
perphaps this is not an Apache module DSO?
To use mod_jk.so for Tomcat3.2beta version,apache must be compiled
Why?
I copy the mod_jk.dll file to moduler.And I run the tomcat
first.Then I run the apache.
But the screen isn't that "Apache/1.3.14 (win 32) mod_jk
running" .
It is " Apache/1.3.14 (win
32) running" .
It seems no change!
hope u r help!
thx!
oliver
///
I recently set this up (NT4.0 Apache 1.3.14 and
tomcat) and it works for me. You need to download the mod_jk.dll or you write
your own. The docs say "For Win32, mod_jk is available as mod_jk.dll. If there
isn't a prebuilt mod_jk available or you wish to build your own copy, you can
build it
85 matches
Mail list logo