Re: jdk1.4 java.nio.* -- Seda/Sandstorm

2002-03-06 Thread Attila Szegedi

I'm working on a generic non-blocking server framework based on 1.4 nio
classes with one of its goals being implementing a generic HTTP processor
and an experimental Tomcat connector backend built on top of it. The basic
server framework (connection handling, content buffering, etc.) is already
in place with a test suite that uses the trivial echo protocol for
excersising the server; the HTTP support is still in its infancy and
progresses as I can afford time (that is: slowly, considering I have a day
job and a family...). It still lacks some ingredients that are important for
a production-quality system, like overload-protection devices (input
throttling and shedding).  You might want to give it a look at
http://nbserver.sourceforge.net

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: Richard Emberson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: 2002. március 6. 3:41
Subject: Re: jdk1.4 java.nio.* -- Seda/Sandstorm


 Thanks for the info.

 On a related topic, do you know if Tomcat is going to pick up on the work
done
 on the
 Seda/Sandstorm project (which uses non-blocking IO Java - native libraries
 presently).

 http://www.cs.berkeley.edu/~mdw/proj/sandstorm/

 Its event-driven with queues and stages (where the work gets done)
rather
 than the
 normal Java approach which is threads.

 Richard


 Remy Maucherat wrote:

   Are there any plans for Tomcat 4.X.X to use the new Java io classes,
   java.nio.*.
   Or any plans to make which version of io used a plugin so that the
   higher
   performance java.nio.* classes can be used in a server if one wants?
 
  Tomcat 3 already have some nio-like buffer classes, which will be used
by
  Tomcat 4 very soon for a nice performance gain. It's almost the same,
except
  that it doesn't require JDK 1.4.
  On the NB I/O side of things, I'm a lot more sceptical at its usefulness
in
  the J2EE world. Let's say it wouldn't hurt ...
 
  Remy
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0.x JSDK 1.4

2002-03-06 Thread REAL

Hello!

I used JSDK 1.3.1 with Tomcat 4.0.x and JNDI resource (DataSource,
Oracle JDBC). All worked good. But when I install JSDK 1.4, method
ctx.lookup(jdbc/myDB) return null.

How can I fix this bug?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache 1.3, mod_webapp and Tomcat4

2002-03-06 Thread Simon Liebold

Hello,
  I having some questions about Apache 1.3, mod_webapp and Tomcat4.
  Maybe somebody could give me a hint.
  I have managed to have access to my webapp with
  http://myhost/mywebapp and everything is working fine. Inside
  /mywebapp are many static *.html pages. Is Tomcat or Apache serving
  these?
  
-- 
Best regards,
 Simon  mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Apache 1.3, mod_webapp and Tomcat4

2002-03-06 Thread Ralph Einfeldt

AFAIK in the current state of mod_webapp
everything inside /mywebapp is served by 
tomcat. Have look at the release notes.

 -Ursprüngliche Nachricht-
 Von: Simon Liebold [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. März 2002 09:35
 An: Tomcat User
 Betreff: Apache 1.3, mod_webapp and Tomcat4
snip/
 Inside /mywebapp are many static *.html pages. 
 Is Tomcat or Apache serving these?
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat reloading log4j

2002-03-06 Thread tamir

Hi everybody,
I tried my luck at log4j group by no help there.
Well, now I'm going upstage to tomcat

I'm facing a strange problem when using log4j under tomcat 3.3.1 on Solaris.
Log4j works with no problem for me.
However, when I use the auto-reload option of tomcat to perfrom reload to my
classes (when some class is compiled), I receive the following errors:

log4j:WARN Failed to set property conversionPattern to value %5p [%t] %c -
%m%n
. java.lang.ClassCastException@c4e792
log4j:WARN Failed to set property threshold to value WARN. Conversion to
type
[class org.apache.log4j.Priority] failed.
log4j:WARN Failed to set property conversionPattern to value %d %p [%x %t]
- %m
%n. java.lang.ClassCastException@3f4a21
log4j:WARN Failed to set property file to value
/export/home/movious/mss/mss-se
rver/WEB-INF/logs/mss-server.log. java.lang.ClassCastException@1bda67
log4j:WARN File option not set for appender [LOG].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
log4j:ERROR Either Filename or DatePattern options are not set for [LOG].
log4j:WARN Failed to set property threshold to value ERROR. Conversion to
type
 [class org.apache.log4j.Priority] failed.


the log4j.jar sits in WEB-INF/lib.


Please help me with any piece of information.
Tnx Tamir

my log4j.properties file is:


#
#Mon Sep 24 15:29:29 IST 2001
log4j.rootCategory=DEBUG
log4j.categoryFactory=com.movious.log.DBCategoryFactory

# categories

log4j.category.com.movious=DEBUG, A1 , LOG

log4j.appender.A1.layout.ConversionPattern=%5p [%t] %c - %m%n
log4j.appender.A1.Threshold=WARN
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

### db appender ###

# min priority error for db appender
log4j.appender.DB.Threshold=ERROR
log4j.category.DB.com.movious=ERROR,DB
log4j.category.DB.com.movious.pluginsoap=INFO,DB

# class name for db appender
log4j.appender.DB=com.movious.log.DatabaseLog


log4j.appender.LOG.File=c:/movious/mss/mss-server/WEB-INF/logs/mss-server.lo
g
log4j.appender.LOG=org.apache.log4j.DailyRollingFileAppender
log4j.appender.LOG.layout=org.apache.log4j.PatternLayout
log4j.appender.LOG.layout.ConversionPattern=%d %p [%x %t] - %m%n
log4.appender.LOG.DatePattern='.'-MM-dd-a

log4j.appender.Portlet.Threshold = DEBUG,false


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



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Apache 1.3, mod_webapp and Tomcat4

2002-03-06 Thread Simon Liebold

Thank you.

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
 Gesendet: Mittwoch, 6. März 2002 09:42
 An: Tomcat Users List
 Betreff: AW: Apache 1.3, mod_webapp and Tomcat4
 
 
 AFAIK in the current state of mod_webapp
 everything inside /mywebapp is served by 
 tomcat. Have look at the release notes.
 
  -Ursprüngliche Nachricht-
  Von: Simon Liebold [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 6. März 2002 09:35
  An: Tomcat User
  Betreff: Apache 1.3, mod_webapp and Tomcat4
 snip/
  Inside /mywebapp are many static *.html pages.
  Is Tomcat or Apache serving these?
 snip/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat reloading log4j

2002-03-06 Thread Toru Watanabe

Hi!

this page might help you.
http://www.jguru.com/faq/view.jsp?EID=108773

regards,
Watanabe

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JSPC

2002-03-06 Thread Oliver Farrnbacher

Hi,

i'm using tomcat 3.2.3 and 3.2.4 on Linux 2.4.

I'm trying to precompile my JSPs using jspc.sh, but I only get .java 
files, it does not compile the classes.

I'd  like to have the classes compiled to be informed about compiler errors.

Any help ?

Oliver



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WebDAV (NEWBIE Question!)

2002-03-06 Thread jreid



I'm not sure if this is the correct place to ask this question but I can't find
anyone else to help! :(

I've recently downloaded and installed Tomcat version 4.0.1 onto my
Linux webserver running Apache.  The setup was successful and I can
view the Tomcat page at

http://www.dpt-ltd.co.uk:/index.html

I noticed that the page contained information on WebDAV, which
interested me greatly as being able to remotely author my website
would make my life a whole
lot easier.  However I can't get it to work!  I've modified the
web.xml file under /var/tomcat4/webapps/webdav/WEB-INF as per the
instructions to allow read/write access and then restarted Tomcat.  I
then go to File - Open in IE6 and try to open

http://www.dpt-ltd.co.uk:/webdav

as a Web Folder, but get the following error message...

Internet Explorer could not open http://www.dpt-ltd.co.uk:/webdav
as a Web Folder.  Would you like to see its default view instead?

Can anyone see what I'm doing wrong?  It all seems fairly
straightforward but I simply can't get it to work. :(

The log files don't appear to contain any interesting information.

Please reply to me off-list if possible.  Thanks in advance,

James



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSPC

2002-03-06 Thread Attila Szegedi

See below...

- Original Message -
From: Oliver Farrnbacher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 6. 10:26
Subject: JSPC


 Hi,

 i'm using tomcat 3.2.3 and 3.2.4 on Linux 2.4.

 I'm trying to precompile my JSPs using jspc.sh, but I only get .java
 files, it does not compile the classes.


And it never will... You'll have to feed them to javac yourself.


 I'd  like to have the classes compiled to be informed about compiler
errors.

 Any help ?


It's best to set up an Ant script to do the jspc-javac process for you. I've
written an article in JavaReport that among other things discusses how to
integrate JSPC compilation into your build process; see

http://www.javareport.com/html/from_pages/article.asp?id=5772mon=12yr=2001

It's in the Compile your JSPs section of the article; especially take a
look into Listing 3, it has an example fragment of an Ant build file with
changes you have to make color-highlighted.

 Oliver


Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TreeView

2002-03-06 Thread Serge A. Redchuk

Hello, all !

I need JSP tag(s) to draw interactive tree with non-static content.

I tried to use TICL's treeView tag, but the server-side treeView
uses javax.swing.tree.TreeModel interface and my page (whole server)
doesn't works without X-server running.

I do not want to use any X-server stub yet.

Does any tree view JSP tag exists, which is not based on swing ?

Also I can't use client-side TICL's treeView tag. Because I need to
use non-static content here.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat vs CPU

2002-03-06 Thread Moi
Suddenly,when I saw Current System Resources in Linux with top
command I found out that Tomcat4 eats 96% of CPU.In regular days it eats
only 3%.
Dear gurus.
What can be the reason and how I solve it?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: Tomcat 4.0.2 (rpm install on linux) fails to start

2002-03-06 Thread Edward Haynes

You said that you upgraded from jdk 1.3 to 1.4, but could it be that your
JVM is failing? In my case, I was running the JDK1.3.1_02 with the tomcat
4.0.2 rpm on RedHat 7.1. I installed it, and tried to run it. Tomcat would
startup and then disappear. To fix the solution, I used the command :
ulimit -s 2048

I was having a JVM Segmentation Fault (this was displayed when ever I tried
to stop the tomcat service: service tomcat4 stop). Also, if you use: ps -fu
tomcat4  and continually run this while tomcat is trying to startup, you
might see something going on.

Ted

-Original Message-
From: Kevin Geraghty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 8:37 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.2 (rpm install on linux) fails to start


running linux, 2.2.19, Mandrake 7.0, much modified (glibc 2.2.4).

I am using the .rpm binary off the jakarta site, and have installed all the
ancillary packages (xerces-j-1.4.4-2,  regexp-1.2-1, servletapi4-4.0.2-1,
tomcat4-webapps-4.0.2-3)

The symptoms are completely silent failure.  Eight java processes do
actually
start up, but they disappear within a second.  invoking the dtomcat4 script
in debug mode yields the following:


# /usr/bin/dtomcat4 debug
Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/sdk
Using CLASSPATH:
/usr/java/sdk/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
Initializing jdb ...
 run
run org.apache.catalina.startup.Bootstrap start

VM Started:
The application has been disconnected
#
--
anybody know what the application has been disconnected might mean?

Nothing ever gets into the catalina.out log file
I changed my jdk to 1.4 from 1.3 as an experiment; it makes no difference
I made sure the .jar files in /usr/share/java/ have symlinks in
$CATALINA_HOME/common/lib or $CATALINA_HOME/server/lib
I have changed all the debug= values in server.xml to a nonzero integer,
also
pruned server.xml, but I suspect this really has nothing to do with the
problem.

Anyone got any suggestions?  I'm stumped.








--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Installing Tomcat as a CGI script

2002-03-06 Thread Gino Marckx

Hi there,

I know this question might seem a bit silly, but I am looking for a way to install 
Tomcat as a CGI script inside Apache for Linux.

The reason for this question is that my isp enables CGI for my account, but does not 
support servlets. I would really want to be able to execute some servlets, so I am 
having a problem...

I know the advantage of servlets compared to CGI is in the single process that is 
executed for a servlet engine, that handles all requests, so I am probably answering 
my own question. But should someone see a possibility, please let me know.

With regards,
Gino Marckx.

GINO MARCKX
Analyst Programmeur, Certified Java Programmer
Passage, a division of Alert bvba
Gouden Leeuwplein 1
9000 Gent
T 09/236.25.78
F 09/226.11.73
www.passage-ict.com 



include of jar's

2002-03-06 Thread Julien OIX

hi everyone, 

in some tomcat4-4.0.1.x RPM's, mail.jar is included;
but with tomcat4-4.0.2.x, it's no more.

which RPM gives them now ?

thanks in advance.

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat 4.0.2 replace an application

2002-03-06 Thread Juergen Baumann

I try to replace an application via the HTTPManager with a 
newer version (newer .war file) as follows:
1. Click the remove link 
   (http://localhost:8080/manager/remove?path=/myapp)
2. The application disappears from the list, however the 
   /webapps/myapp directory still exists.
3. Delete the /webapps/myapp directory manually
4. If I try to install the new .war file using:
   Install a webapp 
   Path:/myapp  
   War-URL:jar:file:/C:/test/tomcat.4.0.2/myapp.war!/
   I get the follwing error:
FAIL - Encountered exception java.lang.IllegalStateException: zip file
closed

If I stop Tomcat, start it again and repeat step 4, it works and
I get the following message:
OK - Installed application at context path /myapp

If I only perform step 1, 2 and 4 I get the following message:
OK - Installed application at context path /myapp
However, the files in the /myapp directory remain unchanged

What do I miss or is my assumption wrong that I can replace an
existing application with a newer version w/o restarting Tomcat?

Thanks a lot
JB



__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Who uses connection pool?

2002-03-06 Thread Jim Urban

Don't know.

Jim

 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 1:17 AM
 To: Tomcat Users List
 Subject: Re: Who uses connection pool?
 
 
  We are database independent.  If you look at the
  initializeDbConnectionBroker method you will see we load all that
  information from the web.xml via servlet init parameters.  Our 
 code can use
  any database you have a driver for (granted it supports ANSI SQL)..
 
private void 
 initializeDbConnectionBroker(ServletConfig iConfig)
{
String dbDriver = getInitParameter(DB_DRIVER);
String dbName = getInitParameter(DB_NAME);
String dbUser = getInitParameter(DB_USER);
String dbPassword = getInitParameter(DB_PSWD);
String logfile = getInitParameter(DB_LOG_FILE);
int initConn = new
   Integer(getInitParameter(DB_INITCONN)).intValue();
int maxConn = new
   Integer(getInitParameter(DB_MAXCONN)).intValue();
int connTimeOut = new
Integer(getInitParameter(DB_CONNTIMEOUT)).intValue();
double maxConnTime = new
Double(getInitParameter(DB_MAXCONNTIME)).doubleValue();
 
 In other words, you're specifying raw connection parameters in 
 the web.xml. I think most of us are interested in a full JNDI 
 approach, where server.xml and web.xml cooperate, allowing server 
 administrator to choose data source, while application deployer 
 is concerned with other things. That is why they are bugging with 
 JNDI. Can it be done with DBConnectionBroker?
 
 Nix.
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Just a test

2002-03-06 Thread Gustavo Souza

hello, just a test

1º message to the list

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with SendMailServlet

2002-03-06 Thread Gustavo Souza

hello, i installed Jacarta Tomcat v4.0.3 binaries on a linux slackware v8.0 
box with J2SDK1.3.1 from blackdown (i tried with J2SDK1.4.0 from sun too )

i run it with default configurations and open it on my browser.

All examples worked fine with one exeption: the send mail example.

when i try to send an email with jsp example, i got this error:

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error

type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server 
Error) that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class 
SendMailServlet or a class it depends on
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871)
 at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:484)
root cause
java.lang.ClassNotFoundException: SendMailServlet
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865)
 at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
 at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at 

RE: Problems with SendMailServlet

2002-03-06 Thread Randy Layman


You will need to compile the SendMailServlet yourself for Tomcat
versions 4 through 4.0.3.  There was apparently a problem with the build
script that has been resolved with Tomcat 4.0.4 B1.

Randy

 -Original Message-
 From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 8:49 AM
 To: Tomcat Users List
 Subject: Problems with SendMailServlet
 
 
 hello, i installed Jacarta Tomcat v4.0.3 binaries on a linux 
 slackware v8.0 
 box with J2SDK1.3.1 from blackdown (i tried with J2SDK1.4.0 
 from sun too )
 
 i run it with default configurations and open it on my browser.
 
 All examples worked fine with one exeption: the send mail example.
 
 when i try to send an email with jsp example, i got this error:
 
 Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
 
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server 
 Error) that prevented it from fulfilling this request.
 exception
 javax.servlet.ServletException: Wrapper cannot find servlet class 
 SendMailServlet or a class it depends on
  at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java:871)
  at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java:653)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:214)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
 henticatorBase.java:475)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2343)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1012)
  at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1107)
  at java.lang.Thread.run(Thread.java:484)
 root cause
 java.lang.ClassNotFoundException: SendMailServlet
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
 lassLoader.java:1394)
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
 lassLoader.java:1243)
  at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java:865)
  at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java:653)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:214)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 

AW: Installing Tomcat as a CGI script

2002-03-06 Thread Ralph Einfeldt


Even if it would be possible to use tomcat this way,
I don't think that you will get far with this approach. 
(Not that I think that this is impossible, but for the 
efford to achieve this goal you can easily take a better 
provider without looking at the price)

For this to work you need a complete java runtime on the 
server that hosts your application. I don't think that 
a provider that doesn't support servlets will let you run 
java at all.

Depending on the needs of your application I see just 
one possible solution. Use tomcat to create static pages
and load them to the provider.
That's the way some content management systems work.

 -Ursprüngliche Nachricht-
 Von: Gino Marckx [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. März 2002 13:34
 An: [EMAIL PROTECTED]
 Betreff: Installing Tomcat as a CGI script
snip/ 
 I know this question might seem a bit silly, but I am looking 
 for a way to install Tomcat as a CGI script inside Apache for Linux.
snip/ 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problems with SendMailServlet

2002-03-06 Thread John Wadkin

I came across the same problem and worked out why - miracle :) Despite
having all the correct jars and setting the classpath properly, the servlet
wouldn't compile. I downloaded the .class from one of the tomcat zips that
did have it. That didn't work - weird error about the date. I downloaded the
entire examples directory from the afore-mentioned tomcat zip. That didn't
work - the Java Mail API doesn't like the mail server. Nowt wrong with the
mail server - works fine. I gave it up as a bad job :)

Thanks,
 
John
 
Quote for the week:
 
It's not that I'm afraid to die. I just don't want to be there when it
happens.
 
Woody Allen, Death (1975), p.53


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 13:17
To: 'Tomcat Users List'
Subject: RE: Problems with SendMailServlet



You will need to compile the SendMailServlet yourself for Tomcat
versions 4 through 4.0.3.  There was apparently a problem with the build
script that has been resolved with Tomcat 4.0.4 B1.

Randy

 -Original Message-
 From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 8:49 AM
 To: Tomcat Users List
 Subject: Problems with SendMailServlet
 
 
 hello, i installed Jacarta Tomcat v4.0.3 binaries on a linux 
 slackware v8.0 
 box with J2SDK1.3.1 from blackdown (i tried with J2SDK1.4.0 
 from sun too )
 
 i run it with default configurations and open it on my browser.
 
 All examples worked fine with one exeption: the send mail example.
 
 when i try to send an email with jsp example, i got this error:
 
 Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
 
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server 
 Error) that prevented it from fulfilling this request.
 exception
 javax.servlet.ServletException: Wrapper cannot find servlet class 
 SendMailServlet or a class it depends on
  at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java:871)
  at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java:653)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:214)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:190)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
 henticatorBase.java:475)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2343)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:180)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.java:170)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:174)
  at 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
  at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
 rocessor.java:1012)
  at 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
 ssor.java:1107)
  at java.lang.Thread.run(Thread.java:484)
 root cause
 java.lang.ClassNotFoundException: SendMailServlet
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
 lassLoader.java:1394)
  at 
 

Gets in access log and java applets

2002-03-06 Thread Jeff Prideaux

I have a java applet that uses the jmf (java media framework).  The applet
works, but I notice in the tomcat access log that there is an individual
GET for each class used in the jmf.jar file. Even worst, each time the
user interacts with the applet, all those GETS are done again.   All these
individual GETS are causing the applet to be very slow. Is there a way to
avoid having the browser going back to the server for each class needed in
the JMF plugin module.  Note that I just have a problem with the jmf module.
No extra GETS occur for any other Java classes that are part of the standard
Java run-time engine plugin.

I'm including jmf.jar (the java media framework) in the applet tag...

Does this sound like something expected (with applets) for modules that are
not part of the standard Java run-time engine, or could I possibly have not
installed the jmf appropriately?

Jeff Prideaux,
Senior Biomedical Engineer
Newlife Technologies
One Park West Cr., Suite 303
Midlothian, VA  23113

Phone: 804-378-7062 ext 3014
Fax:  804-378-0716


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION

2002-03-06 Thread Gurmeet

Hi,

I want to define a entry point for my application. i.e. all requests to my
application be recieved by a JSP, which then redirects to the requested
resource.

How do I do that?

Thanks in advance.

Gurmeet



-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:10 PM
To: [EMAIL PROTECTED]
Subject: Just a test


hello, just a test

1º message to the list

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION

2002-03-06 Thread Wagoner, Mark

I would use a servlet rather than a JSP, since it will not have a UI.  You
then point all of your servlet-mappings in the web.xml file to this servlet.

-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 9:32 AM
To: Tomcat Users List
Subject: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION


Hi,

I want to define a entry point for my application. i.e. all requests to my
application be recieved by a JSP, which then redirects to the requested
resource.

How do I do that?

Thanks in advance.

Gurmeet



-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:10 PM
To: [EMAIL PROTECTED]
Subject: Just a test


hello, just a test

1º message to the list

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION

2002-03-06 Thread Barney Hamish

Rather than writing your own, maybe you should think about using the Struts
framework (also part of the Jakarta project). This allows you to configure
page flow etc centrally.
Hamish

-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 3:32 PM
To: Tomcat Users List
Subject: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION


Hi,

I want to define a entry point for my application. i.e. all requests to my
application be recieved by a JSP, which then redirects to the requested
resource.

How do I do that?

Thanks in advance.

Gurmeet



-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:10 PM
To: [EMAIL PROTECTED]
Subject: Just a test


hello, just a test

1º message to the list

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: XSL problem with upgrade to 4.0.3

2002-03-06 Thread Mangi, Rick

Moving those jars fixed it. Thanks a bunch!

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 7:50 PM
To: Tomcat Users List
Subject: Re: XSL problem with upgrade to 4.0.3


 Sorry, hit send my mistake.

 Here's the exception:

 - Root Cause -
 javax.servlet.jsp.JspTagException: InsertTag Exception:
 javax.servlet.ServletException: javax/xml/transform/Source
 at com.zcm.common.taglib.InsertTag.doEndTag(Unknown Source)

4.0.3 is identical to 4.0.2 for this, so both have the same bug, which is
described here:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374

4.0.4 beta 1 fixes the bug.
A workaround could be moving Xalan and the javax.xml.transform classes to
common/lib.

Remy



This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION

2002-03-06 Thread Dahnke, Eric


Take a look at MVC architectures.



-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 9:41 AM
To: 'Tomcat Users List'
Subject: RE: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION


Rather than writing your own, maybe you should think about using the Struts
framework (also part of the Jakarta project). This allows you to configure
page flow etc centrally.
Hamish

-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 3:32 PM
To: Tomcat Users List
Subject: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION


Hi,

I want to define a entry point for my application. i.e. all requests to my
application be recieved by a JSP, which then redirects to the requested
resource.

How do I do that?

Thanks in advance.

Gurmeet



-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:10 PM
To: [EMAIL PROTECTED]
Subject: Just a test


hello, just a test

1º message to the list

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mvc.gif
Description: GIF image

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: DB Connection Pool

2002-03-06 Thread Eddie Bush

Jim is actually quite right.  I did skip a step.  It didn't even occur to me
to check the archive because I had done that on the struts archive and
reached no conclusion. With poolman unsupported (which I was of the
impression most people were using), and needing to have an alternative, I
skipped the research and went right to asking questions.

My appologies Jim =)  I quite understand and agree - I get tons too.  I
didn't take it as rude or flippit, so please nobody start flaming anyone
about it.

Thanks for you updated info Jim.

Eddie

- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 3:38 PM
Subject: RE: DB Connection Pool


  Why?
 Because we just had a complete discussion of this topic.  Between this
list
 and others I subscribe to, I get hundreds of emails a day and I don't want
 to wade through the same thing over and over again.  Besides, the rule on
 this list has always been check the archives first.

  are you the owner of this mailing list?
 No.

 Jim

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
  Of Lev Assinovsky
  Sent: Tuesday, March 05, 2002 2:00 PM
  To: Tomcat Users List
  Subject: Re: DB Connection Pool
 
 
  Why? Jim, are you the owner of this mailing list?
  Jim Urban wrote:
 
If anyone is currently using a third-part pool that they are well
pleased with, I would greatly appreciate that information too.
  
   We just finished this discussion.  Please check the archive.
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  Lev AssinovskyPeterlink Web
  ProgrammerSt. Petersburg, Russia
  Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
  E-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4 Realms and MySQL

2002-03-06 Thread David Smith

Just a note about the connection URL.  MySQL requires an amperstand between 
the user and password parameters.  So a correct URL (encoded for XML) will be:

connectionURL=jdbc:mysql://localhost/tomcatusers?user=tetamp;password=test

Hope it helps...

--David

On Tuesday 05 March 2002 02:17 pm, you wrote:
 Hi, John,

 You need to switch your security realm from Memory Realm to
 JdbcRealm.  Then you need to reconfigure the
 TOMCAT_HOME/conf/server.xml.  Comment Realm
 className=org.apache.catalina.realm.MemoryRealm / out!  Then set up your
 MySql as follows:

 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
 connectionURL=jdbc:mysql://localhost/tomcatusers?user=tet;password=test
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /

 Okay dokay?

 Micael

 At 02:11 PM 3/5/02 -0500, you wrote:
 Hello. I would like to be able to use a MySQL table for my user
 authentication instead of the unencryptable tomcat-users.xml.  I have
 looked for this documentation, but have yet to find it.  Anyone have
 ideas/knowledge they care to impart?
 
 John Hollingsworth
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Who uses connection pool?

2002-03-06 Thread Eddie Bush

Jim, I couldn't tell from the page - with you having some experience with
the DDConnectionBroker, I thought I'd shoot you a couple of questions:

Pool Instantiation
Do I need to create this pool in an initialization servlet and put an
instance of it in the servlet context?  It looks like it's possible that
using this 'pool' might result in a new pool for each servlet... which isn't
really going to solve any problems for me.  In practice, how have you
noticed it to act?

Connection Maintenance
The site has this to say:

In the future, the number of connections in the pool will vary from
minConnections to maxConnections; minConnections will be available during
slow times; maxConnections will be in the pool when busy. (This is not
currently implemented.)

What behavior have you observed?  Does it just keep the increased number of
connections?  That doesn't sound very good either.

Thanks so much!

Eddie

- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 3:31 PM
Subject: RE: Who uses connection pool?


 We use DBConnectionBroker regardless of the database.  This way the its
 easier to switch databases depending on which one a client chooses.

 Jim

  -Original Message-
  From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 1:27 PM
  To: Tomcat Users List
  Subject: RE: Who uses connection pool?
 
 
  Hi folks,
 
  Ok, I know we've beaten this to death today but all this discussion
  about DB Pooling got me thinking...
 
  Currently I'm using the Oracle thin client JDBC driver (class12.jar) to
  talk to a 9i database.  I'm currently using the connection
  pooling/caching support Oracle supplies (the OracleConnectionCacheImpl
  class). Have any of you used this?  How would you contrast it to say
  poolman, Bitmechanic's pool code, or DBConnectionBroker (I think that's
  all the ones that have been thrown around today)?  Would one of these be
  a better choice?  Based on today's discussion I won't even consider
  Tomcat's native pooling (tyrex).
 
  I'm still in development with my code and haven't put it under load so
  it would be nice to know if this is a good route to take before we get
  into production.
 
  Thanks in advance.
 
  - Rich
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




jar's include ...

2002-03-06 Thread Julien OIX

hi everyone, 

I'm using these RPM's on a Linux RedHat 7.1

apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
mod_bandwidth-2.0.3-2)

tomcat4-4.0.2-3
servletapi4-4.0.2-1
xerces-j-1.4.4-2
regexp-1.2-5

Before, I used a tomcat4-4.0.1.x RPM's, which included mail.jar and
activation.jar
in /var/tomcat4/common/lib ;
but with tomcat4-4.0.2.x, they are not included anymore.

which RPM gives them now ?

thanks in advance.
-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat Mysql

2002-03-06 Thread David Smith

I just posted to another thread on this eact problem issue.  The example 
MySQL realm in server.xml is wrong.  MySQL uses an amperstand character () 
between the user and password parameters in the URL.  Here is the correct URL 
for making a connection to a MySQL database:

connectionURL=jdbc:mysql://crypton:3306/authority?user=tkadminamp;password=tkadmin

amp; is used because XML standards require the  symbol be expressed this 
way.

Hope this helps you out.

--David

On Wednesday 06 March 2002 12:50 am, you wrote:
 This is a permissions problem on your system.  The error means what it
 says.

 At 12:22 PM 3/5/02 -0800, you wrote:
 Setting up Tomcat  Mysql is documented on the Tomcat
 website.  Look at the documentation link and then
 under realms.  There is a discussion of using database
 for authentication and MySQL is the example they show
 for the deployment descriptors.
 
 There is also an excellent book out called JSP,
 MYSQL, and Servlet Development  or something close.
 It documents the process well too.
 
 Tim
 
 --- [EMAIL PROTECTED] wrote:
   Hi,
  
   I have been trying to setup JDBC Realm authen with
   mysql and  have hit a
   dead end.
   I have been following the posts but my errors don't
   match what others are
   getting.
   I'm sure this is a config error on my part but I
   just can't seem to figure
   it out.
  
  
   When trying to startup Tomact 4 I get the following
   error in catalina.out I
   have also attached the
   relavant server.xml entries.
  
  
   SERVER.XML
  
   Realm
   className=org.apache.catalina.realm.JDBCRealm
   debug=99
 driverName=org.gjt.mm.mysql.Driver
 
 connectionURL=jdbc:mysql://crypton:3306/authority?user=tkadmin;password=t
 kadmin
 
  userTable=users
   userNameCol=user_name
   userCredCol=user_pass
  userRoleTable=user_roles
   roleNameCol=role_name /
  
  
   CATALINA.OUT error
  
   Starting service Tomcat-Standalone
   Apache Tomcat/4.0.3
   Catalina.start: LifecycleException:  Exception
   opening database
   connection:  jav
   a.sql.SQLException: Invalid authorization
   specification: Access denied for
   user:
 'tkadmin;[EMAIL PROTECTED]' (Using password:
   NO)
   LifecycleException:  Exception opening database
   connection:  java.sql.SQLExcepti
   on: Invalid authorization specification: Access
   denied for user:
   'tkadmin;passwo
   [EMAIL PROTECTED]' (Using password: NO)
  
  
   Thanks
  
   randy
  
  
   --
   To unsubscribe:
   mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
 
 __
 Do You Yahoo!?
 Try FREE Yahoo! Mail - the world's greatest free email!
 http://mail.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Who uses connection pool?

2002-03-06 Thread Jim Urban

We have one servlet (our controller servlet) which we have tagged in our
web.xml as load on start up first.  This servlet initializes the connection
pool.  Our class which wraps the connection pool is a Singleton class which
has a public static member method to access the connection broker.  This way
all servlets and classes within the context share a single copy of the
connection broker.

As documented, the minimum number of connections is established when the
broker is initialized.  The number of connections grows as needed.  You will
notice a parameter double maxConnTime.  This is a portion of a 24 hour
day.  That is 1.0 = 24 hours, 2.0 = 48 hours, .5 = 12 hours, .25 = 6 hours
etc.  Every this number hours the connections are closed and the minimum
number of connections are re-established.  This helps cut down on unused
open connections and replaces any connections which have been dropped for
whatever reason.  This is may not be the most efficient way of managing
connections, but it doesn't use much overhead either.

Over all we have been quite happy with DDConnectionBroker.  It seems quite
reliable (sometimes simple is better) and the price is right!  It also works
fine with the Oracle driver, MySQL driver and freetds (for MS SQL).

Jim

 -Original Message-
 From: Eddie Bush [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 9:25 AM
 To: Tomcat Users List
 Subject: Re: Who uses connection pool?


 Jim, I couldn't tell from the page - with you having some experience with
 the DDConnectionBroker, I thought I'd shoot you a couple of questions:

 Pool Instantiation
 Do I need to create this pool in an initialization servlet and put an
 instance of it in the servlet context?  It looks like it's possible that
 using this 'pool' might result in a new pool for each servlet...
 which isn't
 really going to solve any problems for me.  In practice, how have you
 noticed it to act?

 Connection Maintenance
 The site has this to say:

 In the future, the number of connections in the pool will vary from
 minConnections to maxConnections; minConnections will be available during
 slow times; maxConnections will be in the pool when busy. (This is not
 currently implemented.)

 What behavior have you observed?  Does it just keep the increased
 number of
 connections?  That doesn't sound very good either.

 Thanks so much!

 Eddie

 - Original Message -
 From: Jim Urban [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 05, 2002 3:31 PM
 Subject: RE: Who uses connection pool?


  We use DBConnectionBroker regardless of the database.  This way the its
  easier to switch databases depending on which one a client chooses.
 
  Jim
 
   -Original Message-
   From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, March 05, 2002 1:27 PM
   To: Tomcat Users List
   Subject: RE: Who uses connection pool?
  
  
   Hi folks,
  
   Ok, I know we've beaten this to death today but all this discussion
   about DB Pooling got me thinking...
  
   Currently I'm using the Oracle thin client JDBC driver
 (class12.jar) to
   talk to a 9i database.  I'm currently using the connection
   pooling/caching support Oracle supplies (the OracleConnectionCacheImpl
   class). Have any of you used this?  How would you contrast it to say
   poolman, Bitmechanic's pool code, or DBConnectionBroker (I
 think that's
   all the ones that have been thrown around today)?  Would one
 of these be
   a better choice?  Based on today's discussion I won't even consider
   Tomcat's native pooling (tyrex).
  
   I'm still in development with my code and haven't put it under load so
   it would be nice to know if this is a good route to take before we get
   into production.
  
   Thanks in advance.
  
   - Rich
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: ssl please help!

2002-03-06 Thread Ofur-Bjarni

That would still do the trick, because then the user could simply install
the certificate the first time it appears, and then the browser will not
bother him with the authority thingy..
Do you know of any way to let tomcat automatically make a self signed
certificate?



-Original Message-
From: Chris Campbell [mailto:[EMAIL PROTECTED]]
Sent: 6. mars 2002 04:12
To: 'Tomcat Users List'
Subject: RE: ssl please help!



 Hello,
 is it possible to use ssl without having a
 certificate?(.keystore thingy)
 The problem is that the web application I'm making will be
 distributed, so
 it won't always be running on the same server name and
 therefor browsers
 will always point out the fact that the name on the
 certificate does not
 match the name of the site.. which will be terribly annoying
 for the users.

You need a .keystore to run Tomcat standalone with ssl support. You need a
certificate to run ssl in any way. For the different servers you have, you
could make self signed certificates for each of them, then the site name and
certificate would match. Although in this case the browsers will then warn
that the certificate is not issued by a trusted authority... which will be
terribly annoying for the users :)

ChrisC

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Who uses connection pool?

2002-03-06 Thread Eddie Bush

Sorry I missed that piece of the docs I guess.  Thanks again for your input!

Eddie

- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 06, 2002 9:57 AM
Subject: RE: Who uses connection pool?


 We have one servlet (our controller servlet) which we have tagged in our
 web.xml as load on start up first.  This servlet initializes the
connection
 pool.  Our class which wraps the connection pool is a Singleton class
which
 has a public static member method to access the connection broker.  This
way
 all servlets and classes within the context share a single copy of the
 connection broker.

 As documented, the minimum number of connections is established when the
 broker is initialized.  The number of connections grows as needed.  You
will
 notice a parameter double maxConnTime.  This is a portion of a 24 hour
 day.  That is 1.0 = 24 hours, 2.0 = 48 hours, .5 = 12 hours, .25 = 6 hours
 etc.  Every this number hours the connections are closed and the minimum
 number of connections are re-established.  This helps cut down on unused
 open connections and replaces any connections which have been dropped for
 whatever reason.  This is may not be the most efficient way of managing
 connections, but it doesn't use much overhead either.

 Over all we have been quite happy with DDConnectionBroker.  It seems quite
 reliable (sometimes simple is better) and the price is right!  It also
works
 fine with the Oracle driver, MySQL driver and freetds (for MS SQL).

 Jim

  -Original Message-
  From: Eddie Bush [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 06, 2002 9:25 AM
  To: Tomcat Users List
  Subject: Re: Who uses connection pool?
 
 
  Jim, I couldn't tell from the page - with you having some experience
with
  the DDConnectionBroker, I thought I'd shoot you a couple of questions:
 
  Pool Instantiation
  Do I need to create this pool in an initialization servlet and put an
  instance of it in the servlet context?  It looks like it's possible that
  using this 'pool' might result in a new pool for each servlet...
  which isn't
  really going to solve any problems for me.  In practice, how have you
  noticed it to act?
 
  Connection Maintenance
  The site has this to say:
 
  In the future, the number of connections in the pool will vary from
  minConnections to maxConnections; minConnections will be available
during
  slow times; maxConnections will be in the pool when busy. (This is not
  currently implemented.)
 
  What behavior have you observed?  Does it just keep the increased
  number of
  connections?  That doesn't sound very good either.
 
  Thanks so much!
 
  Eddie
 
  - Original Message -
  From: Jim Urban [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, March 05, 2002 3:31 PM
  Subject: RE: Who uses connection pool?
 
 
   We use DBConnectionBroker regardless of the database.  This way the
its
   easier to switch databases depending on which one a client chooses.
  
   Jim
  
-Original Message-
From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 1:27 PM
To: Tomcat Users List
Subject: RE: Who uses connection pool?
   
   
Hi folks,
   
Ok, I know we've beaten this to death today but all this discussion
about DB Pooling got me thinking...
   
Currently I'm using the Oracle thin client JDBC driver
  (class12.jar) to
talk to a 9i database.  I'm currently using the connection
pooling/caching support Oracle supplies (the
OracleConnectionCacheImpl
class). Have any of you used this?  How would you contrast it to say
poolman, Bitmechanic's pool code, or DBConnectionBroker (I
  think that's
all the ones that have been thrown around today)?  Would one
  of these be
a better choice?  Based on today's discussion I won't even consider
Tomcat's native pooling (tyrex).
   
I'm still in development with my code and haven't put it under load
so
it would be nice to know if this is a good route to take before we
get
into production.
   
Thanks in advance.
   
- Rich
   
--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]
   
   
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Installing Tomcat4.0.3 on Mac OS X

2002-03-06 Thread Donnahoo, George

On the installation of Tomcat4.0.3 on Mac OS X, I see that some of the
scripts have the line: export JAVA_HOME=/usr.  Why is that?  I would have
expected the line: export
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




strange problem with tomcat version 3.3a

2002-03-06 Thread Tomcat Programmer

I apologize if I sent this twice.. I don't think it
went through the first time! 

I have been using tomcat for several releases, and
have just upgraded my server to version 3.3a and I
have noticed a change in the behavior of the logging
mechanism. 

With Tomcat 3.3a, nothing gets written to the
JASPER_LOG stream. I have the verbosityLevel set to
INFORMATION, which used to cause all request
information to get written to this log at release
3.2.1. However, now the file is always zero-byte. It
does not seem to matter if I define it globally or
within a specific context. I even changed the
verbosity level to DEBUG and still *nothing* gets
written into this file.

I have searched High and Wide over the internet
looking for the answer to this problem, and I have not
been able to find it.

Can anyone help me configure this, please !

Many Thanks!!

-Tom C.


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: strange problem with tomcat version 3.3a

2002-03-06 Thread Larry Isaacs

For performance reasons, Tomcat 3.3 uses the JspInterceptor
module instead of Jasper's JspServlet to translate and
compile JSP files.  Since it was the JspServlet that was
providing most of the log output for the INFORMATION level,
you don't see any jasper log output when using JspInterceptor.
If you set the level to DEBUG, you will see some jasper log
output.

The JspInterceptor sends Compiling: file to ... messages
to the context log.  Contexts without an assigned log, as
well as other JspInterceptor messages, go to Tomcat's log,
which is written to the stderr by default.  The /examples
context is assigned to a file so you will see Compiling: ...
messages in logs/examples.log.  However, you are not likely
to see any additional log messages unless there is an error
or the debug level for JspInterceptor is set  0.

Cheers,
Larry


 -Original Message-
 From: Tomcat Programmer [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 12:36 PM
 To: [EMAIL PROTECTED]
 Subject: strange problem with tomcat version 3.3a
 
 
 I apologize if I sent this twice.. I don't think it
 went through the first time! 
 
 I have been using tomcat for several releases, and
 have just upgraded my server to version 3.3a and I
 have noticed a change in the behavior of the logging
 mechanism. 
 
 With Tomcat 3.3a, nothing gets written to the
 JASPER_LOG stream. I have the verbosityLevel set to
 INFORMATION, which used to cause all request
 information to get written to this log at release
 3.2.1. However, now the file is always zero-byte. It
 does not seem to matter if I define it globally or
 within a specific context. I even changed the
 verbosity level to DEBUG and still *nothing* gets
 written into this file.
 
 I have searched High and Wide over the internet
 looking for the answer to this problem, and I have not
 been able to find it.
 
 Can anyone help me configure this, please !
 
 Many Thanks!!
 
 -Tom C.
 
 
 __
 Do You Yahoo!?
 Try FREE Yahoo! Mail - the world's greatest free email!
 http://mail.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Help: Logging username (j_username) during login attempt

2002-03-06 Thread Rob Cartier


I got my login working with SSL and for now the use of the 
tomcat-users.xml file

 I would like to log all login attempts both success and failure.
What is the best way to capture the information

I only need the username from the j_username attempt 

I am able to get the rest that I want from the cgi variables 

Any and all help would be appreciated

Robert Cartier 
112 Fieldbrook Rd 
Middletown, Ct. 06457-1746 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat Mysql

2002-03-06 Thread i2r

David.

many thanks.

worked like a charm

Randy

At 07:50 AM 3/6/2002, you wrote:
I just posted to another thread on this eact problem issue.  The example
MySQL realm in server.xml is wrong.  MySQL uses an amperstand character ()
between the user and password parameters in the URL.  Here is the correct URL
for making a connection to a MySQL database:

connectionURL=jdbc:mysql://crypton:3306/authority?user=tkadminamp;password=tkadmin

amp; is used because XML standards require the  symbol be expressed this
way.

Hope this helps you out.

--David

On Wednesday 06 March 2002 12:50 am, you wrote:
  This is a permissions problem on your system.  The error means what it
  says.
 
  At 12:22 PM 3/5/02 -0800, you wrote:
  Setting up Tomcat  Mysql is documented on the Tomcat
  website.  Look at the documentation link and then
  under realms.  There is a discussion of using database
  for authentication and MySQL is the example they show
  for the deployment descriptors.
  
  There is also an excellent book out called JSP,
  MYSQL, and Servlet Development  or something close.
  It documents the process well too.
  
  Tim
  
  --- [EMAIL PROTECTED] wrote:
Hi,
   
I have been trying to setup JDBC Realm authen with
mysql and  have hit a
dead end.
I have been following the posts but my errors don't
match what others are
getting.
I'm sure this is a config error on my part but I
just can't seem to figure
it out.
   
   
When trying to startup Tomact 4 I get the following
error in catalina.out I
have also attached the
relavant server.xml entries.
   
   
SERVER.XML
   
Realm
className=org.apache.catalina.realm.JDBCRealm
debug=99
  driverName=org.gjt.mm.mysql.Driver
  
  connectionURL=jdbc:mysql://crypton:3306/authority?user=tkadmin;password=t
  kadmin
  
   userTable=users
userNameCol=user_name
userCredCol=user_pass
   userRoleTable=user_roles
roleNameCol=role_name /
   
   
CATALINA.OUT error
   
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Catalina.start: LifecycleException:  Exception
opening database
connection:  jav
a.sql.SQLException: Invalid authorization
specification: Access denied for
user:
  'tkadmin;[EMAIL PROTECTED]' (Using password:
NO)
LifecycleException:  Exception opening database
connection:  java.sql.SQLExcepti
on: Invalid authorization specification: Access
denied for user:
'tkadmin;passwo
[EMAIL PROTECTED]' (Using password: NO)
   
   
Thanks
   
randy
   
   
--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]
  
  __
  Do You Yahoo!?
  Try FREE Yahoo! Mail - the world's greatest free email!
  http://mail.yahoo.com/
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to log shutting down of tomcat

2002-03-06 Thread Keith Ng



-Original Message-
From: Halfmann, Klaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 3:54 PM
To: Tomcat Users List

I could think about the following reasons:
a) a hard crash of the Java VM (may happen when using native
code)
b) Some code calls System.exit()
c) You get to many OutOfMemory Exceptions eventually killing the
VM
--
Wat are native code? I really do not noe would u mind explaining?




In case of a) there should be either a core dump or at least some System
log. Try starting Tomcat in a console of its own and look what happens.
--
Do u mean start in command prompt?




b) Can be fighted by Starting Tomcat with a Security Manager prohibiting
   a call to System.exit(). Eventually you can trace the culprit then
   by looking for the SecurityException
--
argh again how do i configure the security manager




c) Monitor the Resource Usage of the Application and the logs 

In General setting the Debug level in the server.xml may give you
some hints (For a proper shutdown the destroy() methods of Servlets)
should be called. Hope you have enough space on your devices to log
away 4-5 hours ...

How do i set my debug level??? argh... im a real newbie... pls help...







_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: strange problem with tomcat version 3.3a

2002-03-06 Thread Tomcat Programmer

Larry,

Thanks very much for your help! This is invaluable
information. Do you know if it would be possible to
make Tomcat 3.3a use JspServlet instead of
JspInterceptor? 

I am using the Tomcat 3.2.1 engine now for our
applications and the preformance is acceptable, so I
am assuming that if I could make Tomcat 3.3a use the
JspServlet the perfomance would be relatively the
same. Is that a valid assumption? 

If there is anyway to do this I would really
appreciate the help.

Thanks,

Tom C.

--- Larry Isaacs [EMAIL PROTECTED] wrote:
 For performance reasons, Tomcat 3.3 uses the
 JspInterceptor
 module instead of Jasper's JspServlet to translate
 and
 compile JSP files.  Since it was the JspServlet that
 was
 providing most of the log output for the INFORMATION
 level,
 you don't see any jasper log output when using
 JspInterceptor.
 If you set the level to DEBUG, you will see some
 jasper log
 output.
 
 The JspInterceptor sends Compiling: file to ...
 messages
 to the context log.  Contexts without an assigned
 log, as
 well as other JspInterceptor messages, go to
 Tomcat's log,
 which is written to the stderr by default.  The
 /examples
 context is assigned to a file so you will see
 Compiling: ...
 messages in logs/examples.log.  However, you are not
 likely
 to see any additional log messages unless there is
 an error
 or the debug level for JspInterceptor is set  0.
 
 Cheers,
 Larry
 
 
  -Original Message-
  From: Tomcat Programmer
 [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 06, 2002 12:36 PM
  To: [EMAIL PROTECTED]
  Subject: strange problem with tomcat version 3.3a
  
  
  I apologize if I sent this twice.. I don't think
 it
  went through the first time! 
  
  I have been using tomcat for several releases, and
  have just upgraded my server to version 3.3a and I
  have noticed a change in the behavior of the
 logging
  mechanism. 
  
  With Tomcat 3.3a, nothing gets written to the
  JASPER_LOG stream. I have the verbosityLevel set
 to
  INFORMATION, which used to cause all request
  information to get written to this log at release
  3.2.1. However, now the file is always zero-byte.
 It
  does not seem to matter if I define it globally or
  within a specific context. I even changed the
  verbosity level to DEBUG and still *nothing* gets
  written into this file.
  
  I have searched High and Wide over the internet
  looking for the answer to this problem, and I have
 not
  been able to find it.
  
  Can anyone help me configure this, please !
  
  Many Thanks!!
  
  -Tom C.
  
  
  __
  Do You Yahoo!?
  Try FREE Yahoo! Mail - the world's greatest free
 email!
  http://mail.yahoo.com/
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to log shutting down of tomcat

2002-03-06 Thread Keith Ng

I have tried running with startup -f $CATALINA_HOME/logs/catalina.out in
command promot, tomcat window comes up a while den disappear, if i do it
with just startup there is no problem

using win2k btw

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev
Assinovsky
Sent: Tuesday, March 05, 2002 4:17 PM
To: Tomcat Users List
Subject: Re: How to log shutting down of tomcat


You can see tomcat's shutdown in /logs/catalina.out
Run tail -f $CATALINA_HOME/logs/catalina.out

Keith Ng wrote:

 is there anyway to log the shutting down of tomcat? My tomcat server tend
to
 auto shutdown for unknown reasons. I have been trying to trace to no
avail.
 Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours
 and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC
 bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i
 do not know.

 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: strange problem with tomcat version 3.3a

2002-03-06 Thread Larry Isaacs

You would modify the JspInterceptor entry in server.xml
to say useJspServlet=true.  Unfortunately, there is a
bug in Tomcat 3.3(a) the prevents this from working
by default.  This has been fixed in Tomcat 3.3.1-rc1.

The bug is that jasper.jar and tools.jar aren't made
available to the web application classloader.  If you
can't upgrade to 3.3.1-rc1 (as stable as 3.3a and fewer
bugs), then a temporary workaround can be used if your
web application(s) don't have their own XML parser.
I believe the following should work:

1. Add

jaxpJars=jaxp.jar:crimson.jar:xalan.jar:xerces.jar:jasper.jar

   to the LoaderInterceptor11 entry in server.xml. This
   includes jasper.jar with the auto-added XML parser.

2. Copy tools.jar from your jre/lib directory to the
   lib/apps or lib/common directory in your Tomcat 3.3
   installation.

Cheers,
Larry

 -Original Message-
 From: Tomcat Programmer [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 2:37 PM
 To: Tomcat Users List
 Subject: RE: strange problem with tomcat version 3.3a
 
 
 Larry,
 
 Thanks very much for your help! This is invaluable
 information. Do you know if it would be possible to
 make Tomcat 3.3a use JspServlet instead of
 JspInterceptor? 
 
 I am using the Tomcat 3.2.1 engine now for our
 applications and the preformance is acceptable, so I
 am assuming that if I could make Tomcat 3.3a use the
 JspServlet the perfomance would be relatively the
 same. Is that a valid assumption? 
 
 If there is anyway to do this I would really
 appreciate the help.
 
 Thanks,
 
 Tom C.
 
 --- Larry Isaacs [EMAIL PROTECTED] wrote:
  For performance reasons, Tomcat 3.3 uses the
  JspInterceptor
  module instead of Jasper's JspServlet to translate
  and
  compile JSP files.  Since it was the JspServlet that
  was
  providing most of the log output for the INFORMATION
  level,
  you don't see any jasper log output when using
  JspInterceptor.
  If you set the level to DEBUG, you will see some
  jasper log
  output.
  
  The JspInterceptor sends Compiling: file to ...
  messages
  to the context log.  Contexts without an assigned
  log, as
  well as other JspInterceptor messages, go to
  Tomcat's log,
  which is written to the stderr by default.  The
  /examples
  context is assigned to a file so you will see
  Compiling: ...
  messages in logs/examples.log.  However, you are not
  likely
  to see any additional log messages unless there is
  an error
  or the debug level for JspInterceptor is set  0.
  
  Cheers,
  Larry
  
  
   -Original Message-
   From: Tomcat Programmer
  [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, March 06, 2002 12:36 PM
   To: [EMAIL PROTECTED]
   Subject: strange problem with tomcat version 3.3a
   
   
   I apologize if I sent this twice.. I don't think
  it
   went through the first time! 
   
   I have been using tomcat for several releases, and
   have just upgraded my server to version 3.3a and I
   have noticed a change in the behavior of the
  logging
   mechanism. 
   
   With Tomcat 3.3a, nothing gets written to the
   JASPER_LOG stream. I have the verbosityLevel set
  to
   INFORMATION, which used to cause all request
   information to get written to this log at release
   3.2.1. However, now the file is always zero-byte.
  It
   does not seem to matter if I define it globally or
   within a specific context. I even changed the
   verbosity level to DEBUG and still *nothing* gets
   written into this file.
   
   I have searched High and Wide over the internet
   looking for the answer to this problem, and I have
  not
   been able to find it.
   
   Can anyone help me configure this, please !
   
   Many Thanks!!
   
   -Tom C.
   
   
   __
   Do You Yahoo!?
   Try FREE Yahoo! Mail - the world's greatest free
  email!
   http://mail.yahoo.com/
   
   --
   To unsubscribe:  
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Try FREE Yahoo! Mail - the world's greatest free email!
 http://mail.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




javax.net.ssl.SSLHandshakeException connecting to servlet - JSEE

2002-03-06 Thread Sean Machin

Hi All,

I've setup Tomcat on my Linux machine running both http and https.
I can view the default Tomcat pages OK with https via
my web browser.

I am trying to get some Java socket code using JSSE working
to connect via HTTPS to Tomcat.
I modified the SSLSocketClient sample code to connect
to my machine  port, but get the exception :
javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate.

I'm probably doing something very basic wrong, I'm an SSL newbie,
still got a lot to learn.
Thanks if anyone can help.

Sean

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to log shutting down of tomcat

2002-03-06 Thread Keith Ng

Btw i ran it this way


C:\Tomcat-4.0.2\binstartup -f $CATALINA_HOME/logs/catalina.out
Using CATALINA_BASE:   C:\Tomcat-4.0.2
Using CATALINA_HOME:   C:\Tomcat-4.0.2
Using CATALINA_TMPDIR: C:\Tomcat-4.0.2\temp
Using JAVA_HOME:   C:\jdk1.3.1
C:\Tomcat-4.0.2\bin



-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 4:01 AM
To: Tomcat Users List
Subject: RE: How to log shutting down of tomcat


I have tried running with startup -f $CATALINA_HOME/logs/catalina.out in
command promot, tomcat window comes up a while den disappear, if i do it
with just startup there is no problem

using win2k btw

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev
Assinovsky
Sent: Tuesday, March 05, 2002 4:17 PM
To: Tomcat Users List
Subject: Re: How to log shutting down of tomcat


You can see tomcat's shutdown in /logs/catalina.out
Run tail -f $CATALINA_HOME/logs/catalina.out

Keith Ng wrote:

 is there anyway to log the shutting down of tomcat? My tomcat server tend
to
 auto shutdown for unknown reasons. I have been trying to trace to no
avail.
 Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours
 and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC
 bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i
 do not know.

 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[TC4.01] Session Not Established on Mac IE?

2002-03-06 Thread Scott Jones

Hello,

I just got off the phone with the first person using Mac OS to use our
website since we upgraded to Tomcat 4.0.1 (from Tomcat 3.3).  He was
unable to log into our site using Internet Explorer 5 on OS 9.  We still
had an instance on a development machine that used Tomcat 3.3, on which
he experienced no problems.  

It appears that his session is never getting established at all -- my
first thought was that he might have cookies disabled (I do not do URL
rewriting currently, although that would probably fix the problem). 
After having him try our Tomcat 3.3 instance, it was clear that cookies
are enabled, so that isn't the problem.  

My only other thought is that the JSESSIONID is a lot larger on Tomcat 4
-- is it possible that Mac IE5 cannot accept cookies that are longer
than a certain amount?

Unfortunately, I don't have a Mac here to play with so that I could
really help track this down -- has anyone else experienced anything like
this?

Thanks!

-Scott


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Error Using 4.0.1 Manager

2002-03-06 Thread Mike Millson

OS: RH7.1
Apache: 1.3.22
Tomcat: 4.0.1

I added the following to /conf/tomcat-users.xml in the tomcat-users block:
user name=somename password=somepass roles=manager /

I added the following to httpd.conf:
WebAppDeploy manager conn /manager/

I enter this URL:
http://myserver/manager/reload?path=/examples

The authentication box comes up and I enter my username and password, then I
get the following error:

javax.servlet.ServletException: Error allocating a servlet instance
ManagerServlet is privileged and cannot be loaded by this web application

There is nothing in Catalina.out.

I saw searching JGuru that someone else posted this question on 1/10/2002,
but there was no followup answer. Does anyone have any ideas what I need to
do to get this working or any steps I can take to narrow down where the
problem may be?

Thank you,
Mike Millson
Web Systems Engineer
Sun Certified Programmer for Java2 Platform

AableTech Solutions, Inc.
770.414.8834
404.219.3177 cell
770.414.8206 fax
http://www.atsga.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.3 + Apache 2.0.32

2002-03-06 Thread Bhide, Atul

Hi,

The problem is solved. I compiled the latest version 4.0.4.b1 version of the
tomcat-connectors and it works now.

Chad,

Thanks for your suggestion but I do not want to use mod_webapp as I want to
use SSL with Apache and mod_jk is more efficient in doing this. With
mod_webapp it is all or nothing which I personally do not like.

Regards, Atul

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 4:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.3 + Apache 2.0.32




I am not sure about mod jk, but in order to get webapp module to load and
answer pases tomcat needs to be started first before apache.  If that does
not work send in a copy of the tomcat/logs/ files.  I am pretty sure mad_jk
write to catalina.out.

tomcat/bin/startup.sh  starts up tomcat


-chad



On Tue, 5 Mar 2002 17:49:40 -0800 
Bhide, Atul [EMAIL PROTECTED] wrote:

 I am trying to integrate tomcat 4.0.3  apache 2.0.32 using mod_jk 1.2. I
 downloaded jakarta-tomcat-connectors-4.0.2-01-src and compiled the
source
 for mod_jk. I used the following commands
 
 ant
 ant native
 ant install
 
 It produced 2 mod_jk.so file in the following directories
 

/home/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/build/WEB-INF/jk/apache2
 /mod_jk.so   

/home/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/build/WEB-INF/jk2/apache
 2/mod_jk.so
 
 I initially copied the jk/apache2/mod_jk.so file to
 /usr/local/apache/modules directory and started tomcat. Then I started
 apache2. Apache loaded the mod_jk.so file. but it simply failed to work
and
 the URL http://localhost/examples came up with an error jakarta-servlet
 not found.
 
 I then shut down both the servers and copied the jk2/apache2/mod_jk.so
 file to /usr/local/apache/modules directory and started tomcat. Then I
 started apache2. the URL http://localhost/examples came up with an proper
 page that of directory listing. But when I clicked on the jsp link on
the
 directory listing the browser went into a infinite wait. When I looked at
 the error_log, it was quickly getting filled with the following messages:
 
 [Tue Mar 05 17:32:23 2002] [notice] child pid 17247 exit signal
Segmentation
 fault (11)
 
 repeated at least 5 time a second till I clicked the Stop button on my
 browser.
 
 Any idea why the mod_jk is not working. The documentation does talk about
 the module being compatible with Apache 2.0. 
 
 I have RedHat 7.2 as my OS with Tomcat 4.0.3  Apache 2.0.32.
 
 Am I using wrong FILES/TECHNIQUES/SETUP/PROCESS? I would appreciate and
 ideas as to what is going on in there whit mod_jk.
 
 Thanks in advance!
 
 Cheers, Atul :)
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Error Using 4.0.1 Manager

2002-03-06 Thread rsequeira


Check if there is a corresponding Context/ element defined for
manager in server.xml.

There should be a manager under webapps:
Context path=/manager docBase=manager debug=0 privileged
=true/

Thanks.
RS





Mike Millson [EMAIL PROTECTED] on 03/06/2002 03:52:07 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Error Using 4.0.1 Manager

OS: RH7.1
Apache: 1.3.22
Tomcat: 4.0.1

I added the following to /conf/tomcat-users.xml in the tomcat-users
block:
user name=somename password=somepass roles=manager /

I added the following to httpd.conf:
WebAppDeploy manager conn /manager/

I enter this URL:
http://myserver/manager/reload?path=/examples

The authentication box comes up and I enter my username and password, then
I
get the following error:

javax.servlet.ServletException: Error allocating a servlet instance
ManagerServlet is privileged and cannot be loaded by this web application

There is nothing in Catalina.out.

I saw searching JGuru that someone else posted this question on 1/10/2002,
but there was no followup answer. Does anyone have any ideas what I need to
do to get this working or any steps I can take to narrow down where the
problem may be?

Thank you,
Mike Millson
Web Systems Engineer
Sun Certified Programmer for Java2 Platform

AableTech Solutions, Inc.
770.414.8834
404.219.3177 cell
770.414.8206 fax
http://www.atsga.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?

2002-03-06 Thread Brandon Cruz

This is probably a problem with our application, but does anyone know of any
possible misconfiguration or anything that will cause a very slow increase
in the amount of memory that Tomcat is using on Linux?  If nobody has had a
similar experience, what about possible solutions to tracking down the cause
of this slow memory usage increase?  We have hundreds of classes to search.
Is there a tool or anything to help us out?

Any help is GREATLY appreciated!!!

Brandon


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




directory issues using Tomcat 4.0.2 and Apache 1.3.23 with mod_webapp

2002-03-06 Thread Buck Woodson

Set up these as per this URL, JSP will be functional but no gifs in 
examples:
http://www.webmasterbase.com/article.php?pid=44aid=305

Then go to

http://yourApacheServerName/examples/jsp/index.html

Images don't serve from Apache nor from Tomcat.

Apache thinks it should serve them from DocumentRoot/examples.

Using Apache Alias and Redirect also fails.

Oddly enough, you can successfully browse 
http://yourApacheServerName/examples/images, manually select each image 
file, it displays properly, then go back to the jsp with the gifs and all is 
well for the moment.

I've spent a lot of time digging and
trying things with no success.  Any help would be appreciated.

Is Tomcat and Apache incompatible (if someone wants to step out, get crazy 
and actually have graphics in a web page)?

Thanks

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Premature packet header end exception

2002-03-06 Thread Chris Geyer

Ok, a little more detail might be necessary:
I am running Tomcat 4.0.1 on Linux connecting to a mysql database. All of my
JSP pages are served without error, so I don't know where the error below is
coming from. I never receive an error while browsing the site, however this
error shows up sporadically throughout the
/usr/local/jakarta-tomcat-4.0.1/logs/apache_log... files. Any ideas on what
could be causing this problem? Has anyone experienced a similar problem?


Error message:
2002-03-06 17:14:37 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
37)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)



Thanks for the help,
chris


-Original Message-
From: Chris Geyer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 11:41 AM
To: [EMAIL PROTECTED]
Subject: Premature packet header end exception



I continue to get this error throughout my apache_log.2002-mm-dd.txt files:

2002-03-05 11:16:05 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.io.IOException: Premature packet header end
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
37)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

What is causing this and how do I fix it?
Thanks,
chris


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with mod_webapp

2002-03-06 Thread Peter Johnson

I followed the site below and all works ok. Basically it describes some simple changes 
to
be made in server.xml

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

Peter

 Set up these as per this URL, JSP will be functional but no gifs in  examples:
 http://www.webmasterbase.com/article.php?pid=44aid=305

 Then go to

 http://yourApacheServerName/examples/jsp/index.html

 Images don't serve from Apache nor from Tomcat.

 Apache thinks it should serve them from DocumentRoot/examples.

 Using Apache Alias and Redirect also fails.

 Oddly enough, you can successfully browse
 http://yourApacheServerName/examples/images, manually select each image  file, it
 displays properly, then go back to the jsp with the gifs and all is  well for the
 moment.

 I've spent a lot of time digging and
 trying things with no success.  Any help would be appreciated.

 Is Tomcat and Apache incompatible (if someone wants to step out, get crazy  and
 actually have graphics in a web page)?

 Thanks

 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED] For additional
 commands: mailto:[EMAIL PROTECTED] Troubles with the list:
 mailto:[EMAIL PROTECTED]



-
This email was sent using SquirrelMail.
   Webmail for nuts!
http://squirrelmail.org/



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Java servlet

2002-03-06 Thread Jianping Zhu



I have redhat 7.2, I want to run java servelet on it by using the engine
tomcat, I have downloaded tomcat4-4.0.1-1.noarch.rmp,
tomcat4-4.0.1.src.rmp, tomcat4-manual-4.0.1.noarch.rmp and
tomcat4-webapps-4.01-1.noarch.rmp and installed them but I can get them
work.

can anyone give a suggestion.

Thanks


Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with mod_webapp

2002-03-06 Thread rsequeira


IMHO, I think mod_webapp isn't very stable (don't quote me on that though :
-). I use mod_webapp and have faced problems in displaying images with jsp
pages. A few users on this list too have experienced the same difficulties.
Tomcat standalone should display images just fine. It's only when you use
it with mod_webapp that it's pretty sporadic. I think mod_jk is a  better
bet although I never got around to using it.
Just my two cents.
Thanks.
RS




Buck Woodson [EMAIL PROTECTED] on 03/06/2002 04:12:40 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  directory issues using Tomcat 4.0.2 and Apache 1.3.23 with
  mod_webapp

Set up these as per this URL, JSP will be functional but no gifs in
examples:
http://www.webmasterbase.com/article.php?pid=44aid=305

Then go to

http://yourApacheServerName/examples/jsp/index.html

Images don't serve from Apache nor from Tomcat.

Apache thinks it should serve them from DocumentRoot/examples.

Using Apache Alias and Redirect also fails.

Oddly enough, you can successfully browse
http://yourApacheServerName/examples/images, manually select each image
file, it displays properly, then go back to the jsp with the gifs and all
is
well for the moment.

I've spent a lot of time digging and
trying things with no success.  Any help would be appreciated.

Is Tomcat and Apache incompatible (if someone wants to step out, get crazy
and actually have graphics in a web page)?

Thanks

_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Java servlet

2002-03-06 Thread KC Berg

I downloaded the tomcat binary untared it and set JAVA_HOME to the location
of my JDK and it worked right away. I have never tried the rpm but the
binaries worked great. I am running red hat 7.2 with the same version of
tomcat as you. 

-Original Message-
From: Jianping Zhu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: Java servlet 




I have redhat 7.2, I want to run java servelet on it by using the engine
tomcat, I have downloaded tomcat4-4.0.1-1.noarch.rmp,
tomcat4-4.0.1.src.rmp, tomcat4-manual-4.0.1.noarch.rmp and
tomcat4-webapps-4.01-1.noarch.rmp and installed them but I can get them
work.

can anyone give a suggestion.

Thanks


Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Anyone running Apache-mod_jk chrooted? (Was Re: AW: mod_jk failsin

2002-03-06 Thread Rohan Oberoi

Thanks, but I'm sure that's not the reason.  I can start up Tomcat and
Apache and verify that Apache loads JSPs correctly via Tomcat (through
either AJP12 or AJP13 on 8007 or 8009).  Then, when I restart Apache
chrooted, I can't load the JSPs and mod_jk.log shows these errors.  The
only difference is that Apache is now running chrooted.  Tomcat is still
listening on 8007 and 8009 (and is not logging any connections).

I can't believe chrooting Apache is uncommon, but I can't see any
reference to this problem in the docs.  Can anyone who has a working
chrooted Apache-mod_jk configuration please send any setup tips to the
list, or to me by email?

Thanks much,
Rohan.




On Tue, 5 Mar 2002, Ralph Einfeldt wrote:


 errno 111 = connection refused

 I don't know all reasons for this error message. But one
 reason is, that there is no service listening on the given
 port.

 I guess that the java part of the connector is not running.

  -Ursprüngliche Nachricht-
  Von: Rohan Oberoi [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 5. März 2002 00:58
  An: [EMAIL PROTECTED]
  Betreff: mod_jk fails in chrooted environment
 snip/
  [Mon Mar 04 20:02:44 2002]  [jk_connect.c (143)]: jk_open_socket,
  connect() failed errno = 111
  [Mon Mar 04 20:02:44 2002]  [jk_ajp12_worker.c (152)]: In
  jk_endpoint_t::service, Error sd = -1
 snip/

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HOW TO start tomcat on linux boot

2002-03-06 Thread Gustavo Souza

hello, im trying to start tomcat on linux boot...

but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local

it only works when I type it on prompt..

anyone can help ?

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: HOW TO start tomcat on linux boot

2002-03-06 Thread Brett Porter

Is CATALINA_HOME set?
IS JAVA_HOME set?
what about CATALINA_BASE?

Also, I don't personally like running things as root - you might want to
install your webapps as another user (I just called it appuser), and su to
that before executing tomcat.

- Brett

-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 9:52 AM
To: Tomcat Users List
Subject: HOW TO start tomcat on linux boot


hello, im trying to start tomcat on linux boot...

but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local

it only works when I type it on prompt..

anyone can help ?

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



Re: [TC4.01] Session Not Established on Mac IE?

2002-03-06 Thread Robin Lee

Hello, I have had this happen to me as well.  The person who is helping me
in production with the web site cannot log on via IE on her Mac as well (OS
9 i believe)... She has no problem though using Netscape on her Mac to the
web page (it is Tomcat 4.0.1, now 4.0.2)... Her netscape is 6 i believe...

I never had a chance to look into it, but at least someone else is
experiencing this problem too...  I hope someone out there may know how to
handle this problem.

- Original Message -
From: Scott Jones [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 06, 2002 2:26 PM
Subject: [TC4.01] Session Not Established on Mac IE?


 Hello,

 I just got off the phone with the first person using Mac OS to use our
 website since we upgraded to Tomcat 4.0.1 (from Tomcat 3.3).  He was
 unable to log into our site using Internet Explorer 5 on OS 9.  We still
 had an instance on a development machine that used Tomcat 3.3, on which
 he experienced no problems.

 It appears that his session is never getting established at all -- my
 first thought was that he might have cookies disabled (I do not do URL
 rewriting currently, although that would probably fix the problem).
 After having him try our Tomcat 3.3 instance, it was clear that cookies
 are enabled, so that isn't the problem.

 My only other thought is that the JSESSIONID is a lot larger on Tomcat 4
 -- is it possible that Mac IE5 cannot accept cookies that are longer
 than a certain amount?

 Unfortunately, I don't have a Mac here to play with so that I could
 really help track this down -- has anyone else experienced anything like
 this?

 Thanks!

 -Scott


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Java servlet

2002-03-06 Thread Jianping Zhu

Thank you for your advice, I also have downloaded the binary. But I have
trouble to sent the JAVA_HOME. i set JAVA_HOME by adding two lines to
/etc/profile:
JAVA_HOME=/usr/javadir/bin:$JAVA_HOME
export JAVA_HOME

and i source profile after the change and it was ok
But when i try to start servlet (./startup.sh)
I got error message: JAVA_HOME is not defined

How can i fix this problem, Thanks.


On Wed, 6 Mar 2002, KC Berg wrote:

 I downloaded the tomcat binary untared it and set JAVA_HOME to the location
 of my JDK and it worked right away. I have never tried the rpm but the
 binaries worked great. I am running red hat 7.2 with the same version of
 tomcat as you. 
 
 -Original Message-
 From: Jianping Zhu [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 06, 2002 3:27 PM
 To: [EMAIL PROTECTED]
 Subject: Java servlet 
 
 
 
 
 I have redhat 7.2, I want to run java servelet on it by using the engine
 tomcat, I have downloaded tomcat4-4.0.1-1.noarch.rmp,
 tomcat4-4.0.1.src.rmp, tomcat4-manual-4.0.1.noarch.rmp and
 tomcat4-webapps-4.01-1.noarch.rmp and installed them but I can get them
 work.
 
 can anyone give a suggestion.
 
 Thanks
 
 
 Jianping Zhu
 Department of Computer Science
 Univerity of Georgia 
 Athens, GA 30602
 Tel 706 5423900
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache 1.3.23 | mod_ssl 2.8.7 | tomcat 4.0 | webapp module

2002-03-06 Thread Sean Heshmati

I have a single host running multiple instances of
tomcat. I have configured each instance of tomcat with
the warp connector one on port 8008 and the other on
port 8009. I am trying to configure apache/ssl to
connect to both instances of tomcat using the webapp
module but I am getting a error in apaches error logs
stating Cannot deploy application app1. Here is what
my apache configs look like...

WebAppConnection conn  warplocalhost:8009
WebAppDeploysoap conn /soap
WebAppConnection conn1  warplocalhost:8008
WebAppDeploy   app1  conn1/app1

I would like to provide access to both of these
webapps through port 80 and 443.


Thanks in advance


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




how to set env varible

2002-03-06 Thread Jianping Zhu

I have redhat 7.2.
I am istalling tomcat which need an env varible JAVA_HOME point to JDK
I need to set an env varible JAVA_HOME point to directoy /usr/java

I did this by adding 2 line to etc/profile

JAVA_HOME=/usr/java:$JAVA_HOME
export JAVA_HOME

I used source profile, it's fine.
But I try to start tomcat, it gives me error message:
JAVA_HOME env varible is not defined 



Any suggetion?
Thanks

Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: how to set env varible

2002-03-06 Thread Adam Myatt

Try:

JAVA_HOME=/usr/java
export JAVA_HOME


 - Adam

At 06:23 PM 3/6/02 -0500, you wrote:
I have redhat 7.2.
I am istalling tomcat which need an env varible JAVA_HOME point to JDK
I need to set an env varible JAVA_HOME point to directoy /usr/java

I did this by adding 2 line to etc/profile

JAVA_HOME=/usr/java:$JAVA_HOME
export JAVA_HOME

I used source profile, it's fine.
But I try to start tomcat, it gives me error message:
JAVA_HOME env varible is not defined 



Any suggetion?
Thanks

Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: how to set env varible

2002-03-06 Thread Dahnke, Eric


This has always been a question of mine too. You've got to get the modified
environment variables (JAVA_HOME, CATALINA, etc) to the user session
starting Tomcat.

Often times I've had to reboot as all users get the env variables read to
them from /etc/profile at startup. Hope that answers your question. 

Is there not a way on linux (*nix) to broadcast new system wide environment
variables w/o logging out (that user) or su'ing to that user and manually
running export JAVA_HOME=/usr/java..

HTH

-Original Message-
From: Jianping Zhu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 6:24 PM
To: [EMAIL PROTECTED]
Subject: how to set env varible 


I have redhat 7.2.
I am istalling tomcat which need an env varible JAVA_HOME point to JDK
I need to set an env varible JAVA_HOME point to directoy /usr/java

I did this by adding 2 line to etc/profile

JAVA_HOME=/usr/java:$JAVA_HOME
export JAVA_HOME

I used source profile, it's fine.
But I try to start tomcat, it gives me error message:
JAVA_HOME env varible is not defined 



Any suggetion?
Thanks

Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Help: Logging username (j_username) during login attempt

2002-03-06 Thread Rob Cartier

I got my login working with SSL and for now the use of the 
tomcat-users.xml file


 I would like to log all login failed attempts .

What is the best way to capture the information

I only need the username from the j_username failed attempts
succesful logins are loaded into the cgi variables but
failed ones are lost :(

I am able to get the rest that I want from the cgi variables 

Any and all help would be appreciated

Robert Cartier 
112 Fieldbrook Rd 
Middletown, Ct. 06457-1746 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: HOW TO start tomcat on linux boot

2002-03-06 Thread Mike Millson

What distro of Linux are you using?

Mike

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:57 PM
To: 'Tomcat Users List'
Subject: RE: HOW TO start tomcat on linux boot


Is CATALINA_HOME set?
IS JAVA_HOME set?
what about CATALINA_BASE?

Also, I don't personally like running things as root - you might want to
install your webapps as another user (I just called it appuser), and su to
that before executing tomcat.

- Brett

-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 March 2002 9:52 AM
To: Tomcat Users List
Subject: HOW TO start tomcat on linux boot


hello, im trying to start tomcat on linux boot...

but $CATALINA_HOME/bin/startup.sh didnt work on the rc.local

it only works when I type it on prompt..

anyone can help ?

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?

2002-03-06 Thread Micael Padraig Og mac Grene

Can you give a bit more information, Brandon?  Which Linux? What JVM?  Etc.?

At 02:32 PM 3/6/02 -0600, you wrote:
This is probably a problem with our application, but does anyone know of any
possible misconfiguration or anything that will cause a very slow increase
in the amount of memory that Tomcat is using on Linux?  If nobody has had a
similar experience, what about possible solutions to tracking down the cause
of this slow memory usage increase?  We have hundreds of classes to search.
Is there a tool or anything to help us out?

Any help is GREATLY appreciated!!!

Brandon


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?

2002-03-06 Thread Brandon Cruz

I am using Linux RedHat 7.1, Sun JDK 1.3.1_01.  Actually, it looks like it
has gone down a bit.  The memory was slowly growing all day today, up to
about 80MB for java.  It has gone back down a bit, so hopefully that means
that something (gc) is working.

Do those numbers sound right for an application that is mostly jsp's, and
usually has around 15-20 concurrent database connections?  Sessions are
stored for each user as well.

Maybe that's what I should be expecting???


-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 6:58 PM
To: Tomcat Users List
Subject: Re: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?


Can you give a bit more information, Brandon?  Which Linux? What JVM?  Etc.?

At 02:32 PM 3/6/02 -0600, you wrote:
This is probably a problem with our application, but does anyone know of
any
possible misconfiguration or anything that will cause a very slow increase
in the amount of memory that Tomcat is using on Linux?  If nobody has had a
similar experience, what about possible solutions to tracking down the
cause
of this slow memory usage increase?  We have hundreds of classes to search.
Is there a tool or anything to help us out?

Any help is GREATLY appreciated!!!

Brandon


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: WebDAV (NEWBIE Question!)

2002-03-06 Thread Toru Watanabe

Hi!

regarding WebDAV, you should see jakarta-slide project
first. 
there are worth of FAQs about using WebDAV with tomcat.

regards,
Watanabe

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat Not Picking Up Changes

2002-03-06 Thread Steve

Hi;

I'm using Tomcat 3.2 on Red Hat 7.2 with the jdk 1.3.1_02

I've noticed that when I make javascript changes to the jsp pages that 
tomcat will not pick up the changes/use the newer version of the file 
after I blow my cache and restart tomcat.

I can force tomcat to do so in this situation by making a minor change 
to the html on the page.

Anyone know what is going on and how to get around it?

Thanks in advance

Steve


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[SECURITY] More information on Tomcat 4.0.3

2002-03-06 Thread Remy Maucherat

After additional review, it has been discovered that the security bug fixed
in Tomcat 4.0.3 was more severe than originally though, and can be used to
remotely browse the server filesystem.

To exploit this bug, an attacker would require that some user modifiable
data (like a form POST data, or a URL) is directly used by a servlet or JSP
in a request dispatcher forward or include.

It can be hard to determine if an installation of Tomcat is vulnerable to
this exploit, as it depends on the web applications installed.
IMPORTANT NOTE: The default Tomcat installation is NOT vulnerable to this
bug.

Because of this, it is HIGHLY recommended that all Tomcat 4.0.x users
either:
- Apply the binary patch which is available at
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/bin/hotfi
x/ Note: This particular patch can be applied on all official 4.0.x releases
(including 4.0, 4.0.1 and 4.0.2).
- Upgrade to Tomcat 4.0.3.
- Upgrade to Tomcat 4.0.4 Beta 1.

Bugzilla report on this problem:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6772

Remy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with mod_webapp

2002-03-06 Thread Buck Woodson

Thanks, Peter.  I too tried this Sun article route without success on WIN2K. 
  Win2K doesn't like the virtual host business at all.  The other article I 
quoted works in Win2K except for the serving gifs etc. problem.  Its not 
strictly a directory problem either, having the gif in the same path as the 
jsp you have the same problem.  With Tomcat by itself, no problem.

You can't even hang the gif directory off of Apache's DocumentRoot and see 
it work like you'd want it to.

Here is the Apache access log to the typical failed service:
ipAddress - - [06/Mar/2002:16:27:14 -0600] GET /examples/images/code.gif 
HTTP/1.1 500 305

Here is the access log to the kluge direct navigate and back-navigate:
ipAddress - - [06/Mar/2002:16:27:14 -0600] GET 
/examples/images/execute.gif HTTP/1.1 304 0

Sorry I failed to mention the Windows 2000.


From: Peter Johnson [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with 
mod_webapp
Date: Thu, 7 Mar 2002 09:24:01 +1100 (EST)

I followed the site below and all works ok. Basically it describes some 
simple changes to
be made in server.xml

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

Peter

  Set up these as per this URL, JSP will be functional but no gifs in  
examples:
  http://www.webmasterbase.com/article.php?pid=44aid=305
 
  Then go to
 
  http://yourApacheServerName/examples/jsp/index.html
 
  Images don't serve from Apache nor from Tomcat.
 
  Apache thinks it should serve them from DocumentRoot/examples.
 
  Using Apache Alias and Redirect also fails.
 
  Oddly enough, you can successfully browse
  http://yourApacheServerName/examples/images, manually select each 
image  file, it
  displays properly, then go back to the jsp with the gifs and all is  
well for the
  moment.
 
  I've spent a lot of time digging and
  trying things with no success.  Any help would be appreciated.
 
  Is Tomcat and Apache incompatible (if someone wants to step out, get 
crazy  and
  actually have graphics in a web page)?
 
  Thanks
 
  _
  MSN Photos is the easiest way to share and print your photos:
  http://photos.msn.com/support/worldwide.aspx
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED] 
For additional
  commands: mailto:[EMAIL PROTECTED] Troubles with the 
list:
  mailto:[EMAIL PROTECTED]



-
This email was sent using SquirrelMail.
Webmail for nuts!
http://squirrelmail.org/



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




W2K/IIS - Tomcat Authenication

2002-03-06 Thread Loo, Jason

A VERY detailed explanation of the problem can be found here.  
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg43337.html

Unfortunately I failed to find response.

In short, I'm looking for a solution to allow Tomcat to handle BASIC
Authentication while utilizing W2K/IIS as a web proxy server.

Its not my preference to make use of IIS, but I can't seem to get Tomcat to
bind to a specific IP/PORT on a system with multiple IPs while allowing IIS
to service the remaining IPs.

ANY help is greatly appreciated.  Thank you.



Writing beans

2002-03-06 Thread Uma Maheswar

Hi,
I need help writing a bean inside my JSP programme. I am also attaching my JSP 
programme, please check it and do the need ful changes.


% page 
import=java.sql.*,java.io.*,javax.servlet.*,javax.servlet.http.*,java.util.* %

html
%!
 String iam,seeking,lookingfor,firstname,lastname,address,city,state,country,email;
 String userid,password1,password2,newsletter,offers,totdate;
 int slno,pincode,phone,count=0,month,date,year;
 Connection con = null;
 Statement st,st1;
 ResultSet rs,rs1;
 Calendar cal;
 java.sql.Date sqlDate;
%
%
 try
 {

  Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  con = DriverManager.getConnection(jdbc:odbc:umasql,sa,bhavanid);
  st = con.createStatement();
  st1 = con.createStatement();

  firstname = request.getParameter(firstname);
  lastname = request.getParameter(lastname);
  address = request.getParameter(address);
  city = request.getParameter(city);
  state = request.getParameter(state);
  country = request.getParameter(country);
  pincode = Integer.parseInt(request.getParameter(zipcode));
  email = request.getParameter(email);
  phone = Integer.parseInt(request.getParameter(phone));

  userid = request.getParameter(nickname);
  password1 = request.getParameter(password1);
  password2 = request.getParameter(password2);
  newsletter = request.getParameter(newsletter);
  offers = request.getParameter(offers);

  rs1 = st1.executeQuery(select * from Dating_Register where nickname='+userid+' );
  out.println(htmlhead);
  out.println(/head); 

  if(rs1.next())
  {
   out.println(h4font color=redSorry the user already exists/font/h4);
   //printContent();
  }
  else if(!(password1.equals(password2)))
  {
   out.println(h4font color=redPlease type both the passwords same/font/h4);
   //printContent();
  }
  else
  {

   String inserting = insert into Dating_Register 
values(+count+,'+iam+','+seeking+','+lookingfor+','+firstname+','+lastname+','+address+','+city+','+state+','+country+',+pincode+,'+email+',+phone+,+sqlDate+,'+userid+','+password1+','+password2+','+newsletter+','+offers+');

   int x = st1.executeUpdate(inserting);

   out.println(centerbRegistered Successfully/b/center);
   out.println(form name=login action='/servlet/Login' method='post');
   out.println(tabletrtdNickname:/tdtdinput type=text name=userid 
size=15/td/tr);
   out.println(trtdPassword:/tdtdinput type=password name=pass 
size=15/td/tr/table);
   out.println(input type=submit value='Login' name=loginnbsp;input type=reset 
value='Reset' name=reset);
   out.println(/form);

  }

 }
 catch(Exception e)
 {
  e.printStackTrace();
 }
%

%!


 public void printContent()
 {

  This is my bean code, It is a big code, so I am not pasting it here.
   It is actually recalling the HTML page when the user already exists or the password 
is not valid. Do, I have to say out.println statement for each and every HTML line?
 }






%
/body
/html


Thank you,
Regards
Uma



Re: Writing beans

2002-03-06 Thread Matt Egyhazy

this mailing list isnt one where we do your homework or code for your job,
at least, i dont.  anyway, what you have pasted is a misuse of jsp.  i
suggest buying a j2ee book, the wrox ones are good.  from your description,
i dont think you really want to use a bean to do this...

matt

- Original Message -
From: Uma Maheswar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 06, 2002 11:15 AM
Subject: Writing beans


Hi,
I need help writing a bean inside my JSP programme. I am also attaching my
JSP programme, please check it and do the need ful changes.


%@ page
import=java.sql.*,java.io.*,javax.servlet.*,javax.servlet.http.*,java.util.
* %

html
%!
 String
iam,seeking,lookingfor,firstname,lastname,address,city,state,country,email;
 String userid,password1,password2,newsletter,offers,totdate;
 int slno,pincode,phone,count=0,month,date,year;
 Connection con = null;
 Statement st,st1;
 ResultSet rs,rs1;
 Calendar cal;
 java.sql.Date sqlDate;
%
%
 try
 {

  Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  con = DriverManager.getConnection(jdbc:odbc:umasql,sa,bhavanid);
  st = con.createStatement();
  st1 = con.createStatement();

  firstname = request.getParameter(firstname);
  lastname = request.getParameter(lastname);
  address = request.getParameter(address);
  city = request.getParameter(city);
  state = request.getParameter(state);
  country = request.getParameter(country);
  pincode = Integer.parseInt(request.getParameter(zipcode));
  email = request.getParameter(email);
  phone = Integer.parseInt(request.getParameter(phone));

  userid = request.getParameter(nickname);
  password1 = request.getParameter(password1);
  password2 = request.getParameter(password2);
  newsletter = request.getParameter(newsletter);
  offers = request.getParameter(offers);

  rs1 = st1.executeQuery(select * from Dating_Register where
nickname='+userid+' );
  out.println(htmlhead);
  out.println(/head);

  if(rs1.next())
  {
   out.println(h4font color=redSorry the user already
exists/font/h4);
   //printContent();
  }
  else if(!(password1.equals(password2)))
  {
   out.println(h4font color=redPlease type both the passwords
same/font/h4);
   //printContent();
  }
  else
  {

   String inserting = insert into Dating_Register
values(+count+,'+iam+','+seeking+','+lookingfor+','+firstname+','
+lastname+','+address+','+city+','+state+','+country+',+pincode+,
'+email+',+phone+,+sqlDate+,'+userid+','+password1+','+password2+
','+newsletter+','+offers+');

   int x = st1.executeUpdate(inserting);

   out.println(centerbRegistered Successfully/b/center);
   out.println(form name=login action='/servlet/Login' method='post');
   out.println(tabletrtdNickname:/tdtdinput type=text
name=userid size=15/td/tr);
   out.println(trtdPassword:/tdtdinput type=password name=pass
size=15/td/tr/table);
   out.println(input type=submit value='Login' name=loginnbsp;input
type=reset value='Reset' name=reset);
   out.println(/form);

  }

 }
 catch(Exception e)
 {
  e.printStackTrace();
 }
%

%!


 public void printContent()
 {

  This is my bean code, It is a big code, so I am not pasting it here.
   It is actually recalling the HTML page when the user already exists or
the password is not valid. Do, I have to say out.println statement for
each and every HTML line?
 }






%
/body
/html


Thank you,
Regards
Uma


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Not Picking Up Changes

2002-03-06 Thread Ofur-Bjarni

Yes this happened to me as well, allthough it was a tag class I changed.
You can force tomcat to recompile the page by deleting files in the
directory: $tomcathome/work/[server_name]/[application_name]/
At least this is the directory strucure in tomcat 4.0

cheers,
Bjarni

-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: 7. mars 2002 01:22
To: [EMAIL PROTECTED]
Subject: Tomcat Not Picking Up Changes


Hi;

I'm using Tomcat 3.2 on Red Hat 7.2 with the jdk 1.3.1_02

I've noticed that when I make javascript changes to the jsp pages that
tomcat will not pick up the changes/use the newer version of the file
after I blow my cache and restart tomcat.

I can force tomcat to do so in this situation by making a minor change
to the html on the page.

Anyone know what is going on and how to get around it?

Thanks in advance

Steve


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: how to set env varible

2002-03-06 Thread Jayson Yu

Here's a short script that may help you:

start of tomcat4.sh
#!/bin/sh -
#
# TOMCAT STARTUP CONFIG

# YOU CAN TAKE THIS OFF, IF YOU DONT WANT TO KILL OTHER
# TOMCAT INSTANCES PRIOR TO LOADING..
killall java

#FORCE THE APP TO START IN THE WEB APPS DIRECTORY
#DONE SO THE APPS CAN READ CONFIG FILES IN THAT DIR
cd /data2/apps/jakarta-tomcat-4.0.1/webapps

export TOMCAT_HOME=/data2/apps/jakarta-tomcat-4.0.1
export JAVA_HOME=/usr/java/jdk1.3.1_01

if [ -x ${TOMCAT_HOME}/bin/startup.sh ]; then
 ${TOMCAT_HOME}/bin/startup.sh  /dev/tty11
 echo 'Tomcat 4.0.1 Started.'
fi
--- end of tomcat4.sh ---

dont forget to do a chmod +x tomcat4.sh to make it executable.

json



At 06:23 PM 3/6/02 -0500, you wrote:
I have redhat 7.2.
I am istalling tomcat which need an env varible JAVA_HOME point to JDK
I need to set an env varible JAVA_HOME point to directoy /usr/java

I did this by adding 2 line to etc/profile

JAVA_HOME=/usr/java:$JAVA_HOME
export JAVA_HOME

I used source profile, it's fine.
But I try to start tomcat, it gives me error message:
JAVA_HOME env varible is not defined



Any suggetion?
Thanks

Jianping Zhu
Department of Computer Science
Univerity of Georgia
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat vs CPU

2002-03-06 Thread Moi
Does anybody clue me in thsi situation?
Plus,in below situation ,when I shutdoun Tomcat4,seems after
shutting down there are some Java processes still remains.
After killing them by kill PID,
Cpu State is becoming normal.
Please help,any hints will be welcomed.

Moi wrote:

 Suddenly,when I saw Current System Resources in Linux with top
 command I found out that Tomcat4 eats 96% of CPU.In regular days it eats
 only 3%.
 Dear gurus.
 What can be the reason and how I solve it?
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


BASIC Authentication Question

2002-03-06 Thread Mark Shaw

I'm hoping someone can shed some light on a particular behavior I'm
experiencing with BASIC authentication and session cookies:
 
I've set up my servlet to use BASIC authentication and I'm my own very
simple realm implementation:
  protected String getPassword(String username) { return tomcat; }
  protected Principal getPrincipal(String username) {
List roles = new ArrayList();
roles.add(test);
return new GenericPrincipal(this, tomcat, tomcat, roles);
  } 
 
I have a Java client that connects to my servlet via a URL connection,
identical to the code in org.apache.catalina.ant.AbstractCatalinaTask,
passing in tomcat for user and password in the first request which works
great!  In subsequent requests I pass back the sessionID (in a cookie
labeled jsessionid...) instead of the BASIC authentication, but my request
fails [This request requires HTTP authentication (Unauthorized)] although
my session ID is recognized by the servlet.  I figured my initial
authentication was cached so that I only needed to send the session ID and
not pass the authentication string in the header each time - this seems to
be the behavior of the Manager App when I dump its Request/Response headers.
Any ideas how I can accomplish this from a Java client: only sending
authentication once, then using the session ID cookie from then on?  What's
even stranger is that if I pass both the BASIC authentication header and my
session ID every time it works great and my session is recognized, but my
realm methods (see above) are never called, so the authentication must be
stashed somewhere?
 
Thanks for any help,
-Mark



client side object to server side

2002-03-06 Thread Henry

I have defined some client side objects using javascript, these objects' number and 
value varies during the interaction with users. But when the user submit the form, I 
want an easy way to send the objects to the server (servlet, say).

I am wondering this is doable by having a hidden field which the value is the object 
(rather than a string or a number)?

thanx in advance.



Re: BASIC Authentication Question

2002-03-06 Thread Craig R. McClanahan



On Wed, 6 Mar 2002, Mark Shaw wrote:

 Date: Wed, 6 Mar 2002 22:37:17 -0800
 From: Mark Shaw [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: BASIC Authentication Question

 I'm hoping someone can shed some light on a particular behavior I'm
 experiencing with BASIC authentication and session cookies:

 I've set up my servlet to use BASIC authentication and I'm my own very
 simple realm implementation:
   protected String getPassword(String username) { return tomcat; }
   protected Principal getPrincipal(String username) {
 List roles = new ArrayList();
 roles.add(test);
 return new GenericPrincipal(this, tomcat, tomcat, roles);
   }

 I have a Java client that connects to my servlet via a URL connection,
 identical to the code in org.apache.catalina.ant.AbstractCatalinaTask,
 passing in tomcat for user and password in the first request which works
 great!

One of the best aspects of open source ... you can see what worked for
somebody else :-).

  In subsequent requests I pass back the sessionID (in a cookie
 labeled jsessionid...) instead of the BASIC authentication, but my request
 fails [This request requires HTTP authentication (Unauthorized)] although
 my session ID is recognized by the servlet.  I figured my initial
 authentication was cached so that I only needed to send the session ID and
 not pass the authentication string in the header each time - this seems to
 be the behavior of the Manager App when I dump its Request/Response headers.
 Any ideas how I can accomplish this from a Java client: only sending
 authentication once, then using the session ID cookie from then on?  What's
 even stranger is that if I pass both the BASIC authentication header and my
 session ID every time it works great and my session is recognized, but my
 realm methods (see above) are never called, so the authentication must be
 stashed somewhere?


When you use BASIC authentication, Tomcat 4 currently expects that you
will include the Authorization header on every request, even though it
does cache the authenticated Principal when you are in a session.
Looking at the specs (http://www.ietf.org/rfc/rfc2617.txt, it is not
stated that this is required, so this behavior could probably be relaxed
(when within a session) without ill effects.

One possibly negative side effect would be the case where the server's
user database changes the password for this username (or removes it
entirely) -- the previous authentication would still work for the duration
of the current session.  That's what happens already with form-based
login, so it's probably ok.

Could you please post this as an enhancement request to our bug tracking
system (http://nagoya.apache.org/bugzilla) to make sure it does not get
lost?

 Thanks for any help,
 -Mark


Craig

PS:  Has anyone had any success trying to force a logout (and subsequent
re-authentication)  of a BASIC authentication when the current session is
invalidated or times out, without requiring that the user close down and
restart the browser?  It would be very useful in Servlet 2.4 to know
whether or not this is techically feasible -- if it is, we can think about
mandating it as standard behavior so that applications do not have to care
which login method is being used.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: client side object to server side

2002-03-06 Thread Kurt Kurniawan

as far as i know servlet only retrieve String as a return from getParameter(...) 
method. Plz refer to servlet docs. You can easily find it in tomcat homepage !

*
- NOTICE -
The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you 
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message 
and any attachments for viruses.  Under no circumstances do we accept 
liability for any loss or damage which may result from your receipt of 
this message or any attachments.
*


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[TC4.01] Session Not Established on Mac IE?

2002-03-06 Thread Steven Elliott

On 07/03/02 0:50, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 From: Scott Jones [EMAIL PROTECTED]
 Date: 06 Mar 2002 13:26:47 -0800
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: [TC4.01] Session Not Established on Mac IE?
 
 Hello,
 
 I just got off the phone with the first person using Mac OS to use our
 website since we upgraded to Tomcat 4.0.1 (from Tomcat 3.3).  He was
 unable to log into our site using Internet Explorer 5 on OS 9.  We still
 had an instance on a development machine that used Tomcat 3.3, on which
 he experienced no problems.
 
 It appears that his session is never getting established at all -- my
 first thought was that he might have cookies disabled (I do not do URL
 rewriting currently, although that would probably fix the problem).
 After having him try our Tomcat 3.3 instance, it was clear that cookies
 are enabled, so that isn't the problem.
 
 My only other thought is that the JSESSIONID is a lot larger on Tomcat 4
 -- is it possible that Mac IE5 cannot accept cookies that are longer
 than a certain amount?
 
 Unfortunately, I don't have a Mac here to play with so that I could
 really help track this down -- has anyone else experienced anything like
 this?
 
 Thanks!
 
 -Scott

I just checked IE 5.0 running on MacOS 9.0 accessing TC 4.0.1 (no URL
rewrite).  The JSESSIONID returned from HttpSession.getId() and (from the
browser side) the JSESSIONID returned from the JavaScript document.cookie
are exactly the same.  The same test might give you some insight.

HTH

Steven Elliott   [EMAIL PROTECTED]
Systems Integrator
Interactive Tecnologia, Lda.
LisbonPortugal
-- 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]