Actually, removing Jasper from 3.3.1(a) is about the same as
for 4.1.x: You
just comment out the JspInterceptor element in server.xml,
and voila: you've
got a JSP-less Servlet-Container.
I tried that at the time - I can't remember which version, I'm afraid - and if I
didn't have Jasper
Johann Uhrmann wrote:
Hello,
I am writing a single-sign-on filter that uses cookies and
a request-wrapper in order to fake a form-based login in
case the user is already authenticated in another web application.
The filter needs some internal structures to perform the single-sign-on
process, e.g.
With the users: I thought of this strategy (one usr for both), too. Then
one must be able to log-in or su to the apache-user to start tomcat,
which I disallowed (book-advice ;-) by now. Or is there a way let apache
start tomcat?
Could you clarify?
I hardly have any JSPs by now.
We unfortunately
OK. seems i am asking a hard question here. But I did some experiment
myself. just to give out more hints to the list to help solving my problem
and I am hoping someone maybe able to help. I am sure someone in the world
will have the same problem and been solved.
here is what i have done.
There was a thread the other day about the same issue I think. Two persons
answered:
Tim Funk replied:
YOu mean this?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096
-Tim
And John Wigfield replied:
Have you applied the hotfix?
As observant readers will have noticed, I'm migrating a webapp or two from Tomcat
3.2.3 to Tomcat 4.1. Now, our apps have a very specific version of Xerces that they
currently need to use (although I'm hoping this requirement will go away). I believe
the version is Xerces-J 1.4.4 (at least
Yeah, well, it won't work with 3.3.0 (it will exhibit the intestinal
behavior that you describe :). After the 3.3.0 release the Velocity people
lobbied for a non-JSP Servlet-container, so with 3.3.1, we (with non-default
options) gave it to them.
Jon Skeet [EMAIL PROTECTED] wrote in message
Hi everybody,
I'm using tomcat 4.1.27 on a Linux system. It works very well ! But I
had a little problem of disk space because of the $CATALINA_BASE/temp
that grows up very fast in size. In that folder I found some file s like
jar_cahe*tmp.
Does someone know how to limit the size of this
I will GO to SE-Asia if the $$$ is right!
Quoting unplug [EMAIL PROTECTED]:
I am exactly from HK.
engp0510 wrote:
From PR. China studying in Singapore.
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday,
Jon Skeet schrieb:
Just out of curiosity: I'm wondering why you want to do that?
The overhead of the JDK over JRE isn't that big and disk space isn't
usually a problem.
We distribute the JRE in our installation. I know these days you're allowed
to distribute tools.jar (and javac.exe?) but the
Hi,
I've downloaded tomcat (jakarta-tomcat-5.0.9.tar.gz) and I'm following
the instructions found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
There is a little error that might confuse beginners :
cd $CATALINA_HOME/bin
tar xvfz jsvc.tar.gz
cd jsvc
Damien wrote:
Hi,
I've downloaded tomcat (jakarta-tomcat-5.0.9.tar.gz) and I'm following
the instructions found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
There is a little error that might confuse beginners :
cd $CATALINA_HOME/bin
tar xvfz jsvc.tar.gz
cd
Hi,
I'm following the instrutions found in :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
I'm trying to install my first webapp in tomcat but a problem occurs :
[EMAIL PROTECTED] tomcat-test]$ ant install
Buildfile: build.xml
prepare:
compile:
install:
[install]
Johann Uhrmann wrote:
Johann Uhrmann wrote:
Hello,
I am writing a single-sign-on filter that uses cookies and
...
after reviewing my logs, it seems that session objects are being
recycled by the server and the id is set to null while they are
not in use.
Is that correct?
I think so. But in
There is a typo in the documentation - you can not override the Xerces
parser used. You can replace the one in /common/endorsed and see if it works
- I don't recall which version tomcat requires. Have you tried your app with
the version that tomcat supplies?
you can't guarantee the order in which
There is a typo in the documentation - you can not override the Xerces
parser used.
Aha. That at least explains my confusion :)
You can replace the one in /common/endorsed and
see if it works - I don't recall which version tomcat requires. Have you
tried your app with the version that
are you sure your build.xml is correct, my builds do not output the file
contents...
Mail von Extern
Damien [EMAIL PROTECTED]
03.09.2003 12:44
Bitte antworten an Tomcat Users List
An: [EMAIL PROTECTED]
Kopie:
Thema: Problem with my first webapp
Hi,
I'm
Howdy,
I saw from the other messages you already have a workaround, but here's
another suggestion anyways: take the xerces that comes with tomcat and
put it in $CATALINA_HOME/server/lib. Take the one your app needs and
put it in the endorsed directory. See what happens ;)
But as you yourself
[EMAIL PROTECTED]
Hi
I have an application siefriend..it had apache,jrun configuration.No w
i am migrating to apache ,tomcat4.1.18 ...now i am getting following error.
pl find my web.xml and catalina.out(sorry its big one).
Thanks in advance
shanta.B
?xml version=1.0 encoding=ISO-8859-1
Howdy,
As the parsing error clearly says, you have the wrong order of elements
in your servlet tags in web.xml. You can't have description after
servlet-class, for example. Use an XML editor or whatever you like to
validate your web.xml against the DTD. It's also a better idea to use
the
Hi,
I have been trying to get SSL client certificate during a client
authenticated SSL session. I am using Apache 2.0 with Tomcat 4.1.27.
Everything works succesfully: when I want to open a SSL protected JSP page
my browser asks for my client certificate and verifies it. But when I try to
get
Did you apply the hotfix, that is specifically for class reloading
issues in 4.1.27 ?
-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 9:13 PM
To: [EMAIL PROTECTED]
Subject: RE: restart tomcat everytime I make change to servlet
Le mer 03/09/2003 à 14:50, [EMAIL PROTECTED] a écrit :
are you sure your build.xml is correct, my builds do not output the file
contents...
I have downloaded an example build.xml, so I think it is correct.
-
To unsubscribe,
Don't pull out your hair, check my reply to your first post... (class
reloading is buggy in Tomcat 4.1.27)
-Original Message-
From: Clive Luk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 2:07 AM
To: Tomcat Users List
Subject: restart tomcat everytime I make change
First thing I would try is putting your LoadModule line ABOVE every line
that uses Jk*, such as:
JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT
As positioned in your post, the lines shown above would have no
Hello list
I implemented a session counter to count all active sessions. Now I have
the problem that because the server is being restarted very often, my
static variable activeSessions is always set to 0.
Is there an other way to implement this? Maybe by saving the variable
activeSessions to
I'm running into a problem when I try to run shutdown.bat (or use the stop parameter
directly). I get an exception in the main Tomcat process:
java.net.BindException: Cannot assign requested address: connect
snip
I've had a look in Bugzilla, and this seems to be bug 17193. The process is
Hi Shanta,
The order of your elements is important:
(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini
t-param*,load-on-startup?,security-role-ref*)
Your servlet-class tags must appear before your init-param tags.
display-name and description must appear before
Howdy,
Le mer 03/09/2003 à 14:50, [EMAIL PROTECTED] a écrit :
are you sure your build.xml is correct, my builds do not output the file
contents...
I have downloaded an example build.xml, so I think it is correct.
That's not always a good assumption ;) Where's the build file from?
Yoav
and you are sure you have a web application (structure and web.xml)?
perhaps you should post some additional information (files of you webapp
and build.xml)
Mail von Extern
Damien [EMAIL PROTECTED]
03.09.2003 15:48
Bitte antworten an Tomcat Users List
An: Tomcat Users List
At 10:46 03/09/03, you wrote:
Hi everybody,
I'm using tomcat 4.1.27 on a Linux system. It works very well ! But I had
a little problem of disk space because of the $CATALINA_BASE/temp that
grows up very fast in size. In that folder I found some file s like
jar_cahe*tmp.
Does someone know how
Howdy,
Is there an other way to implement this? Maybe by saving the variable
activeSessions to a session (which is restored when the server has
restarted)?
This is not a bad idea, and might be the easiest way. A DB write on
shutdown/read on startup is also an option.
Yoav Shapira
This
Howdy,
I think a jk2 release (v1.2.5 I believe) is very close, and has this bug
fixed. Check the recent jk2 release thread on tomcat-dev archives for
more information.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Hi
I'm having a problem using form-based authentication. It all works
fine with standalone Tomcat, but goes pear shaped on Apache with
Tomcat. It seems to be the same problem that is described in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg43091.html
(but I think it's more a Tomcat thing
When the session is created add an attribute that implements
HttpSessionActivationListener. When the server stops the
sessionWillPassivate method will be called. When the server restarts the
sessionDidActivate method will be called. Use those methods in
conjunction with your
Hi All,
I just upgraded to tomcat 4.1 from tomcat 3.
I have installed setup Tomcat 4.1 and its running fine with sample web
applications.
When i put my web application's war file into webapps folder and try to
start tomcat, it gives me following error.
Sep 3, 2003 7:19:09 PM
Howdy,
You need to make sure your web.xml file is compliant with the Servlet
Specification v2.3 DTD. Post your web.xml and we can help you migrate
it.
In addition, I recommend you use the latest stable tomcat 4.1, which is
4.1.27, not 4.1.10 which you're using now.
Yoav Shapira
Millennium
Okey guys!
I have problems with Tomcat 4.1.x (27)
I am using struts 1.1 tiles and Co. to make my app. The first and pretty
big problem is with encoding.
I have one of tiles which reads menu names from property file which
contains texts with special chars. They are correct
and that's prooved.
I think a jk2 release (v1.2.5 I believe) is very close, and
has this bug fixed.
That's excellent news. When it's released, will I be able to just dump a new
tomcat-jk2.jar in server/lib, and everything should spring to life, or is there more
to it than that?
Check the recent jk2 release
Hi All,
I'm using the o'reilly mutipart request classes to upload files using a
servlet and its happily working using Tomcat 4.1.18. However, i've upgraded
to the tomcat 4.1.27 and a certain file (just a jpg) causes the upload to
fail with an java.io.IOException: unexpected end of part. Now i can
Greetings,
I need to know how to get tomcat to autostart on a redhat linux 8 box - can
anyone tell me?
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
To unsubscribe, e-mail:
Howdy,
That's excellent news. When it's released, will I be able to just dump
a
new tomcat-jk2.jar in server/lib, and everything should spring to life,
or
is there more to it than that?
I don't know -- I don't use any of these connectors...
Check the recent jk2 release thread on tomcat-dev
Please i try since one week to become this program
without error, but without success. Perrhaps can you
help me!
I write a jsp-file for calling and saving data from an
access existing database which i connect with a
odbc-driver.
The adrList.jsp ist in the directory
c:\eclipse\workspace\projectX\
Courtesy of Oscar Carrillo:
http://daydream.stanford.edu/tomcat/install_web_services.html#daemons
You need to download his tomcatd script, and copy it to /etc/rc.d/init.d.
Then execute: /sbin/chkconfig --del tomcatd
Then execute: /sbin/chkconfig --add tomcatd
Note you will need to modify the
do you know if it is fixed in 5.0.9?
Mail von Extern
Mike Curwen [EMAIL PROTECTED]
03.09.2003 15:48
Bitte antworten an Tomcat Users List
An: 'Tomcat Users List' [EMAIL PROTECTED],
[EMAIL PROTECTED]
Kopie:
Thema: RE: restart tomcat everytime I make change to
Jon Skeet wrote:
I think a jk2 release (v1.2.5 I believe) is very close, and
has this bug fixed.
That's excellent news. When it's released, will I be able to just dump a new tomcat-jk2.jar in server/lib, and everything should spring to life, or is there more to it than that?
The release
After adding jk2 to my apache's httpd.conf, I see these errors on startup.
Any ideas on what this error indicates?
[Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
[Wed Sep 03 10:35:32 2003] [error] mod_jk child init 1 -2
[Wed Sep 03 10:35:32 2003] [notice] Apache/2.0.43 (Unix)
I've just realised something. The machine thats running Tomcat 4.1.27 is
serving the pages with IIS and isapi_redirector2.dll, when i connect
directly to Tomcat via port 8080 it works fine.
Right, i've just searched the archives and found 2 people posting (much more
elequently) the same problem
John,
I can easily deploy a basic app using the manager. But when it comes to
deploying something that needs additional Context information I come
un-stuck.
I basically have an app that I want to connect to an AS/400 database using
connection pooling.
The only way I can get it to work is to
Can somebody provides me a complete tree with a simple application to
start working on ? I think it would be a good idea if somebody
'tar/gzip' the directory strutcure found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
so a beginner is able to start with a clean
Tom,
I found that the O'Reilly classes were totally unreliable on Solaris with
binary uploads and mod_webapp.
However, I They work fine on windows and Linux, and luckily I've not needed
them on a Solaris deployment.
I think decided it was actually caused by a bug in Solaris mod_webapp - are
you
Fred Kreek wrote:
At 10:46 03/09/03, you wrote:
Hi everybody,
I'm using tomcat 4.1.27 on a Linux system. It works very well ! But I
had a little problem of disk space because of the $CATALINA_BASE/temp
that grows up very fast in size. In that folder I found some file s
like jar_cahe*tmp.
try
%= rs.getString(i) %
instead of
% = rs.getString(i) %
Bruno Armand wrote:
Please i try since one week to become this program
without error, but without success. Perrhaps can you
help me!
I write a jsp-file for calling and saving data from an
access existing database which i connect with a
Le mer 03/09/2003 à 16:03, [EMAIL PROTECTED] a écrit :
and you are sure you have a web application (structure and web.xml)?
perhaps you should post some additional information (files of you webapp
and build.xml)
Here is the structure :
[EMAIL PROTECTED] tomcat-test]$ ll -R
.:
total 40
If you are using a WAR file, put your entire Context block into a file
called (your-webapp).xml and stick it in META-INF. Whatever is legal in
a Context block in server.xml is also legal there. Then you can deploy
the WAR file using the manager app froma remote system.
The admin and manager
You don't have a shared memory file configured in your properties files,
or if you do, it isn't accessible or writable.
John
Raj Dasgupta wrote:
After adding jk2 to my apache's httpd.conf, I see these errors on startup.
Any ideas on what this error indicates?
[Wed Sep 03 10:35:32 2003]
im on Windows 2000 server. It seems to be a bug in isapi_redirect2.dll. Any
thoughts anyone?
-Original Message-
From: Andy Eastham [mailto:[EMAIL PROTECTED]
Sent: 03 September 2003 16:23
To: Tomcat Users List
Subject: RE: File upload Bug?
Tom,
I found that the O'Reilly classes
Tom Lyle wrote:
I've just realised something. The machine thats running Tomcat 4.1.27 is
serving the pages with IIS and isapi_redirector2.dll, when i connect
directly to Tomcat via port 8080 it works fine.
Right, i've just searched the archives and found 2 people posting (much more
elequently)
$CATALINA_HOME/webapps/myApp
$CATALINA_HOME/webapps/myApp/hello.jsp
$CATALINA_HOME/webapps/myApp/WEB-INF
$CATALINA_HOME/webapps/myApp/WEB-INF/classes
$CATALINA_HOME/webapps/myApp/WEB-INF/lib
$CATALINA_HOME/webapps/myApp/WEB-INF/web.xml
hello.jsp:
%
String myVar = new String(Hello World);
you can create a script in /etc/init.d/ or
in /etc/rc.local simply put
export TOMCAT_HOME=blablabla
export CATALINA_HOME=$TOMCAT_HOME
$CATALINA_HOME/bin/startup.sh
Filip
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 7:52 AM
Le mer 03/09/2003 à 16:01, Shapira, Yoav a écrit :
Howdy,
Le mer 03/09/2003 à 14:50, [EMAIL PROTECTED] a écrit :
are you sure your build.xml is correct, my builds do not output the file
contents...
I have downloaded an example build.xml, so I think it is correct.
That's not always a
Howdy,
Can somebody provides me a complete tree with a simple application to
start working on ? I think it would be a good idea if somebody
'tar/gzip' the directory strutcure found in this page :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/sample/
so a beginner is able to start with a
Hi Bobbie.
Please see
http://daydream.stanford.edu/tomcat/install_web_services.html#java At the
end of the HOW-TO you'll find what you need...
Good luck!!!
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 8:52 AM
Subject:
I am about to deploy a struts app in production. I have been doing
development using port 8080 and a Context path of /aup-reports and a
docPath of aup-reports. My app uses BASIC authentication with a JDBC
Realm into postgres. Everything works fine in this configuration with
4.1.24 and 4.1.27 and
The release that Yoav is referencing is a new mod_jk, which
is an Apache DSO module, not a JAR file. So yes, I guess you will be able
to sub in the new DSO as soon as you can build one or find a binary, but don't
confuse it with a JAR file.
In that case I can't see how it's going to help
oops, that should be:
out.println(div align='center'h2 + myVar = /h2/div);
My bad.
John
John Turner wrote:
$CATALINA_HOME/webapps/myApp
$CATALINA_HOME/webapps/myApp/hello.jsp
$CATALINA_HOME/webapps/myApp/WEB-INF
$CATALINA_HOME/webapps/myApp/WEB-INF/classes
I'm working with JDK 1.4.0 and tomcat 4.1.27.
I configured JDBCRealm in server.xml for a FORM authentication.
When I authenticate I get a 400 error code:
message : Invalid direct reference to form login page
description : The request sent by the client was syntactically incorrect (Invalid
direct
I had this (or a similar problem) a long time ago. It only occurred when connecting
to IIS via HTTPS (SSL). Also, my problem was with isapi_redirector.dll, not
isapi_redirector2.dll. It might be the same issue, though.
It was some sort of timing problem with the ISAPI redirector. I hacked
I am using Apache 2 and Tomcat 4.1.24 connected with jk2. I installed
the struts example webapp, but I can't seem to get Tomcat to execute the
.do files (I get the apache 404 screen). What simple step am I missing?
The struts docs only seem to cover up to Tomcat 3.1 (for tomcat/apache
setup).
I have tomcat 4.1.27 front ended by apache 2.0.47 and mod_jk connector.
Occasionally I run out of apache slots because all the slots are
apparently hung while Sending Reply. (W status from serverstatus screen).
These connections appear to all be stuck in a dialog with tomcat.
If I restart
I'm working with JDK 1.4.0 and tomcat 4.1.27.
I'm in advanced development and unexpectedly I cannot shutdown Tomcat.
I spent all day to try undertand the why ?
shell error message:
Stopping service Tomcat-Standalone
java.net.NoRouteToHostException: No route to host: connect
at
I defer to Yoav, as it is entirely possible (though not probable) that I
am on crack. But the thread referenced is most definitely talking about
mod_jk.
John
Jon Skeet wrote:
The release that Yoav is referencing is a new mod_jk, which
is an Apache DSO module, not a JAR file. So yes, I
-Original Message-
From: Fabio Bazzani [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:15 AM
To: Tomcat Users List
Subject: Tomcat 4.1.27 : error in FORM authentication
I'm working with JDK 1.4.0 and tomcat 4.1.27.
I configured JDBCRealm in server.xml for a
I can see tomcat 4.1.27 working fine (including executing the examples)
when I go to http://localhost:8080 and to http://localhost/jkstatus, but
I am having problems connecting apache2 to tomcat through mod_jk2. I am
getting 500 error when I go to http://localhost/examples
Another thing... I
I seemed to have read that java/tomcat isn't supposed to have memory
leaks, but something seems to be running me out of memory and I don't
know what.
After a number of edit/undeploy/compile/deploy iterations I get the
following:
javax.servlet.ServletException: Servlet execution threw an
Hello Everyone,
Could anyone tell me some good reference books related to java
servlets? In
addition, any java books related to the Multimedia like showing
pictures,
playing videos and etc.
Thank you.
-
To unsubscribe,
connect is not a hostname,
looks like there is something wrong with your networking on that machine,
not Tomcat
Filip
- Original Message -
From: Fabio Bazzani [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 9:29 AM
Subject: tomcat 4.1.27:
Did you added the .dll under modules?
(Sorry if this it's a stupid question)
Marco
- Original Message -
From: Raj Dasgupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 4:10 PM
Subject: Configuring jk2 for Apache 4.0.23/TomCat 4.0.27
After adding jk2 to
I'm sorry I was not so detailed in my problem description.
I've just done all that you said !
I made a link to a jsp page which was included in a security constraint in
web.xml.
When I click on my link before getting my page, Tomcat give me the login.jsp
to authenticate. The authentication fail !!
Try passing the jvm the -server option
-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 9:57 AM
To: tomcat
Subject: Memory leaks?
I seemed to have read that java/tomcat isn't supposed to have memory
leaks, but something seems to be running
Hello Everyone,
Could you mention some good reference book related to java servlets? In
addition, any java books related to the Multimedia like showing pictures,
playing videos and etc.
Thank you.
-
To unsubscribe, e-mail:
Core SERVLETS and JavaServerPages by Marty Hall published by Sun and JSP,
Servlets, MySQL by David Harms published by mandtbooks.com
Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL
Core Servlets.
- Original Message -
From: Jim Si [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:32 AM
Subject: Any Recommended Java/Servlet Books
Hello Everyone,
Could anyone tell me some good reference books related to java
Archives, this has come up before.
John
Jim Si wrote:
Hello Everyone,
Could anyone tell me some good reference books related to java
servlets? In
addition, any java books related to the Multimedia like showing
pictures,
playing videos and etc.
Thank you.
When I go to my servlet I get HTTP Status 404 -
/jasonTest/servlet/foo/HelloWorld
The url is:
http://neptune/jasonTest/servlet/foo/HelloWorld
My config is as follows: (What is wrong here??)
I have a webapp defined in server.xml as
===
Context path=/jasonTest
Now,
i correct all the errors (As you see n the code
below), but the jsp-page ist displayed, but without
anything written (from html or database.). Can you
know why please?
Thank!
--- Jon Wingfield [EMAIL PROTECTED] schrieb:
try
%= rs.getString(i) %
instead of
% = rs.getString(i) %
You have to map your servlet in web.xml.
FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker
John
Jason Jesso wrote:
When I go to my servlet I get HTTP Status 404 -
/jasonTest/servlet/foo/HelloWorld
The url is:
http://neptune/jasonTest/servlet/foo/HelloWorld
My config is as follows:
Thanks for the info
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:04 AM
To: Tomcat Users List
Subject: Re: How to get tomcat to autostart on linux
Courtesy of Oscar Carrillo:
But, I don't want to use the invoker. I want to be able to specify
the servlet itself in web.xml.
The invoker is evil according to the link you gave me.
John Turner wrote:
You have to map your servlet in web.xml.
FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#invoker
John
Jason
I'm trying to accomplish a similar thing with an AS/400 db over JNDI.
I have my context setup in my meta-inf and from stack traces; I see that
DBCP is the one launching the error, so I know that the context binding is
loading successfully.
The problem is that DBCP is throwing and exception that
Yes, exactly.
The way you have it now is trying to use the Invoker servlet.
You are missing the servlet mapping in web.xml, as explained in option
#3 of this post which is linked from the FAQ section:
http://marc.theaimsgroup.com/?l=tomcat-userm=103945394724196w=2
John
Jason Jesso wrote:
Jason,
John was pointing out that you're missing the servlet-mapping which
basically says, For a URL that looks like X, send the request to servlet
Y. You've also got a malformed servlet-class value. Something like
this should work...
servlet
servlet-nameHelloWorld/servlet-name
Docs indicate that leaving a stmt or rs object open can cause memory leaks.
Found the following in the tomcat docs somewhere, i think:
Here is an example of properly written code to use a db connection obtained
from a connection pool:
Connection conn = null;
Statement stmt = null; // Or
Hi,
I am working on a servlet that checks a form content without using
javascript.
Does anyone know if there is a way to set the focus to a particular
field using java?
thanks for any help :-)
kind regards,
Luke
--
when my computer smiles, I'm happy
Very difficult to tell ;)
Do you have any errors in the tomcat logs?
Does your debug in the SQLException catch clause get written to std out
or catalina.out?
If a SQLException did get thrown during the inserts/select the output
would be:
html
head
/table
/body
/html
Not quite sure how that
My guess is that this is right then:
?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/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameHelloWorld/servlet-name
Jason
servlet
servlet-nameHelloWorld/servlet-name
servlet-class!-- Over here you have to specify the complete path
to the servlet -- HelloWorld/servlet-class
/servlet
Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
At 12:36 PM 9/3/2003, you wrote:
My guess is that this is right then:
servlet
servlet-nameHelloWorld/servlet-name
servlet-classHelloWorld/servlet-class
/servlet
servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/servlet/foo/HelloWorld/url-pattern
I am having a similar issue with URL mapping
This used to work:
Any tips? would like URL pattern to be host:port/webappname/Form
web-app
display-nameaeform/display-name
description
AE form controller.
/description
servlet
servlet-nameAeFormServlet/servlet-name
Given your initial post your class HelloWorld was in
jasonTest/WEB-INF/classes/foo
So either HelloWorld must be in a package foo. ie the first code line of
the Helloworld source is:
package foo;
or you need to put HelloWorld.class in
jasonTest/WEB-INF/classes
1 - 100 of 145 matches
Mail list logo