I'm trying to gain access to the name of the Engine that a servlet is
running in. In most cases this will be Catalina as configured in the
/conf/server.xml file. But when another Engine is configured, say
CatalinaTesting, I need to get that name instead.
I've tried to navigate the methods and
Reger, Jr. [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 29, 2005 3:56 PM
To: tomcat-user@jakarta.apache.org
Subject: Embedded Tomcat JNDI/JDBC Configuration Questions
Hi!
I've successfully created a project that embeds Tomcat. Excellent! I can
see the sample page and the manager app, reporting
Hi!
I've successfully created a project that embeds Tomcat. Excellent! I can
see the sample page and the manager app, reporting Tomcat 5.5.9. Now I'm
working on deploying a .war file programatically:
public void registerWAR(String contextPath, String absolutePath) throws
Exception {
Hi All!
I'm trying to configure Tomcat to use 2.5Gb of memory on Windows 2000 Server
SP4 with Java 1.4.2_04.
To configure memory I'm using Start - Programs - Apache Tomcat 5.0 -
Configure Tomcat - Java Tab.
When I set the Maximum Memory Pool to anything greater than 1024Mb the
Tomcat
Hi,
Is there any way to limit the file size of stdout.log?
Thanks,
Joe
Throw the following code into a jsp and view it. It'll give you a little
graph showing you how much memory Tomcat can use, has allocated and is
using. This will tell you if you've properly set the max memory value and
may help you figure out what's happening. Best, Joe
StringBuffer mb = new
Hi,
I get the same error as Abhay when deploying a WAR file through the manager
application. In my situation I do have the proper /WEB-INF/web.xml
structure but I get the Missing application web.xml, using defaults only
error. When I manually explode the WAR file the application works fine.
Do you know if that directory change is part of the manager application's
WAR deployment process?
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 3:45 PM
To: Tomcat Users List
Subject: RE: Missing application web.xml, using
--- Joe Reger, Jr. [EMAIL PROTECTED] wrote:
Hi,
I'm just using that to represent the root tomcat installation
directory.
For me it's C:\Superfly\Tomcat 5.5\. For you it may be different.
Are you having any trouble with the web.xml file when deployinga WAR
through the manager app?
Joe
.
A few seconds later the application dissappears and all files are
deleted.
The tomcat sample war
file appears to be broken
too:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/
I'm open to suggestions. More info
below.
Thanks,
Joe
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED
[mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:12 PM
To: Tomcat Users List
Subject: Re: FW: Re: Missing application web.xml Tomcat 5.5.7
Hi,
Where are you getting this $CatalinaRoot ? I don't see this env var set
in catalina.sh.
aka_sergio
--- Joe Reger, Jr. [EMAIL PROTECTED] wrote
Hi!
I'm having problems with the Missing application web.xml error on dev
machines running Windows XP,. Tomcat 5.5.7, Java 5.0.
It happens when I try to deploy a war file by using the Manager app or by
placing it in the /webapps directory. Here are some of the things I've
done, each time
The scenario is a timed-out login session: The user writes a wonderful
something in a web page form. They finally submit it but I have to redirect
to the login page to collect credentials because the session has timed out.
Question: Is there any way to restore that original request (with the
Hi.
I have a java web app that I package as a WAR file. People download it.
They install it on their instance of Tomcat. They configure application
settings as variables in context.xml.
The problem is that each time they grab updated code (a new WAR file) they
overwrite their context.xml file
Hi.
Is there any way to specify the domain of the cookie that Tomcat sets to
maintain session across requests?
In java there's javax.servlet.http.Cookie.setDomain(java.lang.String
pattern) that allows me to set it to something like .joereger.com... which
allows a cookie to persist across
Hi.
I have a question regarding the embedded version of Tomcat. I'd like to
have a java program start an instance of Tomcat and then deploy a WAR file
to it.
...
URL warFile = new URL(jar:C:/source/ROOT.war);
Deployer deployer = (Deployer)host;
deployer.install(/ROOT, warFile);
...
I get the
Domain?
Nope. Can't do it.
But if you really need it to be more domain generic - there is nothing
stopping you from expiring the JSESSIONID cookie and setting a newer one at
a more generic level. (But this will probably cause future issues)
-Tim
Joe Reger, Jr. wrote:
Hi.
Is there any way
Two WAR files. Exactly the same, but with different names:
myApp-(bld1035)-2003-08-07-(01-33-55PM).war
myApp.war
Both WARs have the same /META-INF/context.xml file with the line:
Context path=/myApp docBase=myApp debug=1 reloadable=true
crossContext=true
On a clean Tomcat 5.0.6 I use
I just installed the 8/6 nightly. What is the username/password by default
for the /manager app? I usually set it in the installer but there wasn't an
installer this time. Thanks, Joe
-
To unsubscribe, e-mail: [EMAIL
500's are tough...
Doesn't putting this in web.xml call a custom 500 error page called 500.jsp?
error-page
error-code500/error-code
location/error/500.jsp/location
/error-page
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003
Ted,
It's a religious sort of thing (coder vs. designer) (system architect vs.
usability analyst) (technology vs. sales). To make systems more stable and
portable we need case sensitivity. To make systems easier to use designers
relax restrictions to make systems a little easier to deal with.
Hi!
I'm working with the servlet-mapping tag in web.xml running on Tomcat 5.0.2.
In particular, I'm working with the url-pattern schemes. I've got a simple
Hello World!-style servlet that I'm trying to map various URLs to. Below
I list some samples and my results.
Why does Test 3 fail?
I'm having the same problem on Tomcat 5.0.2. Tried restarting the app.
Then tried restarting Tomcat. Then rebooted the machine. Still getting the
stack trace. I assumed for a while that I had a compilation error in my
error.jsp so I made error.jsp a very simple page with no code. It still
Does anybody know of a Log4j and Tomcat HOWTO? I've seen lots of info out
there on Log4j and command line Java but little on Log4j in a Tomcat
container. I'd like to see sample Logger... config tags for context.xml,
sample log4j.properties files and where to put the log4j.jar file so that
it's
Thanks to all for the recommendations. Good reading.
Bottom line goals I have:
1) All exceptions logged through one package... jsp compilation errors, sql
errors... errors that are caught by try/catch... errors that are not caught
by try/catch... debug and trace that coders write...
2) I want
25 matches
Mail list logo