Startup error

2002-10-15 Thread Mihai Gheorghiu

TC4.0.2 jdk1.4.1 RH7.1
Everything went fine until this morning, when TC stopped loading my
application when started.
Catalina.out shows:

ERROR reading java.io.FileInputStream@88e2dd
At Line 2340 /web-app/servlet-mapping

It seems to come from web.xml, because if I add a blank line, the error line
changes.
But I cannot figure out why: line 2340 is
/servlet-mapping
and closes a well-formatted servlet-mapping declaration.
Please help.
Thank you all.


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




Server memory usage

2002-09-02 Thread Mihai Gheorghiu

TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM
When I start TC, I find 28 Java processes for a total of 829MB used.
Is there a way to make it use less memory, so that it runs only out of RAM?
Thank you all.



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




Re: Server memory usage

2002-09-02 Thread Mihai Gheorghiu

I checked with ps -Al and I understand what you wrote.
I used Gnome System Monitor - Memory usage (resident).
Is it making the same mistake?

-Original Message-
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Monday, September 02, 2002 11:07 AM
Subject: Re: Server memory usage


In linux - threaded processes show up multiple times in top (or ps).
Once entry for each thread. Summing the entries in top will yield an
incorrect memory usage. Just take one of the entries to get the amount
of memory used by java. (Unless you have multiple real java processes
running, in which case, use the parent process id to figure things out)

Mihai Gheorghiu wrote:
 TC4.0.4, jdk1.4.0_01, RH7.3 on P3-633MHz, 256MB RAM
 When I start TC, I find 28 Java processes for a total of 829MB used.
 Is there a way to make it use less memory, so that it runs only out of
RAM?
 Thank you all.





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



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




Please have a look at this log

2002-05-20 Thread Mihai Gheorghiu

The following is from localhost_access_log:
x.y.z.129 - - [20/May/2002:15:16:31 -0500] POST
/TAN/servlet/tanback/DoGetTrxPosted HTTP/1.1 200 18375
x.y.z.129 - - [20/May/2002:15:16:31 -0500] GET /TAN/tan/images/minipage.gif
HTTP/1.1 200 844
x.y.z.129 - - [20/May/2002:15:16:31 -0500] GET /TAN/tan/images/minipage.gif
HTTP/1.1 200 844
x.y.z.129 - - [20/May/2002:15:16:33 -0500] GET /TAN/tan/images/letter.gif
HTTP/1.1 200 1468
x.y.z.129 - - [20/May/2002:15:16:33 -0500] GET /TAN/tan/images/master.gif
HTTP/1.1 200 1322
x.y.z.129 - - [20/May/2002:15:16:35 -0500] POST
/TAN/servlet/tanback/DoGetTrxPosted HTTP/1.1 200 18375
x.y.z.129 - - [20/May/2002:15:16:35 -0500] GET /TAN/tan/images/minipage.gif
HTTP/1.1 200 844
x.y.z.129 - - [20/May/2002:15:16:35 -0500] GET /TAN/tan/images/minipage.gif
HTTP/1.1 200 844
x.y.z.129 - - [20/May/2002:15:16:37 -0500] GET /TAN/tan/images/letter.gif
HTTP/1.1 200 1468
x.y.z.129 - - [20/May/2002:15:16:37 -0500] GET /TAN/tan/images/master.gif
HTTP/1.1 200 1322
The entire log looks very much like this. Does this mean that the
application calls the backend twice? I guess I'm doing something wrong.
What?
Thank you all.



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




Re: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Mihai Gheorghiu

I do the following (call it whatever you want :-|, the reasons are beyond
technical):
I have an applet that calls the servlet that generates the pdf stream. The
applet then saves the stream as a file on the local HDD and opens the file
with Acrobat Reader. Of course you need to check whether the file is already
there, open etc.
HTH

-Original Message-
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, May 14, 2002 12:01 PM
Subject: REPOST: Problems serving PDF to Netscape browsers


I've made no progress on this, so let's try again. My dynamic
PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
having problems with Netscape (ver 4 and 6) and the Acrobat
(ver 4 and 5) plugin. I've tried this on various client machines.

With both NS4 and NS6, I just get a blank screen when I request
my dynamic PDF. They don't even show the Acrobat toolbar. The
similarities end there.

In NS4, the first request does not launch the AcroRd32.exe
process. In fact, it fails to read the entire output of the
servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
to the logs. If I hit Reload, however, I get my PDF and the
plugin works. According to the Apache logs, the first unsucessful
request returns 6144 of 21212 bytes before the broken pipe. On
the Reload, the Apache log shows TWO requests returning the
full 21212 bytes and Netscape displays it in the plugin.

In NS6, the first request DOES launch the plugin executable, but
that's as far as it gets. Reload doesn't help. My Apache server
reports the correct number of bytes for the full PDF request, so the
data seems to be getting to the browser. No exceptions are thrown
by Tomcat.

In both NS4 and NS6, it works if I configure Acrobat to be launched
as an external application instead of a plugin. But it is not a
viable option to impose that configuration on our customers.

I use a servlet mapping that sends requests for xxx.pdf to my
servlet, thus the browser sees a .pdf filename. I also use
setContentType(application/pdf). There are known problems
with MSIE and unknown ContentLength with PDF so I create the
PDF in a ByteArrayOutputStream so I can know and set the
ContentLength before writing to response.getOutputStream().

To take the dynamic nature of the PDF out of the equation, I was
able to reproduce these problems --sometimes-- when serving static
PDF files via Tomcat.


- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 1:44 PM
Subject: Problems serving PDF to Netscape browsers


 I'm running out of hair to pull out here...

 My ultimate goal is to serve dynamically generated
 PDF documents generated with iText. I've got it working
 just fine with MSIE. However, I was just getting blank
 pages with Netscape (and it wasn't even showing the toolbar
 for Acrobat). With NS6 I could at least see that it started
 an AcroRd32.exe process, but NS4 didn't even get that far.

 So, I did some tests to rule out some variables. I grabbed
 a handful of pre-generated PDF files and stuck them on
 my Apache 1.3.23 server. All browsers could display the
 PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
 same files directly without going through Apache. MSIE worked,
 but both NS browsers gave a blank page with no Acrobat plugin
 toolbar. Again NS6 managed to start an Acrobat process, NS4
 didn't.

 My production environment is Apache 1.3.23 and Tomcat 4.0.3
 connected with mod_jk.



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

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



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




Limit one session from one user

2002-03-22 Thread Mihai Gheorghiu

I want to limit the access of any regular user of the system to only one
session open at a certain moment.
Any suggestions will be highly appreciated.
Thank you all.


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




Re: Waiting for 1 instance(s) to be deallocated

2002-02-19 Thread Mihai Gheorghiu

Same for me:
RH7.1, jdk1.3.1, TC4.0.1
./shutdown.sh results in localhost_log.2002-02-19.txt:
2002-02-19 15:22:38 StandardHost[localhost]: Removing web application at
context path /TAN
2002-02-19 15:22:38 StandardWrapper[/TAN:default]: Waiting for 1 instance(s)
to be deallocated
Please help.
Thank you all.

-Original Message-
From: Stephan Mülhaus [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Tuesday, February 19, 2002 9:36 AM
Subject: RE: Waiting for 1 instance(s) to be deallocated


Oh yes, sorry for that.
Here the complete Line from my errorlog:

2002-02-19 15:13:09
StandardWrapper[/carat:org.apache.catalina.INVOKER.User]: Waiting for 1
instance(s) to be deallocated




At 09:20 19.02.2002 -0500, you wrote:
which message?  you seem to have left that part out.

-Original Message-
From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 8:32 AM
To: Tomcat Users List
Subject: Waiting for 1 instance(s) to be deallocated


Hello everybody,

i need some help with the error message from my errorlog.
I get this errormessage very often after i have edited my servlet, compiled
it and started it again...
The Servlet is running and nothing happens.
How can i prevent this message to be generated?

Thanx in Advance
Stephan


--
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: Waiting for 1 instance(s) to be deallocated

2002-02-19 Thread Mihai Gheorghiu

Thank you very much. It really helped.

-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Date: Tuesday, February 19, 2002 3:30 PM
Subject: RE: Waiting for 1 instance(s) to be deallocated


there was a deadlock that was fixed in 4.0.2 that addressed a similar
problem.

See bugs 5719 and 5747 in bugzilla.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5719

Charlie

 -Original Message-
 From: Mihai Gheorghiu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 19, 2002 3:24 PM
 To: Tomcat Users List
 Subject: Re: Waiting for 1 instance(s) to be deallocated


 Same for me:
 RH7.1, jdk1.3.1, TC4.0.1
 ./shutdown.sh results in localhost_log.2002-02-19.txt:
 2002-02-19 15:22:38 StandardHost[localhost]: Removing web
 application at
 context path /TAN
 2002-02-19 15:22:38 StandardWrapper[/TAN:default]: Waiting
 for 1 instance(s)
 to be deallocated
 Please help.
 Thank you all.

 -Original Message-
 From: Stephan Mülhaus [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Date: Tuesday, February 19, 2002 9:36 AM
 Subject: RE: Waiting for 1 instance(s) to be deallocated


 Oh yes, sorry for that.
 Here the complete Line from my errorlog:

 2002-02-19 15:13:09
 StandardWrapper[/carat:org.apache.catalina.INVOKER.User]:
 Waiting for 1
 instance(s) to be deallocated




 At 09:20 19.02.2002 -0500, you wrote:
 which message?  you seem to have left that part out.
 
 -Original Message-
 From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 19, 2002 8:32 AM
 To: Tomcat Users List
 Subject: Waiting for 1 instance(s) to be deallocated
 
 
 Hello everybody,
 
 i need some help with the error message from my errorlog.
 I get this errormessage very often after i have edited my
 servlet, compiled
 it and started it again...
 The Servlet is running and nothing happens.
 How can i prevent this message to be generated?
 
 Thanx in Advance
 Stephan
 
 
 --
 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]



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




Log files

2002-02-18 Thread Mihai Gheorghiu

TC4.0.2LE on jdk1.4.0 on RH7.2
I wanted to merge the contents of catalina.out and localhost_log.date.txt.
In server.xml I changed localhost_log logger like this:
prefix=catalina. suffix=.out timestamp=false
However, in the logs directory I get a file catalina.date.out
Please help. Any other suggestions how to get all the output in one place?.
Thank you all



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




Re: JAXP

2002-02-15 Thread Mihai Gheorghiu

Is this what you are looking for? I found it included in Poolman.

-Original Message-
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Friday, February 15, 2002 9:40 AM
Subject: Re: JAXP


Not in there.  Probably deprecated forever.

At 09:52 AM 2/14/02 -0500, you wrote:
Hi,
It's in the Sun XML pack (among other places), at
http://java.sun.com/xml/downloads/javaxmlpack.html

Yoav Shapira


[EMAIL PROTECTED] wrote:
 
  I got it about 6 months ago and you're right, I can't
seem
  to find it again.
 
 
  Where did you find jaxp.jar, if you
 did?  I
  have been looking everywhere

--
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]




jaxp.jar
Description: Binary data

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


Re: JAXP -- File had a virus.

2002-02-15 Thread Mihai Gheorghiu

Please check this:
http://www.sophos.com/virusinfo/analyses/exceedinglyinfected.html
I checked my computer with Norton Antivirus using 2/14 definitions and it
found nothing.
Which one is right?

-Original Message-
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Friday, February 15, 2002 10:19 AM
Subject: Re: JAXP -- File had a virus.


Please note that the file you sent me was packed with a virus.

At 10:04 AM 2/15/02 -0500, you wrote:
The following came from Anti-Virus (S5-CCR-R1) NRCan.RNCan:

The Anti Virus software Antigen found jaxp.jar infected with
ExceedinglyInfected virus. The ExceedinglyInfected virus has been removed
from the message sent to  with the subject Re: JAXP  if it could not be
cleaned.

Le logiciel Anti-Virus Antigen a détecté le virus ExceedinglyInfected dans
le fichier jaxp.jar. Le virus ExceedinglyInfected a été supprimé du message
envoyé à  avec l' objet Re: JAXP  s'il n' a pu être nettoyé.

I just pulled jaxp.jar from Codestudio's Poolman distribution. BTW, a
wonderful piece of software.


--
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]




Please help with debugging

2002-02-13 Thread Mihai Gheorghiu

When I try to stop TC4.0.1 on jdk1.3.1, I get the following message:
2002-02-13 14:25:13 StandardWrapper [/TAN:defult]: Waiting for 1 instance(s)
to be deallocated.
And that's where I'm stuck.
How can I approach this? It may be relevant that I'm using Poolman.
Thank you all.


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




Re: Free Firewall Solution

2002-01-08 Thread Mihai Gheorghiu

Until IPCop is ready, why not check out the original:
www.smoothwall.org
It works like a charm.

-Original Message-
From: Charles Williams [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, January 08, 2002 11:06 AM
Subject: OT: Free Firewall Solution


For those interested in a great firewall solution check out:,

http://sourceforge.net/projects/ipcop

chuck



--
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]




SSL on Tomcat 4.0 with IBM JDK 1.3.0

2001-12-19 Thread Mihai Gheorghiu

I managed to start Tomcat 4.0.1 on my RH 7.0 box only after I replaced Sun's
JDK 1.3.1 with IBM's JDK 1.3.0.
This also avoids errors in some other packages (I'm experimenting with
Velocity).
So, if I want to have an SSL connection to TC 4.0.1 on IBM JDK 1.3.0, what
do I need to do?
Thank you all.


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




TC4.0.1 from rpm

2001-12-12 Thread Mihai Gheorghiu

I apologize for the ... question:
Can someone please direct me to the manual section that explains how to use
the rpm installation?
Thank you all.


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




Processes

2001-12-12 Thread Mihai Gheorghiu

When I type
ps -ax
on my RH 7.0 after starting TC 3.2.2, I get
1576 pts/0S  0:02
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1603 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1604 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1605 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1606 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1607 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1608 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1609 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1610 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1611 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1612 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1613 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1614 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1615 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1616 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1617 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1618 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1619 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1620 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1621 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1622 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1623 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1624 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1625 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1626 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1627 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1628 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1629 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1630 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1631 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1632 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1633 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1634 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1635 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1636 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1637 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1638 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 1639 pts/0S  0:00
/usr/jdk1.3.1/bin/i386/native_threads/java -Dtomcat.h
 Why so many?
Thank you all.


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




Tomcat 4.0.1 doesn't seem to start

2001-12-11 Thread Mihai Gheorghiu

I installed 3.2.2 and 3.2.3 and they worked straight out of the ... tar.gz
JDK 1.3.1 on RH 7.0
I untargzipped 4.0.1 in $CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
I go to /bin and type ./startup.sh  I get:
Using CLASSPATH:
/usr/local/jakarta-tomcat-4.0.1/bootstrap.jar:usr/jdk1.3.1/lib/tools.jar
Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0.1
Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0.1
Using JAVA_HOME: /usr/jdk1.3.1
And the prompt.
logs/catalina.out is empty
There seems to be no server on port 8080.
Please help.
Thank you all.


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




JDK vs. JRE

2001-11-26 Thread Mihai Gheorghiu

It is my understanding that Tomcat needs JDK in order to compile on-the-fly.
Servlets are classes, already compiled - correct?
Then, if I build a site only with servlets (plus html and applets), would
JRE be enough?
Thank you all.


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




Servlet context again

2001-11-21 Thread Mihai Gheorghiu

Suppose I have a login page. Upon submit, the listening servlet generates a
dynamic page.
This latest page should send data to the server, too. Is the context of the
new page the same as the previous one?
If same, can it be changed?
Thank you all.



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




Class location

2001-11-14 Thread Mihai Gheorghiu

I have the following structure:
/webapps/development/WEB-INF/classes
I put together a web page that includes an applet, Search.class.
Search.class makes use of Swing and some other graphics classes included in
Fields.jar
So I created the web page Search.html with HTMLConverter and placed it in
development folder.
Search.class is part of package Test.
If in Search.html I declare: CODE=Test/Search CODEBASE=.
ARCHIVE=Test/Fields.jar
and I place Search.class and Fields.jar in /development/Test, everything is
OK.
It is my understanding from reading Tomcat docs that classes can be placed
in /WEB-INF/classes/my/package/etc
What do I declare as CODE, CODEBASE and ARCHIVE if I am to use this
arrangement?
Thank you all.


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




JDBC Realm

2001-10-25 Thread Mihai Gheorghiu

Tomcat 3.2.2 on RH7.0
I created a JDBC realm as per JDBC Realms
server.xml
...
 !--
RequestInterceptor
className=org.apache.tomcat.request.SimpleRealm
debug=0 /
   --
RequestInterceptor
className=org.apache.tomcat.request.JDBCRealm
debug=99
 driverName=org.postgresql.Driver

connectionURL=jdbc:postgresql://localhost/authority?user=postgres;password=
postgres
 userTable=users
userNameCol=user_name
userCredCol=user_pass
 userRoleTable=user_roles
roleNameCol=role_name /
...
Application in webapps/development/*
WEB-INF/web.xml
...
web-app
security-constraint
  web-resource-collection
 web-resource-nameProtected Area/web-resource-name
 url-pattern/*/url-pattern
  http-methodDELETE/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
  http-methodPUT/http-method
  /web-resource-collection
  auth-constraint
 role-nametomcatRole/role-name
  /auth-constraint
/security-constraint

login-config
  auth-methodBASIC/auth-method
  realm-namedevelopment/realm-name
/login-config
...
When I try to log in, I am prompted twice:
First, a Win-like window:
Please type your user name and password
Site:xxx.yyy.zzz.ttt
Realm:development
User Name
Pasword
Save this password in your password list
OK   Cancel
Then it starts loading the applet, Java console pops up, and another window
(with Duke's icon) comes up:
Firewall:xxx.yyy.zzz.ttt/xxx.yyy.zzz.ttt
Realm:   development
Scheme:  basic
User name:
Password:
Yes   No
Once authenticated, the applet displays some data queried by a servlet.
Could this be the cause for being prompted twice?
I'd like to ask for username/password only once, in the beginning. How can I
do that, while preventing users from logging directly into the next level?
Thank you very much for your patience and support.




Re: [GENERAL] Problems setting up PostgreSQL and Tomcat JDBC connection

2001-10-22 Thread Mihai Gheorghiu

When I wrote a servlet for TC3.2.3, before Connection conn=bla..., I had
Class.forName(org.postgresql.driver);
As far as the location of postgresql.jar, I had it in JDK_HOME/lib and in
TOMCAT_HOME/lib at least (maybe in WEB-INF/lib as well - I can't remember)


-Original Message-
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users [EMAIL PROTECTED]; PostgreSQL
[EMAIL PROTECTED]
Date: Monday, October 22, 2001 4:01 PM
Subject: [GENERAL] Problems setting up PostgreSQL and Tomcat JDBC connection


Hi all.

I'm crossposting this to two mailing lists, I think poth parties are
concerned.

Finaly got some time to work on my project on Tomcat and I ran into
problems.
Mostly these problems stem from the inconsistent documentation that
accompanies
Tomcat 4.0 distribution. And it would appear that PostgreSQL is also in
error
(see below).

I have:

- Tru64 UNIX 4.0D (a.k.a. Digital UNIX)
- Java 1.3.0 SDK
- Tomcat 4.0 final release
- PostgreSQL 7.1.0
- PostgreSQL JDBC 2.0 compliant driver

QUESTION 1: How do I go about setting it up with Tomcat?

I have tried the following:

- placed postgresql.jar in ${CATALINA_HOME}/common/lib/
- added CATALINA_OPTS=-Djdbc.drivers=postgresql.Driver
- restarted Tomcat

My JSP file is:

%-- My first go at PostgreSQL and JSP --%
%@ page info=test import=java.sql.*, javax.sql.* %
%!
Connection conn = DriverManager.getConnection(
jdbc:postgresql://localhost/mercury, test, test00 );
String query = SELECT * FROM div;
%

[SNIP]

/html

When I run it, I get the following error:

---
org.apache.jasper.JasperException: Unable to compile class for JSP
...

Root Cause:

java.lang.NumberFormatException: postgresql
...
---

This would imply that I'm either using a wrong connection string or the
driver
isn't loaded, right?

QUESTION 2: Now this may sound dumb, but... PostgreSQL docs state that I
should
load driver with -Djdbc.drivers=posgresql.Driver, but if I list
postgresql.jar
file, I see it is org.postgresql.Driver. Is this a typo in the docs?

Nix.

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster




Re: JDBC Connection Pool Theory ??

2001-09-24 Thread Mihai Gheorghiu

Thank you very much.
Aside from lower speed (open a db connection every time a servlet requires
it), are there any other inconveniences or risks if not using a connection
pool?

-Original Message-
From: C. Schlegelmilch [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Saturday, September 22, 2001 2:20 AM
Subject: Re: JDBC Connection Pool Theory ??


A pool of a fixed number of connections is generally
initialized right at startup of the web application.
From then on in, when a user of a wep app requires a
connection, it pulls it away form the pool and returns
it when its done.  Because all users of a web app
effectively share all of the connections of a pool,
there is never one connection reserved for one user.
Its generally a better use of resources not to.

But now that I think of it, there is nothing stopping
you from assigning a user to a connection in a pool.
That would require some interesting design work to
make it slick, but its possible.

While this may not solve your current issue, give this
a try:

http://www.webdevelopersjournal.com/columns/connection_pool.html

The code looks very similar to some of the class
solutions.

 --- Mihai Gheorghiu [EMAIL PROTECTED] wrote: 
I've been looking at some pooling examples and I
 must admit I'm still not
 clear whether it is possible to have db connections
 with the username and
 password of the web/java user, or the database
 sees n connections with the
 same username and password  generated by the pool
 manager. I want the
 web/java usernane and pwd to be passed to the db for
 logging/signing
 purposes. Can anyone please point me to some
 relevant
 documentation/tutorial?
 Thank you all.

 -Original Message-
 From: C. Schlegelmilch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 Date: Friday, September 21, 2001 12:19 PM
 Subject: Re: JDBC Connection Pool Theory ??


 We had our web development class develop their own
 software for connection pooling.  These are
 extremely
 simple soluitons but they work quite well for the
 small to medium traffic they are likely to get.
 
 They are using Professional Java Server
 Programming
 as a reference and it has some interesting sections
 on
 Connection Pooling.  This is good if you're only
 running a simple application.  It was also noted
 that
 this resource did not address any synchronization
 issues which is very important (the last thing you
 want is two seperate threads getting a reference to
 the next free connection at the same time).  This
 is
 really the only big gottcha that we found in a
 simple
 implementation.
 
  --- Jon Shoberg [EMAIL PROTECTED] wrote: 
  Can anyone suggest or point to readings on JDBC
  connection pool theory?
  Something that covers how a pool is implemented,
  best case / worst case
  scenarios, tips and traps.
 
  My next web application is looking to be very
  database (mysql) intensive.
  I would like a pooling mechanism that is VERY
 simple
  to use, VERY light, low
  overhead, and portable.  Having looked at
 packages
  such as poolman, I
  decided I need to learn a bit more about JDBC and
  pooling in general.  Any
  thoughts ?
 
  Jon
 
 


 Do You Yahoo!?
 Get your free @yahoo.co.uk address at
 http://mail.yahoo.co.uk
 or your free @yahoo.ie address at
 http://mail.yahoo.ie



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




Re: JDBC Connection Pool Theory ??

2001-09-21 Thread Mihai Gheorghiu

I've been looking at some pooling examples and I must admit I'm still not
clear whether it is possible to have db connections with the username and
password of the web/java user, or the database sees n connections with the
same username and password  generated by the pool manager. I want the
web/java usernane and pwd to be passed to the db for logging/signing
purposes. Can anyone please point me to some relevant
documentation/tutorial?
Thank you all.

-Original Message-
From: C. Schlegelmilch [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, September 21, 2001 12:19 PM
Subject: Re: JDBC Connection Pool Theory ??


We had our web development class develop their own
software for connection pooling.  These are extremely
simple soluitons but they work quite well for the
small to medium traffic they are likely to get.

They are using Professional Java Server Programming
as a reference and it has some interesting sections on
Connection Pooling.  This is good if you're only
running a simple application.  It was also noted that
this resource did not address any synchronization
issues which is very important (the last thing you
want is two seperate threads getting a reference to
the next free connection at the same time).  This is
really the only big gottcha that we found in a simple
implementation.

 --- Jon Shoberg [EMAIL PROTECTED] wrote: 
 Can anyone suggest or point to readings on JDBC
 connection pool theory?
 Something that covers how a pool is implemented,
 best case / worst case
 scenarios, tips and traps.

 My next web application is looking to be very
 database (mysql) intensive.
 I would like a pooling mechanism that is VERY simple
 to use, VERY light, low
 overhead, and portable.  Having looked at packages
 such as poolman, I
 decided I need to learn a bit more about JDBC and
 pooling in general.  Any
 thoughts ?

 Jon



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




Re: Where is that cache?

2001-09-05 Thread Mihai Gheorghiu

Multumesc mult!
Stii vorba cu intins degetul si luat mana.
Acum am dat in alta aia.
Am structura tomcathome/webapps/development/WEB-INF/classes/Test
In development am test.html, pagina de start, care incarca un applet,
TestApplet.class, care e in Test.
Nu reusesc sa potrivesc parametrii code si codebase in test.html ca sa
incarc TestApplet.
Appletul e Swing si in IE am plug-in. test.html a fost generat cu html
converter initial, apoi am schimbat proiectul/pathul si nu reusesc sa le dau
de capat lui codebase si code.
Cu multumiri anticipate,
Mihai
-Original Message-
From: Catalin Palsu [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Wednesday, September 05, 2001 3:25 AM
Subject: Re: Where is that cache?


salut!

O problema similara am avut shi eu cu un jsp. Nu sunt sigur dc in cazul tau
e la fel, dar eu m-am dus in
\jakarta-tomcat-3.3-m4\work\DEFAULT\myapplication shi am shters toti
servletzii pe care  ii crease jsp-ul (evident  folosesc un
jakarta-tomcat-3.3-m4)
Cauta in tot serverul class-ul taul (are mai multe dir web-inf)

Bafta

At 05:56 PM 9/4/01 -0400, you wrote:
I created a test applet that is loaded in a html page.
The applet included four Swing elements.
Because an error kept coming regardless of what I did, I decided to remove
one element from the applet. To my surprise, the old, four-element applet
keeps loading.
The IDE (Netbeans) has the context mounted in its filesystem (I have both
.java and .class files in .../webapps/development/WEB-INF/classes/), so
that
what it displays, the user should see too, via Tomcat.
I cleared IE's Temporary Internet Files folder, manually deleted the html
file from there, checked that there is no proxy enabled, re-built the
project...
Any suggestion will be highly applreciated.





Re: Yet another newbie question

2001-08-29 Thread Mihai Gheorghiu

Bull's eye!
Thanks a lot.
I had noticed the Java console pop up when the Sun applet was loaded and
looked at the source and did not figure out what that classid was for.

-Original Message-
From: Amthauer, Heiner [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Date: Wednesday, August 29, 2001 2:18 AM
Subject: AW: Yet another newbie question


Hi there,

this is not a tomcat-problem. Your browser comes with Microsoft Java VM
which is not able to handle any stuff from the javax.swing package.
Furthermore it does not recognize that it should use the Java Plugin since
it is not enought just to install the plugin. You need to run the
htmlconverter on your html-file. It converts the applet-tag into something
like OBJECT classid=clsid:8AD9C840-044E-11D1-... which actually causes
IE5 to start the plugin. You can easily check this by enabling the
java-console in your plugin-control-panel. If I am right, the java-console
should pop up when showing the swing test applets from sun but it does not
pop up, when showing your own html-page (close your browser before loading
the pages, otherwise this effect doesn't work). In the latest plugin
versions, you can also verify that the plugin is loaded by the little java
guy showing up in your taskbar. You can retrieve the htmlconverter from
java.sun.com. Up to Java version 1.3.0_01 it is available, separatly. In
later versions, it is bundled togehter with the J2SDK. However, you can use
the htmlconverter for 1.3.0, which will work with any later versions of the
JRE and plugin, perfectly well. Hope this helps.

regards
Heiner

 -Ursprüngliche Nachricht-
 Von: Mihai Gheorghiu [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 28. August 2001 18:23
 An: [EMAIL PROTECTED]
 Betreff: Yet another newbie question

 I created (with NetBeans) a test applet that includes one
 JLabel field.
 I load it under Tomcat3.2.2 on RH7.0 and the browser (IE5.5)
 on another
 machine displays the html page with header Applet HTML Page
 and footer
 Generated by NetBeans IDE, but I get only a grey rectangle
 instead of the
 actual applet.
 I have Java plug-in installed in IE. I can open the Swing
 test applets from
 Sun's website.
 Tomcat generates an error message in the terminal window it
 was started
 from:
 2001-08-28 12:12:00 - Ctx( /development ): 404 R( /development +
 /javax/swing/JApplet.class + null) null
 What should I do?
 Thank you all.





Yet another newbie question

2001-08-28 Thread Mihai Gheorghiu

I created (with NetBeans) a test applet that includes one JLabel field.
I load it under Tomcat3.2.2 on RH7.0 and the browser (IE5.5) on another
machine displays the html page with header Applet HTML Page and footer
Generated by NetBeans IDE, but I get only a grey rectangle instead of the
actual applet.
I have Java plug-in installed in IE. I can open the Swing test applets from
Sun's website.
Tomcat generates an error message in the terminal window it was started
from:
2001-08-28 12:12:00 - Ctx( /development ): 404 R( /development +
/javax/swing/JApplet.class + null) null
What should I do?
Thank you all.




Netbeans to Tomcat

2001-08-24 Thread Mihai Gheorghiu

What steps do I need to take in order to have my work in Netbeans installed
properly under Tomcat?
Thank you all.




Re: SSL capable

2001-07-13 Thread Mihai Gheorghiu

Thanks a lot. Got the source, the how-to, and the jsse jars from Sun.
I guess that for the actual build process I have to look in the Ant manual?
Is this presented anywhere else? Maybe a build.xml file specifically for
this Tomcat with SSL :-)

Best regards,
Mihai


-Original Message-
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]; Mihai
Gheorghiu [EMAIL PROTECTED]
Date: Thursday, July 12, 2001 8:28 PM
Subject: Re: SSL capable


On Fri, 13 Jul 2001 01:27, Mihai Gheorghiu wrote:
 I downloaded and installed the binary jakarta-tomcat-3.2.2.tar.gz and it
 works.
 Is it SSL capable?
no - to get ssl support you'll need to download source and rebuild it with
ssl.  get the source and look at teh ssl-howto,

cheers
dim




SSL capable

2001-07-12 Thread Mihai Gheorghiu

I downloaded and installed the binary jakarta-tomcat-3.2.2.tar.gz and it
works.
Is it SSL capable?