Hi,
org.apache.jasper.compiler.CompileException: /bla.jsp(5,0) Unable to
load
class pl.biznespartner.cms.phoenix.server.WindowTag
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.jav
a:13
9
)
...
I double-checked - the class is in the classpath. What's going on?
I
Hi,
Can you pre-compile your JSP with jspc? I bet as soon as you see the
result of that (if it compiles), you'll be able to fix the error in a
second!
public abstract class PageBase extends HttpJspBase {
Yoav Shapira
Millennium ChemInformatics
--
To unsubscribe, e-mail: mailto:[EMAIL
Hi,
If you're using tomcat 4.x, why is your DTD written to the version 2.2
spec?
You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
without any changes. You need to update your deployment descriptor at
least. Have you also verified a proper installation of 4.x, i.e. all
you got a WEB-INF/web.xml example , so I can
show
it to my developers?
and about the e.i. all are running fine.
Thank
RG
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:33 AM
Subject: RE: Loading new
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 1 column 10
org.xml.sax.SAXParseException: Element type web-app must be declared.
Howdy,
I haven't seen your original message, which presumably has to do with
the MySQL error. However, the above is enough to suggest
session-timeout10/session-timeout
/session-config
If I leave this uncommented the app wont load.
Someone know which is de equivalent in tomcat4
thank
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 12:10 PM
Hi,
That's a misleading answer. Using the FileInputStream approach, unless
you specify an absolute path your results will depend on what the
current directory ($CWD) is when you start the server. Not everyone
starts it from TOMCAT_HOME/bin.
The first answer posted, using getResource() or
Hi,
For starters, what's in the webserver logs? How do you know it starts
fine?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Vijay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 6:23 PM
To: [EMAIL PROTECTED]
Subject: 4.0.4 Embeded Tomcat
Hi
I am
Hi,
What's the deal? I want to set a path to a log file by obtaining the
app realpath and then subtracting /webapps/ and substituting
/logs/. Is there a better way to do that?
For portability sake, so that you can deploy from a WAR file and don't
require it to be exploded, there are a couple of
Hi,
Time-saver: I don't have an answer to your questions in this message.
Q2. I have written a static method in one jsp page. I want to call
this
method in another jsp page. How to do it? I do not want to take this
method
out from the jsp and put into a class (.java) and use it in both the
jsp
Hi,
Hi, Is possible to limit the amount of memory taken by each java
thread?
You can control the amount allocated to the VM. It will be shared by
all the threads used by that VM. You would do this using the -Xmx
runtime option. Type java -X to see all these types of options.
PID USER
Hi,
Why build your own profiler when there are great tools out there? Is
there something you need they don't do?
Or do you mean something else by profiler? I assumed you meant a JPDA
implementation specifically tailored for tomcat?
Yoav Shapira
Millennium ChemInformatics
-Original
Hi,
I've tried out a few tools, but instead of customizing them, if it is
easier
to build one, I thought of taking that route. I have tried out
OptimizeIt,
JProfiler, JBoss to name a few.
OK. Now I move onto the realm of curiosity. I'm a fan of OptimizeIt,
I've found it adequate for my
Hi,
Now, I place a war file in the default webapps folder, and as id
expect,
it is unpacked. However, it is not unpacked in the context which i
create
!.. all other things appear to work fine.
Does the name of the context, as specified in the context element of
server.xml, match the war file
Hi,
The output I pasted is a output of the top command on Linux. If you
are
asking why I have so many threads the answer is I don't know! I think
that are threads between tomcat and apache that are never closed.
I wasn't asking why you have so many threads ;) I was asking for the
details of
To: Tomcat Users List
Subject: Re: Memory alloc on tomcat 4.0.4
where should I look for java runtime setting :) ?
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 12:31 PM
Subject: RE: Memory alloc on tomcat
Hi,
It usually comes down to a political decision. ;) The later something
is in beta, the more stable it is. I think 4.1 is very close to
release-quality, and have been testing with it for a while now.
However, due to organizational constraints and to my personal
philosophy, I will not put a
Hi,
with
a need to know which thread is taking the most CPU time, heap
resources
per
application instance, which request is hanging/taking most of the CPU
time,
etc. I do not want to know data regarding all the installed apps on
the
JVM,
but seggregate them purely on the ones specifically
Hi,
What if I want a solution that applies to only one webapp, FooApp for example, and not
the whole server? Where in FooApp's web.xml would I put the listings = false
directive?
Thanks,
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Holger Klein-Altstedde
Hi,
In general it's better to re-compile, re-pack jars, re-deploy jars, restart app. It's
clean, quick and safe, especially if you have ant targets for all of this ;)
As a temporary fix, you can put the fixed classes themselves, unpacked, in the
/WEB-INF/classes directory of your application.
Hi,
What is the JSP page supposed to do? ;) Could it possibly do something
that exceeds 64MB in memory requirements? That's the default JVM max
heap allocation. If you need more memory, use the -Xmx java runtime
option via the JAVA_OPTS variable in catalina.sh.
By the way, you would probably
Howdy,
You will need to be a bit more specific regarding what the definition of
number of processes. I assume you mean concurrent user requests. If
that's the case, check the documentation for minProcessors,
maxProcessors, and acceptCount at:
Hi,
So my first question is, why? If you could describe the motivation /
requirements / goals for your need to keep track of all the sessions,
perhaps someone could suggest an alternative approach.
If tomcat is restarted then the sessions are persisted fine. However my
vector of sessions is
Hi,
As JSP are compiled as servlets, you can do with JSP everything you
can
do
with servlets.
... but you shouldn't.
JSPs are designed mostly for presentation and some associated logic.
Stuff like if this field in the database is this value, then show these
values in HTML.
Servlets are
Howdy,
Sessions are not meant to be persisted across server restarts.
Obviously other people have other opinions about that.
Which is why I still suggested a solution I've used in the past ;)
Even though I disagree with the approach of persisting someone else's
proprietary internal
Hi,
I like this thread as a theoretical discussion, so let's pursue it a bit
more ;)
Depending on the kind of information you want to
display it gets at sime point annoying to to copy
everthing from the session to a store and to remove
it from the store when the session ends.
- More code =
Hi,
I've used ethereal before, it's decent and free ;)
http://www.ethereal.com/
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:38 AM
To: 'Tomcat Users List'
Subject: Bandwidth calculations
I
Hi,
(Too lazy to dig up the spec for the nth time today)
I thought the spec said -1 ensures they never expire. Not 0 or less.
Did you try -1?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002
Hi,
I see that the spec mentions private temporary directory - I need a
permananent directory - by temporary I take it to mean that I can't
count on the files sticking around. Is my understanding here flawed?
Your understanding as far as a temporary directory is correct. If you
need a
Hi,
One way to do it:
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
In the default servlet section of $CATALINA_HOME/conf/web.xml.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Todd Fulton [mailto:[EMAIL PROTECTED]]
Sent:
Howdy,
good point, although if you need to write to the file,
getResourceAsStream
doesn't work. Is there something else along the same lines that will?
How's about:
URL destinationURL = ...getResource(...);
URLConnection destinationConnection = URL.openConnection();
:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:36 AM
To: 'Tomcat Users List'
Subject: RE: session timeout
-1 seems to work, at least I have much better results than with 0.
I quoted directly from the servlet 2.3 FCS spec.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL
Hi,
Running 4.0.3 on solaris 8 standalone with jdk 1.4
Occasionally, tomcat dies with no error message in any log file. It
is as
if
someone has kill -9'ed the jvm.
Do you get any JVM-generated error files, typically of the form
hs_error_[pid].log or something like that? I've had that
Hi,
You want three headers there to be compliant across browsers and HTTP
1.0 and 1.1. Try this:
http://www.jguru.com/faq/view.jsp?EID=377
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Furer Alexander [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 7:49
Hi,
The tomcat startup scripts will not take your environment apparently.
Try
adding
JAVA_HOME=/usr/java1.4/j2sdk1.4.0_01
to $CATALINA_HOME/bin/catalina.sh.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
Hi,
Rename it to classes12.jar. ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 11:58 AM
To: [EMAIL PROTECTED]
Subject: Oracle classes not found
I now have Apache/Tomcat/JSDK up and
Hi,
CATALINA_OPTS=-server -Xms1g -Xmx3g
and from reading previous e-mails on this list, this should set the JVM
min
and max heap size, yet how can I verify this?
That's the correct way to set them.
Here's a simple way to verify things, as I inherently distrust Windows
performance monitoring
Hi,
I've been following your thread a bit loosely, so I may have
misunderstood something.
My problem is still the same, after so many requests (and thus some
amount
of information stored in memory), Tomcat starts to use up a whole lot
of
CPU time. I think I hit the memory limit (as I get out
Hi,
I assume your servlet is called Form1?
form method=post action=http://localhost:8080/jimbo/Form1;
Also, do I need any special apache modules for tomcat?
You need a connector installed between them e.g. mod_jk or mod_webapp.
Check out the docs at, for example,
Hi,
On unix, we put our CATALINA_OPTS settings in
$CATALINA_HOME/bin/catalina.sh.
Are you running tomcat as a service on NT or from the command line? If
you're running from the command line, can you do
echo %CATALINA_OPTS% before starting tomcat and verify the values are
set correctly?
Hi,
You can do it a number of ways, which have varying levels of elegance
and container-independence.
Perhaps the simplest way is to say, in pseudo code:
if(wsName not found)
response.sendRedirect(http://aURLOnMyServerThatIKnowIs404);
You can also try simply setting the response code to
Hi,
Illegal target of jump or branch
i dont know what's wrong with this because my other codes are working
fine
and there's a portion of my code that is the cause of this error. what
baffles me is that if i take this out, it works fine. but my the other
parts of my code which look the same
Hi,
You probably have a web.xml file written to the 2.2 DTD. Tomcat 4.x
strictly enforced the servlet spec 2.3 DTD for the web.xml files. You
see the complete docs if you download the 2.3 spec from
java.sun.com/servlets and look at chapter 13.
If you post your web.xml file, we can sort if out
Hi,
The threading implementation of the JVM depends on the OS to some
extent. Linux uses native threads as opposed to green or p threads, so
you see more processes at the OS-level. You can google search for any
of the above terms and you'll find a ton of references.
For the tomcat
Hi,
Perhaps you could start by saying what doesn't work? Are you getting
errors from webalizer? Would you like some additional information it
can't get from tomcat's access logs?
Have your tried modifying the access log valve's pattern, e.g. from
common to combined or to whatever pattern you
-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 09:58
Para: Tomcat Users List
Assunto: RE: Too many threads
Hi,
The threading implementation of the JVM depends on the OS to some
extent. Linux uses native threads as opposed to green or p threads, so
Hi,
It's your driver. The JDBC-ODBC approach tends to suck ;) Did you try
to the type 4 driver from MS? Or better yet, forget MS SQL and go to
MySQL or another more java-friendly database? If nothing else, try
doing MySQL approach just to validate that it's neither tomcat nor your
app that
Hi,
What code are you using to read to/from an IMAP server?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 10:42 AM
To: Tomcat Users List
Subject: NotSerializableException
I am not asking tomcat
the javasoft (sun) standard API for mail. I
believe am currently using javamail 1.2, from jsp and
javabeans.
--- Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
What code are you using to read to/from an IMAP
server?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From
Hi,
You might as well be asking (properly spelled): which one of these fruits are best:
apples or oranges? And why? ;)
It depends on what you need to do and how to do it. Your question is very general.
My very general answer would be the mod_jk is older, more widely used, therefore
better
Hi,
I suppose you can't post code for confidentiality reasons, so I won't
even ask for that. But I have a couple of questions that may help us
understand the problem better.
If you're reading from a CSV file, why do you need a DB connection?
Couldn't you just open a FileReader, read a line at a
Howdy,
You may wish to have Apache, not tomcat, serve static content such as
images.
But for your current setup, using only tomcat, you probably need to
increase the amount of memory available to the JVM. You can do this via
the -Xmx parameter to java. You set that parameter in your
ERROR - PLEASE HELP
Thanks Yoav,
I just changed the CATALINA.BAT file this way: I just added
these
two lines on the top of the batch file. Would that be ok?
CATALINA_OPTS = -Xms512m -Xmx512m
JAVA_OPTS = -Xms512m -Xmx512m
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL
Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: Tomcat Crash
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Did you try to get a new connection each time
Hi,
I've found the outlook group by subject feature extremely useful for
this. In fact this feature for this list alone has somewhat changed my
opinion of outlook in general ;) When grouped by threads, you can
easily delete tons of messages you're not interested in, without having
to scan the
Hi,
Download any of the tomcat 4.1.x distributions and catalina-jar is in
there. You should be using tomcat 4.x with these ant tasks, as they're
not designed for tomcat 3.x.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Alvaro Mota [mailto:[EMAIL PROTECTED]]
Sent:
Hi,
Keep in mind that tomcat is a reference implementation of the servlet
spec. I don't remember the servlet spec answering these questions, so
tomcat isn't obliged to implement things any one way.
1. Is it true that requests from the SAME client
always served by the SAME thread?
Not always.
Hi,
Get any of the latest Sun Web Developer packs or whatever they're called
nowadays.
http://java.sun.com/xml/
is a good starting point.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Shah, Kishor (Kishor) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002
Hi,
JARs and WARs and EARs, oh my ;)
A WebApplicationArchive (WAR) contains the files for a web application,
e.g. servlets, JSPs, static files (html, images, libraries, etc.) and so
on, as well as that web application's deployment descriptor (web.xml).
An EAR typically
contains more than a
Howdy,
Check for non-daemon threads still running somewhere in your apps, or
3rd party code you apps use. Tomcat 4.0.2 eliminated the System.exit()
call in the shutdown code, for better compliance with embedded tomcat
users.
There's a thread about System.exit(), check the archives ;) See also
Howdy,
You may want to worry more about the HashMap's put() calls than the
get() calls. HashMap in itself is NOT synchronized, Hashtable is. If
you think there can be multiple threads writing to this hint map, then
those are the ones you should consider synchronizing. (Or using
Hashtable).
Hi,
I wonder if it's the browser that is caching things? We have some
frequently changing pages as well, and found that the browser(s) were
caching them, not tomcat.
Have you tried playing with the no-cache directives? E.g. if you're
using a servlet or JSP, add the following headers to the
Howdy, and welcome to the list ;)
You should put the JavaScript file NOT in the WEB-INF directory. Put it
under your web application (ROOT in your example). Stuff under WEB-INF
is not accessible to the browser. See the Servlet spec from Sun on how
to organize files under your web application.
Hi,
In the past weeks, we've gotten a couple of internal JVM exceptions
running tomcat 4.0.1. The relevant part of catalina.out is attached, as
well as the JVM-generated error file. As far as we can tell, this
happens randomly.
Any insight or information would be appreciated, as well as tips
Howdy,
What happens if you tell the browser to not cache images at all, i.e.
always go back to the server?
Yoav Shapira
ChemInformatics
-Original Message-
From: Scott Judd [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4
Howdy,
Same application is working fine in tomcat 3.2.4. i
try to keep that jar file in classes and
common/classes directory in catalina_home but still
JAR files belong in the /lib directories. If the contents of the JAR
file are required only by one web application, put in under the
Hi,
Hmm... That should work. Can you send the actual error message from
tomcat parsing web.xml?
Meanwhile, try just load-on-startup/load-on-startup without a
number.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
Howdy,
PARSE error at line 154 column -1
org.xml.sax.SAXParseException: Element servlet-mapping allows no
further
input; load-on-startup is not allowed.
This suggests your put the load-on-startup tag inside a servlet-mapping
element. It goes inside the servlet element, not servlet-mapping.
Howdy,
Please refer to the Servlet Spec, v2.3. You can't have servlet elements
after servlet-mapping elements. You should have all your servlet
elements first, then all your servlet-mapping elements. Good luck,
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jakarta
Howdy,
Actually, if I am not mistaken, the log() method is in the
ServletContext. Therefore, it should go into your context's log. Do
you have a Logger element for your context in server.xml? I do, and
that's where my log() statements go.
By the way, I'm a big fan of log4j, use it all the
Howdy,
A bit more info would be nice. Specifically, do you get any errors
parsing your web.xml? Is there anything in your context log or the
general tomcat logs regarding not being able to find a class required by
one of the servlets below?
Yoav Shapira
Millennium ChemInformatics
Howdy,
Your basic code snippet worked relatively well. In fact, I liked it
enough to start using it, with a few modifications and enhancements.
I'm attaching a more fully developed class to do some more, e.g. get a
list of all threads, etc.
You WILL get security (e.g.
Howdy,
Some more information would be nice ;)
1) Did you verify that tomcat installed correctly, e.g. by running the
examples?
2) Are there any errors in the tomcat logs relevant to parsing /
deploying / starting your web-app?
3) What do you mean when you say you couldn't create a context in
Howdy,
Reloading the whole-app is very different from selectively reloading a
set of classes. When you use the manager to reload as you suggest, you
will also re-trigger the various initialization events (filters,
servlets, etc.).
If that's what you want to do, then the manager reload is
PM
To: Tomcat Users List
Subject: Re: new tomcat user: migrating app from resin
Shapira, Yoav wrote:
Howdy,
Some more information would be nice ;)
1) Did you verify that tomcat installed correctly, e.g. by running the
examples?
yes.
2) Are there any errors in the tomcat logs relevant
Howdy,
It'll probably be fastest for you to test specifically with your own
app, your own hardware, etc. ;) If someone else were to test, there is
a high probability the test results would correlate with your specific
setup.
Nonetheless, if you do test side by side, please post the results ;)
Howdy,
I have no clue why the Calendar class is behaving thus ;) I always use:
Date startSomething = new Date();
doSomething();
Date endSomething = new Date();
long elapsedTime = endSomething.getTime() - startSomething.getTime();
Very easy to understand. elapsedTime will be in ms.
There are
Howdy,
If your web-application is called MyApp, and your servlet class is
com.mycompany.myclass, you'd access it as
http://myserver.mydomain:myport/MyApp/servlet/com.mycompany.myclass
If you deployed to the ROOT web app, so that your context is the root
context, you would remove the /MyApp/ part
Howdy,
You can map servlets in your web.xml to almost any URL pattern you want.
If your webapp is installed under the ROOT context, add the following
into your web.xml:
servlet
servlet-namefooServlet/servlet-name
servlet-classfooName/servlet-class
/servlet
servlet-mapping
Hi,
I have a webapp that works in Tomcat v4.0.1. It uses JAXP, Crimson,
Xalan, so all those jars are in WEB-INF/lib. I left the Xerces.jar as
some parts of the webapp use Xerces.
I just installed Tomcat v4.0.3 in a separate directory. I copied my
web-app into it, same jars into WEB-INF/lib,
Howdy,
We're going to need a bit more than that to help you ;)
1) How do you know the tomcat script is picking up your environment
variable settings?
2) 4.0.4 is beta. I'd suggest starting out with a stable release, e.g.
4.0.3.
3) Is there any output at all to the tomcat logs, e.g.
Howdy,
How can i do for add classes to Tomcat Classpath?... i have an
application
The short answer: in many many ways ;)
The long answer: depends on where you want the classes to be visible.
If you just want them for one web-app, add them to that web-app's
/WEB-INF/classes directory. Or
Howdy,
Tomcat 4 works fine when the service is running, but will time out at
random during the day or night when not in use. If there is a timeout
setting for this installation please let us know.
Does the server process just completely stop? Is there anything
interesting in the tomcat logs up
Howdy,
-verbosegc outputs to the console via System.out.println(). Unless
you're doing something to trap System.out(), the verbosegc statements
would go in $CATALINA_HOME/logs/catalina.out.
As a sidenote, the default maximum memory Java allows is 64MB. Unless
you use -Xmx you will never exceed
Howdy,
See Mr. Morelock's reply: you need the JDK, not the JRE, as your
$JAVA_HOME. And if you have a lot of JSPs, consider using Jikes at
runtime or JSPC to pre-compile your JSPs, as Javac has a memory leak
(see the README file).
To The Powers That Be: We have to put this question in a FAQ
Howdy,
1st thing that comes to mind from looking at the stack trace, not having
tried tomcat-JINI connectivity: is that file
(com.sun.jini.reggie.RegistrarProxy) in your runtime classpath? It
should be in the /WEB-INF/lib or /WEB-INF/classes (or one of the common
lib/classes directories).
Howdy,
Can you post your init() method?
Does getServletConfig().getInitParameter(message) return null?
What does getServletConfig().getInitParameterNames() return?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Marek, Tomas [mailto:[EMAIL PROTECTED]]
Sent: Friday,
Howdy,
Keep it mind that tomcat won't shut down if there are non-daemon threads still
running. It's a good idea to check your application for such threads
and take care of them (kill them in destroy() methods, make them daemons, call
System.exit() in a lifecycle listener, whatever) for
Howdy,
See the Automatic Deployment section in the Host element
configuration:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
Also see the unpackWARs directive.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Bo Min Jiang [mailto:[EMAIL PROTECTED]]
Howdy,
Tomcat 4.x implements the Servlet Specification, v2.3. See the complete
thing at
http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html
Accordingly, tomcat doesn't determine the DTD for web.xml. Tomcat just
validates against that DTD. The v2.3 DTD specifies all servlet tags
Howdy,
Castor. http://castor.exolab.org/
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 4:28 PM
To: Tomcat Users List
Subject: Writing XML
There seem to be a million libraries out there for
Howdy,
Cron will execute any job at pre-determined times. You can write a
script that looks for a tomcat process every minute, and if there isn't
one, starts tomcat. That would be an OK way of getting it done. Cron
docs for linux:
http://nodevice.com/sections/ManIndex/man0204.html
You could
Howdy,
Wow, this question really comes up a lot ;)
Tomcat 4.x is an implementation of the servlet specification, v2.3. That spec says
all servlet elements must come before all servlet-mapping elements. Tomcat 3.x,
which implements servlet spec v2.2, does not have the same requirement. See
Howdy,
How about giving it a key yourself in your web.xml? (As a context-param
or init-param to some servlet)? That seems simpler.
Alternatively, consider using javax.servlet.context.tempdir, although
I'm not sure if that's in the SRV v2.2.
Yoav Shapira
Millennium ChemInformatics
Howdy,
If your own webapp is running on the tomcat instance you're trying to
restart, then HUH? ;) One VM can always restart another, as others have
proposed. So you can have a command line program, shell scripts,
another webapp running on another tomcat instance, etc.
Alternatively, look at
Howdy,
I actually disagree with the interpretation of the error: if you try to
shutdown tomcat when it's not running, you'll get a ConnectionRefused
exception from when it tries to connect to the shutdown port.
But I don't have an answer to the original question ;) Is Remy watching
this thread?
Howdy,
Simple test: go to your $JAVA_HOME/jre/lib, do
jar tvf rt.jar | grep ArrayList
if you're running 1.3.1, you should see two lines, one for
java/util/ArrayList and one for java/util/Arrays$ArrayList.
If they're not there, you're not using 1.3.1. ;)
I think I saw an earlier post from you
Howdy,
Check out Flux (a stand-alone commercial product), or maybe Turbine
Fulcrum which has a scheduling service and is free (under the apache
license).
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002
Howdy,
Add -XmxNm to your CATALINA_OPTS, where N is a the maximum heap space in
MB. The Java default is 64MB, and you're running out of memory. See
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java-classic.html
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From:
Also, is the somewhere I can find documentation on these things?
Thank You,
Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813
Shapira, Yoav
Yoav.Shapira@mpiTo: Tomcat Users
List [EMAIL
201 - 300 of 5223 matches
Mail list logo