I don't think this will work. Apache passes the URI to Tomcat via JK2,
and unless JK2 can mungle the actual URI, Tomcat won't be able to figure
out what JSP you're looking for if you use a shortened path.
We use the Struts framework, which nicely hides the location of JSP
files, or any particular
ssage-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, April 01, 2005 12:36 PM
To: Tomcat Users List
Subject: Re: Jasper throws ExceptionInInitializerError?!
It could be conflicting versions of struts.
-Tim
Ruth, Brice wrote:
> More info.
>
> Finally got Eclipse to attach to
fails.
What the heck?! Is this a classloader issue?!
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, April 01, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: Jasper throws ExceptionInInitializerError?!
One thing I forgot to mention - when I do turn on debug
h ELHtmlTagBeanInfo as
well as MessageResources.getMessageResources - stepping back through
other source as needed, and I haven't come across anything that would
appear to be a smoking gun.
Please advise!
Best,
Brice Ruth
-----Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, Apri
Good morning,
I am migrating an automated build process from a Windows 2K system to a
RedHat EL 3 system, with some trouble. When I run a particular build via
Ant, that uses the JSP precompiling task (jasper2), it fails, but
somehow, not immediately. When I go into the output or destination
direc
com
-Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 3:31 PM
To: Tomcat Users List
Subject: Re: DBCP/JNDI/Realms
Follow-up question. Should I or should I not use the ConnectionPool
implementation provided by IBM in their JDBC driver? And
http://www.yoavshapira.com
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 11:32 AM
To: Tomcat Users List
Subject: DBCP/JNDI/Realms
Good morning!
I've been running into an intermittent problem with my database
connections for authentication. It ap
rce for connections.
Can anyone shed more light on what the root cause of the problem is
here? Should DBCP gracefully recover?
Regards,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
---
[EMAIL PROTECTED] wrote:
in my web.xml I have
repository
/repository
getit
/getit
I.e. its a one to one, so if I understand you correctly,
when I browse to http://localhost/repository/index.jsp
my uril-pattern should be
Read-WriteArea
/repository/*
I have other (
e JDK/Tomcat/and our
pre-compile JSPs web-application on a CD-ROM with a read-only HSQL
database, shoot me an email off-list.
Ruth, Brice wrote:
I've gone through the archives and read about setting loggers &
workDir to a writable directory, yet I'm still getting an exception
t
Any takers
Ruth, Brice wrote:
I've gone through the archives and read about setting loggers &
workDir to a writable directory, yet I'm still getting an exception
thrown in tldScanJar (ContextConfig). I've checked out the code for
tldScanJar and I don't see it doing
[EMAIL PROTECTED] wrote:
In my applications web.xml I have
Read-WriteArea
accessible by users of all roles
/*
GET
POST
PUT
DELETE
These roles are allowed access
read
rwrite
admin
If the url-pattern is /* I get my jdbc bas
I've gone through the archives and read about setting loggers & workDir
to a writable directory, yet I'm still getting an exception thrown in
tldScanJar (ContextConfig). I've checked out the code for tldScanJar and
I don't see it doing anything but opening an InputStream to the JAR
using JarURL
I'm seeing a lot of ClientAbortExceptions being thrown in my catalina
log and I've tried catching them in my Filters, since it would appear
that's the logical place to catch 'em (its in the stack trace) - but for
some reason, it isn't working ... they're still getting thrown.
Any ideas?
--
Bric
Ernesto Echeverría wrote:
Sorry for the missing data.
File = tomcat5.conf
Tomcat Version = Apache Tomcat/5.0
JVM Version = 1.4.1
OS Name = Linux (Red Hat Enterprise Linux)
Partly, that's the reason for my question. This seems to be data for
scripting.
José Ernesto Echeverría
José,
How was Tomc
Ernesto Echeverría wrote:
Can someone please explain what's the use for this line in the tomcat
configuration file?
What's the use of it (the line is commented) and what effect does it have on
a running container? What value can it take as well? Any other variables can
be set in the same file?
Than
Thai DANG wrote:
Hi all
I have troubles with accent.
Sometimes, tomcat displays the accent with a "?" instead. I think it is a java
configuration pb.
I have the version 5.0.27 and this is what I use to launch tomcat :
export JAVA_OPTS="-server"
export CATALINA_OPTS="-Djava.awt.headless=true -Dfile
Dennis Dai wrote:
On 8/5/2004 9:26 AM, Ruth, Brice wrote:
Greetings!
I've recently decided to take advantage of Tomcat's authentication
mechanism, however, it doesn't appear to be working for me. I've
configured a Realm in my context (through the admin tool). It is a
DataSou
Greetings!
I've recently decided to take advantage of Tomcat's authentication
mechanism, however, it doesn't appear to be working for me. I've
configured a Realm in my context (through the admin tool). It is a
DataSourceRealm.
When I've tested everything, I keep getting pushed out to the error
tomcat. Ipsec would work just as well I suspect.
Probably not what you wanted, but it's a suggestion still
--David
Michael Jürgens wrote:
Ruth, Brice wrote:
Michael Jürgens wrote:
Oh sorry I was a little bit tired in the morning.
I want to connect the Apache securesd over an unsecure mediu
Michael Jürgens wrote:
Oh sorry I was a little bit tired in the morning.
I want to connect the Apache securesd over an unsecure medium (Internet)
An my question ist how to connect AJP 1.3 over SSL (not ssh) with jk
or jk2.
regards,
Michael
Michael,
I believe you'll want to configure your Apache
master wrote:
hmm i don t remember if i have answer to this so i said yes that s this on
tomcat port 8080 the changes are correct but on apache it still the old
page, so anyone has any idea on how to solve this ? (without restarting java
each time)
I'm sorry, I don't have any add'l. ideas. I'm n
n the tomcat
administration interface, it works superb on FQDN's, I just wish it
would work as good using wildcards!
Tomcat docs on host aliases say nothing about wildcards, so I'm
assuming it's not implemented. Would be nice to see a change in this
policy. :)
On 2004-08-02, a
I've heard mentioned that in the Tomcat codebase, "ROOT" is treated as a
special identifier.
As for your problem ... I believe that Tomcat does not support
deployment of the default context from the META-INF directory of your
web-app. You need to explicitly configure it from server.xml or from
gured Apache to talk with Tomcat via JK?
J. Lindberg wrote:
Thanks for your reply. Yes, there is no problem with Apache web
server, using ServerAlias which supports wildcards. It all works fine
until it encounters a .jsp file, then it's a no-go.
On 2004-08-02, at 18.18, Ruth, Brice wrote:
Not
Well, Tomcat can't load PHPs, so what server are you using to server the
PHP content? Why does Tomcat have to be the proxy, instead of the other
way around? Writing a proxy servlet sounds like its going to be painful ...
Vic Cekvenich wrote:
I can't use Apache. It has to go to Tomcat.
Servlets i
and If I change
the attribute in the tld, I need change the attribute in all my jsp, that is
very power change.
I appreciate your info, but do you know any other work around.
Thank a lot.
ciao
.pcs
Ruth, Brice ([EMAIL PROTECTED]) escribió:
You may be having a problem with the case of your tag
ly, and restart Apache for the changes to take effect.
Or maybe I've misunderstood your problem?
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
hi, no i don t use the autoconf but that s not really the problem my problem
is not abou
Not sure about Tomcat, but Apache should be able to handle this with a
few well-written mod_rewrite entries.
J. Lindberg wrote:
Hey all.
I've searched the internet about this, but have come up empty handed,
so I'll ask you guys;
Is it at all possible to use wildcards in host aliases? I have a h
Just as an FYI - with Sun's JVM, on Redhat ES 2.1 systems, I've seen no
problems ... we've been running a production system which averages about
57K visitors, 768K page views a month - on Tomcat 4.1.27 and Sun's 1.4.2
JDK (RPM install).
This is running a slightly modified Rackspace kernel deriv
Well, first off, it appears your problem is related to your JDK, not so
much Tomcat - I'm sure you've assumed as much. Have you tried grabbing
other JDKs? You seem to be using Sun's JDK (which happens to be running
smoothly on two RedHat ES 2.1 systems I have, no modifications were
necessary to
This is also what we do. http://www.fiskars.com/ is a Struts/Tiles/JSP
web-application, http://www.gerberblades.com/ is a PHP application, both
run through the same server, Apache+Tomcat. We're not using JK2, we're
using the original JK, but either way - if you setup Apache+JK(2), then
you can
You may be having a problem with the case of your tag attribute. Try
changing the case of the attribute to all lower-case: "titulo" and see
if that helps.
Pablo Carretero Sánchez wrote:
Hi all,
I have a problem with the Jasper compiler when I try to compile a JSP using
TagLibs.
The configuration
configuration manually, and restart Apache for the changes to take effect.
Or maybe I've misunderstood your problem?
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To
I believe if you put your context XML files in webapps, Tomcat will copy
them to the Catalina directory, at which point it will consider *that*
context file as the authoritative resource, so updates to your context
XML in webapps won't be recognized.
Not entirely sure on this, but I've had some
Your fundamental problem is going to be that your container won't be
able to know if a client supports cookies until the second request comes
along. This is why on the first request, all URLs are rewritten,
regardless of if cookies are enabled or not - the container just doesn't
know yet.
The
in tool the jndi parameter gets added in
GlobalNamingResouce.
which is correct way...
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: Tomcat Datasource -- please help..
I believe that should work. I'm out of ideas .
DataSource ds = (DataSource) env.lookup("jdbc/prototypedb");
conn = ds.getConnection();
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 11:07 AM
To: Tomcat Users List
Subject: Re: Tomcat Datasource -
oReconnect=true
=
-Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 10:04 AM
To: Tomcat Users List
Subject: Re: Tomcat Datasource
In addition to defining the DataSource in Tomcat's admin tool, you'll
need to define th
Very true, I stand corrected :)
Shapira, Yoav wrote:
Hi,
I wasn't wrong, just unable to read, it appears ;) I thought it was
inside a Context declaration.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, Ju
Shapira, Yoav wrote:
Hi,
You'll also need to define a ResourceLink in your Context, that links
You only need a ResourceLink if your Resource is defined in
GlobalNamingResources. This person's Resource is defined in his/her
Context, so a ResourceLink is not needed.
Another good idea would b
In addition to defining the DataSource in Tomcat's admin tool, you'll
need to define the Resource in you web.xml - something like this:
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
Deploying a WAR to 'standard' Tomcat is as simple as putting the .war
file in your Tomcat's webapps directory. This is the simplest
deployment. Some applications require custom configuration (JNDI
resources, etc.) which need to be configured through the Tomcat admin
application (localhost/admin
ot;/logs" directory only there are "localhost_log.2004-XX-XX.txt"
files but not anyone
"Ruth, Brice"
wrote:There should be a logs directory in
your TOMCAT_HOME directory ... so,
if you installed Tomcat to C:\Program Files\Apache Tomcat\ - then look
for a "logs&quo
There should be a logs directory in your TOMCAT_HOME directory ... so,
if you installed Tomcat to C:\Program Files\Apache Tomcat\ - then look
for a "logs" directory there. You'll find the same catalina.out file and
catalina.err file there.
Alberto Marino wrote:
Note: forwarded message attached
No, it means your "ROOT" context is not configured properly. These
entries should be in there if Tomcat is seeing your ROOT context correctly.
Does localhost:8080/test.jsp load correctly?! That should be a
definitive test of if the ROOT context is configured in Tomcat.
Btw - if you're not getti
erly picked up
(Apache will handle 500 errors generated by Apache, Tomcat will handle
500 errors generated by Tomcat).
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To uns
Christina Androne wrote:
Hello
I have an application deployed under tomcat 4.1.29 and recently the
web server has started bahaving weird:
I make a request to one of the apps servlets and I never get a
response to it or get it very difficult. I have placed debug messages
all over the servlet so I
blem.
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
directive at the top of your JSP file:
<%@ page contentType= "text/html;charset=ISO-8859-1" %>
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
needed a feature in web.xml (filter, servlet, etc.)
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Phillip Blancher wrote:
I created a folder in the htdocs directory called WEB-INF which has an
web.xml file that has inside of it the following code:
http://java.sun.com/dtd/web-app_2_3.dtd";>
And I am still getting the prompt to download the file.
Phil
Phil,
Does your mod_jk.conf have an entr
art Tomcat,
restart Apache (to pick up the new mod_jk.conf), then put your test.jsp
in webapps/ROOT - and *then* http://localhost/test.jsp *should* work.
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
--
ntext XML in that directory that has the
following content:
That's it ... point your browser to your host and you should be in good
shape. Be aware - out of the box, Tomcat ships with a simple 'ROOT'
application loaded into the 'ROOT' context ... you should remove this
from t
JK connector. If you bind these
with Apache (your Listen directives) - then Tomcat cannot bind them,
which means the JK connector between Apache and Tomcat cannot communicate.
I'd highly suggest getting your configuration working with only T
I have a Struts/Tiles application running on Tomcat 4.1.x and Tomcat 5.x
with UTF-8 encoding (Polish & Russian character sets, particularly) - I
didn't have to do anything special for the response encoding, only for
the request encoding. Here's what I put at the top of my JSPs:
<%@ page content
al Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: June 10, 2004 15:20
To: Tomcat Users List
Subject: Re: Corrupted UTF-8 JSPs?!
Thanks, but I believe the problem is in the WAR packaging, somehow ...
because I develop locally, deploy w/o packaging and it works fine - if I
packag
mative in many other ways, too. Great article, thanks!
Vernon wrote:
There are two recent related articles on Javaworld.
They may help you in this regards.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
I'm running into a strange issue.
I have certain JSPs with UTF-8 encoded
ime Environment supports UTF-8
and is using it as the default encoding(export
JAVA_OPTS=-Dfile.encoding="utf8").
native2ascii UTF-8 encoded characters may help too.
Yan
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: June 10, 2004 14:00
To: Tomcat Users List
I'm running into a strange issue.
I have certain JSPs with UTF-8 encoded characters in them (polish
characters, to be exact). My Ant build.xml precompiles the JSPs using
Jasper and then packages the application into a WAR for deployment.
When I develop locally with Tomcat 5.0.18, I deploy withou
ss browsers, e.g. if you
try IE or Opera?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 11:52 AM
To: Tomcat Users List
Subject: Re: Help! Moving app from TC4->TC5, blank pages, no errors!
The
Absolutely
Shapira, Yoav wrote:
Hi,
How strange... Is the behavior consistent across browsers, e.g. if you
try IE or Opera?
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 11:52 AM
To: Tomcat Users
re doing, if anything.
Enable the AccessLogValve to see if you're really getting 404s or
something else (such as previous 5xx errors) are preventing normal
processing.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent
ng output statements to your various filters so you can tell
what they're doing, if anything.
Enable the AccessLogValve to see if you're really getting 404s or
something else (such as previous 5xx errors) are preventing normal
processing.
Yoav Shapira
Millennium Research Informatics
I'm in the process of taking an application that we've been deploying to
our production/stage/dev servers running TC4.1 to deploying it on our
dev server running TC5.0.18. On our local development workstations,
we've been deploying to TC5 for quite a while now, with no problems ...
I'm not sure
1.x appears to have some pretty severe memory leaks
with its install/remove operations - if I install/remove my web-app more
than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs
OutOfMemory ... other users have reported that Tomcat 5 does much better
in this arena.
Advise on any of these
66 matches
Mail list logo