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
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
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
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 -
unsubscribe
Please unsubscribe me
Ravindran
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
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
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()
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;
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
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]
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
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:
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
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
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 enabled
- 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 - you
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
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
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
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
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
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 Intel
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?
HTML
HEAD
SCRIPT src="helloworld.js"/SCRIPT
BODY
H1Hello World from HTML/H1
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
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 to
Hi,
I have a host 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
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
Use ant or copy web.xml - set server.xml using
examples asa 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
"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 /root]#
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
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
I think by removing
ContextInterceptor className="org.apache.tomcat.context.AutoSetup"
/from the server xml
- Original Message -
From:
Shahed Ali
To: [EMAIL PROTECTED]
Sent: Thursday, December 28, 2000 6:15
PM
Subject: Host Multiple
Contexts
Hi,
I
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 would I get the
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
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
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 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
# Root
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)
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
%@ page import="package.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-Encoding",
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
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/
%@ page import="package.GZIPOutputStream" %
%@ page import="java.io.OutputStream" %
%
OutputStream
out1 = response.getOutputStream(); out = new
PrintWriter(new GZIPOutputStream(out1), false);
/*you should use the response.setContentType()
*/
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\bintomcat run
Including all jars in ..\lib in your
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
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
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);
%
jsp:forward page='%= str1 %' /
Any idea?
Thanks,
Jayesh
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
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
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
unsubscribe
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
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
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 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
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 email to
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 question
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)
Hi All
Ihave 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 very
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 machine
Hello,i have allready installed Tomcat 3.2
withIIS5.0 on my machine using Windows 2000 professional. also i
haveset theISAPI filtersin 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
Hi ,
Im using a Bean with scope="session" as follows.
jsp:useBean id="test" scope="session" class="MyPack.Mybean"/
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
62 matches
Mail list logo