if they will work.
Brandon Goodin
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:58 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: getResourceAsStream cached by Tomcat's Classloader?
Hey Brandon,
Are you using this code to get
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 9:45 AM
To: [EMAIL PROTECTED]
Subject: RE: getResourceAsStream cached by Tomcat's Classloader?
Are the static variables transient? If not, the session manager may
persist them on a reload.
[EMAIL
: RE: getResourceAsStream cached by Tomcat's Classloader?
Aaaah. A man after my own heart! Keep it simple.
Brandon Goodin
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: RE: getResourceAsStream cached
This could be a thread safety issue.
Are you using a servlet that has instance variables to generate the
response?
Larry
[EMAIL PROTECTED] 05/30/03 11:33 AM
I still have no clue as to the shared cookies issue.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From:
I did that for a while but changed when teting them became difficult.
By putting them in the classpath, you can test without any
monkey-business (tech. term) to get the ServletContext, and the class
that gets the config is also not coupled to servlets, so I can use it
for a swing app, or command
Here are a couple of options for this:
The open-source ibatis database framework (www.ibatis.com) lets you do
this.
Another home-grown solution would be to create a StringBuffer for your
SQL, and a map for the parameters. Then you can prepare the statement,
and iterate through the map setting
Did you look in the logs?
[EMAIL PROTECTED] 03/28/03 10:14 AM
All,
The tomcat-4.1.18.exe installs perfectly as a service
on my NT 4 box, starts up tomcat service happily, and
immediately responds on port 8080 with the example
servlets.
Then within a minute or two, it stops responding
completely
Are you talking about using a different realm for each context, or using
different sets of users inside a single context?
If you have multiple contexts, you can use a different realm in each one
by adding the realm tag inside the context tag in the server.xml file.
If you have a single context,
Are you setting the content type?
[EMAIL PROTECTED] 03/19/03 08:58 AM
Does anyone know if there is a problem using Netscape Navigator with
servlet pages generating their own html using the println function.
Whenever I attempt to access servlets of this kind (which work fine
under Explorer) I
You may want to look the the debug=? stuff in your server.xml -
increasing those will provide much more information.
Larry
[EMAIL PROTECTED] 03/19/03 18:01 PM
Hi;
In server.xml I changed logging to
Logger className=org.apache.catalina.logger.FileLogger
verbosity=4
What package did you put the class in? If the answer is none, that is
why it does not work. Put it in a package and try again.
As far as reloading, read this:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
Larry
[EMAIL PROTECTED] 03/13/03 13:49 PM
Hi
i put my java bean
[EMAIL PROTECTED] 03/07/03 05:45 AM
Is tomcat 4.1.18 supposed to work with IBM
Java 1.1.8?
No. It requires 1.2 or later.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
An excerpt:
===
(0) Download and Install a Java Development Kit
* Download a Java Development Kit (JDK)
Are there spaces in your catalina_home. or java_home environment
variables? That may be messing things up.
Larry
[EMAIL PROTECTED] 03/05/03 16:38 PM
Hi,
I am getting the following error when I try to access JSP pages.
here is the error message:
Does this happen with the JPDA debugger, or running tomcat inside your
IDE?
[EMAIL PROTECTED] 02/28/03 16:38 PM
Hello,
While I'm having no problems running *outside* a debugger, I am running
into a problem with classloading as I try to run 2 web-application
through a debugger. The two
You have a copy of tools.jar somewhere other than $JAVA_HOME/lib/
Remove it.
Larry
[EMAIL PROTECTED] 02/26/03 12:42 PM
hi all! i've upgraded to jdsk1.4.1_01 on 3 servers. webapps work fine in
2
of them, but only one server says:
An error occurred at line: -1 in the jsp file: null
Generated
Hey Jim,
I think Yoav's answer is very practical, and in spite of the fact that
it would require a code change if you change loggers down the road, it
is only a few lines in one place. You should think about it, because it
is pretty low-cost, compared to the amount of time we have already
spent.
Where are your commons-logging and log4j jars?
If they are loaded by a different classloader than the log4j.properties
file, it may not work.
Larry
[EMAIL PROTECTED] 02/14/03 02:47 AM
Hi,
I have managed to get log4j to work for my webapps. I just have a
log4j.properties file in
.
Regards
Jim.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2003 15:40
To: [EMAIL PROTECTED]
Subject: RE: Log4J and tomcat using Commons logging
Where are your commons-logging and log4j jars?
If they are loaded by a different classloader
. With commons-logging you do not log to
any
particular logging implementation.
Regards
Jim.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2003 17:11
To: [EMAIL PROTECTED]
Subject: RE: Log4J and tomcat using Commons logging
I have never used log4j
Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: February 14, 2003 1:14 PM
To: [EMAIL PROTECTED]
Subject: RE: Log4J and tomcat using Commons logging
Hey Jim,
Can you help me understand your
If I remember right, the gz version does not do anything but create the
tomcat directory.
In that case, remove the tomcat directory, remove the CATALINA_*
environment variables (if you set them), and any startup scripts
(probably in /etc/init.d and /etc/rc*) you may have created.
Larry
[EMAIL
Try this instead:
Thread.currentThread().getContextClassLoader().loadClass(className);
Larry
[EMAIL PROTECTED] 02/12/03 03:54 AM
Im having another problem with tomcat 4.1.18.
My classes run fine with tomcat 3.2.1.
And tomcat 4.1.18 seems to be set up correctly now thanks to some help.
One of
com.inet.tds.TdsDriver is in your classpath.
Steve
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 8:15 AM
To: [EMAIL PROTECTED]
Subject: Re: Class.forname() error in catalina
Try this instead:
Thread.currentThread
This thread has already pointed this out indirectly, but I will go ahead
and say it directly - you may want to consider the commons-logging API
for your logging so that if (when?) you change logging implementation
later you do not have to touch every class that does logging.
The commons logging
I have gotten weird errors when more than one classloader loads a class.
With that in mind, is the servlet.jar in more than one place? Check in
$CLASSPATH, $CATALINA_HOME/common/lib, $CATALINA_HOME/server/lib,
$CATALINA_HOME/shared/lib, your applications WEB-INF/lib, and the
$JRE/lib/ext
I have seen this in cases you described (pushing stop, or closing the
browser) after the servlet has started sending output. Obviously, users
never see it (they pressed stop or closed the browser), but it does show
up in my error log. I finally added code to catch and suppress it in my
servlet.
Looking at the classloader docs for 4.0.x and 4.1.x, I think it is
actually shared/lib.
The shared/lib directory (in 4.0, this was just lib) is for stuff that
you want available to all of your applications.
The common/lib directory is where you put stuff you need the server and
all of your
I thought this list is for people who want to contribute to tomcat use /
development.
If you want to beat each other up, take it off-list.
It is not helping anyone.
Larry
[EMAIL PROTECTED] 02/04/03 16:26 PM
Ron, you know, at least I hope to God that you do, that your rather
snide comment
A typo?
http://localhost:8080/test/SessionTest
instead of
http://localhost:8080/test/SessioinTest
Larry
[EMAIL PROTECTED] 02/03/03 15:32 PM
Maybe I am doing this incorrectly - but I have a servlet class in my
WEB-INF/classes directory(SessionTestServlet.class) and in my web.xml, I
have an
Or use a debugger to see what the heck they are. ;-)
Larry
[EMAIL PROTECTED] 01/31/03 16:34 PM
Hello, Robert Dana,
I cannot help you exactly, but perhaps a debugging trick would help you.
Try this:
Object o =
request.getAttribute(javax.servlet.request.X509Certificate);
System.out.println(
I have been trying to use the error-page tags in web.xml to catch
errors, but have found that errors that happen after output has been
flushed do not get sent to that page, instead I get a illegal state
exception.
Is there a way to catch exceptions that happen after output is flowing?
Larry
Found my own answer: The TryCatchFinally interface lets you create a tag
that wraps a block of code in a try...catch...finally block.
[EMAIL PROTECTED] 01/30/03 12:03 PM
I have been trying to use the error-page tags in web.xml to catch
errors, but have found that errors that happen after output
You could pass the object name, property name, and scope to the tag,
then use reflection to do it - the commons-beanutils stuff makes this
painless.
It is really simple and prowerful, honest!
[EMAIL PROTECTED] 01/30/03 13:26 PM
Is there a way to pass something other than a string to a custom
I would agree.
We had a static class and we thought it would work great...it turned out
that we ended up rewriting much of it to use the getInstance() type of
interface - it is just so much more flexible if you *EVER* need to
change stuff.
Larry
[EMAIL PROTECTED] 01/28/03 16:08 PM
The
Put your class in a package and it will work.
Larry
[EMAIL PROTECTED] 01/23/03 08:29 AM
I think I have the same Problem:
Environment:
Windows 2000
tomcat 4.1
j2sdk1.4.0_03
Netbeans 3.4
JAVA_HOME, TOMCAT_HOME, CATALINA_HOME are set, the classpath contains
everything ( I assume).
test.jsp
I had a similar problem, and changed catalina.sh to do this at the
start:
source /etc/profile
This was where I was setting CATALINA_HOME, and JAVA_HOME. When the
script got run at startup, those vars were not yet set...
Larry
[EMAIL PROTECTED] 01/22/03 10:20 AM
Has anybody had a problem with
Looking at the stack trace, I do not see anything related to mysql. What
makes you think that is the source of the problem?
Based on the org.apache.jsp.projects$jsp bit, I would look in the
project.jsp file first...
Larry
[EMAIL PROTECTED] 01/22/03 15:47 PM
Hello,
I have installed a web
I just set up 4.1.18 as a service on win2k this morning. The batch file
is below.
The section that begins with set createCmd= should all be one line.
Not sure how that will format with this email client.
Anyway, you can probably carve out a similar script that will work for
you.
To remove, I
I did not know this trick!
If it is this simple, you gotta wonder...why no cvs rename command...
Larry
[EMAIL PROTECTED] 01/10/03 17:03 PM
Renaming things is trivial, just get the
administrator to rename it for you.
mv $CVSROOT/src/foo.java,v $CVSROOT/src/bar.java,v.
Or if you don't
CVS!
It is free.
It runs on darn near anything.
There are several good java interfaces, and tools like netbeans and
eclipse also work well with it. For windows users, you can use WinCVS,
and my preference - the command line!
Also, the server-side repository is binary compatible across
[EMAIL PROTECTED] 01/10/03 12:25 PM
In my case, I have licenses for SourceSafe from
before OneTree was acquired by Microsoft. It
really is a nice revision control system. In
any event, I did mention cost as one factor for
why he likely couldn't use it. Same would be
even more true
[EMAIL PROTECTED] 01/10/03 11:18 AM
If you were in a corporate environment, perhaps
Subversion might not be ready for you (but then
again, you could afford SourceSafe), but in your
environment you might like the possibilities in
Subversion. There is always CVS if you need it,
and
Go to the $CATALINA_HOME/bin directory and run
catalina run
The terminal will stay after it dies.
Larry
[EMAIL PROTECTED] 01/08/03 15:23 PM
I added it, and it appears to be using the correct jdk. However, now
the
damn thing won't start. And it closes the terminal window before I can
These messages indicate that a fix is in the works: A new Tomcat 4.1.x
release incorporating the fix to the invoker servlet will be made
available shortly.
Am I reading this correctly as saying the quick fix is to disable the
invoker, but the long term fix is to change the invoker to make the
TrafficCop is thread safe because add() is
synchronized. Regardless if trafficcop is
No, this is false.
The add() method is syncronized, and therefore thread safe. But that is
not where the problem lies.
TrafficCop may be thread safe, but access to it is not.
Two objects are updating a
Two requests are coming into your servlet. A SINGLE servlet object
handles BOTH requests. That single object has a SINGLE child object
(trafficCop) that gets updated once for each request. That child object
is shared by both requests - it is not unique for each request unles you
make it a method
I changed the catalina.sh to source /etc/profile to set those. From what
I have heard, this is not uncommon...
Larry
[EMAIL PROTECTED] 12/16/02 14:26 PM
Will this run before or after profiles.conf, starting tomcat needs the
JAVA_HOME, CATALINA_HOME etc info...
--
To unsubscribe, e-mail:
Or, you can use request.getUserPrincipal() to get that info. That
returns a java.security.Principal object that represents the user
(getName() returns the login name).
[EMAIL PROTECTED] 12/13/02 11:39 AM
[EMAIL PROTECTED] wrote:
Hello,
I searched many places and read many things, but I didn't
On one box, I did this:
create a symbolic link in /etc/rc3.d named S55tomcat to
$CATALINA_HOME/bin/catalina.sh
I modified catalina.sh, adding (at the top) 'source /etc/profile'
(without the quotes) to get my environment set up.
Probably a good idea to add a link in /etc/rc0.d and /etc/rc6.d
I just went from 4.0.6 to 4.1.12, and found two things that may make
your life easier.
1) All my logging went into files instead of to the console.
2) 4.1 seems much fussier with stuff. For example, I had a reference to
a tld that did not exist in my web.xml, so an app that worked great in
4.0
Talking about the class loader with tomcat is a vast
over-simplification.
Look here for more:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
Larry
[EMAIL PROTECTED] 11/27/02 12:53 PM
Hi,
When I start Tomcat I get a NoClassDefFoundError exception. I'm
including a
with that doc.
The question is - If the class loader loaded the jar, then why would my
init
app throw a NoClassDefFoundError exception. And not throw it when the
jar
is in the classpath.
Subir
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27
I will second this - do not use the jdbc-odbc bridge unless you
absolutely have to.
If there is ANY other path, take it instead.
Larry
[EMAIL PROTECTED] 11/20/02 10:43 AM
You'll need the JDBC-ODBC bridge. It's not pretty...if you're doing
anything serious, don't use it. Switch to
I would still use mysql or um...anything other than access via
odbc/jdbc.
[EMAIL PROTECTED] 11/20/02 11:12 AM
in that case, you're probably safe. the access odbc driver doesn't
support connection pooling for that version, so you'll only be able to
support a couple simultaneous queries.
peter
On a related note, There may also be problems with the classes12 file -
for some unknown reason, it contains the javax.sql package. I have seen
cases where JDK 14x just flat refuses to load it. You may want to unzip
the jar, remove those classes and repackage it without them.
Larry
[EMAIL
I am using the LDAPRealm that comes with 4.1.12, and have had no
problems with it.
However, the LDAP server I am getting authentication from is flaky, and
needs to be restarted too frequently - sometimes 1-2 times per month,
sometimes 3-5 times per day. Consistency is the mark of greatness.
We had ora-00020 problems using connection pools if we did not
explicitly close all statements, resultsets, etc - if we just closed the
connection, the related objects remained open. We guessed it was because
the connection was not really closed, only reused.
We have also been seeing some hotspot
Maybe it is corrupt? Can you view the contents of the jar file?
jar -tf iwxml.jar
Larry
[EMAIL PROTECTED] 10/17/02 15:17 PM
Hi:
It seems that Tomcat doesn't support any jar in the WEB-INF/lib
directory.
By the way I'm not using symlinks at all in the WEB-INF/lib directory.
Tomcat 4.1.12
A few comments:
Adding a directory does not add all the jars in that directory to your
classpath. You have to add them individually. Using a tool like ant
makes this easier.
One thing I do when I have startup problems is to run catalina.bat run
instead of startup. That way, the messages stay on
Do you have different cases in file/dir names - myfolder, MyFolder, and
myFolder are all the same in Win32, but all are different in linux/unix.
Larry
[EMAIL PROTECTED] 10/16/02 08:29 AM
Hi! I'm having some problems running servlets in Tomcat 4.1.12 under
Linux RedHat 7.3
I've done a simple
How about some more info:
Windows?
Linux?
JDK version?
Tomcat version?
Struts?
Larry
[EMAIL PROTECTED] 10/15/02 14:20 PM
Hello All,
I am getting this weird thing happening , I am building a web
application
using Tomcat with MVC architecture. The problem I am facing is that the
What is the problem you are having?
The process should be simple :)
- install jdk
- install tomcat
- set JAVA_HOME
- set CATALINA_HOME
- start catalina
You may have some rights issues, depending upon who creates the
catalina work folder, and starts catalina.
As a former CF-er, you
I would second that No-RPMS comment. Get the zips, it may take a few
minutes longer, but when you are done, you KNOW what was changed,
because YOU changed it.
Larry
[EMAIL PROTECTED] 10/14/02 02:16PM
Ditto what Larry said.
This is my personal preference, but I would skip the RPMs. The
I have actually found the 1.4.1 release candidate to be MORE stable than
1.4.0 was. You might try that.
Larry
[EMAIL PROTECTED] 09/09/02 23:32 PM
Randall Schulz suggested that I upgrade Java. I've checked the Java
system on this machine, and it is already 1.4.0.01, so about as recent
as we
You have to be root to access ports 1000.
I think you could su or sudo it.
Larry
[EMAIL PROTECTED] 09/06/02 20:44 PM
I'm trying to point my tomcat server over to port 80 in Redhat Linux,
but I am having a little trouble with it. I have apache installed as
well but I have both disabled the
It is the JDBC-ODBC stuff. Unless there is NO OTHER POSSIBLE WAY to
connect to your database, do not ever use the JDBC-ODBC bridge except to
convert your data to another format.
It looks from the error that you are using M$ SQL Server. M$ has jdbc
drivers for SQL2000, but not for earlier
Is there a way to configure Tomcat 4.0.4's
current working directory to point to
sub-directory of the webapps folder,
rather than /bin?
I hate to answer a question with a question, but here goes: Why would
you want to do that?
Larry
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
IMO, it seems like a bad idea to me to tie your bean
code to a servlet context unless you REALLY need to.
To me, a better way would be to put the file in a
directory under classes, and use the classloader of
the current thread to get to the file.
This way, you do not need servlet.jar to use
/14/02 09:45 AM
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?
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:11 AM
To: [EMAIL
WOW! Cool, I did not know you could do that!
[EMAIL PROTECTED] 08/14/02 09:54 AM
URL destinationURL = ...getResource(...);
URLConnection destinationConnection = URL.openConnection();
destinationConnection.setDoOutput();
OutputStream outputStream = destinationConnection.getOutputStream();
...
Should this be
LD_LIBRARY_PATH=$ORACLE_HOME/bin
instead of
2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib.
I do not have the Oracle client installed on a linux/unix box right
now...
Larry
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Also, if you are using ipchains or iptables as a firewall, you may need
to open a conduit to allow access to port 3306.
Even on localhost, ipchains will not allow access unless configured to
do so.
Larry
[EMAIL PROTECTED] 08/12/02 09:35 AM
generally, if you see this problem, your driver is
If you are only reading the file, you could also put it in your
$/WEB-INF/classes folder and use the class loader to get an input
stream. That way, if you jar/war the file up, it will still find it.
Like this:
InputStream is =
Thread.
currentThread().
getContextClassLoader().
the
admin apps) didn't get me what I was looking for.
Thanks!
On Fri, 2002-08-09 at 23:01, Larry Meadors wrote:
Look here:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30523.html
Instructions on how to set up tomcat and netbeans with the JPDA
debugger.
Larry
[EMAIL
Look here:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30523.html
Instructions on how to set up tomcat and netbeans with the JPDA
debugger.
Larry
[EMAIL PROTECTED] 08/09/02 15:59 PM
Does anyone here use NetBeans with tomcat 404?
I'm using it, and use a small class to
The OCI driver is *at least* 10X faster than the thin driver. It is
worth getting it going. ;-)
I do not have my ora docs handy, what is a ORA-12560 error? Any hints
there?
Send some simple sample code, that will help too.
Larry
[EMAIL PROTECTED] 07/11/02 07:46 AM
I know this doesn't solve
I do not know if I would consider this a bug. There was a related post
just yesterday. If I understood it correctly, esentially, your jsp gets
compiled as being in the org.apache.jsp package. Unless you explicitly
import your unpackaged classes, they are expected to be in the
org.apache.jsp
Yep, you need to have the client installed on the tomcat server. It
works the same on linux and Windows, and is a free download, so it is
not a BIG deal, just an extra step.
If you are running tomcat as a service, you also have to tell it where
to find the dll (on windows). Not sure about linux
Did you rename the file to classes12.jar from the original
classes12.zip?
I know there were some issues with that some time ago...
[EMAIL PROTECTED] 07/11/02 09:10 AM
I had a webapp working ok...
I had it set like this:
$TOMCAT_HOME\webapps\fap\WEB-INF\classes\[ all my classes unpackaged
Wow.
I do not know how they tested or measured this, but it is WAY, WAY off
what I saw in our environment.
I wonder if this is on the Oracle server? We literally saw a 10x
performance boost going to OCI.
Larry
[EMAIL PROTECTED] 07/11/02 09:32 AM
O'Reilly has a good article about the
Win2K on both.
A contractor we are working with is using linux, and he reported similar
performance.
Larry
[EMAIL PROTECTED] 07/11/02 10:03 AM
Just out of curiosity, what platforms for oracle and tomcat?
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent
Just curious: Why not just put it in a package?
[EMAIL PROTECTED] 07/10/02 16:26 PM
but why does the package version work without the import
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I have noticed on my dev system (redhat72, jdk14, tc404) running with
the JPDA debugger makes tomcat not want to shutdown.
Larry
[EMAIL PROTECTED] 07/09/02 16:48 PM
99% of the time, that means your app has started a thread someplace and
not shut it down.
--
To unsubscribe, e-mail:
When using the oci driver, you need to have
ocijdbc8.dll (on windows) somewhere on the
system path.
Larry
[EMAIL PROTECTED] 07/02/02 10:18 AM
I'm using Tomcat 4.0.4 tyring to access Oracle 8.1.7
via oci driver.
here is the error that I got
javax.servlet.ServletException: no ocijdbc8 in
I have been looking for a way to increase the default jsp buffer size.
Not on a page by page basis, but for the whole server.
It looks like it is being set JspWriterImpl class from a Constants
class. After it gets set, I do not see any way to change it. Is there
one?
Maybe I am barking up the
You could modify the scripts, or set an environment variable called
CATALINA_OPTS on 4.X or TOMCAT_OPTS if you are still using 3.x with
those settings.
Those vars are referenced in the scripts too.
Larry
[EMAIL PROTECTED] 06/24/02 15:12 PM
The tomcat users guide states, that to improve
Or you could just download netbeans. It's free.
CVS integration, JPDA debugger, ant integration.
Total cost: nada, nothing, zilch, zippo.
Am I glad it is friday. ;-)
Larry
[EMAIL PROTECTED] 06/14/02 07:46 AM
I agree. You don't need $3000 IDEs. I use UltraEdit + JSwat + Ant +
WinCVS.
if u have some fancy IDE...
What!?! No, no, no.
Go to www.netbeans.org, and download netbeans.
It is free, has an excellent JPDA debugger, is free, works great with
cvs, is free, has some really excellent (free) plugins (xml editing,
database explorer, junit integration, etc...), and it is
If your IDE has a JPDA debugger, you can use that.
Search the archives for CATALINA_OPTS and you should find more info on
this...
Larry
[EMAIL PROTECTED] 06/12/02 11:10 AM
Where could I get information on debugging a web application under
tomcat? Is there a way of doing it or do you have to
Sorry, my bad, that was the struts-user list.
BTW, that is another good place to search - there are some smart guys on
that one...not that there are dumb guys on this one, but...just a
minute, let me get my foot out of my mouth. ;-)
Anyway, here are some instructions for using netbeans from
Search the archives, I posted a page to do that in the last month or
two.
It is called appscope.jsp, and lists all objects in session scope as
well as application scope with links to blast any of them.
It is real easy to shoot your foot off doing this, so be careful. ;-)
Larry
[EMAIL
I ran into the same thing.
A javascript window.open() call creates new windows in the same process
as the creating window.
Clicking the StartProgramsIE menu option starts a new process.
One process = one session.
Multiple processes = multiple sessions.
I do not know of a work-around. :-(
Sorry, I cannot help you fix the problem, but I have some more info
related to it.
I ran across the same problem with Mozilla 0.9.9 on Redhat Linux 7.2,
but if I hit the same tomcat server from IE6 on Win2K, it works fine.
So, to me it looks like the problem may be specifically with Tomcat
You might look at the jakarta-commons Digester component.
It allows you to fairly easily rip through an xml doc without writing
your own sax/dom processor.
Larry
[EMAIL PROTECTED] 05/27/02 01:53AM
is there a way of loading or access the web.xml from a non-servlet
class?
Another option might be the Runtime.getRuntime().addShutdownHook()
method.
From JDK 1.3: A shutdown hook is simply an initialized but unstarted
thread. When the virtual machine begins its shutdown sequence it will
start all registered shutdown hooks in some unspecified order and let
them run
[EMAIL PROTECTED] 05/24/02 10:12AM
a) Can ant be used to do installs like copying files...
Yes. Look at the Copy task:
http://jakarta.apache.org/ant/manual/CoreTasks/copy.html
...editing properties etc.
Not sure what you want to do here...
b) Can ant check that the file list has made it
I will go one better: app scope and session scope, and you can remove
them too. ;-)
Larry
===
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head
titleApplication attributes/title
/head
body
%
String remObjName = request.getParameter(remObjName);
if(null != remObjName
If you want to use a jar from an applet, it has to be outside of the
WEB-INF directory.
Larry
[EMAIL PROTECTED] 05/16/02 09:45AM
Hi All
I have configured TomCat 4.0.1 to run our application and it works
except
for Applets.
We are using TC4.0.1 IE 5 and Java-Plugin 1.3.1
Whenever I try to
They both subclass Object.
Change
public class PictureBrowserBean {
to
public class PictureBrowserBean extends FileBrowserBean {
[EMAIL PROTECTED] 05/09/02 02:12PM
Hello,
superclass is: FileBrowserBean.java
subclass is: PictureBrowserBean.java
Do you have a CATALINA_HOME environment variable set? That might cause
this...
[EMAIL PROTECTED] 05/07/02 09:21AM
I am having problems reading a resource file I placed in
/var/tomcat4/common/lib. I also tried placing it in
/var/tomcat4/common/classes.
I wrote a small JSP which lists the
101 - 200 of 217 matches
Mail list logo