RE: My deployed war file has servlet-api-2.5.jar in its WEB-INF/lib folder, but Tomcat 6.0.18 displays a warning during deployment

2008-12-18 Thread Caldarale, Charles R
 From: Jeff Walker [mailto:webservices.archit...@gmail.com]
 Subject: My deployed war file has servlet-api-2.5.jar in its
 WEB-INF/lib folder, but Tomcat 6.0.18 displays a warning
 during deployment

 But it seems to me that Maven is correct here in
 leaving it in the war, while Tomcat should realize
 that many deployed war files may include this common jar?

Under no circumstances should a .war file include that .jar or any other that 
is the responsibility of the container to provide.  Your usage of Maven is in 
error.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: My deployed war file has servlet-api-2.5.jar in its WEB-INF/lib folder, but Tomcat 6.0.18 displays a warning during deployment

2008-12-18 Thread Caldarale, Charles R
 From: Jeff Walker [mailto:webservices.archit...@gmail.com]
 Subject: Re: My deployed war file has servlet-api-2.5.jar in
 its WEB-INF/lib folder, but Tomcat 6.0.18 displays a warning
 during deployment

 Maven requires it for build purposes, but I can instruct

Most build mechanisms allow the specification of locations for additional class 
files needed for compilation, but not to be included in the resulting package.  
I would be surprised if this wasn't available with Maven.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [OT] Apache 2.2.3 segfault with Jk connector 1.2.270

2008-12-18 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: Apache 2.2.3 segfault with Jk connector 1.2.27

 And please note that all the above was done on the
 computer of which Chuck (or Chris?), just a few days
 ago, said that it had less processing power than his
 portable phone.

Still true, even if you can compile things on it.  Even a 1401 could compile 
(slowly).

 I'd like to see him try compiling mod_jk on his portable phone..

Don't need mod_jk, but Sun does have Java running on the iPhone; unfortunately, 
Mr Jobs won't let them release it.

The real test is what kind of frame rate you can get out of X-Plane on that 
box...

(It runs great on the iPhone; X-Plane is actually a pretty good test because of 
the intensive computational fluid dynamics it does.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [OT] Apache 2.2.3 segfault with Jk connector 1.2.270

2008-12-18 Thread Caldarale, Charles R
 From: Gregor Schneider [mailto:rc4...@googlemail.com]
 Subject: Re: [OT] Apache 2.2.3 segfault with Jk connector 1.2.270

 Is it? Provided somebody having a jailbreaked *cough* 3G
 - you've got *any* idea where to obtain a copy of the JDK?

Nope; it was just mentioned by some of the Sun people back when the 3G was 
announced.  They had a JRE running on the phone in the lab, but who knows if it 
will ever escape.

Sure would be fun.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: java.lang.NoClassDefFoundError: org.apache.catalina.mbeans.ServerLifecycleListener

2008-12-19 Thread Caldarale, Charles R
 From: Ole Ersoy [mailto:ole.er...@gmail.com]
 Subject: java.lang.NoClassDefFoundError:
 org.apache.catalina.mbeans.ServerLifecycleListener

 19-Dec-08 2:39:58 PM org.apache.tomcat.util.digester.Digester
 startElement
 SEVERE: Begin event threw error
 java.lang.NoClassDefFoundError:
 org.apache.catalina.mbeans.ServerLifecycleListener
at java.lang.Class.initializeClass(libgcj.so.9)
at java.lang.Class.newInstance(libgcj.so.9)

Use a real JVM (Sun, IBM, BEA); gcj is not suitable for serious applications, 
such as Tomcat.  Repost if you still have errors.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HelloWorld servlet, or just about

2008-12-19 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: HelloWorld servlet, or just about

 Better yet (but I don't want to abuse your patience), just paste the
 code right here below :

package myPackage;

import java.io.IOException;
import java.io.PrintWriter;
import java.security.Principal;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public final class ShowUser extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException {
Principal user = request.getUserPrincipal();
String userName = user == null ?  : user.getName();
PrintWriter writer;

response.setContentType(text/html);
writer = response.getWriter();

writer.println(html);
writer.println(head);
writer.println(titleSample Servlet to display current 
Principal/title);
writer.println(/head);
writer.println(body);
writer.println(p);
writer.println(Current user is  + (userName.length() == 0 ? 
lt;nullgt; : userName));
writer.println(/p);
writer.println(/body);
writer.println(/html);
  }
}

In your web.xml, include the following:

servlet
servlet-nameUserServlet/servlet-name
servlet-classmyPackage.ShowUser/servlet-class
/servlet

servlet-mapping
servlet-nameUserServlet/servlet-name
url-pattern/showuser/url-pattern
/servlet-mapping

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HelloWorld servlet, or just about

2008-12-19 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: HelloWorld servlet, or just about

 I'm sorry, but that does not match the specs AT ALL.
 I specifically asked that the response should be
 plain text, and just the userid.

Hmmm... I think you're starting to believe your 11 rules...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: WIR MACHEN FERIEN

2008-12-19 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: WIR MACHEN FERIEN

 Am I the only one being subjected to this, or is it a general thing ?

It's general.  Stupid bloody auto-responders.  Using one is often grounds for 
removal from the list, at least temporarily.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: HelloWorld servlet, or just about

2008-12-19 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: HelloWorld servlet, or just about

 I would basically need only a response with

 HTTP status line
 MyHeader: johnsmith

So take the code I posted, rip out all the HTML stuff, and just send the text 
of the userid.  Since it doesn't even have to be real HTTP, you don't even need 
a header, just the userid as a string.  You'll need some method of indicating 
an empty string, unless you know the session has *always* been authenticated.

package myPackage;

import java.io.IOException;
import java.io.PrintWriter;
import java.security.Principal;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public final class ShowUser extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException {
Principal user = request.getUserPrincipal();
String userName = user == null ?  : user.getName();
PrintWriter writer;

response.setContentType(text/plain);  // probably not necessary
writer = response.getWriter();

writer.println(userName.length() == 0 ? null : userName));
  }
}

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.0 on IBM JVM 1.5

2008-12-19 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Tomcat 5.0 on IBM JVM 1.5

 Now I am wondering whether it is worth trying to fix the existing
 Tomcat 5.0 Suse package to have it use the Sun JDK 1.6, and get rid of
 the IBM JVM, or whether I should just leave well-enough alone and keep
 the two JVM's side-by-side.

Sounds like the real problem is the Tomcat installation, not the choice of JVM. 
 However, the IBM JVMs are extremely compatible with the Sun ones, so there 
shouldn't be a problem dumping the one from IBM.  The command line parameters 
may vary slightly, of course.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: server/classes directory in tomcat 6

2008-12-20 Thread Caldarale, Charles R
 From: adilturbo [mailto:z_t...@hotmail.com]
 Subject: server/classes directory in tomcat 6

 in tomcat 6, there is no server/classes directory;
 so where should i put this class (valve) in tomcat 6.

For performance and simplicity, the shared, common, and server libraries were 
merged into one in Tomcat 6; see:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

If your Valve is nested inside a Context you should be able to place the 
class file in the webapp's WEB-INF/classes directory; otherwise, put it in 
Tomcat's lib directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: log4j

2008-12-21 Thread Caldarale, Charles R
 From: Mohit Anchlia [mailto:mohitanch...@gmail.com]
 Subject: log4j

 We use tomcat 6. Is it possible to expose log4j service in tomcat's
 jmx console manager? This will help dynamically setting log levels.

GIYF:
http://www.devx.com/Java/Article/32359/1954

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat's Max Thread problem

2008-12-22 Thread Caldarale, Charles R
 From: sihan [mailto:si...@afrigis.co.za]
 Subject: Tomcat's Max Thread problem

 I tried tuning the number of threads (maxThreads) in tomcat's
 thread pool in server.xml.

Actually, you didn't.  You may have configured an Executor with a larger 
maxThreads attribute, but you failed to specify the executor name in either of 
the Connector elements you're using.  Consequently, each Connector is 
running with its own thread pool, each having 200 threads.
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat announce / tomcat security mailing list

2008-12-22 Thread Caldarale, Charles R
 From: Stephanie Wullbieter [mailto:swu...@gmx.de]
 Subject: tomcat announce / tomcat security mailing list

 did not find a tomcat announce and/or tomcat security
 mailing list.

Because there isn't one.  You can use one of the searchable lists to find 
announcements (e.g., http://marc.info/?l=tomcat-user, search for ANN), or look 
on the appropriate web page for security:
http://tomcat.apache.org/security.html

You can also use the searchable lists to hunt for SECURITY, but the above web 
page is better for that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Using precompiled JSPs

2008-12-22 Thread Caldarale, Charles R
 From: motit [mailto:moti@expand.com]
 Subject: Using precompiled JSPs

 I compiled my JSPs (using tomcat's org.apache.jasper.JspC)

Did you use the suggested ant script, or did you roll your own mechanism?

 and located them at the same place as all my classes in the
 WAR (WEB-INF/classes).

Under the proper package name hierarchy?

 I found out the tomcat translate the JSPs to servlets and
 compile them again under the work directory.

You likely did not update your WEB-INF/web.xml with the servlet mappings.

 (I followed the tomcat instructions)

Exactly which instructions did you follow?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Using precompiled JSPs

2008-12-22 Thread Caldarale, Charles R
 From: motit [mailto:moti@expand.com]
 Subject: RE: Using precompiled JSPs

 1. see my ant script below

You should be using the one from the Tomcat doc; yours fails to perform a 
couple of critical steps.

 2. I didn't change the jasper's package name hierarchy
 (e.g org.apache.jsp)

But did you use it when putting your class files under WEB-INF/classes?

 3. I did update my war's web.xml with the jspservet
 mapping with *.jsp

Unnecessary and a complete waste of time.  It's inclusion of the mappings for 
the generated servlets that's critical.

 4.  I have assisted by
 http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html

That's the correct doc, but since you didn't use the published script, you 
didn't generate the necessary servlet mappings.  Use the correct script, and 
make sure you perform this part:

Then, the declarations and mappings for the servlets which were generated 
during the precompilation must be added to the web application deployment 
descriptor. Insert the ${webapp.path}/WEB-INF/generated_web.xml at the right 
place inside the ${webapp.path}/WEB-INF/web.xml file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Performance with Tomcat

2008-12-22 Thread Caldarale, Charles R
 From: Chris Stewart [mailto:cstewart...@gmail.com]
 Subject: Performance with Tomcat

 1. Are there any tools or utilities we can use to get an understanding
 of what Tomcat is doing while it's running (processes, memory per
 process, and more)?

Your symptoms could have any number of causes: heap too small, heap too big, 
queueing points in the application, data base connection exhaustion, etc.

For the first look, use JConsole.  If possible, run it on the same platform as 
Tomcat; otherwise you'll have to set up for remote JMX access, which can be 
problematic behind firewalls and such.

JConsole will give you a good overview of heap, CPU, and thread usage, and you 
can dig in deeper once you have a general idea of what's going wrong.  If 
you're going through a lot of GCs, you'll probably need a bigger heap - but 
make sure you have enough RAM on the system to support the heap and the rest of 
the space needed by the Tomcat process.  (Exceeding available RAM will get you 
into page thrashing.)

If your threads are all blocking on the same object (e.g., DB connection pool), 
you'll need to increase concurrency somehow for that.

The jstack tool is good for taking thread dumps on the fly.  Both JConsole and 
jstack are in the Sun JDK.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: File Not Found in SSL

2008-12-22 Thread Caldarale, Charles R
 From: Emsley, I (Iain) [mailto:iain.ems...@stfc.ac.uk]
 Subject: File Not Found in SSL

 I've just got SSL working on tomcat 5.5.23

With or without APR?  What platform are you running on?  What JRE/JDK are you 
using?

 using port 8443 I get the javax.servlet.ServletException:
 File not found  response or a callback exception

Post the complete stack trace, not just a fragment of one line.

 even though the files are where the options.xml files states
 that they are.

What options.xml are you talking about?  Standard Tomcat does not include or 
reference such a file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: File Not Found when serving SSL

2008-12-23 Thread Caldarale, Charles R
 From: Emsley, I (Iain) [mailto:iain.ems...@stfc.ac.uk]
 Subject: File Not Found when serving SSL

 I'm  using Tomcat 5.5.23 on Windows Server 2003 using JDK 1.6.0_07 and
 I've just got SSL working on port 8443.

As previously asked: with or without APR?  (The question may be moot, given the 
stack trace.)

 08:36:37,383 ERROR [BwSvciFilter] Callback exception:
 javax.servlet.ServletException: File not found:
 https:/localhost:8443/ucalrsrc
 at
 edu.rpi.sss.util.servlets.ConfiguredXSLTFilter.doPreFilter
 (ConfiguredXSLTFilter.java:411)
 at
 edu.rpi.sss.util.servlets.XSLTFilter.doFilter(XSLTFilter.java:282)

The above locations are not part of Tomcat, but rather of the webapp you're 
running.  You're going to have to ask whoever supports that webapp or those 
particular classes.  As a guess, I'd think that code simply doesn't know how to 
parse HTTPS URLs properly.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 6 JDBC connection not found

2008-12-23 Thread Caldarale, Charles R
 From: arturoguedez [mailto:arturo.gue...@gmail.com]
 Subject: Re: Tomcat 6 JDBC connection not found

I'm confused.

Here it says you're using MySQL:

 Resource name=jdbc/workout_logger auth=Container
 type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=user password=password
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/workout_logging?autoReconnect=true/

But the stack trace shows a hibernate connection being attempted:

 org.hibernate.connection.DatasourceConnectionProvider.configure
 (DatasourceConnectionProvider.java:75)

Is it your intention to use hibernate in front of MySQL?  (I know it can be 
done, I'm not clear on how to do it.)

Where are the hibernate jars located?

Where is the MySQL driver jar located?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 error

2008-12-23 Thread Caldarale, Charles R
 From: Mojumdar, Biswajit [mailto:biswajit.mojum...@hud.gov]
 Subject: RE: Tomcat 5.5 error

 Remember, this list automatically deletes the attachments.

No, it only deletes certain attachments, but not .xml files.  The ones included 
by ZM came through fine.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Sudden JVM crashes - a Tomcat problem?

2005-10-13 Thread Caldarale, Charles R
 From: Joakim Ahlén [mailto:[EMAIL PROTECTED] 
 Subject: Re: Sudden JVM crashes - a Tomcat problem?
 
 I am not a JVM-guru, but I'm guessing here. Tomcat 5.5 
 demands, as far as i know, jdk 1.5.

That's simply not true.  Tomcat 5.5 runs fine on a 1.4 JRE once the Compat.zip 
download is installed.  Please verify your data before posting.

Any class files generated with -target 1.5 parameter will generate exceptions 
during class loading, not JVM crashes.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: upgrade from 5.0.28

2005-10-13 Thread Caldarale, Charles R
 From: Mark [mailto:[EMAIL PROTECTED] 
 Subject: upgrade from 5.0.28
 
 Can somebody recommend the version for upgrade from tomcat 5.0.28
 that will use java 1.4.2.

All Tomcat 5.5 versions run on JRE 1.4.2 when the Compat.zip download is
installed.  Version 5.5.12 has just recently been marked stable, and
seems to run successfully in our testing (admittedly somewhat limited at
this point).  We had been using 5.5.9 before that with no problems.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: can JNDIRealm connectionPassword be encrypted?

2005-10-14 Thread Caldarale, Charles R
 From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] 
 Subject: RE: can JNDIRealm connectionPassword be encrypted?
 
 To me and my co-workers that login still represents a large 
 security risk if someone can gain access to the file 
 server.xml.

If someone can gain access to server.xml, you essentially have a
complete breakdown of security for that system.  If you don't trust your
file system to protect against unauthorized intrusion, any other
security considerations are moot.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: can JNDIRealm connectionPassword be encrypted?

2005-10-14 Thread Caldarale, Charles R
 From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] 
 Subject: RE: can JNDIRealm connectionPassword be encrypted?
 
 Right now we have the tomcat instance running as a tomcat:tomcat user
 and group.

And, I hope, you have permissions for everything in Tomcat's directories
set to 750, and very, very limited membership in the group.

 in case someone found an exploit within tomcat itself and 
 gained shell access with tomcat privileges.

Double failure.  Not only would there have to be a serious security flaw
within Tomcat itself (and I'm not aware of any at the moment), but this
flaw would also have to permit execution of arbitrary code - which is
pretty tricky in Java, if you've set up the JVM security policy
appropriately.

 Again perhaps that is a being a bit paranoid. But that is 
 what security is all about. :)

Not really, although a lot of consultants push that approach so they can
take your money and tell you things you already know.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: IIS security with tomcat

2005-10-17 Thread Caldarale, Charles R
 From: Steve Gaunt [mailto:[EMAIL PROTECTED] 
 Subject: RE: IIS security with tomcat
 
 I'm not sure how to do this with the web server, surely there 
 must be a standard way of achieving this.  I've searched 
 google but unable to find information about this.

Perhaps you should consider going back to trying Tomcat only.  What
level are you using?  (If it's not 5.5.x, I'd strongly suggest moving
up.)  Exactly what kind of problems did you have when you tried it with
Tomcat only?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie Installation Question

2005-10-19 Thread Caldarale, Charles R
 From: brown wrap [mailto:[EMAIL PROTECTED] 
 Subject: Newbie Installation Question
 
 Exception during startup processing
 java.lang.ClassNotFoundException:
 org.apache.catalina.startup.Catalina

What version of Tomcat?  What OS?  Where did you install Tomcat?  Can't
help without real information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie Installation Question

2005-10-19 Thread Caldarale, Charles R
 From: brown wrap [mailto:[EMAIL PROTECTED] 
 Subject: RE: Newbie Installation Question
 
 Sorry, I am trying to install Tomcat, Version 4.1.3
 and using j2eesdk-1_4_02_2005Q2-linux.bin that I
 downloaded from Sun. Sorry I left out the most
 important information.

If you're just starting with Tomcat, I would strongly recommend using a
current version (5.5.12 is the latest stable).  Likewise, you want a
current JRE (1.5.0), but not the J2EE SDK - that will cause problems
with Tomcat.  Download the .tar version of Tomcat, use the GNU tools to
install it, and read all the docs in the installation directory,
especially RUNNING.txt.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie Installation Question

2005-10-19 Thread Caldarale, Charles R
 From: brown wrap [mailto:[EMAIL PROTECTED] 
 Subject: RE: Newbie Installation Question
 
 I guess I am looking for a clue as to what the
 messages in the log file means.

It means it can't find the named Java class file.  This could be due to
an incomplete or corrupted installation or possibly a file permissions
problem.  Within the tomcat/server/lib directory, there should be 15
.jar files, including catalina.jar; inside that jar is Catalina.class,
which appears to be the one that can't be found.

Is your directory structure correct?  Is catalina.jar where it's
supposed to be?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Caldarale, Charles R
 From: Rob Hills [mailto:[EMAIL PROTECTED] 
 Subject: Re: Missing application web.xml, using defaults only 
 - is this a Tomcat bug?
 
 From the my reading of the Documentation, docBase and Path are 
 mandatory attributes of the Context element for Tomcat 5.0.

Check the 5.5 doc for Context:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

The path attribute is not allowed unless the Context element is in
server.xml, which is strongly discouraged.  (I have a vague memory of
Remy M saying that 5.5.12 disallows path, whereas previous 5.5 levels
ignored it.)  So yes, the target Tomcat level does make a difference.  I
believe that there are other configuration changes between 5.0 and 5.5
as well, notably in how resources are configured.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with web.xml generated from RAD and from Ecplise.

2005-10-20 Thread Caldarale, Charles R
 From: Developer Developer [mailto:[EMAIL PROTECTED] 
 Subject: Re: Problems with web.xml generated from RAD and 
 from Ecplise.
 
  As far as my problem is concered, I solved it. Tomcat (5.5) does not
 support 2.4 V of the servlet.

That's simply not true - Tomcat 5.5.x fully supports version 2.4 of the
Servlet spec.  As I recall, your problem was that RAD was generating 2.4
constructs while specifying 2.2 in the XML header - a bug in RAD, not
Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to open Tomcat Manager?

2005-10-20 Thread Caldarale, Charles R
 From: Giorgio Clavelli [mailto:[EMAIL PROTECTED] 
 Subject: Re: Unable to open Tomcat Manager?
 
 I solved it by deleting the all Server files and re-unzip 
 them back in the same location (possibly not required this
 deletion but who knows?).

I seriously doubt that had anything to do with it.  Note that you cannot
manually edit tomcat-users.xml while Tomcat is running, since Tomcat
rewrites it at some point (probably at termination, but I haven't
verified that).  You can update it on the fly with the Admin app; of
course you have to login with a userid that has the admin role to do so.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jakarta verisign transaction slow?

2005-10-20 Thread Caldarale, Charles R
 From: Tim Tyler [mailto:[EMAIL PROTECTED] 
 Subject: jakarta verisign transaction slow?
 
 We are running Jakarta 5.0 on an AIX 5.1 system.

It's Tomcat, not Jakarta.  (Jakarta is an umbrella project of the Apache
Software Foundation for many Java-based products, such as Tomcat -
although Tomcat was recently promoted out of Jakarta to be a direct
project of ASF.)

 We see posts take 13 seconds and longer.

That seems exceptionally slow.  Do the client requests require
connection to a Verisign server?  If so, do you have any way of
capturing network traffic so you can see the timing for the client
requests coming into your AIX server, the requests to and responses from
Verisign, and the response from AIX back to the client?  That should
tell you where to focus your investigation.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
 From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
 Subject: Bug in RealmBase, JAASRealm, and/or Requestt object 
 preventing proper role authorization
 
 When this statement executes, principal is not a 
 GenericPrincipal, by merits of the request's 
 getUserPrincipal() method executed prior to calling
 this method -- it is instead a custom user principal.

What happens if you have your custom principal extend GenericPrincipal?
It appears that all the interesting fields are marked as protected, so
you should be able to set them in a subclass.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
 From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
 Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt 
 object preventing proper role authorization
 
 If you wanted to try to game the authorization, you'd have to 
 take your role principal, shove it into the user principal, 
 then let the realm shove both of those again into another 
 GenericPrincpal that wrapped it.

No, that's wrappering.  What I suggested was declaring your custom
principal as a subclass of GenericPrincipal so the JAASRealm code could
use it directly.

 I thought about that too, but I don't know enough about the 
 other source code to know if it is safe and would affect 
 things elsewhere in code.

The rules of subclassing make this perfectly safe.  The rest of the code
may be using your object, but the other code can only refer to it via
the methods declared in the superclass GenericPrincipal; whatever
customization you've made is invisible to the rest of Tomcat.  You would
also have the freedom of overriding the GenericPrincipal methods to suit
your needs.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
 From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
 Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt 
 object preventing proper role authorization
 
 So in the JAAS login module, what you would have to do 
 is instantiate a user principal that is a subclass of 
 GenericPrinicipal for your user principal, then add your
 role principals to that user principal, and then add the 
 user principal and all the role principals to the subject.

No, you don't need to go through those steps yourself, since the
JAASRealm will do it for you.

 What an ugly hack though.

I guess I don't see the ugliness - that's what subclassing is for.
Would be nice if the behavior were actually documented...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
 From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
 Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt 
 object preventing proper role authorization
 
 The JAASRealm takes whatever user principal you have and the role  
 principal you have added to the subject, and creates a new  
 GenericPrincipal class

That's the part I was missing - that JAASRealm creates a new object, and
does not attempt to use your custom principal, even if it is a subclass
of GenericPrincipal.

 Btw, it appears that this was already logged as bug:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=37044

The resolution is fixed, but it doesn't say what build level the fix
will be in.  Could check the nightlies, I suppose.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: static server implementation?

2005-10-27 Thread Caldarale, Charles R
 From: John Laughton [mailto:[EMAIL PROTECTED] 
 Subject: Re: static server implementation?
 
 I ended up created a second context in tomcat that allows 
 access to the static content (ie. large jpegs)

I'm confused.  Why wasn't Tomcat's default servlet sufficient?  It's
sole purpose is to deliver static content.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can't start Tomcat 5.5.12 on Solaris 9

2005-10-28 Thread Caldarale, Charles R
 From: Nick Lee [mailto:[EMAIL PROTECTED] 
 Subject: Can't start Tomcat 5.5.12 on Solaris 9
 
 Any idea where to look for, how to troubleshoot or what 
 could be wrong?

Do simple Java programs work?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can't start Tomcat 5.5.12 on Solaris 9

2005-10-28 Thread Caldarale, Charles R
 From: Nick Lee [mailto:[EMAIL PROTECTED] 
 Subject: Re: Can't start Tomcat 5.5.12 on Solaris 9
 
 I tried jakarta-tomcat-4.1.31 still encounter the same core
 dump problem. Just could not start tomcat.

But you didn't answer my question: do simple Java programs (e.g., java
-version) work?

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: finalize question

2005-11-02 Thread Caldarale, Charles R
 From: Andy Kriger [mailto:[EMAIL PROTECTED] 
 Subject: finalize question
 
 Problem is, I'm not seeing any finalize methods being called.

Reliance on finalizers is a sign of extremely poor application design.
First, it can be a significant performance hit, since objects with
finalizers have to be handled specially both by allocation and garbage
collection.  Second, there's no guarantee that a finalizer will _ever_
be called, so if you're dependent on that happening, you're in trouble
right from the start.  Much better to design your app with discrete
event handling and not leave it up to the whims of the garbage
collector.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Passing options to the JVM at startup

2005-11-08 Thread Caldarale, Charles R
 From: Eric Boudrand [mailto:[EMAIL PROTECTED] 
 Subject: Passing options to the JVM at startup
 
 There is no catanila.bat file, so I use tomcat5w.

For debugging, you probably do want to use the scripts, rather than
running Tomcat as a service.  The scripts are not included in the .exe
download, but are in the .zip, for no discernable reason.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 5.0.28 v 5.5.12

2005-11-09 Thread Caldarale, Charles R
 From: MarcLap [mailto:[EMAIL PROTECTED] 
 Subject: 5.0.28 v 5.5.12
 
 5.0.28 works fine. 5.5.12 does not work at all.  Not even port 8080.

 The server.xml is the same

The above may well be the problem.  There are numerous configuration
differences between 5.0 and 5.5, so using the same server.xml and
Context elements could be causing problems.  RTFM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: question about ugrading

2005-11-09 Thread Caldarale, Charles R
 From: Randy Paries [mailto:[EMAIL PROTECTED] 
 Subject: Re: question about ugrading
 
 So would that be the suggested best upgrade path?

Going to JRE 5.0 (aka JDK 1.5) is probably better, but if you can't do
it, we've had no problems staying on 1.4.2 with Tomcat 5.5.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 BindAddress errors on port 8005, but no Tomcat ports are in use.

2005-11-11 Thread Caldarale, Charles R
 From: Richard Schilling [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat 5.5 BindAddress errors on port 8005, but 
 no Tomcat ports are in use.
 
 I'll try to build 5.5.12 by hand

You don't need to build any level of Tomcat on any platform, since it's
pure Java (other than the optional APR library).  Just download, unzip
(or untar, using gzip), and have at it.  I always avoid any 3rd party
sources for Tomcat, since I'm too paranoid to trust that they haven't
broken it in some fashion.

Get it from:
http://tomcat.apache.org/download-55.cgi#5.5.12

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '

2005-11-14 Thread Caldarale, Charles R
 From: NanFei Wang [mailto:[EMAIL PROTECTED] 
 Subject: Re: configure Tomcat/5.5.9 By ' set JAVA_OPTS=-Xmx256M '
 
 I add  -DJAVA_OPTS=-Xmx256M  in another line at the Java 
 Options text area,

(I don't have 5.5.9 installed anymore, just 5.5.12, so I can't see
what's on the 5.5.9 Java tab for myself.)

The -D options are only for setting Java system properties.  JAVA_OPTS
is an environment variable, not a JVM command line parameter, and is
used only to communicate the desired values to the startup scripts.  Use
just -Xmx256m, which is the actual command line parameter.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 Subject: How to see a Word or WordPerfect document in Tomcat?
 
 If I try to do this specifying a application path, for example, 
 http://localhost:8084/Documents/test.wpd I get a 
 ...resource it not available error.   Can this be 
 accomplished using Tomcat?

Have you set the appropriate mime-mapping in conf/web.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat on gnu gij

2005-11-18 Thread Caldarale, Charles R
 From: Tom A [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat on gnu gij
 
 The GNU Classpath implementation only supports Java 1.4 so you'll have
 to stick with Tomcat 5.0.x for the time being.

Why do people keep perpetuating this myth?  Too lazy to read the
documentation?  Tomcat 5.5 runs perfectly fine on a 1.4 JRE - just
install the small compatibility package from the Tomcat download page
and have at it.  Whether or not it will run at all with the GNU runtime
is a different question.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
 From: Bob Grabbe [mailto:[EMAIL PROTECTED] 
 Subject: Re: How to see a Word or WordPerfect document in Tomcat?
 
 Being new to the list, though, could you point me toward the 
 mail archives ? 

Read the FAQ and look at the information on this page:
http://tomcat.apache.org/lists.html

I prefer the MARC list for searching.  However, the link to that from
the Tomcat lists page is incorrect; it should be:
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

Try searching on https cache download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: New Tomcat install problem

2005-11-21 Thread Caldarale, Charles R
 From: Terry Allen [mailto:[EMAIL PROTECTED] 
 Subject: Re: New Tomcat install problem
 
   I just reinstalled the iTools module after my changes, which 
 has had the result of being able to view the Tomcat homepage on my 
 server.

You might want to try going back to the basics:  remove iTools, all
installed JVMs, and Apache httpd.  Then install a fresh JVM (from the
Sun download page) and a real Tomcat (from tomcat.apache.org).  Don't do
any symlinks.  Leave out httpd and see what you get.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Calling EJBs

2005-11-21 Thread Caldarale, Charles R
 From: Milan Tomic [mailto:[EMAIL PROTECTED] 
 Subject: RE: Calling EJBs
 
 I suppose I have to copy my JAR or my classes into some 
 Tomcat folder, so Tomcat could find them

If you're running JBoss, you have to follow the JBoss deployment rules,
not Tomcat's.  The environment is quite different.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.0.28 : mime type

2005-11-21 Thread Caldarale, Charles R
 From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.0.28 : mime type
 
 I'm using Tomcat 5.0.28 and when I try to access to word 
 documents, excel documents it is interpreted like binary 
 stream and not like the correct application (Word, Excel).
 
 I've declared mime-mapping int the conf/web.xml file and in 
 the web.xml file of my application.

You shouldn't have to add any mapping for msword (.doc) files - that's
already in conf/web.xml as downloaded.  I added this for .xls:

mime-mapping
extensionxls/extension
mime-typeapplication/msexcel/mime-type
/mime-mapping

restarted Tomcat (5.5.12, in my case), and both IE and Firefox start up
my spreadsheet program (OpenOffice), although IE prompts me to do so.
You should only put the mapping in the one place; don't know what
happens if you update both web.xml files.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Rép. : RE: Tomcat 5.0.28 : mime type

2005-11-21 Thread Caldarale, Charles R
 From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED] 
 Subject: Rép. : RE: Tomcat 5.0.28 : mime type
 
 I've found in my registery base on the 
 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content 
 Type topic all what I nedd (all mime type are specified).

The registry entries don't seem to be required.  On my laptop (no MS Office, 
just OpenOffice) there are no MIME entries for excel, word, powerpoint, etc., 
whereas there are on my desktop (with MS Office, not OpenOffice).  Even without 
the registry entries, I can process all such documents delivered via Tomcat in 
both IE and Firefox.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re site problems, here is server.xml

2005-11-21 Thread Caldarale, Charles R
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Subject: RE: Re site problems, here is server.xml
 
 I do not understand your comments. Could you give me a link 
 to what part of the docs you are referring to?

http://tomcat.apache.org/tomcat-5.5-doc/config/index.html

Read up on the three Containers linked to from the left side of the
page.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help Configuring Engine/Host/Context

2005-11-22 Thread Caldarale, Charles R
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Subject: Re: Help Configuring Engine/Host/Context
 
 I was hoping I would call www.myurl.com and it would call
 www.myurl.com/unique.

That is exactly what will happen if you replace the Tomcat ROOT app with
your own.  Read the rules for the Context tag carefully, especially
with regards to where to put the .xml file and the allowable attributes.
If you've hacked at the Tomcat config already, you might want to do a
clean reinstall, then simply delete the ROOT webapp and put your own in
as ROOT.war or under the ROOT directory.  Don't change appBase, don't
set the path or docBase attributes.  (You probably don't even need a
Context for your app, unless you have specific security or resource
requirements.)  Get it working the simple way before experimenting with
more esoteric configurations.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: Help Configuring Engine/Host/Context

2005-11-22 Thread Caldarale, Charles R
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hills
 Subject: Re: Help Configuring Engine/Host/Context
 
 The way I achieve what you're trying to do is to create 
 virtual hosts in my servlet.xml file

That's completely unnecessary, unless you want a different set of
webapps for each website.  In this case, there's only one website, so
using the default Host is adequate.

 Lose the Context .. tag - I believe that recent versions of Tomcat 
 ignore any Context .. tags in server.xml

Not true.  Placing them in server.xml is discouraged, but definitely not
ignored.  Please read the Context docs.

 If you need to include a Context  tag for your application, 
 create a file called context.xml, put your context info in
 that and place it in a directory called META-INF in your web
 app (ie /data/www/unique/ROOT/META-INF ).

The xml fragment containing the Context tag can also go in
conf/Catalina/localhost/app_name.xml
if desired.  (Or, as a last resort, in server.xml, inside the Host
tag.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: suppress tomcat version numbers

2005-11-22 Thread Caldarale, Charles R
 From: Kiarna Boyd [mailto:[EMAIL PROTECTED] 
 Subject: suppress tomcat version numbers
 
 Hi I'm trying to suppress the version number Tomcat gives in its 
 headers.

Read the doc on the Connector tag.  You're looking for the server
attribute (the description mentions something about being paranoid :-).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet-mapping question

2005-11-22 Thread Caldarale, Charles R
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion
Content
 Subject: servlet-mapping question
 
 Should catch all of the following if I am not mistaken, not 
 just some of them right?
 
 http://www.domain.com/ZoA+xaeoHh6s,$EnterPromotionCode.$Form.topic
 http://www.domain.com/ZoA+xaeoHh6s,$EnterPromotionCode-$Form.topic

http://www.domain.com/ZoA+xaeoHh6s*Extra,$EnterPromotionCode.$Form.topic

http://www.domain.com/ZoA+xaeoHh6s*Extra,$EnterPromotionCode.$Form.topic

http://www.domain.com/ZoA+xaeoHh6s.Extra,$EnterPromotionCode.$Form.topic


Don't know if this is actually part of the problem, but you might want
to look at RFC 3986, especially pages 11 and 12.  Some of the above
characters are not legal in a URI and must be escaped.  I have no idea
what Tomcat does with invalid URIs.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet-mapping question

2005-11-22 Thread Caldarale, Charles R
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ Fashion
Content
 Subject: servlet-mapping question

 Good point, but I am not trying to adhere strictly 
 to the URI rfc, as it is generated by the server to
 refer to the server.

I don't think it matters who or what generates the URI.  If it doesn't
follow the syntax rules, it's probably going to confuse the servlet
mapping scanner.  (Admittedly, I haven't looked at that specific code in
Tomcat, but I would certainly expect it to match against the servlet
mapping by parsing the URI based on the RFC.  The presence of delimiters
in a URI may well stop the scan.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: admin module for Tomcat 5

2005-11-23 Thread Caldarale, Charles R
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Subject: admin module for Tomcat 5
 
 I downloaded the admin module for Tomcat 5, but do not know 
 where or how to install it.

Unzip the download into the same location as your main Tomcat download.
Note that the paths in the .zip file match up with those of your Tomcat
installation.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: suppress tomcat version numbers

2005-11-23 Thread Caldarale, Charles R
 From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
 Subject: Re: suppress tomcat version numbers
 
 This seems to be a new option for TC 5.5. Do you know of anything  
 similar for 5.0?

Sorry, I don't - haven't used 5.0 for a long time, since the performance
of 5.5 is noticeably better.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection refused when attempt to contact myUsename.myDns.com:8080

2005-11-23 Thread Caldarale, Charles R
 From: dcausevi [mailto:[EMAIL PROTECTED] 
 Subject: Connection refused when attempt to contact 
 myUsename.myDns.com:8080
 
 Everything works fine accessing from http://localhost:8080 
 locally but http://dcausevic.homelinux.com:8080 would not 
 work from outside?

Sounds like some sort of firewall issue, somewhere between outside and
your homelinux.com site.

 How do I check if Tomcat is actually listening on port 8080 from 
 outside?

You didn't say what OS you're using, but nearly all of them these days
have a netstat program.  However, that won't tell you if there's a
firewall in the way, since it's reporting from the inside.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: TryNo2: path attribute for Context element in tomcat 5.5

2005-11-24 Thread Caldarale, Charles R
 From: Akoulov, Alexandre [IT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: TryNo2: path attribute for Context element in tomcat 5.5
 
 I am just wondering if you have any comments on the following email:

What kind of comments are you looking for?  The OP encountered a
problem, read the doc, corrected his configuration, and resolved the
problem.  Other than perhaps reading the doc first (difficult to know
where to read, of course), it looks like he did everything right.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: BASEDIR problem with Tomcat 5.5 + compat

2005-11-25 Thread Caldarale, Charles R
 From: Anthony Rabaa [mailto:[EMAIL PROTECTED] 
 Subject: BASEDIR problem with Tomcat 5.5 + compat
 
 The BASEDIR environment variable is not defined correctly
 This environment variable is needed to run this program
 
 $CATALINA_HOME=/home/foo/bin/apache-tomcat-5.5.12
 $JAVA_HOME=/opt/sun-jdk-1.4.2.09

If you're trying to set the above variables, take out the $.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to set the admin console for 5.5.x

2005-11-28 Thread Caldarale, Charles R
 From: Richard Mixon [mailto:[EMAIL PROTECTED] 
 Subject: RE: How to set the admin console for 5.5.x
 
 You have placed it in the wrong directory structure. It is 
 mostly under server/webapps - not webapps.
 
  -Original Message-
  From: N S, Shridhar [mailto:[EMAIL PROTECTED] 
  Subject: How to set the admin console for 5.5.x
  
  Unzipped it and placed the admin folder under 
  C:\Tomcat55\server\webapps folder.

Richard, please read the original message a bit more carefully - the OP
had placed it exactly where you told him to.

For Shreedhar:  Did you restart Tomcat after updating tomcat-users.xml?
Does your admin userid include a role attribute of admin?  If both of
those check out, please send your tomcat-users.xml file to the list
(mask the passwords, if that's important).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size problems (speed) [2]

2005-11-28 Thread Caldarale, Charles R
 From: Cristian S [mailto:[EMAIL PROTECTED] 
 Subject: Re: heap size problems (speed) [2]
 
 Frankly I have no ideea what's the point of loading almost 
 400M of data in memory in a HashMap.

If it's worth doing, it's worth doing to excess.  Or maybe not.  Try
turning on -verbose:gc and see if you're going through a lot of garbage
collections.  If your max heap is 512mb and you're using 400mb of it for
the cache, there may not be much left for request processing.  Should
also try a memory profiler to see just how full the heap really is.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java databases as alternative to MySQL on OS X Server? (OT)

2005-11-28 Thread Caldarale, Charles R
 From: Mieke Banderas [mailto:[EMAIL PROTECTED] 
 Subject: Re: Java databases as alternative to MySQL on OS X 
 Server? (OT)
 
 It would seem so, as I now learnt that The HotSpot JVM 
 uses native threads. The only possible escape then would 
 be to use another JVM that doesn't on OS X. But I'm not 
 sure how advisable that is. Anyone uses alternative JVMs 
 on OS X out there?

The last JVM I know of that avoided native threads was Sun's 1.3 version
running in green threads mode.  Performance and stability were nothing
to brag about.  There are several academic JVMs kicking around with
varying degrees of stability and compliance with the spec that might not
use native threads.  None are really appropriate for production use.

I've only toyed with it, but Solaris 10, along with Postgres, is
available for free download, ready to install and run on an x64/x86
system.  Yet another learning curve...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to set the admin console for 5.5.x

2005-11-28 Thread Caldarale, Charles R
 From: N S, Shridhar [mailto:[EMAIL PROTECTED] 
 Subject: Re: How to set the admin console for 5.5.x
 
 I had followed all these steps, except that the admin 
 folder under ROOT was missing! Since, this is not documented
 in Tomcat documents, thought of sharing the exact steps.

An interesting theory, but it's not correct.  The webapps/ROOT/admin
directory contains only the dummy admin page that says the admin app
must be separately downloaded and installed.  This directory can be
completely removed with no ill effects (I've just tried it).  I suspect
that the real problem may have been that during your experimentation you
put the index.html file from webapps/ROOT/admin into
server/webapps/admin; when I did that, I got the same symptoms you did.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Web-application and Tomcat icon

2005-11-28 Thread Caldarale, Charles R
 From: Anto Paul [mailto:[EMAIL PROTECTED] 
 Subject: Re: Web-application and Tomcat icon
 
 On 11/29/05, Aladin Alaily [EMAIL PROTECTED] wrote:
 
  I would like to know how I can replace that icon with my own... or
  better yet, no put any icon at all.
 
 The icon displayed on the browser is favicon.ico that is in ROOT. You
 can replace it with your own icon.

This is browser cuteness.  If you run a packet trace [I'm doing almost
anything tonight to avoid writing documentation], you'll see something
like:
GET /favicon.ico HTTP/1.1\r\n
coming from the browser near the end of a page load (at least with
Firefox).  Besides replacing favicon.ico, you can also just delete it
without harm other than having Firefox show a blank page icon instead.
IE, of course, won't show anything other than its own logo, AFAIK.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java databases as alternative to MySQL on OS X Server? (OT)

2005-11-29 Thread Caldarale, Charles R
 From: Oded Arbel [mailto:[EMAIL PROTECTED] 
 Subject: Re: Java databases as alternative to MySQL on OS X 
 Server? (OT)
 
 inter-thread communication in java is done through shared 
 memory - shared variables, but the Java memory sharing model 
 doesn't really share memory, Instead it uses thread local 
 storage to store copies of shared variables and when you 
 cross into or out of a synchronized block, the contents of 
 the variables are copied.

That's one of the most bizarre and blatantly wrong descriptions of the
Java memory model that I've ever read.  All Java objects reside in the
Java heap, which is shared across all threads of the JVM process and
directly referenceable by all.  Local variables for a Java method exist
in each thread's Java stack, which is normally not shared across threads
other than for garbage collection operations.  Entering a synchronized
block in a HotSpot-based JVM normally does not require any context
switching, since the lock on an object is established via the platform's
compare-and-exchange instruction; only if a conflict exists are kernel
services required to suspend the conflicting thread.  (This is also true
of the JRockit and IBM JVMs, as well as several others.)  No copying of
local variable is ever performed; on some OS implementations, parameters
are copied when calling a kernel service that requires a context switch
but that occurs within the OS, not the JVM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HttpServlet not found?

2005-11-29 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: HttpServlet not found?
 
 (otherwise take servlet-api.jar off CLASSPATH and put back 
 j2ee.jar to $J2EE_HOME\lib\j2ee.jar and place on CLASSPATH)

I think you'll need to do more than that.  Tomcat has a variety of class
loaders, including one for each webapp, one for classes shared among all
webapps, and one for classes common to the webapps and Tomcat itself.
(This is in addition to the ones used by the JVM.)  See:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
for details.  The picture there is quite illustrative.

This creates a tree of classloaders, and you will run into problems if
the same classes are present in more than one place along a particular
branch of the tree.  I've gotten burned too many times by the CLASSPATH
environment variable to use it anymore - I'd strongly suggest you delete
that variable and use explicit -cp settings where necessary.  This will
help to prevent any classes showing up under the wrong loader
inadvertently.

The gist of all this is that you don't want both j2ee.jar and
servlet-api.jar to be available to either your compilations or during
Tomcat execution.  It's possible that you might be able to replace
servlet-api.jar with j2ee.jar in Tomcat's common/lib, but I haven't
personally tried it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: web client running out of ports! (timeout exception)

2005-11-29 Thread Caldarale, Charles R
 From: Magyar, Bence [mailto:[EMAIL PROTECTED] 
 Subject: RE: web client running out of ports! (timeout exception)

   Shouldn't I be getting persistent, reusable connections as 
 the default with HTTP/1.1?

I'm sure you are - but it's the client's responsibility to reuse them;
all the server has to do is expect more traffic on the connection, which
appears to be what it's doing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java databases as alternative to MySQL on OS X Server? (OT)

2005-11-29 Thread Caldarale, Charles R
 From: Oded Arbel [mailto:[EMAIL PROTECTED] 
 Subject: Re: Java databases as alternative to MySQL on OS X 
 Server? (OT)
 
 Please read up on your Java memory model. What you describe 
 is a nice abstraction that many Java developers have in their
 mind, but is technically not correct and can't be correct when
 you consider multiple processors, DMA, hyper-threading or even
 just plain old L2 CPU caches.

You have to be careful about what viewpoint you're using.  From a Java
programmer's perspective, as well as actual JVM implementation, what I
said is true (although I left out any discussion of volatility and
visibility of writes in a multi-CPU system).  From a hardware or JIT
implementer perspective, what you said is appropriate, since it applies
primarily to CPU pipelines and other low-level memory writers (not
threads per se), but isn't terribly relevant from a practical Java
programming perspective.  Essentially all high-performance systems have
operated with some variation of these considerations from day one, due
to the potential of asynchronous I/O modifying the instruction stream.
The introduction of write buffers into CPU pipelines twenty-odd years
ago really exacerbated the situation.

 Also please note that JSR-133, once implemented, supposedly makes the 
 whole discussion irrelevant as it forces read/write ordering.

Only for intra-thread actions; for inter-thread, ordering is specified
primarily with regards to entities marked volatile and synchronized
operations.

 But AFAIK, only Sun's JVM 5.0 (1.5) implements it and I'm not sure
about 
 its correctness.

Actually, JSR 133 largely reflects what the 1.4 HotSpot JVM had already
implemented.  As you say, the jury is still out on whether all of the
low-level synch points have been covered.

 You are obviously disregarding the fact that Java is a 
 multi-platform environment, and some platforms (notably 
 the Mac OS-X which started the whole thread) does not 
 provide such a mechanism.

The PowerPC instruction set includes lwarx and stwcx for this purpose.
If the JIT in the OS X JVM does not generate code to use these for
object synchronization, it would be seriously deficient compared to all
other commercial JVMs.  Without generating such code inline, any
multi-threaded interactions are bound to be horribly slow.

 Are you an MS-Windows programmer by any chance ?

Only when I can't avoid it.  Started working on multi-CPU systems in
1969, so I'm quite familiar with synchronization and data visibility
concerns.  35+ years of doing software and hardware design on a variety
of platforms, including several patents for various features of our
systems.  Currently responsible for (among other things) the JVM
implementation on our 36-bit ones-complement mainframes (and yes, our
JVM does pass all the compatibility tests).  So much for disregarding
multi-platform issues.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java client does not re-use TCP/IP connections.

2005-11-29 Thread Caldarale, Charles R
 From: Magyar, Bence [mailto:[EMAIL PROTECTED] 
 Subject: Java client does not re-use TCP/IP connections.

   For each one of these invocations, my client creates a new 
 TCP/IP connection to the service instead of reusing the 
 existing one.  Am I missing some critical parameter 
 in my Stub class?

Perhaps not in the Stub.  A little Googling came across this note at
Java Boutique
(http://javaboutique.internet.com/tutorials/Axis2-2/ses_man.html):

The scope must be defined in the wsdl file:
service name=MyService...
  parameter name=scope value=value/
  ...
/service
value must be request, session, or application.

Since I've never used Axis, I can't really be sure that this is
pertinent, but it certainly sounds related to your situation.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: admin tool?

2005-11-30 Thread Caldarale, Charles R
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Subject: admin tool?
 
 Is this a valid module, I see if on the Apache Downloads 
 page. And if so it appears that most threads are from people 
 who cannot get it installed. So does it work, and is it 
 installed easily, or should one just buy a commercial server 
 and bypass this kind of problems?

opinion

I think a lot of the problems people have with the admin app are a
result of them trying to make it more complicated than it really is.
All you have to do is download it, unzip into the same directory
structure you installed Tomcat in, add a userid/password/role to
tomcat-users.xml in the conf directory, and restart Tomcat.  That's it.
I've seen people ignoring the directory layout that's built into the zip
file, installing it in bizarre places, hacking up server.xml in the
mistaken belief that they had to change something, etc.  It's really
very easy.  (Don't think it will have much effect on your SSL issues,
though.)

Personally, I think the commercial web servers are a bit of a sucker
hole - the vendors sell you the software, then pretty much insist that
you hire their witch doctors to get it to run in your environment.
(Which is not to say that there aren't companies out there that would
love to take your money to help you with Tomcat or JBoss.)

I think the key thing to remember is not to make things more complicated
than you need.

/opinion

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Deploying in ROOT folder using a war file

2005-11-30 Thread Caldarale, Charles R
 From: Vivek Mohan [mailto:[EMAIL PROTECTED] 
 Subject: Re: Deploying in ROOT folder using a war file
 
 Tomcat is extracting the files to localhost/_ because thats where it
 knows it has to extract anything from the ROOT application.

However, that's true only if using the unpackWARs=false setting.  In
that case, Tomcat extracts some of an app's .war file into a
work/Catalina/localhost/app_name directory (where _ is substituted
for ROOT for some unknown reason, presumably historical).

I just zip'd up my webapps/ROOT directory into a ROOT.war file in the
webapps directory, deleted the now redundant webapps/ROOT, and restarted
Tomcat.  The result, as expected, was recreation of webapps/ROOT during
Tomcat initialization.  This is on level 5.5.12; I've never used any of
the 4.x levels.

The only way I could duplicate the behavior reported by the original
poster was by setting unpackWARs to false.  Are you really, really
sure you have it set to true?  Can you try using a newer version of
Tomcat?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with default context when moving from 5.5.7 to 5.5.12

2005-11-30 Thread Caldarale, Charles R
 From: Jason Burrows [mailto:[EMAIL PROTECTED] 
 Subject: Problem with default context when moving from 5.5.7 to 5.5.12
 
 Previously, I had a context.xml file in my tomcat\conf directory with
 this context tag (removed sub elements for brevity):
 
 Context path= reloadable=false docBase=c:\eclipse\myProject
 crossContext=true
 /Context
 
 This worked fine for me in 5.5.7 (on many machines).

But it shouldn't have.  I suspect this was one of the bugs fixed between
.7 and .12, where the documented rules are more tightly enforced.

 After installing 5.5.12, I see there is a context element in this file
 already.

As I understand it, the conf/context.xml provides global settings
applicable to all webapps; it is not there to define a context for any
particular webapp, just extend the context for each.

 How do I set up a default context in 5.5.12 for a web application that
 is not located in the web apps directory (I could do this for 5.5.7
 and before using the method described above).

Rename your context.xml file to ROOT.xml (case sensitive) and put it in
conf/Catalina/localhost (assuming that's the only Host you have
defined).  Remove the path attribute if it's still in there.  Include a
docBase attribute that specifies the location of your webapp (you
probably already have that).  Delete the webapps/ROOT directory.
Restart Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to deploy my webapp as root context webapp without tomcat loading it twice?

2005-12-01 Thread Caldarale, Charles R
 From: Francis Galiegue [mailto:[EMAIL PROTECTED] 
 Subject: Re: How to deploy my webapp as root context webapp 
 without tomcat loading it twice?
 
 I wonder whether creating Catalina/hostname here/ROOT.xml with the
 appropriate Context would work...

That works fine on 5.5.12, haven't tried it on older levels.  Just make
sure to delete the webapps/ROOT directory and clean out the
work/Catalina/hostname/_ directory before restarting Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL Certificate Beginner Question

2005-12-01 Thread Caldarale, Charles R
 From: Paul Singleton [mailto:[EMAIL PROTECTED] 
 Subject: Re: SSL Certificate Beginner Question
 
 David Wall wrote:
  
  ...if the user accesses your site with http://, 
  the port 80 Connector (or 8080 if testing or using a 
  non-standard port) has a redirectPort element that 
  causes Tomcat to automatically issue a redirect using 
  https://
 
 Are you sure?  I thought redirectPort was only useful for
 redirecting _https_ requests which were sent to the wrong port...

Don't know if he's sure or not, but he is correct.  If the deployment
descriptor has transport-guarantee set to CONFIDENTIAL, Tomcat
automatically switches the request to https.  See section 12.8 of the
servlet spec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Upgrading Tomcat

2005-12-01 Thread Caldarale, Charles R
 From: Rhino [mailto:[EMAIL PROTECTED] 
 Subject: Upgrading Tomcat
 
 1. What are the major differences between the 5.0.x stream 
 and the 5.5.x stream?

Lots, especially performance.  There are some configuration differences
between the two, so read the docs carefully.  Consult the changelog and
FAQ for details.

 Perhaps I'd be smarter to use 5.0.x until 
 5.5.x is further along?

I'd go with 5.5 - the newer level gets more attention from the
developers and has definite performance advantages.

 2. Are 5.5.12 and 5.0.28 both fairly stable and robust?

Yes.

 3. Do I need to download/install all of the different 
 bundles for each version

No, just download what you need.  Look here:
http://apache.intissite.com/tomcat/tomcat-5/v5.5.12/README.html

I posted a more detailed description of the download packages a few days
ago.  Try:
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2
to browse the mailing list archive.

 Do I need JDK 1.4 Compatibility if I develop primarily 
 in J2SE 1.5?

The key issue is primarily vs. only.  If you develop with 1.5 you
run the risk of not being able to execute on a 1.4 system if you have
written code that depends on 1.5 features.  You only need the
compatibility package for Tomcat installations that are actually running
on 1.4.

 For that matter is it okay to use J2SE 1.5 
 with Tomcat or does Tomcat only support 1.4?

Tomcat is built with 1.4, but runs happily on either 1.4 or 1.5.

 4. Is Sysdeo still the plugin of choice to use for Servlet 
 development in Eclipse? Is Lomboz still the plugin of choice 
 to use for JSP development in Eclipse?

Got me.  I'm a command line person.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with default context when moving from 5.5.7 to 5.5.12

2005-12-01 Thread Caldarale, Charles R
 From: Jason Burrows [mailto:[EMAIL PROTECTED] 
 Subject: Re: Problem with default context when moving from 
 5.5.7 to 5.5.12
 
 I agree, but the best documentation I could find on this was:
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
 
 ...and there's nothing in that document that would lead me to try what
 you suggested, even reading now knowing that is the solution.

The documentation has not kept up with the implementation.  (Haven't yet
met a programmer that actually likes to write documentation.)  The key
piece of hard-to-find information is that the default web app must be
specified with the context name (not path) ROOT.

 then says context elements for the default context must go in 
 your server.xml file

I can't find any place that says that.  What it does say is In
addition, you MUST define a Context with a context path equal to a
zero-length string.  Since zero-length filenames are a bit tricky, the
current mechanism uses the name ROOT to create a zero-length context
path.

 Where are you getting documentation that more accurately explains 
 the context setup, and led you to the solution you provided?

Reading this mailing list carefully, experimenting, and not sleeping
much.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Upgrading Tomcat

2005-12-01 Thread Caldarale, Charles R
 From: Rhino [mailto:[EMAIL PROTECTED] 
 Subject: Re: Upgrading Tomcat
 
 I'm having trouble finding the note you mentioned in the mailing list 
 archives.

It's here:
http://marc.theaimsgroup.com/?l=tomcat-userm=113332618812952w=2

 I'm trying to figure out the following:
 - does Core include the Administration webapp?

It did in 5.0, does not in 5.5.

 - does Core include the Deployer? If not, what does the Deployer do?

No.  See the referenced e-mail.

 - does Core include the Embedded bundle? If not, what does 
 it do?

No.  See the referenced e-mail.

 - when do I want do download Core as a Windows Executable 
 and when do I want to download it as a zip?

I never use the .exe since it's missing the .bat (and .sh) scripts,
which are useful for debugging.  See the referenced e-mail.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: j_security_check

2005-12-02 Thread Caldarale, Charles R
 From: Khawaja Shams [mailto:[EMAIL PROTECTED] 
 Subject: j_security_check
 
 when I map my application with a different context path, 
 I cannot use the j_security_check resource.

Don't suppose you'd want to give us a hint about which Tomcat level
you're using?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How much memory will Tomcat 5.5/Java 5 support?

2005-12-03 Thread Caldarale, Charles R
 From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] 
 Subject: Re: How much memory will Tomcat 5.5/Java 5 support?
 
 How would you go about using more of the memory that I have on the
 server?  Can I run two Tomcat services and cluster?

32-bit Windows normally only provides 2 GB of virtual space per process.
There is a boot-time option (I forget what it is) for some server
versions of Windows to increase that to 3 GB. This is a tradeoff with
system resources, since doing so reduces the amount of virtual space for
the kernel to 1 GB.  Windows loads several discontiguous DLLs within the
virtual space of each process, so that fragments it somewhat, and the
last time I checked, a HotSpot JVM required contiguous space for the
heap.  Also, there was a bug in the 1.4 32-bit JVM dealing with heap
sizes larger than 2 GB due to sign extension problems, but that may be
fixed now.  (Haven't looked at the heap init code in 1.5.)  64-bit
versions of Windows and the JVM obviously don't have these issues.

Running multiple instances of Tomcat would certainly allow you to use
more total memory, since each Tomcat process will get its own 2 GB.
However, clustering doesn't come free - there's a good bit of overhead
involved due to the instances sharing state.  You'll have to test with
your actual applications to see if the performance is acceptable.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to make a redirector?

2005-12-03 Thread Caldarale, Charles R
 From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] 
 Subject: How to make a redirector?
 
 I've seen some URL which contains two URL's, something like
 http://www.siteA.com/x/http://www.siteB.com/some/path/here/

Are you sure you're not missing a rather important ? between the siteA
URL and the one for siteB?  The presence of the ? indicates the second
URL is treated as a parameter for whatever processes the first one; a
simple forwarding filter, servlet, or jsp would then suffice.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: NullPointer Exception in HostConfig

2005-12-03 Thread Caldarale, Charles R
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ 
 Fashion Content
 Subject: Re: NullPointer Exception in HostConfig
 
 P.S. the ROOT.xml does end with a /context

Which could well be part of the problem, since the tag is Context not
context.  Case matters. Also, if you're using a 5.5 version of Tomcat,
the path attribute is illegal (not ignored) unless the Context element
is inside server.xml - which is strongly discouraged.

You should be using an XML syntax checker before you actually throw junk
at Tomcat - diagnosing XML structure problems is not what it's designed
for.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: NullPointer Exception in HostConfig

2005-12-04 Thread Caldarale, Charles R
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of hv @ 
 Fashion Content
 Subject: Re: NullPointer Exception in HostConfig
 
 I have xerxesImpl and xml-apis in tomcat/common/endorsed
 might that be causing some trouble?

They are the 1.4 compatibility package, and must be there if you're
running on a 1.4 JRE/JDK.  If you're on 1.5, they must be removed, since
they're part of the 1.5 JRE.  You could experience classloader conflicts
if those are present in a 1.5 environment.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to Connect Tomcat to the Internet? (UNCLASSIFIED)

2005-12-05 Thread Caldarale, Charles R
 From: Samara, Fadi N Mr ACSIM/ASPEX 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: How to Connect Tomcat to the Internet? (UNCLASSIFIED)
 
 If the above are checked, then all you have to do is configure your
 server.xml in the virtual_host tag.

Actually, you don't even have to do that.  By default, Tomcat listens on
the specified port(s) for connections to any IP address that reaches the
box.  You only need virtual hosts if you're going to have different
application sets for each host.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to Connect Tomcat to the Internet? (UNCLASSIFIED)

2005-12-05 Thread Caldarale, Charles R
 From: Nikolay Georgiev [mailto:[EMAIL PROTECTED] 
 Subject: RE: How to Connect Tomcat to the Internet? (UNCLASSIFIED)
 
 so I have to have publicly accessible IP and then in the server.xml
 in Connector to set the Port I want to use and in Engine 
 to set the IP.

You don't need to change the IP address.  By default, Tomcat listens on
0.0.0.0, which means it will accept requests directed to any IP address
that targets your system.  You do want to configure the desired ports.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ServletException hard to understand

2005-12-05 Thread Caldarale, Charles R
 From: Laurent FALLET [mailto:[EMAIL PROTECTED] 
 Subject: ServletException hard to understand
 
 I have the error described below when asking for some pages.

What Tomcat level?
What JRE/JDK?
What OS?

 Moreover what is this 
 EDU/oswego/cs/dl/util/concurrent/Executor ? I never
 used such a package.

I believe that's part of Doug Lea's original concurrency package, which
has morphed into java.util.concurrent in the 1.5 JRE.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What's the difference between .zip and .exe from download site?

2005-12-06 Thread Caldarale, Charles R
 From: David Chen [mailto:[EMAIL PROTECTED] 
 Subject: RE: What's the difference between .zip and .exe from 
 download site?
 
 So, it seems we may need to set those registry keys 
 ourselves if using .zip download. 

The service.bat script in Tomcat's bin directory should do that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: making a singleton servlet

2005-12-06 Thread Caldarale, Charles R
 From: James Black [mailto:[EMAIL PROTECTED] 
 Subject: re: making a singleton servlet
 
 I am going to make my servlet be static, with the hope that 
 it will only have one instance running, regardless of how 
 many clients connect to it.

What do you mean by servlet be static?  What syntactical construct are
you employing?

If you mean using static fields in your servlet class, then you will
have to make use of synchronization clauses to insure concurrent
requests are serialized.  It's my understanding that the container
(Tomcat or whatever) is free to process as many requests in parallel as
needed, as well as create multiple servlet instances - see the servlet
spec.

What problem are you trying to solve?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: making a singleton servlet

2005-12-06 Thread Caldarale, Charles R
 From: James Black [mailto:[EMAIL PROTECTED] 
 Subject: Re: making a singleton servlet
 
   My plan is to try:
 public static class SomeServlet extends HttpServlet {  ... }

You can't use the modifier static there (only with internal classes).

   That way there should only be one servlet.

My rereading of the spec shows there will be only one servlet, unless
you have a distributed environment.  However, there will be multiple
concurrent requests utilizing the same servlet instance.  You can
control the amount of concurrency with the various thread-oriented
attributes of the Connector tag.  Attempting to limit concurrency to
one is unrealistic.

The Tomcat doc covers that as well as configuring database connections.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-06 Thread Caldarale, Charles R
 From: John Poley [mailto:[EMAIL PROTECTED] 
 Subject: Re: Question concerning 
 java.lang.NoClassDefFoundError: javax/servlet/ServletContext
 
 I even went so far as to start with a machine with 
 no development tools on it, downloading just the 
 elements I required, and then trying to redeploy.

Those elements would be?

The problem still looks like excess ServletContext classes being around.
Since you're getting NoClassDefFoundError rather than
ClassNotFoundException, there is a ServletContext already loaded from
somewhere.  If you happen to have j2ee.jar around, try getting rid of
it.

Have you looked at:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
and compared that with what you're doing?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mapping a war to a context located in a subdirectory.

2005-12-07 Thread Caldarale, Charles R
 From: Leif Mortenson [mailto:[EMAIL PROTECTED] 
 Subject: Mapping a war to a context located in a subdirectory.
 
 Is there a way to map a web application's context 
 directory to be located in a directory that is not 
 a direct child of the root.

Not quite sure what you mean by root, but the answer is yes.  Place a
file named app_name.xml in conf/Catalina/host_name (where
host_name is usually localhost).  This file should contain a Context
tag with a docBase attribute specifying the location of the .war file.
Do not put a context.xml file in META-INF of the .war.  See:
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html
for details.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Username from basic Auth and Contextinformation Question

2005-12-08 Thread Caldarale, Charles R
 From: Robert Einsle [mailto:[EMAIL PROTECTED] 
 Subject: Username from basic Auth and Contextinformation Question
 
 The second is, can i deliver the context-information for my webbapp 
 inside my war-package? Normaly i configure Contextinformation 
 (Datasources, Logger...) inside the Context-Tag in server.xml. Is it 
 possible to pack this Information inside the war?

Not just possible, but strongly recommended (assuming you're running
under a reasonably recent version of Tomcat).  Putting Context tags in
server.xml these days is highly discouraged.  Take a look at:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.12 and ROOT

2005-12-08 Thread Caldarale, Charles R
 From: Robert Upshall [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5.12 and ROOT
 
 What is the proper way to change / to map to my webapp 
 instead of ROOT?

The easiest way is just to name your webapp ROOT, replacing the one
under Tomcat's webapps directory.  If you're reluctant to do that, you
will still need to delete webapps/ROOT, and also create a ROOT.xml file
on conf/Catalina/host_name (usually localhost).  The ROOT.xml file
must contain a Context element with a docBase attribute giving the
location of your app.  See:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
for the details.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Selective auto-deploy of web-apps?

2005-12-08 Thread Caldarale, Charles R
 From: Michael Hackett [mailto:[EMAIL PROTECTED] 
 Subject: Selective auto-deploy of web-apps?
 
 We want to prompt the user for the database password and 
 boot the database before launching the real application.

What user?

 I guess we will have to look at controlling the database 
 startup and shutdown within the main app

Is there some reason an ServletContextListener won't work?  (See section
10.2.2 of the Servlet spec - it seems to describe a situation very close
to yours.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSP/Servlet runs even when webapp undeployed

2005-12-11 Thread Caldarale, Charles R
 From: Darren Holloway [mailto:[EMAIL PROTECTED] 
 Subject: JSP/Servlet runs even when webapp undeployed
 
 However, if I undeploy the web-app, it continues to run.  If I deploy 
 another version of the web-app, it still uses the original one.

A few things to try:

1) Take httpd out of the picture, just to make things simpler.  Test
using Tomcat's http port (usually 8080).  Once you find and fix the
problem, verify that operation through Apache is also corrected.

2) Look around for a Context tag for your webapp that has a docBase
attribute pointing to somewhere other than Tomcat's webapps directory.
This can be in META-INF/context.xml in the app's .war file or directory,
in conf/Catalina/host_name/app_name.xml, or in conf/server.xml
(which shouldn't be used these days).  Your app may be getting deployed
multiple times under different names if there's more than one Context
tag for it.

3) Look around for the compiled JSP class, and get rid of it if found.
Your undeploy mechanism should have done this for you.  (What are you
using to undeploy?)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap - tomcat + Linux

2005-12-11 Thread Caldarale, Charles R
 From: rafiti [mailto:[EMAIL PROTECTED] 
 Subject: Exception in thread main 
 java.lang.NoClassDefFoundError: 
 org/apache/catalina/startup/Bootstrap - tomcat + Linux
 
 Using CATALINA_BASE:
 /home2/rafi/jakarta-tomcat-4.1.31-src/
 Using CATALINA_HOME:
 /home2/rafi/jakarta-tomcat-4.1.31-src/catalina/src
 Using CATALINA_TMPDIR: /home2/rafi/jakarta-tomcat-4.1.31-src//temp

Judging from the directory names, it appears that you have downloaded,
installed, and are now trying to run the source for Tomcat, not the
binary distribution.  By the way, if you're just starting, why not use
the current version of Tomcat?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<    1   2   3   4   5   6   7   8   9   10   >