Hi,
There should have been a root cause and another stack trace attached to
that message...
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: Thursday, October 17, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject:
Hi,
Can I use the jdk1.3.1 with Tomcat4 or not ?
Yes. Download the heavier, non -LE-jdk14 version.
If you want to use tomcat 4 with JDK 1.4+, download the lighter,
-LE-jdk14 version.
Yoav Shapira
Millennium ChemInformatics
This e-mail, including any attachments, is a confidential business
Hi,
I don't know the direct answer to your question.
But I'm curious as to the use-case that's requiring you to subclass
HttpSession. As opposed to, for example, binding your (Serializable)
objects to the session? Thanks,
Yoav Shapira
Millennium ChemInformatics
-Original Message-
Hi,
I disturb you again... :-)
It doesn't disturb me ;) Like everyone else on the list, I answer if a
I feel like it, have time, am interested in the topic, or any
combination of those factors ;)
How i write in another file? For example, in my log app (myapp_log).
Do i put the entry valve.../
Hi,
I want to use symlinks for all my jar files in the WEB-INF/lib
directory
of my webapp. Tomcat can't handle those symlinks.
That's not part of the specification. In fact, all tomcat's required to
handle is a WAR file containing your entire webapp. That tomcat allows
you to deploy an
Hi,
I'me sure this one has been done to death but does anyone have any
guidelines on the settings of -Xms and -Xmx ($CATLINA_OPTS), or how
to
derive the optimal setting for these ?
Yes, it has been asked many times. That's because everyone seems to
think there's a magical guideline
Hi,
Sweet error. A couple of things to check:
- Does your server have the proper OS patches for JDK 1.4?
- Have you tried JDK 1.4.1 (with the patches)?
- What's this kyudo module, and is there a newer version of it? Have
you contacted the vendor / author of kyudo to ask about this error?
Yoav
,
Compiled
Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject
Hi,
$CATALINA_HOME/logs/cacophonix_access_log.date has this consistent
message :
192.168.100.8 -- [date/time stamp] POST
saysit/servlet/RemotedemoServer HTTP/1.1 500 3919
This is standard ACCESS log format. It's sometimes useful for
debugging, too. I wouldn't call this cryptic at all ;) It's
Hi,
Did you try:
try
{
... do something...
}
catch(Exception e)
{
Throwable cause = e.getCause();
... do whatever you want with the cause ...
}
By the way, as this is not a tomcat question, please either post
somewhere appropriate (comp.lang.java.help for example), or at least add
Hi,
Are any of the debug=n in your $CATALINA_HOME/conf/server.xml set to
something other than debug=0. What you quoted looked like tomcat
internal debugging output.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Carson, Chuck [mailto:Chuck.Carson;syrrx.com]
Sent:
Hi,
I am using my own logger(logger.jar file used in many
projects , in fact)
to log the different types of events[in the servlets and Java
beans that I
have used.].
However , somehow my logger does not write logs although it
creates the log
file every day(my logger rotates daily.)
Since
Hi,
On Unix platforms, the log file doesn't get created, though the
application
using Logger objects does not throw any exceptions. However, the same
code
works on other platforms like WinXP.
Perhaps a permissions problem on the directory where the file is
supposed to get created? Does the
Hi,
Where can I find info about setting different logging options for
Tomcat
4.1.12 ?
Did you try the tomcat docs?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html
Or for a complete external logging system, my fav is log4j:
http://jakarta.apache.org/log4j
Yoav Shapira
Hi,
parameter
namemaxActive/name
value5/value
/parameter
parameter
namemaxIdle/name
value3/value
/parameter
parameter
namemaxWait/name
Hi,
One of the main points of connection pooling is to bound the number of connections you
have. It's a bad design to define a connection pool that doesn't meet expected loads.
If you know your app will need 10 connections concurrently, define 10 as maxActive.
Don't define 5 and ask it to
Hi,
Did you try starting tomcat without Apache, making sure you can see the
tomcat home page and run the examples? It's often a good idea to verify
the various components work well individually before trying them
together ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
Hi,
Please don't mention names in messages ;) There are a ton of people on
this list who are at least as qualified as I am to answer any
question...
I have coded my own Oracle connection pool which which sets up a pool
of
physical db connections. A servlet or a thread can request a connection
Hi,
Does anyone have any solid information about the scalability of Tomcat?
It
seems very limiting to me, but that is hopefully due to improper
What are you looking for by solid information? ;)
Here are some details about one of our environments:
An 18-CPU Sun Ultra Enterprise-class server,
Hi,
webapps
--- AppDir - JSP file
--- Web-inf - web.xml file
-- classes - My Servlet Class files
http://localhost:port/AppDir/Servletclass
In the above configuration, if you have the invoker servlet mapping
enabled
Hi,
Did you mean setting maxWait to 0 ?
No. I meant that setting maxActive to 5, maxIdle to 3, and maxWait to
-1 does not mean there will be 3 connections on startup.
It's up to the connection pool implementation to decide if it wants to
pre-create the connections on startup, or not. Some
Hi,
I would say Tomcat 4.1.x probably would be good for you mainly if you
uses lots of Taglibs, if they actually will work on it.
Btw, I'm still using 4.0.x... how everybody is doing with 4.1.x? I
heard is too much buggy for production right now.
We're using 4.1.10-LE and 4.1.12-LE in
Hi,
What exactly would I set that to?
Depends on what you want to accomplish. We typically leave it as
webapps and specify different (absolute) docBases for individual
webapps as necessary.
If you have several webapps under the same location, you can change just
the appBase to point to that
Hi,
I have installed Tomcat 4.1.12. I have this directory structure for a
servlet. C:\Tomcat\webapps\myApp\WEB-INF\classes and the servlet name
is
test. OK. When I try to see this servlet by
http://localhost:8080/myApp/servlet/test, I get this; The requested
resource (/myApp/servlet/test) is not
Hi,
You'll have to search for and parse the file yourself.
Web applications are supposed to be self-contained, and being able to access things
like the server's configuration would be a very big security risk. It's (almost
always) bad design for an application to look for an do stuff from its
Hi,
Thread.join() can be very interesting and have non-obvious behavior in a servlet.
Here's a simple alternative design:
public class MyReportJob implements Runnable
{
private boolean done = false;
...
public void run()
{
... do work ...
done = true;
}
public boolean
Hi,
$CATALINA_HOME/bin/catalina.sh is one good place. Setting it as a user
environment variable will probably just lead you to confusion and,
eventually, anger ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Peng Annie [mailto:Annie.Peng;KONE.com]
Sent: Monday,
Hi,
We're running 4.1.12-LE, JDK 1.4.1, Solaris 8. Vanilla install, no
problems. Don't forget to install the Sun Solaris OS patches for JDK
1.4.1.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Madere, Colin [mailto:colin.madere;ieminc.com]
Sent: Monday, October 28,
with SDK 1.4.1 on Solaris 7?
Yoav,
Is there a patch for Solaris 7 or just Solaris 8? If there's one for
Solaris 7 could you point me to it... going in circles on Sun's site
and
the
search is giving a server error :(
Colin
-Original Message-
From:Shapira, Yoav [SMTP:[EMAIL
Hi,
Yoav is using a windows machine, I believe, so
$CATALINA_HOME/bin/catalina.sh is not available. Most -OPTS can be set
in
the workers2.properties file
if you are using mod_jk2.
Actually I'm using Solaris and Linux machines ;) But your point is
still valid. I use tomcat-standalone and it
Hi,
The WEB-INF/classes and WEB-INF/lib directories are where you can deploy
servlets and other compiled Java things for your web application. This
is not a tomcat-specific structure, it's part of the Servlet
Specification. And it hasn't changed from tomcat 4.0 to 4.1.
However, some other
Hi,
Without looking at your files, what happens if you don't add your context to the
server.xml? What non-default context properties are you using?
It would be helpful if you could post only the relevant portions of your
configuration, i.e. just your Context entry. A lot of people, including
Hi,
able to access MySQL databases from other servers with the servlets
that
I've programmed. However, after a time, it cannot seem to connect to
the
Are there any error messages?
databases through servlets, yet when I run Java standalone equivalents
of
the servlets, they connect to the
Hi,
Try radar...
http://radar.sourceforge.net/
Is Radar still in active development? It says on their site they
support Tomcat 3.2, which is old. Whether they are or not in active
development, perhaps the folks who helped with Radar could put up their
hands and help with the tomcat admin
Hi,
the server.xml looks fine... will chk it out again slowly...(wud also
appreciate more suggestion..:))
Also check any of your webapps for things that load on startup, i.e.
listeners, filters, and load-on-startup servlets. All these init() and
contextInitialized() methods will be called on
Hi,
Other people have run into this. The allowLinking attribute goes inside
the Context element. For example, from someone's else's server.xml:
Context path=/myapp docBase=myapp debug=0
reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
Hi,
It's very likely your app has an infinite loop or a thread lock
somewhere. Check that very carefully.
Tomcat, from time to time, starts processing and locks into some loop
or
Can you reproduce this reliably?
This happens for a while and then when the session is terminated, I
believe, then
Hi,
What version of tomcat are you using?
If you're using 4.1.12, make sure the invoker servlet mapping the
tomcat_home/conf/web.xml file is uncommented. The invoker servlet in
that release is disabled by default due to a security-related bug. See
the release notes for details.
Yoav Shapira
Hi,
You can turn off the access logging by commenting out the AccessLogValve
in server.xml.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Pearsall, Kyle [mailto:Kyle.Pearsall;cda.canon.com]
Sent: Thursday, October 31, 2002 4:39 PM
To: Tomcat Users List
Subject: RE:
Hi,
Edit $CATALINA_HOME/bin/catalina.sh to have JAVA_OPTS include -Xmx. For
example, to allow a 512MB heap, add -Xmx512m to your JAVA_OPTS. Full
details can be found in the VM options page at:
http://java.sun.com/docs/hotspot/VMOptions.html
By the way, searching the list archives for this
to stderr.log
and
stdout.log?
Thanks,
Kyle P.
-Original Message-
From: Shapira, Yoav [mailto:Yoav.Shapira;mpi.com]
Sent: Thursday, October 31, 2002 1:41 PM
To: Tomcat Users List
Subject: RE: logging
Hi,
You can turn off the access logging by commenting out the
AccessLogValve
in server.xml
Hi,
If you want a read-write JNDI context, you have to create your own. You
can't use tomcat's build-in comp/env context.
Furthermore, it's your responsibility to persist it. For more
information, see
http://java.sun.com/products/jndi/tutorial/objects/storing/index.html
Yoav Shapira
Hi,
It's not a problem for us. But here's an idea, if you're hell-bent on
having monthly files instead of daily ones: cat them all together ;) So
on the last day of a given month, cat all the files from that month
(e.g. cat catalina_log.2002-[month]-*.txt Catalina_log.2002-month.txt)
into one
Hi,
Can anyone can help me in getting the servlet running?
Probably ;) What problems are you running into?
How do you know tomcat 4.x is running great? Make sure all the examples
work.
Yoav Shapira
Millennium ChemInformatics
This e-mail, including any attachments, is a confidential business
Hi,
p.waitFor();
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Lindomar [mailto:lindomar.silva;bol.com.br]
Sent: Friday, November 01, 2002 1:56 PM
To: Tomcat Users List
Subject: Off-Topic: Runtime
Hi everybody!!
Sorry, because i ask this question to you.
But i have
Hi,
This is the most obscure bug I have ever seen:
OK ;) Wait a while ;)
If you use the redirect from IE6, Tomcat displays foo bar#123 rather
than the expected foo bar. If you hit refresh at the new URL, Tomcat
gets foo bar right.
When this experiment is tried from Mozilla, Tomcat works
Hi,
What version of tomcat are you using?
In 4.x, changing the pattern from common to combined is all you need to
do.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: neal [mailto:nealcabage;yahoo.com]
Sent: Thursday, November 07, 2002 1:44 AM
To: Tomcat Users List
Hi,
I it worked. Cool, thanks. Something I noticed though ... while the
logging of Netscape-related agents is rpetty good, the Micrsoft IE
browsers
are logged very vaguely. For instance, MSIE 6.0 is logged as Mozill
3.1
Compatible. Any way to change this?
No, this is a client-side setting.
Hi,
Scary.
All you have to do is add one line at the top of the file:
JAVA_OPTS='-Xmx256m'
Don't mess with the individual targets, like start, run, stop, etc.
And be careful specifying these properties: -Xmx255mB != -Xmx256M !=
-Xmx256m.
Yoav Shapira
Millennium ChemInformatics
-Original
Howdy,
It is so difficult to scale this. using vmstat, I can see my free
memory
shrinking and shrinking . It is really a case of suck and see.
The free memory will keep going down until the VM feels it has to
garbage-collect. You can tune this behavior using other non-standard
options, for
Hi,
You're wrong ;)
From RFC 2616, the HTTP specification, section 14.36:
14.36 Referer
The Referer[sic] request-header field allows the client to specify,
for the server's benefit
snip
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: [EMAIL PROTECTED]
Howdy,
Your error is in putting JAVA_OPTS in the wrong place. They shouldn't
be inside any of the commands in Catalina.sh, e.g. start / run / stop.
Post your whole Catalina.sh...
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: [EMAIL PROTECTED]
ChemInformatics
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 07, 2002 01:56 PM
Subject: RE: Using -Xmx128m cause BindException Error ???
Howdy,
Your error is in putting JAVA_OPTS in the wrong place. They shouldn't
Howdy,
A couple of things you could try:
- First get it to start vanilla, not automatically, and make sure
everything works. Then at least you know the tomcat setup is OK and its
your boot script that needs work.
- Once the vanilla, manual startup installation works well, comment out
or remove
Hi,
If there is such documentation, be very very careful about what you get
out of it. Performance tuning will always be specific to your own apps.
You need to figure out your goals (i.e. what level of performance is
desired, acceptable). Then create tests to simulate the expected loads
on your
Hi,
You can't right now. You will be able to once the servlet specification
version 2.4 is out, and a supporting container (e.g. Tomcat 5.x) is
available.
For now, you have to do various workarounds, for example an HTML page
with a meta http-equiv redirection to your servlet.
Yoav Shapira
Hi,
Per the servlet specification, if a jar is in WEB-INF/lib it must be
available to the classloader, i.e. deployed. If you don't want it
deployed, don't put it there. ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Etienne Deleflie
Hi,
That's what context-parameters are for. Use context-param.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 8:42 AM
To: Tomcat Users List
Subject: ServletContextListener::Initial paramters
Hi,
context-param's ARE set in web.xml ;) You're not correct when saying they must be
specified in server.xml.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Reynir Hübner [mailto:reynir;hugsmidjan.is]
Sent: Tuesday, November 12, 2002 8:59 AM
To: Tomcat Users List
Hi,
I'm pretty sure, looking at the code, that the threads are pre-created
and initialized, but not run. So they won't show up until needed, that
is, until requests come in. Did you try this with a full load test and
the threads still didn't show?
Also, how are you checking?
Yoav Shapira
Hi,
Searching the archives would've yielded many answers to this question.
Not directly. You can have a JSP, which is compiled into a servlet.
Or you can have a JSP or plain HTML page which redirect to a servlet.
The next servlet specification, v2.4, which is getting very close to
final, will
Hi,
That's not a bad initial design.
A better alternative would be to have an Authentication filter (mapped
to /*), a monitor filter (mapped to /*), and your servlet mapped to
/ServletMappedName. That'll make things a lot simpler, decoupled,
robust, etc.
Yoav Shapira
Millennium ChemInformatics
Hi,
ok...bear with my skill level here...you're suggesting the
Authentication
filter and monitor filter would be separate servlets? Then when the
user
No. I'm suggesting they be proper filters, per the servlet spec v2.3.
Specifically, you'd have two things that implement javax.servlet.filter:
Howdy,
What do you think the learning curve is on using filters and would it
be
The learning curve for these types of filters (authenticators, loggers)
is short and not steep. This is a good place to start:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
worth the effort
Hi,
Disable the invoker servlet mapping in the main web.xml (conf/web.xml).
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Oded Hasidi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 8:49 AM
To: [EMAIL PROTECTED]
Subject: access to servlets
How can I
Hi,
Check the tomcat logs on startup: if you posted your entire web.xml,
then your web.xml is incomplete and you'll see errors in the tomcat
logs.
Furthermore, as a matter of good design, don't override
init(ServletConfig config). Override init() instead. That way you
don't have to call
Hi,
A couple of suggestions.
Basically, we develop all of our applications under contexts. Each one
a
separate context. When they go live, they go to the default context so
users
don't have to request everything with /context/blah. This means that
if
Don't do this. Deploy them to their own
Hi,
I had the EXACT same thing happen. A temporary solution, applied in
4.1.14-LE, was to increase the buffer size to 48K. But I've yet to test
this, and I suspect it's not the perfect solution.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Neil Milne [mailto:[EMAIL
Hi,
Using tomcat's built-in JNDI support, and placing the JMS distribution
(jms.jar from java.sun.com) in my WEB-INF/lib directory, I should be
able to send a JMS message to a queue on a remote server, right?
The remote server is a full server (weblogic) with a JMS implementation
of its own. I
Hi,
The tomcat is 3.3a, the jdk is 1.4.1_01. I know that this error can
occur if you are trying to use an old jdk with a jar (or rt.jar in
particular) from a newer jdk. I wiped my box clean, installed only the
1.4.1_01 JRE, wiped the java.exe from winnt/system. Checked the system,
no other
Hi,
This may sound silly, but why? It was working just fine with a 1.3 jre,
I believe, and it does have its own tools.jar.
I didn't think the JRE has its own tools.jar.
The JDK includes javac, which the JRE doesn't. javac is required
(unless you're using Jikes or some other setup) for
Hi,
Yes. Significant performance implications can be assumed. Don't set
reloadable=true in a production server.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Mike Millson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 11:45 AM
To: Tomcat Users List
Hi,
Where do the org.jnp classes come from?
Thanks,
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Becker, Michael [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 9:35 AM
To: Tomcat Users List
Subject: RE: Tomcat with external JBoss (JNDI problems)...
This
Hi,
It's good. Stability is the same as before, it seems. Speed has
improved. GC has markedly improved, although we did have to experiment
a bit with the new GC options.
Our busiest system takes roughly 7000 hits a day, so not as busy as you,
but not idle either ;)
Yoav Shapira
Millennium
Hi,
OptimizeIt 5.0, the newest, claims to be able to display this sort of
thing, if your servlets are each a different class, which is normally
the case. But keep in mind all you'll see, with any of today's tools
that I know of, is the memory usage of the servlet instance itself, not
including
Howdy,
Whoa there skippy ;) Venting is good sometimes...
According to this page, it references j2se which is the JRE, the
runtime.
If
you're using Tomcat binaries and not compiling any Java, you would
think
you
only need the runtime libraries and not the whole SDK.
Hi,
So you didn't get any errors with 4.0.3 and now are getting them with
4.0.6?
Would you be willing to try 4.0.6-LE and JDK 1.4.1?
Minute 1:
Default user is logged into mail server.
See that messages are waiting.
Attempt to invoke second sevlet.
Exception is thrown:
-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 4:28 PM
To: Tomcat Users List
Subject: Re: Sun JDK 1.4 production quality?
On Friday, November 22, 2002, at 11:33 AM, Shapira, Yoav wrote:
GC has markedly improved, although we did have
Howdy,
A couple of comments:
1. JBoss uses (or can use) Tomcat as its servlet/JSP container. We've
used this setup in the past and like it.
2. If you need EJB support, or other J2EE features not offered by tomcat
stand-alone, JBoss would be a good way to go.
3. While the initial thought behind
Hi,
If they are overkill for webapps, what sorts of situations would
benefit
from them?
flame-bait
NEVER
http://www.softwarereality.com/programming/ejb/index.jsp
/flame-bait
(Just kidding) ;)
Yoav Shapira
Millennium ChemInformatics
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Hi,
In 4.1.x the AccessLogValve in server.xml is commented out by default.
Comment it in if you'd like those access logs. You can also move it
under a specific Context element to only log accesses to that Context.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From:
of the data being sent out. Sam is
the case for request URI. I get html data instead of
request details.
Could it be another misconfiguration?
Prashanth
--- Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
In 4.1.x the AccessLogValve in server.xml is
commented out by default.
Comment it in if you'd
Howdy,
I've notice that in a filter I have that the content length is
sometimes zero. This never happens the first time a browser requests
a particular page but will happen each time after that if the user
hits reload. The browser just seems to reload from its own cache.
The browser sends the
Howdy,
have a servlet which serves up a page that contains an applet. Tomcat
4.1 is my application server and I have it installed on my machine
Terminology caution: usually application server refers to a J2EE (or
.Not) server. Most people prefer to call tomcat a servlet/JSP
container.
A
Hi,
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe
r.ja
snip
The exception can be ignored (it might happen only in the case of a
client disconnect, so at this point, what happens doesn't really matter
anymore; this
Howdy,
The very reason there are so many users how to's up on the web, and
being used, tells you that the web site for Jakarta is poorly planned.
You
I disagree with that interpretation. It means the web site doesn't have
all the information people want, that the documentation isn't as
Hi,
My fav is AIMS,
http://marc.theaimsgroup.com/?w=2
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 8:29 AM
To: tomcat-user
Subject: Search engine for the tomcat-user mailing list
Hello
Howdy,
That's strange. As a matter of practice, I would not install tomcat, or
have on my classpath, any directory with a space in it, e.g.
c:\...\tomcat 4.1\ It's been a long time since I compiled on the
command-line, not using Ant or another tool, especially on windows. Did
you try using
Howdy,
I'm wondering how I should do to make tomcat use the paths that are in
my CLASSPATH?
Put everything on your classpath (that's not already in tomcat's
common/lib directory) in your webapp's /WEB-INF/lib directory. You may
want to read:
Howdy,
Use a script or TC catalina script to include your CLASSPATH.
While this may be simpler, it violates the spirit of the design of
tomcat's classloader. In the long run, this will only lead to more
problems. The app will be less container-independent, and less
portable. I really think
Howdy,
What's the recommendation for Oracle JDBC drivers?
Everyone I know turns the .zip into a jar (there's a reason the newer
drivers are distributed as ojdbc14.jar, not ojdbc14.zip) and puts in
their /WEB-INF/lib directory. That's because everyone I know wants
their app to be
Howdy,
You can do this in your app's web.xml:
context-param
param-namebaseDir/param-name
param-value/foo/bar/param-value
/context-param
And then in your servlet:
String baseDir = getServletContext().getInitParameter(baseDir);
If iPlanet 4 has a feature tomcat doesn't, I'd be amazed.
If it
Howdy,
I won't comment on the personal attack parts, although they are amusing.
;)
I'm wondering how I should do to make tomcat use the paths that are in
my CLASSPATH?
Does it say or imply to move JARs or packages to a specific
location? The question was simple and the my reply included
a simple
Howdy,
Lovely, that's the sort of mechanism I was looking for - is it portable
between servlet containers though?
For the record, the load-on-startup hack works pretty well. Cheers.
Yes, it's portable. The ServletContextListener is part of the SRV 2.3
spec.
Yoav Shapira
Millennium
Howdy,
How many servlet.jar files do you have loaded? ;) You probably have an
extra one somewhere, e.g. in your /WEB-INF/lib. You should remove
those, and only keep the one that comes with tomcat. Moreover, it looks
like your extra servlet.jar file is v2.2 (or maybe older)...
Yoav Shapira
Hi,
Do you mean log more verbosely? You can set debug=99 wherever
debug=0 in server.xml and check you logs. You can enable the
RequestDumper and AccessLog valves as well.
If you mean to expose server.xml to webapps, you probably don't really
want to do this ;) So please clarify your question
Hi,
A couple of things:
- Please post your log4j config. If you look in that list, you'll see a
lot of why am I getting [n] copies of my logging statements questions.
This is because all log4j loggers are additive by default, so if you
define n appenders at a level matching your logger, you'll
Hi,
I am wondering if there is any short-cut into seeing how much memory
each
webapp in tomcat is taking at runtime ?
I know it's possible to wrap the classloader object for
webapplications,
and make it count the numbers of objects instanciated, aproxiate the
memory
taken by each object by
Howdy,
Please refer to RFC 2616, section 14.36, for an explanation of the
referrer (misspelled) header. It is not set by the server, e.g. tomcat
in your case. It is set by the client, probably a browser in your case
(but could be a cell phone, mock objects, whatever).
There are known bugs in
Howdy,
Mr. Arcand already answered, but I wanted to add something: you can use
the directory indicated by context property
javax.servlet.context.tempdir as your temporary directory, rather than
hard-coding /tmp. See the servlet spec, section 3.7.1, for details.
Yoav Shapira
Millennium
1 - 100 of 5223 matches
Mail list logo