Hassan Schroeder wrote:
Mark Winslow wrote:
I'm wondering if there's a way to get more than one
ssl domain per server instance. The ssl Connector tag
seems to be in the top level in server.xml.
You can define multiple Connectors, each with its own keystore.
But don't forget that each
Dear all,
I have installed Java is 1.4.1 Tomcat 5.0.28 in Windows 2000 sp1 with
1GB Ram
Tomcat is running as a service.
Context Reloadable == true
When we compile .java into .class, Tomcat will not serve page anymore.
We have to restart Tomcat inside Services or from the Monitor Tomcat
Hi,
I'm having OutOfMemory error while Tomcat tries to compile jsp files. The
problem occures few times in day so it's quite hard to repeat.
Tomcat is configured to run javac in separate JVM with fork=true option. I
tried to give more memory for ant using ANT_OPTS, but it didn't help.
I read
Hi all,
we have a struts action which runs in some cases very long ( 1min). In this
case, a firewall between client and server cuts the connection due to
inactivity. To avoid this timeout, we execute the core action in a thread,
while the wrapper action polls the result of the action thread.
I think these are both in the release/changes notes that I posted a link to
earlier in this thread - so yes these are real issues.
-Original Message-
From: Mark Leone [mailto:[EMAIL PROTECTED]
Sent: Friday 27 May 2005 02:14
To: Tomcat Users List
Subject: Re: Are we required to move
Hi,
I'm getting This Error while starting Tomcat. I searched the web an found
out that this error can occur if starting Tomcat misses this param in
CATALINA_OPTS: -Djava.awt.headless=true
I checked the starting procedure and found out, that this param is set
properly in the
Kenneth Jensen:
On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
If I run a long query, followed by a series of short queries (
different browsers/pcs ) then the latter all wait for the long query
to return rather than completing first as I expected.
A quick guess would be that your
IIRC - there is a JDBCAccessLogValve - You may need to check the javadocs on
its use.
-Tim
David wrote:
Hallo,
I have sent this question yesterday but nobody responded. It's a short
question so please send me some information.
Is it possible to configure tomcat to log the access log
That's all I wanted to know.
Thanks David
-Ursprüngliche Nachricht-
Von: Tim Funk [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 27. Mai 2005 13:30
An: Tomcat Users List
Betreff: Re: Logging into rational database
IIRC - there is a JDBCAccessLogValve - You may need to check the
Are you by any chance running on a server that has no video card/monitor? A
few years ago a colleague mentioned that the headless=true is required in
this situation, something to do with whether the AWT classes need to be
loaded, my memory is a bit vague on it.
You have 4 forward slashes but
I think there is a DBCP logger, but this is for the Java code logging
statements, rather than for the access log AFAIK.
Can't remember where I read this. Probably on the TC site, try starting
here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html
-Original Message-
From:
On 5/27/05, David [EMAIL PROTECTED] wrote:
Hallo,
I have sent this question yesterday but nobody responded. It's a short
question so please send me some information.
Is it possible to configure tomcat to log the access log into a rational
database? Is there an existing tutorial?
Hi,
Context Reloadable == true
When we compile .java into .class, Tomcat will not serve page anymore.
We have to restart Tomcat inside Services or from the Monitor Tomcat menu.
We have seen same here. Tomcat = 5.0.28 hangs, there seems to be a
ThreadDeath exception sometimes when
Hello
Use a Valve component and use the class named JDBCaccessLogValve
Here is an useful URL
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache
/catalina/valves/JDBCAccessLogValve.html
Jean-Claude
-Message d'origine-
De : David [mailto:[EMAIL PROTECTED]
Envoyé
Hello
How did you deploy the application ? with a WAR file ? or by installing an
unpacked directory ?
I read in the Professional Apache Tomcat5 book that the relaod attribute
work fine only with an application installed from an unpacked directory not
with a WAR file
Jean-Claude
-Message
hi,
i'm starting a project using jsp + javaBeans..
i've worked with java a lot, but i have not much experience with web
applications..
for now my idea is that the application will be using javabeans, and jsp
for displaying the data...
i use eclipse for the development, which nicely compiles
Hi,
I would suggest that you do a precompilation of your jsps on a deployment
machine which is separate from the live machine.
So your compilation is not done on the live server, which might be on heavy
load.
Also you don't have the problem that the first visitor has to wait an awful
long time
On 5/27/05, gabor [EMAIL PROTECTED] wrote:
i'll create a directory in tomcat/webapps (let's call it 'mywebapp').
put my source files into mywebapp/WEB-INF/src, and instruct eclipse to
put the compiled .class files into mywebapp/WEB-INF/classes.
this way, i simply edit the files, press
Yes, that would be one solution, but not suitable for our case because our
webmasters are constantly updating jsp pages on our production servers.
Btw. I'm using tomcat 5.0.28.
Thx,
Vesa
- Original Message -
From: Bernhard Slominski [EMAIL PROTECTED]
To: 'Tomcat Users List'
Don't leave the source on the production server, but it's fine in
development. Strictly speaking your source files are inaccessible by web
clients if they are under WEB-INF, but better safe than sorry. Why not
store the src in another folder altogether - eclipse won't care where it is
I have this target in my build-file. This makes Eclipse transfer my
webapp in a jar file to the Tomcat server, which then automatically
reloads it.
target name=deploy depends=jar description=Deploy webapp to server
copy file=${jarfile} todir=${webappdir}/WEB-INF/lib /
exec
I have a servlet that must verify signatures on parts of requests, and
for that I need to include a keystore file with my trusted certs.
This keystore has nothing to do with the server itself and not to be
used with SSL/TLS, just with this one webapp.
How do I get my servlet to read the keystore
My preference is to rely on a JNDI lookup which will return a String. The
string is a URL which you can then open and then read from mykeystore.jks.
Then the JNDI lookup config would reside in the Context declaration. Then
its up to the admin to place mykeystore.jks anywhere they wish.
-Tim
Is the problem caused because you redeploy the whole webapp each time?
Could you just deploy only those files that have changed? I can't imagine
that this leads to overloading unless the numbers are massive...?
-Original Message-
From: Vesa Varimo [mailto:[EMAIL PROTECTED]
Sent:
From: Kenneth Jensen [mailto:[EMAIL PROTECTED]
How do I get my servlet to read the keystore file, say if I put it in
$CATAILNA_HOME/webapps/mywebapp/WEB-INF/lib/mykeystore.jks.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletConte
xt.html#getResource(java.lang.String)
Hi,
no the webapp is running whole time without redeployments.
The jsp pages are quite large, 5000-1 rows and there are many of them.
Can this affect to memory usage of javac compiler?
This is a strange problem, because sometimes these same pages compile just
fine, sometimes they don't.
Hi,
I think it happens randomly because it depends on the actual load on the
server.
Where there is not much traffic it's OK, but with more traffic the server
runs out of memomry.
I see your point that you cannot control the webmasters.
But still with the problems you have and the obvious very
Hi,
the thread death is caused by log4j.
You have to shutdown log4j when the context is destroyed:
see http://issues.apache.org/bugzilla/show_bug.cgi?id=26372 for more
details.
Cheers
Bernhard
-Ursprüngliche Nachricht-
Von: Ari Suutari [mailto:[EMAIL PROTECTED]
Gesendet: Freitag,
Hmh.. how does you deployment script work? Do you compile jsp pages in some
other server than the live server?
Well, I didn't write those pages :), I just have to live with legacy code :D
Vesa
- Original Message -
From: Bernhard Slominski [EMAIL PROTECTED]
To: 'Tomcat Users List'
When you say this:
The jsp pages are quite large, 5000-1 rows and there are
many of them.
I take it that you mean that the page can display 5-10k rows of data from a
database, rather than the JSP has 10k lines of code in it. I hope so. If
not, it's no wonder that the compiler is
Well the precompliation is quite simple:
You use an ant jasper task to make the java file from your jsp and then
compile these classes.
Then you do a mapping from the jsp to the class.
This is all done on a separate machine, I do the deployment as war file,
which is copied accross to the live
Yeah, sorry. I meant that the precompiled jsp (java) files are that large.
But no, the lines fetched from datasources are not calculated.
This error occures when tomcat tries to compile these generated java files
to classes using ant and javac compiler.
About the performance, we have tomcat
BTW: (long reply... apologies - much of this reflection on current
development of most use to myself and my company, but just in case of
use to someone else, I hit send anyway... )
---
I think it's best not to deviate TOO far from the model shown in
Application Developers Guide
Thanks for both of your advices.
JNDI is probably the smart way of doing it, but I am not familiar with
it (beyond recognising the name and concept), and right now, the last
thing I need is another tech thing to worry about (finishing a student
project). :-)
The ServletContext.getResource
On Fri, May 27, 2005 at 01:29:50PM +0100, Steve Kirk wrote:
Your approach that sounds a quite practical solution to me. Does eclipse
precompile JSPs for you too?
no.. well, i don't know.. where should the compiled jsp files? be
(so i can check :)..
but anyway, as long as tomcat
Mark Thomas wrote:
You can define multiple Connectors, each with its own keystore.
But don't forget that each will need to be on a different port.
Actually, I assumed the OP would assign each Connector a different
*IP address*, so that conventional URLs like
https://www.example.com/
We are running our International sites on (Tomcat4.1, Jboss3.2.3, JDK 1.4)
and find that any JSP pages that do not specify UTF-8 page encoding
explicitly, are tagged with page encoding =iso8859 when compiled. My
research indicates that Japser compiles with UTF-8 by default. Why is the
compiler
I'm trying to setup an Apache 2.X server to relay JSP's to a Tomcat 5.5 server.
So far, the information I've found is fragmented and out of date. It concerns
Tomcat 3.2 and the libraries used by this « hot-to » are deprecated. For
example, it says to install the mod_jserv module, which is
hi,
i've configured my servlet to be at some location, say for instance:
http://my_server:8080/xzy/abc
when i access my servlet, it returns back okay and request count for
my servlet increments okay on the tomcat manager web app. however,
i also notice error count for localhost/ default[/]
If I subscribe only to tomcat-user Digest, how can I
send a follow-up to a particular msg?
Paul Singleton
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 25/May/2005
Hello,
I have an application that is currently running under JBoss 3.2.x
with Jetty that I would like to get running on Tomcat 5.X. I have
precompiled all of the JSP's and mapped them to there respective JSP
path in the web.xml. Here is a sample fragment of the web.xml:
?xml
This is strange,
I have a jsp that accessess a function declared in a TLD file. The function
has NO paramters passed to it. When I try to compile the jsp into a servlet
via tomcat jasper, I get:
C:\Tomcat\webapps\Acuity\build.xml:98: org.apache.jasper.JasperException:
The class specified in the
From: Kenneth Jensen [EMAIL PROTECTED]
Sent: Friday, May 27, 2005 6:49 AM
The ServletContext.getResource depends on a URL string from the
request, as far as I can see, and I could not get it to work quickly,
so I ended up wth this rather silly hack in the servlet init() method:
You can
Hello,
I've been trying to deploy my application into Tomcat and can get it to work
just fine. However, as I make additional changes to the classes within my WAR,
re-deploying them causes Tomcat to delete virtually every file within the
webapps directory. Here's the flow of what's
I'm scheming on a little project, and one of the things I want to be able to
do is simply add content to the application.
The typical way to add content is also rather static -- add it to the WAR
and redeploy.
That's not particularly dynamic tho, and doesn't really facilitate changing
content
Hello,
I've been trying to deploy my application into Tomcat and can get it to work
just fine. However, as I make additional changes to the classes within my WAR,
re-deploying them causes Tomcat to delete virtually every file within the
webapps directory. Here's the flow of what's
Hi all.
This might be a simple question. I have a working RMI client and server.
I have tested it no problem. Now I would like to make a JSP/Servlet that
will act as a RMI client and connect to the RMI server running outside
Tomcat JVM.
I keep running into access permission violations. I
Precompiled JSPs do 2 steps - JSP to Java, then Java to pcode, which can
then be run by TC. The compiled JSPs end up as class files, mine end up in
in the
%catalina_home%\work\[enginename]\[hostname]\[webappname]\org\apache\jsp\WEB
_INF\jsp directory (because the source JSP files are in
It sounds reasonable, but probably isn't tested or by design, so probably
best to just have a go. Re portability, the best advice I can offer is an
old chestnut: read the servlet spec. This is particularly relevant in this
case. The spec is generally pretty good at telling you you pretty
Hi Steve,
You seem to be one of the more experienced users of the Tomcat user
mail-list. Any thoughts on my precompiled JSP problem?
Any feedback is welcomed.
Best,
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.1.0 -
This is as per the spec:
http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr053/errata_1_2_a_20020321.html
Mark
Tait, Allen wrote:
We are running our International sites on (Tomcat4.1, Jboss3.2.3, JDK 1.4)
and find that any JSP pages that do not specify UTF-8 page encoding
When building file path strings, should one always use the
System.getProperty(file.separator) return value? Is this to
differentiate between Windows(\) and unix/linux/solaris(/ separators?
I haven't seen that property before.
And, are there any other things I should know about to make my file
Thanks for saying that LOL :) but I'm afraid that you flatter me ;-)
I've been using TC on and off for about 4 years, I have a working knowledge
of the features that I actually use in my webapps, and answer Qs on those
when I can, but that really is about it - there are many others on this list
From: Steve Kirk [EMAIL PROTECTED]
Sent: Friday, May 27, 2005 11:44 AM
It sounds reasonable, but probably isn't tested or by design, so
probably
best to just have a go. Re portability, the best advice I can offer is an
old chestnut: read the servlet spec. This is particularly relevant in
Thanks Steve... I feel the same way. I'm sure someone out there has
done this or has experience with it on Tomcat.
When I encountered the issue two days ago, I spent a fair amount of time
trying to resolve it. I ran a number of tests and after all attempts
failed, I finally decided
Could you instead store the JSP in a database?
Let's say you have a table with the following structure:
jsp_nameString
jsp_content BLOB
jsp_name is your primary key and is literally a JSP name.
Now, create a servlet filter that examines the path that was requested
and pulls out
Hi,
I've already done that twice, it only extends the cord I'm hanging in,
so I'm seeking the root-cause for this situation. Thanks anyway. What
I actually want is a method/tool to determine the internal state of the
tomcat container, to see which application is hogging it or if it is
memory
From: Frank W. Zammetti [EMAIL PROTECTED]
Sent: Friday, May 27, 2005 1:04 PM
Could you instead store the JSP in a database?
... snip ...
Now, get the BLOB from the database based on that JSP name. Convert the
BLOB to a string and stick it in request, then forward to a JSP that is
the
OK glad you've got that off yr chest ;)
I can sort of see yr point, but these are not issues that have troubled me
personally. I tend to look at TC from the point of view of I'm just
pleased that someone else wrote TC for me for free and it works v well at
what it is designed for. Every
Hi Doug,
Thanks for your answer. I did specify a different IP / port for the
connectors.
I finally changed my code to use parameter in server.xml instead of
environment. This workaround worked properly, but I have not been able
to do the same thing with environment. Anyway, this is fine for
Hi,
I have been trying to setup the tomcat windows service to use an
alternate configuration file location, instead of the default server.xml
under conf.
The tomcat service pulls all the information from the registry, but I
could not find a good spot there to specify a different server.xml
Our security tool produces the following warning against Tomcat 4.1.29 :
[HTTP/8080/TCP] Server is an enabling vector for cross-site scripting
exposure in clients [trace-1]. More...
I seached the mailing list and found several references to cross-site
scripting. Based on the information, I
Mark wrote:
Then in that case, I would make the context writable to all
developers, and also make the context reloadable. By making the
context reloadable, tomcat will reload any classes/jars that are
placed into/or updated in the context.
A couple tips would be:
1. If you are building
Hi
1 of 3 I wanted to include an install doc for tomcat 5.5.9 on solaris 9 with
jdk1.5.0
2 of 3 I also have a question: How do you create a login for webdav servlet so
that no one besides your access list can log into the webdav folder and read it
3 0f 3 WHy is wiki read only? I cant upload
I notice the more... at the end of that... do you have the more by chance?
Cross-site scripting (CSS) vulnerabilities are, generally-speaking,
concerned with situations where a server-side process generates HTML
dynamically and there is a possibility of input data that has not been
scrubed of
My web application is equipped with a ServletContextListener. Among other
things the contextIntialized() method creates and starts a server object which
has as one of it's data members an object that inherits from
UnicastRemoteObject (the basic Java RMI server implementation).
Why can't I post?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
You just did.
-Original Message-
From: TK Banks [mailto:[EMAIL PROTECTED]
Sent: Friday, May 27, 2005 4:52 PM
To: tomcat-user@jakarta.apache.org
Subject: test
Why can't I post?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best
Nikola Milutinovic [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all.
This might be a simple question. I have a working RMI client and server. I
have tested it no problem. Now I would like to make a JSP/Servlet that
will act as a RMI client and connect to the RMI server
has anyone tried:
. logging using log4j to a client ngsyslog client that is just popping log
messages via UDP Protocol ?
. loading all webapp classes as sealed objects from a sec class loader?
lbrtchx
-
To unsubscribe,
I just checked, and there is indeed NoSuchMethod in Tomcat 5.
You need to re-precompile your JSPs using the jspc from Tomcat 5 for it to
work. It's not enough to just move the class files over, since they
reference the Jasper version that they were compiled with.
Mike Baliel [EMAIL PROTECTED]
Thanks for replying Bill
I have Tomcat 5.0 installed and I checked the jasper-runtime.jar located
at Tomcat5.0\common\lib and in my copy the method exists... ?
Are you looking in jasper-compiler or jasper-runtime?
Bill Barker wrote:
I just checked, and there is indeed NoSuchMethod in
Sorry my first attempt sent me backa message saying I wasn't a member.
Though now I see that that message was sent to me via tomcat-user as well. I'm
not sure why I got the error message. Sorry for the tripe.
David Short [EMAIL PROTECTED] wrote:You just did.
-Original Message-
I am trying to embed tomcat in an application. I am using Sun Java 1.5 and
Tomcat 5.5.9. During the tomcat startup, I receive the following error:
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
Sounds like you want to setup multiple TC instances. Try using
CATALINA_BASE. See this message for more info:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg151971.html
--David
Marius Scurtescu wrote:
Mark wrote:
Then in that case, I would make the context writable to all
Mike Baliel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks for replying Bill
I have Tomcat 5.0 installed and I checked the jasper-runtime.jar located
at Tomcat5.0\common\lib and in my copy the method exists... ?
Are you looking in jasper-compiler or jasper-runtime?
I was wondering if any one other than me has had the need to use a run-time
'before-bootstrapping' and 'cleaning-after-at-the-very-end' type of
functionality.
I have been using it all along in my webapps and I think it is really
useful to the point that, it should be included in the Tomcat as a
I've been tuning our application trying to get the maximum performance
out if the system as possible.
I've been throwing the system at jprofiler and allowing it to tell me
where to optimized.
In short Tomcat is slower than our DB, filesystem,. network and all
other systems by about 4x.
78 matches
Mail list logo