Hi all;
I'm doing client side XSLT and forms in my webapp
usually generate XML responses as below:
...
I've dumped HTTP traffic and it seems that whenever IE
tries to fetch /xsl/foo.xsl it sends "Cache-Control:
no-cache" header, which prevents stylesheet from being
cached, however, when I ty
Iam using the Tomcat 4.1.24 clustering with apache 2.0.43. everything seems to work
fine, many many thanks to Filip for the fine work. But I have a problem when I try to
save a session notifier called 'SessionTimeoutNotifier' which extends
'HttpSessionBindingListener' in the session. First it sa
After asking help to Nikolas (1,5 h after!) I solved the problem too.
The system manager told me that nothing had happened, but changing
the URL for the DB connection from:
jdbc:mysql://localhost/mbm162?autoReconnect=true
into
jdbc:mysql://127.0.0.1/mbm162?autoReconnect=true
everything worked
Hi,
I have recently installed TOMCAT 4.1.27. I developed a few
applications in a differect directory path from the tomcat installation
path. Initially, I updated the server.xml with my web application path.
But I realize that any update I make to the jar file (located in my
application path/WEB
using Tomcat 4.1.27 with Red Hats 8.0 and J2SDK
1.4.1 and I got this error messages when starting tomcat. I attached my
server.xml.
Below is the error message i get from
catalina.out:
ERROR reading
/usr/local/jakarta
Hi Matt,
how does it work if you use a meta tag direct in html?
On 09/11/2003 07:54 PM Sgarlata Matt wrote:
I'm having trouble using the <%@ page contentType="" %> directive and
container-based authentication. Here is a toy example that works great
without container-based authentication but does
hello,
i have just completed a course on web programming where all the practical work was
done on a windows box. now i try to redo everything on my linux (suse 8.2) machine and
i keep hitting problems. i have checkeed the archive for "deployment" and if the right
clue is there i didnt identify i
Hi,
I want to know if there are free guides in teaching you how to do
dynamic drop-down menus?
Regards,
Anson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You'll need to know DHTML to achieve this (unless you want to use applets
and AWT...).
Go here for examples and help : http://www.dynamicdrive.com/
Alain
-Message d'origine-
De : Anson Zeall [mailto:[EMAIL PROTECTED]
Envoyé : vendredi, 12. septembre 2003 11:42
À : Tomcat Users List
Objet
With java script that is...
-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 7:42 PM
To: Tomcat Users List
Subject: Dynamic drop down menus
Hi,
I want to know if there are free guides in teaching you how to do
dynamic drop-down menus?
Folks,
Tomcat 4.0.6 on Windows 2000 - we were running out of memory, so I
added a "-Xms256m" to the JAVA_OPTS environment variable. However,
it didn't seem to make any difference.
Now, would I be right in saying that if Tomcat is started from the
Windows desktop menu ie.
Programs->Apache
If the menu runs that, then it is unlikely that the environment variables
are seen. The current version of Java doesn't have any non-deprecated
methods for accessing OS environment variables. You could edit the .pif
file used to start Tomcat and add the -Xms switch to the command.
BTW, does Auto
Hi Marco,
Thanks for your answer.
I'm using pure JSPs (no Struts or the like), but indeed most of the content
come from other sources (Database, java classes output). So parsing the JSP
files themselves is not a solution for my case (as indicated in the Lucene
documentation anyway).
So I tried to
Hi,
The problem quoted below is still driving me up the walls!
Now, I've also tried installing the taglibs in /common/lib/ (instead of
the app's lib) and fixed some presumably unrelated differences between
the server.xml files.
Am I the only one to have this problem?
I want to try installing
IIRC, getRemoteAddr() is as reliable as your router in prventing spoofed
addresses.
So you should be safe if you can trust your network to say the 198.168.0.25
is that computer and not a spoof.
-Tim
Martin Jericho wrote:
Since it looks like there is no easy way to do it, does anyone know of a
Look at setting the environment variables CATALINA_HOME and CATALINA_BASE.
I've personally never set these different but I think that is what you want.
-Tim
Joe Harmon wrote:
I have an situation were we are deploying 3 instances of Tomcat off of
the same directory stucture using three different
I have a Struts app that's running under Tomcat 4.1.27 and now and then
I get this in my log:
11.sep.2003 10:44:13 org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
If the connection is not proper established this error occurs.
The easiest was to fix it is to catch the exception in your application, so your
application would not die at every occurrence.
Surround the socket write statement with the catch construct.
-Ursprüngliche Nachricht-
Von: Bjø
Well, the problem is that I don't use any sockets in my webapp
BTJ
On Fri, 2003-09-12 at 13:22, Nitschke Michael wrote:
> If the connection is not proper established this error occurs.
> The easiest was to fix it is to catch the exception in your application, so your
> application would not
Hello,
I'm moving a Struts webapp from Weblogic to Tomcat. The problem I'm now
having is that it seems like Tomcat enforces case sensitivity for the TLD
tags.
For instance
in the api for these tags, it should actually be maxlength and not
maxLength.
weblogic doesn't care, but tomcat does. It
The jsp spec says this:
"All attributes of a custom action must be JavaBeans component properties,
although some properties may not be exposed as attributes. The attributes
that are visible to the JSP translator are exactly those listed in the Tag
Library Descriptor (TLD)."
I would think the use
Is there another exception thrown below the one you provided?
Mostly it's headed by a line with "root cause" in it.
It's not necessary that you are using sockets directly, if you use
the response output stream it is handled over a socket for example.
If there is a second exception stack trace it
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> I have a Struts app that's running under Tomcat 4.1.27 and now and then
> I get this in my log:
>
> 11.sep.2003 10:44:13 org.apache.jk.server.JkCoyoteHandler action
> SEVERE: Error in action code
> java.net.SocketException: Broken pipe
> at
Howdy,
Use a different realm than the default UserDatabase realm. See
server.xml and its comments as well as the Realm documentation.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Jeff Cummings [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 11, 2003 5:33 PM
>
Hello,
I read this article about the evaluation of the CLASSPATH attribute set in the
manifest in a jar file.
This CLASSPATH attribute refers to other jar files.
see:
http://marc.theaimsgroup.com/?l=tomcat-user&m=105360018918350&w=2
I don't understand if the Tomcat class loaders (e.g. the common
Howdy,
Looks like a badly installed tomcat - how did you install it?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Yang Soon Chiao [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 3:49 AM
To: [EMAIL PROTECTED]
Subject: cannot start tomcat
using Tomcat 4.1.27
Howdy,
Post your directory structure so we can make sure it's OK.
Don't put a entry in server.xml for your webapp: for now, let
tomcat auto-deploy it with the default configuration.
Make sure all your links in your webapp are correct, i.e. they don't go
to /myServlet but rather /myWebapp/myServ
Howdy,
Just google.
http://www.google.com/search?sourceid=navclient&q=dynamic+drop+down+menu
s+javascript
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Anson Zeall [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 5:42 AM
>To: Tomcat Users List
>Subject: D
I must have been losing it yesterday because I tried again just now with <%@
page contentType %> and it worked fine. If I have more problems I'll try
that trick; I didn't know about that.
Thanks Adam!
Matt
- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Tomcat Users Li
I downloaded Tomcat 5.0. Installed on W2K machine. Tomcat Starts O.K. I am
able to test all the samples and works fine. I create a simple JSP page and
I get the following error.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated
Hi,
I'm pretty new to this TagPlugins-thing in TC5, but after finding the
tagPlugins.xml in CVS I successfully got up.
So here's my question:
I have this simple Testcase JSP-page:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued.
Please note my new email address. To prevent automated systems from obtaining my new
email address, I will spell out the @ symbol. Please send all future email to:
gordon[at]aspengroup.net
http://www.htmlcodetutorial.com/
- Original Message -
From: "Anson Zeall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 5:41 PM
Subject: Dynamic drop down menus
> Hi,
>
> I want to know if there are free guides in teaching you how t
there are some timeout settings you can set..(I think)
either in apache or else.. not sure where..
Holger Klawitter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I have a Struts app that's running under Tomcat 4.1.27 and now and then
I get this in my log:
11.sep.2003 10:44:13 org.apache.
i think i may have found an answer.
from the archives, message subject "ResourceLink and DefaultContext", Cam
Smith reported following:
"If I place the ResourceLink inside explicity declared Context
elements, all works fine and I can access the data source from multiple
webapps."
Cam also provid
Nevermind, I found the stuff I want from dynamicdrive.com ...thanks
anyway
-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 12:13 AM
To: Tomcat Users List
Subject: Re: Dynamic drop down menus
http://www.htmlcodetutorial.com/
- Original M
HI,
I want to know if anyone knows how to embed JSP code in JS files? 'cause
I want to use encodeURL inside the JS filesomehow.
Regards,
Anson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Rename the js file to jsp then update your link to pull in the jsp file
accordingly. (You may have to do a mime-type set too)
-Tim
Anson Zeall wrote:
HI,
I want to know if anyone knows how to embed JSP code in JS files? 'cause
I want to use encodeURL inside the JS filesomehow.
Regards,
'cause problem right now is..I tried dumping the js file code...into
my jsp file..and put in the encodeURL.and when I click on the
click via the browserit says my redirect for the URL has exceeded.
Dunno what that means..
Anson
-Original Message-
From: Tim Funk [mailto:[EM
Thanks, butwhatand how to set the mime-type?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 12:37 AM
To: Tomcat Users List
Subject: Re: Embedding JSP code in a JS file
Rename the js file to jsp then update your link to pull in t
First, install your JDK to the root of the C: drive, not under Program
Files. Spaces in the path mess things up usually. Second, it is
JAVA_HOME, not Java_Home. And do you have %JAVA_HOME%\bin in your system
"Path" variable?
Jake
At 08:38 AM 9/12/2003 -0500, you wrote:
I downloaded Tomcat 5
I have Java FOP (XSLT-FO PDF converter) code that runs great from the
command line if I put the fop, batik, avalon, and xalan jars
in the JAVA_HOME\jre\lib\ext dir.
If I put this code in a servlet under Tomcat 4.1.24, I get transform errors.
I have tried putting the FOP jars in various Tomcat l
is this class in all your webapps?
can you send me a test case webapp and I will try it out
> -Original Message-
> From: Mandeep Jossan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 11:01 AM
> To: [EMAIL PROTECTED]
> Subject: Session Problems in Tomcat Clustering
>
>
> Iam
Hi There,
I am not too sure if you are actually able to do this but I have a need to
get the IP address/hostname of the client that has accessed a page in our
web application.
This is mainly for security/auditing purposes, however I really need to get
the client Socket connection and not
Howdy,
You want to put all your jars in WEB-INF/lib. What are the errors
you're getting?
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Mike Kellstrand [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 11:27 AM
>To: [EMAIL PROTECTED]
>Subject: FOP code run
Thanks for the response.
I put my Tomcat back into a "stock" state and
copied the fop, batik, avalon, and xalan jars from the FOP package
into my WEB-INF/lib dir.
I restarted Tomcat and got the following when my code ran:
The output format must have a '{http://xml.apache.org/xslt}content-handler'
Hello All,
I have a servlet that generates reports in CSV format. When the content size
of the report is small, it works fine. But if the content size is 4MB, I get
a 404 error but no exceptions. I tried setBufferSize(4MB) and contentSize to
the actual size of the report but that didnt help much.
At 11:33 AM 9/12/2003 -0400, you wrote:
Howdy,
You want to put all your jars in WEB-INF/lib. What are the errors
you're getting?
hmm Xalan is an endorsed library. It needs to be in
CATALINA_HOME/common/endorsed or JAVA_HOME/jre/lib/endorsed, otherwise the
old buggy version of Xalan that co
I have a problem with servlet's getParameter() method returning null
when I connect using chunked encoding. The client is an MIDP 2.0
emulator from Sun's Wireless Toolkit 2.0. Connections from Mozilla and
IE work fine, and they are not using chunked encoding.
I'm using Tomcat 4.1.27. Here are t
For example:
In the html:
=
=
In javascript/cowbell.jsp (possibly)
=
<%@ page contentType="application/x-javascript"%>
=
-Tim
Anson Zeall wrote:
Thanks, butwhatand how to set the mime-type?
-Original Message-
From: Tim Funk [
Hi all,
Where can I find the source code for the 4.1.27-hotfix-22096.tar.gz ? It can be just
the patch file either.
Thanks !
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I tried putting the xalan jar in the endorsed dir and got the following
error:
null:4:80 fo:flow must contain block-level children
I ran into this one before.
There is a section in my xslt file as follows:
If I add a snippet between the fo:flow tags,
the transform runs with no errors,
Hi. When I obtain a jkstatus, during time, the epCount value keeps
increasing. So it seams like the threads are never returned to the pool.
I set the connectionTimeout to 2 (Isuppose 20 secs.) but no help.
In the jk2.log I see a lot of messages like this:
[Thu Sep 11 10:47:21 2003] (err
Tomcat docs advise following code for openning a dbcp connection:
<%
// Obtain our environment naming context
Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup("java:comp/env");
// Look up our data source
DataSource ds = (DataSource)envCtx.lookup("jdbc/eplResrc");
%
I close Context right after I get DataSource. Then I can still do
dataSource.getConnection(). So this close will not connection.
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]
Sent: September 12, 2003 2:19 PM
To: Tomcat Users List
Subject: dbcp, initCtx.close()??
Tomcat docs adv
Howdy,
As long as you keep the initial context reference inside a method, and
not a class member variable, you'll be fine, especially if all you're
doing is just getting one resource (the DataSource) out of it. The
initial context will then go out of scope and be garbage collected,
freeing up its
Hi, I have set up a connection pool to mySQL
and get an error when trying to connect to it. The error is
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to connect
to any hosts due to exception:
java.net.BindException: Address
already in use: connect
The full m
Hi everyone.
I was just wondering how you might handle working with
clients/developers in enabling them to restart thier web applications
when they make changes to:
1) web.xml file.
2) Servlets
3) Java Beans
4) etc.
Now I know about the manager application and developing with ANT.
But,
Do you mean Tomcat? I like tomcat manager application. However it doesn't
work with java security manager. I have to shutdown web server in order to
incorporate my changes.
-Original Message-
From: Jason Lanpher [mailto:[EMAIL PROTECTED]
Sent: September 11, 2003 3:04 PM
To: [EMAIL PROTECT
Has anyone else noticed that IIS closes the HTTP connection on every
request? When using HTTP/1.1, Keep-Alive is supposed to be the default
behavior, but the headers returned from IIS look like:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Fri, 12 Sep 2003 15:16:03 GMT
X-Powered-By: ASP.NET
Con
Has anyone else noticed that IIS closes the HTTP connection on every
request? When using HTTP/1.1, Keep-Alive is supposed to be the default
behavior, but the headers returned from IIS look like:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Fri, 12 Sep 2003 15:16:03 GMT
X-Powered-By: ASP.NET
Con
Hi all,
I am experiencing difficulties with port 8005. It crashes
with a BindException after trying to start it.
OS: SunOS 5.9
www2# java -showversion
java version "1.4.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
Java HotSpo
What do you get with:
netstat -an | grep 8005
If you get:
tcp0 0 127.0.0.1:8005 0.0.0.0:*
LISTEN
It might be that Tomcat didn't manage to completely kill itself on a
previous shutdown.
Do you get anything with this?
ps -ax | grep "[o]rg.apache.catalina.startup.Boo
Thinking about that a bit more.. if it's 3.3.1a that works, then THAT
maybe be the version that is still running... so grep'ing for
[o]rg.apache.catalina.startup.Bootstrap start
won't work, if this is indeed the problem.
more questinos for others:
1) Did 3.3.x use 8005 for the shutdown signa
Oki, thanks...
Does anyone know which settings to change?
BTJ
On Fri, 2003-09-12 at 16:09, Rob Augustinus wrote:
> there are some timeout settings you can set..(I think)
> either in apache or else.. not sure where..
>
> Holger Klawitter wrote:
>
> >-BEGIN PGP SIGNED MESSAGE-
> >Hash
There is no process LISTENING at port 8005
www2#netstat -an 8005
www2#
And I tried checking on ps -af
and there is nothing left there.
-Mensaje original-
De: Mike Curwen [mailto:[EMAIL PROTECTED]
Enviado el: Viernes, 12 de Septiembre de 2003 02:27 p.m.
Para: 'Tomcat Users List'
A
Hello:
O.K I uninstalled the JDK stuff and Tomcat 5.0. Reinstalled Java 2SDK 1.4.2.
and trying to install Tomcat 5.0. I get an error message stating Java
Virtual Machine not found?.
Now what do I do? I installed the JVM from Microsoft site, reboot my PC and
still getting the same error. Please He
1. Make sure the following environment variables are set correctly:
>>> JAVA_HOME points to "C:\j2sdk1.4.2" (correct folder if changed)
>>> CLASSPATH points to %JAVA_HOME%\lib
>>> PATH points to %JAVA_HOME%\bin
2. copy $JAVA_HOME/lib/tools.jar to the common/lib directory of the Tomcat
server
3.
in case anyone has any suggestions ...
in server.xml i specified jndi dbcp datasource, ie,
within
then in each CONTEXT definitions, i added:
where the CONTEXT tag for ROOT is as follows:
The result is that db access occurs successfully for non-root web app, but
NOT for root web app. Base
All,
OS: Sparc-Solaris 9
JDK: 1.4.0_02
Tomcat: 4.1.27
Problem:
I start tomcat and it takes up about 45MB of RAM. I wrote a script to email me every
ten minutes the amount of memory it's taking up. The results are showing me that it
gains about 1MB every 10 minutes or so (on average). If I le
Also make sure no spaces in path like Program Files.
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 1:25 PM
Subject: RE: Tomcat 5.0 install - Please Help
>
> 1. Make sure the following environment variables
you sure it is not the operating system itself.
- Original Message -
From: "Seth Newton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 4:57 PM
Subject: Memory Leak with static content
All,
OS: Sparc-Solaris 9
JDK: 1.4.0_02
Tomcat: 4.1.27
Problem:
I st
Hello All,
Quick question about Tomcat and Java Mail. When I create a JNDI
mail resource will it act like a Connection Pool ? Meaning, will there
always be a session logged into the specified SMTP server or will Tomcat
only log into the SMTP server once I explicitly ask for a session ?
Than
Seth,
Have you tried JDK 1.4.2? 1.4.0 has been known to have a memory leak in the
StringBuffer implementation w.r.t. re-using StringBuffers but you mention
that your only serving static content so this may not be it.
However, I believe that I read that something like 2000 bugs have been fixed
in
Moving the the jar over to endorsed helped. But I am still having some problems.
In short, our application is packaged up in 4 jars, plus some third party library
jars.
One of the jar is the framework jar, which contains the logger classes.
Another jar contains classes for the Servlet's and JSP
I am trying to log into the Tomcat Web Admin Tool and cannot find any reference to the
default login amd password. Please advise what they are or better yet where it is in
the documentation.
Thanks in Advance,
Kirk Hollows
in case anyone has any suggestions ...
in server.xml i specified jndi dbcp datasource, ie,
within
then in each CONTEXT definitions, i added:
where the CONTEXT tag for ROOT is as follows:
The result is that db access occurs successfully for non-root web app, but
NOT for root web app. Base
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued.
Please note my new email address. To prevent automated systems from obtaining my new
email address, I will spell out the @ symbol. Please send all future email to:
gordon[at]aspengroup.net
On Fri, 2003-09-12 at 16:55, Kirk Hollows wrote:
> I am trying to log into the Tomcat Web Admin Tool and cannot find any reference to
> the default login amd password. Please advise what they are or better yet where it
> is in the documentation.
>
> Thanks in Advance,
>
> Kirk Hollows
Kirk,
Hi all,
I am facing two problems with v4.1.27.
1. After I reload the servlet by copying it into its directory in
WEB-INF/classes, I get the foll. error when I try to access the reladed
servlet.
HTTP Status 503 - This application is not currently available
2. Any apps placed in the ROOT context a
Seth,
As you mentioned taht the jsp page is not the problem I hope that you
have looked to make sure that you are closing off any input/ouput
streams and other resources involved in sending the email right?
James
Seth Newton wrote:
-I'm using Tomcat to feed about 6 sites with static content.
It sounds like all you want is
request.getRemoteAddr()/request.getRemoteHost(). These give you the
IP/DNS-name of the client's box. All of this is taken from the Socket
(since there really isn't any other way to get at it).
If you need to get the IP on your machine that they connected to, then y
The patch appears to be:
http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java.diff?r1=1.119&r2=1.120
"webmaster" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> Where can I find the source code for the 4.1.27-h
Hi guys.
I still don't quite get how to really use encodeURL and
encodeRedirectURL. Yes I know the syntax and how to put in the link but
like.hmm.do we have to pass the ID around to get page?
Regards
Anson
-
To
Hi,
I am trying to port a web-application originally written with Tomcat 4.1 to
Tomcat 5.0. The application uses struts and throws the following exception
when launched:
>>
The server encountered an internal error () that prevented it from
fulfilling this reques
On Fri, 12 Sep 2003 [EMAIL PROTECTED] wrote:
> Date: Fri, 12 Sep 2003 16:01:57 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Tomcat 4.1 -> 5.0 Web-app Porting
>
> Hi,
> I am trying to port a web-
86 matches
Mail list logo