AW: HOW-TO: Persistent Environment Variables

2002-03-11 Thread Ralph Einfeldt



> -Ursprüngliche Nachricht-
> Von: C Cayetano [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 09:09
> An: Tomcat Users List
> Betreff: HOW-TO: Persistent Environment Variables
> 
> 
> All,
> 
> How/Where do I set the environment variables so that they remain, even
> logged off. I currently login as 'root', set the variables using:
> 
> eg. TOMCAT_HOME=/usr/local/tomcat403
> export TOMCAT_HOME
> OS: Solaris 8
> 
> I then log off and log back in and the variables aren't 
> there. Using 'env'
> to view registered variables.
> 
> Thanks
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




SV: HOW-TO: Persistent Environment Variables

2002-03-11 Thread Simon Elfving

You need to put  
TOMCAT_HOME=/usr/local/tomcat403
export TOMCAT_HOME

in an initializing file like ~/.tcshrc or something like that  so it will be 
executed every time you log in !
-- 
/Simon 

-Ursprungligt meddelande-
Från: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Skickat: den 11 mars 2002 09:18
Till: Tomcat Users List
Ämne: AW: HOW-TO: Persistent Environment Variables




> -Ursprüngliche Nachricht-
> Von: C Cayetano [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 09:09
> An: Tomcat Users List
> Betreff: HOW-TO: Persistent Environment Variables
> 
> 
> All,
> 
> How/Where do I set the environment variables so that they remain, even
> logged off. I currently login as 'root', set the variables using:
> 
> eg. TOMCAT_HOME=/usr/local/tomcat403
> export TOMCAT_HOME
> OS: Solaris 8
> 
> I then log off and log back in and the variables aren't 
> there. Using 'env'
> to view registered variables.
> 
> Thanks
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Connection Pool

2002-03-11 Thread Edmund Manabat

Hi everyone,

How can I implement Connection Pool for tomcat 4.0?
How do you use tyrex?

doods



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: HOW-TO: Persistent Environment Variables

2002-03-11 Thread Ralph Einfeldt

Depending on the shell you are using:

bash:
$HOME/.bashrc
$HOME/.profile

tcsh:
$HOME/.tcshrc

If you are using sh have a look at 'man sh'.
(Haven't seen this beast some years now)

> -Ursprüngliche Nachricht-
> Von: C Cayetano [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 09:09
> An: Tomcat Users List
> Betreff: HOW-TO: Persistent Environment Variables
 
> How/Where do I set the environment variables so that they remain, even
> logged off. I currently login as 'root', set the variables using:
 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat Oracle timeout? oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)

2002-03-11 Thread Evguenia Krylova

Yes, connections timed out. You'd like a deamon 
process to periodically refresh pooled connections.
Ev

On Sun, 10 Mar 2002 07:31:21 -
  "john bell" <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I have a connection pool and use Oracle in a test 
>environment.
>Normally all is OK however, if left alone for many hours 
>the following happens when the attempt
>is made to connect.
>Can anyone help please?
>
>Entered article.display
>POOL get connection numconnections = 2
>1
>Oracle Error in article.display
>java.sql.SQLException: Io exception: Connection reset by 
>peer: socket write error
> at 
>oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
> at 
>oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
> at 
>oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
> at 
>oracle.jdbc.driver.OracleStatement.(OracleStatement.java:292)
> at 
>oracle.jdbc.driver.OracleStatement.(OracleStatement.java:307)
> at 
>oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.java:189)
> at 
>oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.java:172)
> at 
>oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:339)
> at control.Article.display(Article.java:245)
> at 
>jsp.control.homecont_3._jspService(homecont_3.java:251)
> at 
>org.apache.jasper.runtime.HttpJspBase.service(Unknown 
>Source)
> at 
>javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
>org.apache.tomcat.facade.ServletHandler.doService(Unknown 
>Source)
> at org.apache.tomcat.core.Handler.invoke(Unknown 
>Source)
> at 
>org.apache.tomcat.core.Handler.service(Unknown Source)
> at 
>org.apache.tomcat.facade.ServletHandler.service(Unknown 
>Source)
> at 
>org.apache.tomcat.core.ContextManager.internalService(Unknown 
>Source)
> at 
>org.apache.tomcat.core.ContextManager.service(Unknown 
>Source)
> at 
>org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown 
>Source)
> at 
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown 
>Source)
> at 
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
>Source)
> at java.lang.Thread.run(Thread.java:484)
>setting instacr null in article test
>POOL free connection numconnections = 1
>In connMgr.release
>POOL new instance getInstance numpools = 2
>POOL getInstance clients = 406
>POOL getInstance numconnections = 1
>hello from 2 Cat2SideBean
>hello from 2 Cat3SideBean
>POOL getInstance clients = 407
>
>John


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Paths from servlets

2002-03-11 Thread Gabriel López Millán


Hi all.

I want to know how I can get ../apache2/htdocs/ directory (Document 
Root) and full servlet directory from my servlet, getContextPath() 
method return the servlets context.

Thanks a lot, Gabi.

-- 
-
Gabriel Lopez Millan - Grupo ANTS-CIRCuS
Facultad de Informática
Universidad de Murcia (España) Tfo: +34 968367645



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[RPMINFO] Tomcat 4.0.3 rpms reuploaded

2002-03-11 Thread GOMEZ Henri

The TC 4.0.3 rpm have been reuploaded since
there was a nasty problem in previous upload 
and only .asc file where present.

Sorry for the disturbance.

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Serialization of session attributes

2002-03-11 Thread Thomas Mäsing

Hi,
I have a question about Tomcat 4.0.2 and serializing session values. Are
Session attributes stored on the hard disk ? What about the user principals?
If
the values are stored is there a way to prevent this behavior?

Best regards

Thomas Mäsing

-- 
Haftpflicht sagenhaft günstig! Wo? Bei InsuranceCity!
http://bonus.gmx.net/?gid=43381734&prid=501


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Location of DTD file

2002-03-11 Thread Gaurav Arya

Hi,
I am using Xerces to parse an xml document which i get in response from an
external site. The XML has the following line:

I have kept the DTD file "google.dtd" in webapps\cnams\WEB-INF\classes
directory but I get an Exception saying "File "google.dtd" not found." Where
should I keep this dtd file?
Regards,
Gaurav





Apache + Tomcat : Welcome-file

2002-03-11 Thread Elisabeth Julg

Hi,

 I would like integrate a Tomcat's application with Apache (version : tomcat
4.0.2, apache 1.3.23).

  In the Apache's config file : http.conf :


  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot D:/Programmes/jakarta-tomcat-4.0.3/webapps/
  ServerName localhost
  WebAppConnection conn  warp  localhost:8008
  WebAppDeploy D:\AlveoleDev  conn  /alveoledev/
  WebAppInfo /webapp-info


  In the Tomcat's config file : server.xml :

  


  
  
  




  

  

  

  In the Tomcat's file : web.xml

  
jsp/Appli/hdi_index.jsp
  


In the Navigator,

  http://localhost/alveoledev => Doesn't work

but

  http://localhost/alveoledev/jsp/Appli/hdi_index.jsp => Works.

Have you an idea for the url http://localhost/alveoledev uses  the
"welcome-file" ?


Thanks,

Elisabeth



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JNDI data source problem ----NULL

2002-03-11 Thread kumara velayutham

I'm trying this for last two days.not able to sort it out.
while trying to set datasource for connection pooling i'm getting datasource
as null.

In Server.xml file , i have added this inside the context






username

passwordpassword

driverClassNameoracle.jdbc.driver.OracleDrive
r

driverNamejdbc:oracle:thin:@3.209.92.15:1521:
database
 

In web.xml i have added the following lines


  connection pooling 
  jdbc/source
  javax.sql.DataSource
  Container


i have oracle jdbc class in the lib directory of tomcat.

can anyone please suggest me to solve this problem .i have already seen one
posted message reg this..but that doesnt solve my problem.




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Unique Session for each browser instance

2002-03-11 Thread Torsten Trzeciak

Hallo,
I just want to guarantee that a Session is unique for each browser instance.
In PHP a special TID is used to guarantee this.

Is there anything like this available for Tomcat 4.x?

I just want to be sure that the data which will be saved according to a given ID which 
is in a session is not manipulated with another browser instance.
__
Gestalte Dein eigenes Handy-Logo unter http://www.yesms.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Using mod_jk-binaries in tomcat 3.2.4

2002-03-11 Thread Kay Lingenauber

Hi,

in http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/ are 
the binaries of mod_jk for Tomcat 3.3.

Will they work with Tomcat 3.2.4, too ?

thx a lot ! :)

Kay

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Using mod_jk-binaries in tomcat 3.2.4

2002-03-11 Thread Kay Lingenauber

got it:

from the mod_jk-documentation:

Note: The version of mod_jk is not dependent on the version of Tomcat. 
The Tomcat 3.3 distribution of mod_jk will function correctly with other
3.x versions of Tomcat, such as Tomcat 3.2.1.

sorry. i hate mondays ;)


> Hi,

> in http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/
> i386/ are the binaries of mod_jk for Tomcat 3.3.

> Will they work with Tomcat 3.2.4, too ?

> thx a lot ! :)

> Kay

> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




I need org.apache.tomcat.request.ParseMime

2002-03-11 Thread Webmaster - Unimed Piracicaba

And I dont't have access to the CVS server, 'cause I'm behind a firewall.
Does some good soul could send it to me???

Please... it is very urgent...

Thanks in advance,

Marcelo Mathias Lima
webmaster - Unimed Piracicaba
http://www.unimedpiracicaba.com.br


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: I need org.apache.tomcat.request.ParseMime

2002-03-11 Thread Ralph Einfeldt

What about the web access at:
http://jakarta.apache.org/site/cvsindex.html

> -Ursprüngliche Nachricht-
> Von: Webmaster - Unimed Piracicaba
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 12:34
> An: Tomcat Users List
> Betreff: I need org.apache.tomcat.request.ParseMime
> 
> 
> And I dont't have access to the CVS server, 'cause I'm behind 
> a firewall.
> Does some good soul could send it to me???
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Database Pooling

2002-03-11 Thread Chris Pheby

Now Poolman is being declared obsolete (http://www.codestudio.com/PoolMan),
I wondered if anyone can point me to any documentation on Connection
Pooling, hopefully within Tomcat, but perhaps otherwise in another project
that they are using?


Thanks,


Chris.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Database Pooling

2002-03-11 Thread Ralph Einfeldt

Have a look at
http://www2.gvsu.edu/~millerjr/ResearchPaper.html

and

http://jakarta.apache.org/avalon/excalibur/datasource.html



> -Ursprüngliche Nachricht-
> Von: Chris Pheby [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 13:03
> An: [EMAIL PROTECTED]
> Betreff: Database Pooling
> 
> 
> Now Poolman is being declared obsolete 
> (http://www.codestudio.com/PoolMan),
> I wondered if anyone can point me to any documentation on Connection
> Pooling, hopefully within Tomcat, but perhaps otherwise in 
> another project
> that they are using?
> 
> 
> Thanks,
> 
> 
> Chris.
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: How to Unsubscribe?

2002-03-11 Thread Paul Brown

Does anyone actually moderate this list or have the power to remove
people from the list? Or is it completely automated?

thanks
paul

ps. Still trying to remove myself from the list :(


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 5:05 PM
To: Tomcat Users List
Subject: AW: How to Unsubscribe?


It just a snippet from standard ezml mail which you (should) get
by sending a mail to [EMAIL PROTECTED]


In casse it does not work for you here the complete text:



Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

This is a generic help message. The message I received wasn't sent to
any of my command addresses.


--- Administrative commands for the tomcat-user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   <[EMAIL PROTECTED]>

To remove your address from the list, send a message to:
   <[EMAIL PROTECTED]>

Send mail to the following for info and FAQ for this list:
   <[EMAIL PROTECTED]>
   <[EMAIL PROTECTED]>

Similar addresses exist for the digest list:
   <[EMAIL PROTECTED]>
   <[EMAIL PROTECTED]>

To get messages 123 through 145 (a maximum of 100 per request), mail:
   <[EMAIL PROTECTED]>

To get an index with subject and author for messages 123-456 , mail:
   <[EMAIL PROTECTED]>

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send an empty message to:
   <[EMAIL PROTECTED]>

The messages do not really need to be empty, but I will ignore
their content. Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example "[EMAIL PROTECTED]", just add a hyphen and your
address (with '=' instead of '@') after the command word:
<[EMAIL PROTECTED]>

To stop subscription for this address, mail:
<[EMAIL PROTECTED]>

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
[EMAIL PROTECTED] Please be patient, my owner is a
lot slower than I am ;-)

> -Ursprüngliche Nachricht-
> Von: Paul Brown [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 7. März 2002 17:17
> An: Tomcat Users List
> Betreff: RE: How to Unsubscribe?
> 
> 
> no, the mail address has not changed.
> 
> can you expand on your instruction a little bit pelase.
> i can't follow it.
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



This message contains confidential information and is intended only for the named 
individual
and may not be disseminated without prior permission.  If you are not the named 
addressee,
you should not disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this message in error and delete this 
e-message from your system. E-mail transmission cannot be guaranteed to be secure or 
error-free as
information could be intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept liability for 
any
errors or omissions in the contents of this Message which arise as a result of e-mail 
transmission.  If verification is required please request a hard-copy version. This 
message
is provided for informational purposes and should not be construed as a solicitation or
offer to buy or sell any software or services.

 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


AW: How to Unsubscribe?

2002-03-11 Thread Ralph Einfeldt

Officially [EMAIL PROTECTED] (Haven't tried that
ever)

> -Ursprüngliche Nachricht-
> Von: Paul Brown [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 11:22
> An: Tomcat Users List
> Betreff: RE: How to Unsubscribe?
 
> Does anyone actually moderate this list or have the power to remove
> people from the list? Or is it completely automated?
> 
> thanks
> paul
> 
> ps. Still trying to remove myself from the list :(
> 
 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: I need org.apache.tomcat.request.ParseMime

2002-03-11 Thread Webmaster - Unimed Piracicaba

Thank u,
but I am not findind it on the tree...
does somebody knows there is this package
on the CVS tree???



Ralph Einfeldt wrote:

>What about the web access at:
>http://jakarta.apache.org/site/cvsindex.html
>
>>-Ursprüngliche Nachricht-
>>Von: Webmaster - Unimed Piracicaba
>>[mailto:[EMAIL PROTECTED]]
>>Gesendet: Montag, 11. März 2002 12:34
>>An: Tomcat Users List
>>Betreff: I need org.apache.tomcat.request.ParseMime
>>
>>
>>And I dont't have access to the CVS server, 'cause I'm behind 
>>a firewall.
>>Does some good soul could send it to me???
>>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Smart Upload

2002-03-11 Thread Marcelo Mathias Lima

Did anyone already used it under linux/apache3/tomcat4??
It is not working here
:(((


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available.

2002-03-11 Thread Hostmaster of the day

Hi there !

The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.

During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.

Error message :

Apache Tomcat/4.0.3 - HTTP Status 404 - 
/servlet/SnoopServlet is not available.

I'm using mod_jk and AJP 13 on Port 8009.

The server.xml file got the following entries :

-->

  
  
  
  
  
  
  
  
  
   
  
  


mod_jk.conf :



JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

workers.properties :

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf :

LoadModule jk_module   modules/mod_jk.so
AddModule mod_jk.c


Include /etc/httpd/conf/mod_jk.conf


# Setup Tomcat

  AllowOverride None
  deny from all


I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

It's not running. I have no success :-(

What's my fault ?

I would say Tomcat cannot allocate the servlet instance for path 
/servlet/SnoopServlet

Why ?

Thank you,
Mark Wollner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Database Pooling

2002-03-11 Thread Chris Pheby

Hi thanks for the prompt reply, very useful. I am evaluating Excalibur,
because I think Cocoon uses it, and I am interested in finding out more
about Cocoon as well.

Regards,

Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Ralph Einfeldt
Sent: 11 March 2002 12:09
To: Tomcat Users List
Subject: AW: Database Pooling


Have a look at
http://www2.gvsu.edu/~millerjr/ResearchPaper.html

and

http://jakarta.apache.org/avalon/excalibur/datasource.html



> -Ursprüngliche Nachricht-
> Von: Chris Pheby [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 13:03
> An: [EMAIL PROTECTED]
> Betreff: Database Pooling
>
>
> Now Poolman is being declared obsolete
> (http://www.codestudio.com/PoolMan),
> I wondered if anyone can point me to any documentation on Connection
> Pooling, hopefully within Tomcat, but perhaps otherwise in
> another project
> that they are using?
>
>
> Thanks,
>
>
> Chris.
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Unix (Solaris) HTML Editor for Apache and Tomcat, Recommendations?

2002-03-11 Thread Charles Baker

--- Brian Adams <[EMAIL PROTECTED]> wrote:
> netbaens! it will do that and more (java) when you
> are ready for servlets!
> :)
> www.netbeans.org
> 
> 
> -Original Message-
> From: C Cayetano [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 10, 2002 10:25 PM
> To: Tomcat Users List
> Subject: Unix (Solaris) HTML Editor for Apache and
> Tomcat,
> Recommendations?

I use netbeans, but I think the key hear is wysiwig. I
know netbeans has a code based html editor, but
wysiwig html? I haven't come across that even in 3.3.1

=
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Help ! Connection busy

2002-03-11 Thread Gurmeet

I am getting "[Microsoft][ODBC SQL Server Driver]Connection is busy with
results for another h
stmt"

How do I get rid of this?

Regards
Gurmeet


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Deploy app to more than one path without creating multiple instances. (How?)

2002-03-11 Thread scott . merritt

I have an app that I'd like to deploy as more than one path:

http://host.com/path1
http://host.com/path2
http://host.com/path3
etc.

But I want them all pointing to the same web app.  When I use web app
deploy:

WebAppConnection conn warp localhost:port
WebAppDeploy path/appdirectory conn /path1
WebAppDeploy path/appdirectory conn /path2
WebAppDeploy path/appdirectory conn /path3

I always end up launching 3 seperate apps.  Is there a way to get it so the
3 paths end up sharing the same app?

Thanks...

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat changing file ownership

2002-03-11 Thread Edward Haynes

I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat
updates all the files in its folder structure (/var/tomcat4/) to be owned by
the tomcat user and readonly for everyone else. The problem being that when
I want to modify/overwrite anyone of these files, I have to go into the
linux server and chmod for every file/folder. This happens all day long. Is
there a way to turn this off?

Thanks, Ted


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Running servlet from folder within WEB-INF?

2002-03-11 Thread rsequeira







"Leon Vermaak" <[EMAIL PROTECTED]> on 03/10/2002 07:30:00 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Running servlet from folder within WEB-INF?

Sorry but I don't know how best to fraze the question I have I will try to
better explain myself.
I am new to Tomcat I am on Windows 2000 Professional platform. I compiled
the simplest of servlets!
I created the following a folder
%CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME
I started tomcat and called the servlet with
http://ip:8080/project/servlet/SERVLET_NAME
when I call the servlet, the word SERVLET does not form part of the path?
how does this wrok?

Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet
class called SERVLET_NAME then you have called it in the correct fashion.
What do you mean when you say "the word SERVLET does not form part of the
path"?
It would be a good idea to check the documentation:
http://localhost:8080/tomcat-docs/index.html



If this list does not anwer these type of questions would anyone please be
so kind as to tell me where I can find answer for beginners of any on-line
documentation that explains things in a bit more detail than the Tomcat
documentation, which is a bit vague.
Thanks


RS

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.3a - error-page context problem

2002-03-11 Thread Larry Isaacs

This sounds like Bugzilla Bug 6887, see:



It is fixed in the current Tomcat 3.3.x and will appear
in Tomcat 3.3.1 Final.

Cheers,
Larry

> -Original Message-
> From: Chris Murphy [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, March 10, 2002 7:16 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3a - error-page context problem
> 
> 
> Hello,
> 
> I'm having quite a bit of trouble figuring this one out. I 
> have Tomcat 3.3a installed with Apache mod_jk support. I've 
> declared a virtual host under tomcat in file apps-x.x.x.x.xml:
>  
> 
> 
> 
>   docBase="/virtual1/www/webapp/xxx" 
>debug="9"
>reloadable="true"
>trusted="true"/>
> 
> 
> 
> The deployed application works fine, except when an exception 
> gets thrown. The error-page directive in my web.xml seems to 
> be getting called outside of the context.  Here's the 
> error-page definition:
> 
>   
> java.lang.Exception
> /error.jsp
>   
> 
> Here's what the log says when it tries to call my error page on an
> exception:
> 
> 
> 2002-03-10 18:24:13 - Ctx() : Class not found: 
> TOMCAT/JSP/error.jsp 2002-03-10 18:24:13 - Ctx(/xxx) : Status 
> code:404 request:R( /xxx + test.do + null) msg:null)
> 
> It looks like the error.jsp call is not being called in the 
> /xxx context as I would expect.  All the documentation and 
> archive e-mails that I've read seem to imply that the call to 
> the  definition would be in the context of the web app.
> 
> Any help would be greatly appreciated.
> Chris Murphy
> 
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat changing file ownership

2002-03-11 Thread John Wadkin

Ted,

If I understand your question correctly, you want to find a way to alter the
default file permissions for the TomCat user?

The only thing I can think of is umask, which sets the default permissions.
In Solaris (C shell):

umask 000

Sets (I think!) read and write for all (user, group, other) on files, and
full permissions on directories. Try putting the command in catalina.sh or
the tomcat user's login script.

Thanks,
 
John
 
Quote for the week:
 
The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.
 
Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 14:07
To: tomcat-user
Subject: Tomcat changing file ownership


I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat
updates all the files in its folder structure (/var/tomcat4/) to be owned by
the tomcat user and readonly for everyone else. The problem being that when
I want to modify/overwrite anyone of these files, I have to go into the
linux server and chmod for every file/folder. This happens all day long. Is
there a way to turn this off?

Thanks, Ted


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Running servlet from folder within WEB-INF?

2002-03-11 Thread Chris Pheby

I recommend going to
http://java.sun.com/docs/books/tutorial/servlets/index.html to read the
servlets tutorial. Get the example they use - Bookstore.war and pay
particular attention to the web.xml file which is simple and easy to
understand. Download bookstore.war from
ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip

You can drop bookstore war in your webapps directory. Then restart Tomcat.

Go to http://localhost:8080/bookstore/ to test it out.

If you have a look in the webapps directory you will find that Tomcat has
created the bookstore subdirectories. Experiment a little, this example made
a lot of things clear for me.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of [EMAIL PROTECTED]
Sent: 11 March 2002 14:05
To: Tomcat Users List
Subject: Re: Running servlet from folder within WEB-INF?








"Leon Vermaak" <[EMAIL PROTECTED]> on 03/10/2002 07:30:00 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Running servlet from folder within WEB-INF?

Sorry but I don't know how best to fraze the question I have I will try to
better explain myself.
I am new to Tomcat I am on Windows 2000 Professional platform. I compiled
the simplest of servlets!
I created the following a folder
%CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME
I started tomcat and called the servlet with
http://ip:8080/project/servlet/SERVLET_NAME
when I call the servlet, the word SERVLET does not form part of the path?
how does this wrok?

Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet
class called SERVLET_NAME then you have called it in the correct fashion.
What do you mean when you say "the word SERVLET does not form part of the
path"?
It would be a good idea to check the documentation:
http://localhost:8080/tomcat-docs/index.html



If this list does not anwer these type of questions would anyone please be
so kind as to tell me where I can find answer for beginners of any on-line
documentation that explains things in a bit more detail than the Tomcat
documentation, which is a bit vague.
Thanks


RS

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Running servlet from folder within WEB-INF?

2002-03-11 Thread Chris Pheby

I recommend going to
http://java.sun.com/docs/books/tutorial/servlets/index.html to read the
servlets tutorial. Get the example they use - Bookstore.war and pay
particular attention to the web.xml file which is simple and easy to
understand. Download bookstore.war from
ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip

You can drop bookstore war in your webapps directory. Then restart Tomcat.

Go to http://localhost:8080/bookstore/ to test it out.

If you have a look in the webapps directory you will find that Tomcat has
created the bookstore subdirectories. Experiment a little, this example made
a lot of things clear for me.


Chris.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of [EMAIL PROTECTED]
Sent: 11 March 2002 14:05
To: Tomcat Users List
Subject: Re: Running servlet from folder within WEB-INF?








"Leon Vermaak" <[EMAIL PROTECTED]> on 03/10/2002 07:30:00 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Running servlet from folder within WEB-INF?

Sorry but I don't know how best to fraze the question I have I will try to
better explain myself.
I am new to Tomcat I am on Windows 2000 Professional platform. I compiled
the simplest of servlets!
I created the following a folder
%CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME
I started tomcat and called the servlet with
http://ip:8080/project/servlet/SERVLET_NAME
when I call the servlet, the word SERVLET does not form part of the path?
how does this wrok?

Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet
class called SERVLET_NAME then you have called it in the correct fashion.
What do you mean when you say "the word SERVLET does not form part of the
path"?
It would be a good idea to check the documentation:
http://localhost:8080/tomcat-docs/index.html



If this list does not anwer these type of questions would anyone please be
so kind as to tell me where I can find answer for beginners of any on-line
documentation that explains things in a bit more detail than the Tomcat
documentation, which is a bit vague.
Thanks


RS

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




checksum errors

2002-03-11 Thread Jeffrey_N_Dyke

I have been trying to install Tomcat and am getting checksum errors when
untarring.  Is there a location I can get an ftp connection to ensure it
comes down as a binary file?  I have tried this with both 4.0, 4.01 and
4.03.  Has anyone done this recently? Is there something wrong with the
files posted to jakarta.apache.org?  Does anyone know of an alternate
download location?

Thanks much
Jeff


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: checksum errors

2002-03-11 Thread Randy Layman


You need to use GNU TAR, not the TAR that comes with Solaris.

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 9:43 AM
> To: Tomcat Users List
> Subject: checksum errors
> 
> 
> I have been trying to install Tomcat and am getting checksum 
> errors when
> untarring.  Is there a location I can get an ftp connection 
> to ensure it
> comes down as a binary file?  I have tried this with both 
> 4.0, 4.01 and
> 4.03.  Has anyone done this recently? Is there something 
> wrong with the
> files posted to jakarta.apache.org?  Does anyone know of an alternate
> download location?
> 
> Thanks much
> Jeff
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat changing file ownership

2002-03-11 Thread Edward Haynes

Thanks. That will definitely solve the problem, but why does tomcat change
the files to its ownership? As long as it can read the files, I wouldn't
think tomcat would need to own the files to run them?

Ted

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:42 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat changing file ownership


Ted,

If I understand your question correctly, you want to find a way to alter the
default file permissions for the TomCat user?

The only thing I can think of is umask, which sets the default permissions.
In Solaris (C shell):

umask 000

Sets (I think!) read and write for all (user, group, other) on files, and
full permissions on directories. Try putting the command in catalina.sh or
the tomcat user's login script.

Thanks,

John

Quote for the week:

The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.

Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 14:07
To: tomcat-user
Subject: Tomcat changing file ownership


I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat
updates all the files in its folder structure (/var/tomcat4/) to be owned by
the tomcat user and readonly for everyone else. The problem being that when
I want to modify/overwrite anyone of these files, I have to go into the
linux server and chmod for every file/folder. This happens all day long. Is
there a way to turn this off?

Thanks, Ted


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Deploy app to more than one path without creating multiple instan ces. (How?)

2002-03-11 Thread rsequeira


AFAIK, you'll always end up have three different web applications despite
the fact that they have the same docBase attribute. So if you have a
servlet in that web app, it will be initialized three times - once for
every context. I'm not sure if apache redirects will work. try it out. :-)

RS





[EMAIL PROTECTED] on 03/11/2002 07:53:01 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Deploy app to more than one path without creating multiple instan
  ces.  (How?)

I have an app that I'd like to deploy as more than one path:

http://host.com/path1
http://host.com/path2
http://host.com/path3
etc.

But I want them all pointing to the same web app.  When I use web app
deploy:

WebAppConnection conn warp localhost:port
WebAppDeploy path/appdirectory conn /path1
WebAppDeploy path/appdirectory conn /path2
WebAppDeploy path/appdirectory conn /path3

I always end up launching 3 seperate apps.  Is there a way to get it so the
3 paths end up sharing the same app?

Thanks...

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat changing file ownership

2002-03-11 Thread John Wadkin

Good question! I guess it would depend on what tomCat's doing with the
files. Reading a file shouldn't change the ownership, and yes, so long as
the TomCat user has read/write access, it shouldn't need to own the files.
Unix, eh?

Thanks,
 
John
 
Quote for the week:
 
The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.
 
Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 14:52
To: 'Tomcat Users List'
Subject: RE: Tomcat changing file ownership


Thanks. That will definitely solve the problem, but why does tomcat change
the files to its ownership? As long as it can read the files, I wouldn't
think tomcat would need to own the files to run them?

Ted

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:42 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat changing file ownership


Ted,

If I understand your question correctly, you want to find a way to alter the
default file permissions for the TomCat user?

The only thing I can think of is umask, which sets the default permissions.
In Solaris (C shell):

umask 000

Sets (I think!) read and write for all (user, group, other) on files, and
full permissions on directories. Try putting the command in catalina.sh or
the tomcat user's login script.

Thanks,

John

Quote for the week:

The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.

Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 14:07
To: tomcat-user
Subject: Tomcat changing file ownership


I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat
updates all the files in its folder structure (/var/tomcat4/) to be owned by
the tomcat user and readonly for everyone else. The problem being that when
I want to modify/overwrite anyone of these files, I have to go into the
linux server and chmod for every file/folder. This happens all day long. Is
there a way to turn this off?

Thanks, Ted


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Help in JDBC

2002-03-11 Thread Edward Haynes

It would be better to put the location of the classes111.zip file in the
tomcat classpath. What I did was to edit the /usr/bin/dtomcat4 file (for rpm
tomcat on linux, or the catalina.sh for other installs) and include the full
path and file name

CLASSPATH="$JAVA_HOME"/lib/tools.jar:/usr/acct/oracle/9.0.1/jdbc/lib/classes
111.jar

Ted

-Original Message-
From: Neo Gigs [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:16 AM
To: Tomcat Users List
Subject: Re: Help in JDBC


Hi there,

I solved the problem by putting my classes111.zip for Oracle to
%tomcat_home%\lib and %my_application%\WEB-INF\lib

Thanks

Regards,

Neo Gigs

VB?
http://communities.msn.com.my/VisualBasicwithNeo
http://www.vbcity.com/forum
http://www.vbweb.co.uk
Get paid cash receive email?
http://www.MintMail.com/?m=1414418
Reading SMS got paid?
http://www.dynamicsms.com.au/intro.asp?ref=0123502385&refc=348
Malaysianshop.com http://www.malaysianshop.com
More Traffic?
http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924&c=xbad1

Note:This is intended to addressees only, if you wanna be removed, let me
know.

- Original Message -
From: "Cyber Sagar" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:06 PM
Subject: RE: Help in JDBC


> Dear Neo Gigs,
> Thank you very much for your kind cooperation.
> Yours
> Sagar
>
> -Original Message-
> From: Neo Gigs [mailto:[EMAIL PROTECTED]]
> Sent: 11 March 2002 14:54
> To: Tomcat Users List
> Subject: Re: Help in JDBC
>
>
> hi there,
>
> after modifying my codes like this:
>
> 
> Stored Procedure Call using JDBC
> 
> To test JDBC call to fire stored procedure named sp_GetClatTypeIE
> <%@ page language="java" import="java.sql.*, java.math.*, java.io.*" %>
> <%
>  String output = "";
>
>  try{
>   Class myDriver =
Class.forName("oracle.jdbc.driver.OracleDriver");
>  // DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver());
>  String url = "jdbc:oracle:thin:@10.97.2.50:1521:REL4";
>  String scall = "begin sp_GetClatTypeIE(?, ?); end;";
>  Connection conn = DriverManager.getConnection(url, "tux",
> "tux");
>  CallableStatement cs = conn.prepareCall(scall);
>  cs.registerOutParameter(2, Types.VARCHAR);
>  cs.setInt(1, 22555);
>  cs.execute();
>cs.close();
>   conn.close();
>  output = cs.getString(2);
>  } catch (SQLException e) {
>  System.err.println("Error: " + e.getMessage());
> }
> out.println("Result is: " + output);
> %>
> 
> 
>
> and when i run it, it generates this error:
>
> javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver
>  at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
> Source)
>  at SpTest_10._jspService(SpTest_10.java:88)
>  at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
>  at org.apache.tomcat.core.Handler.invoke(Unknown Source)
>  at org.apache.tomcat.core.Handler.service(Unknown Source)
>  at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
>  at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
>  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
>  at
>
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
> Source)
>  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
>  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
> Source)
>  at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
>  at
> org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown
> Source)
>  at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown
Source)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown
> Source)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>  at java.lang.Class.forName0(Native Method)
>  at java.lang.Class.forName(Class.java:120)
>  at SpTest_10._jspService(SpTest_10.java:63)
>  at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
>  at org.apache.tomcat.core.Handler.invoke(Unknown Source)
>  at org.apache.tomcat.core.Handler.service(Unknown Source)
>  at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
>  at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
>  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
>  at
>
o

IIS/Tomcat - Error: The specified module could not be found.

2002-03-11 Thread Shawn Lindstrom

Hello,

I'm a newcomer to Tomcat.  I have installed v3.3a on Win2k w/ the
isapi_redirect.dll.  I have followed the IIS HowTo to the letter.

I have the green up arrow indicating the filter is working, but something
must be amiss elsewhere and I'm at wits end -- I'm sure it's something
simple and I apologize if this has been answered here before.

Any ideas?

Thanks!
Shawn


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Deploy app to more than one path without creating multiple instan ces. (How?)

2002-03-11 Thread scott . merritt

Yeah, but I'm trying to keep the directory name in the URL so I can use
Netegrity to restrict access to them with some users have different access
to some URLs...  redirecting changes the url :(

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11 2002 03:00 PM
To: Tomcat Users List
Subject: Re: Deploy app to more than one path without creating multiple
instan ces. (How?)



AFAIK, you'll always end up have three different web applications despite
the fact that they have the same docBase attribute. So if you have a
servlet in that web app, it will be initialized three times - once for
every context. I'm not sure if apache redirects will work. try it out. :-)

RS





[EMAIL PROTECTED] on 03/11/2002 07:53:01 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Deploy app to more than one path without creating multiple instan
  ces.  (How?)

I have an app that I'd like to deploy as more than one path:

http://host.com/path1
http://host.com/path2
http://host.com/path3
etc.

But I want them all pointing to the same web app.  When I use web app
deploy:

WebAppConnection conn warp localhost:port
WebAppDeploy path/appdirectory conn /path1
WebAppDeploy path/appdirectory conn /path2
WebAppDeploy path/appdirectory conn /path3

I always end up launching 3 seperate apps.  Is there a way to get it so the
3 paths end up sharing the same app?

Thanks...

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Running servlet from folder within WEB-INF?

2002-03-11 Thread Leon Vermaak

Thank you very much!

- Original Message -
From: "Chris Pheby" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 9:43 AM
Subject: RE: Running servlet from folder within WEB-INF?


> I recommend going to
> http://java.sun.com/docs/books/tutorial/servlets/index.html to read the
> servlets tutorial. Get the example they use - Bookstore.war and pay
> particular attention to the web.xml file which is simple and easy to
> understand. Download bookstore.war from
> ftp://ftp.javasoft.com/docs/tut-bookstore-tomcat.zip
>
> You can drop bookstore war in your webapps directory. Then restart Tomcat.
>
> Go to http://localhost:8080/bookstore/ to test it out.
>
> If you have a look in the webapps directory you will find that Tomcat has
> created the bookstore subdirectories. Experiment a little, this example
made
> a lot of things clear for me.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of [EMAIL PROTECTED]
> Sent: 11 March 2002 14:05
> To: Tomcat Users List
> Subject: Re: Running servlet from folder within WEB-INF?
>
>
>
>
>
>
>
>
> "Leon Vermaak" <[EMAIL PROTECTED]> on 03/10/2002 07:30:00 PM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:  Running servlet from folder within WEB-INF?
>
> Sorry but I don't know how best to fraze the question I have I will try to
> better explain myself.
> I am new to Tomcat I am on Windows 2000 Professional platform. I compiled
> the simplest of servlets!
> I created the following a folder
> %CATALINA_HOME%/webapps/project/WEB-INF/classes/SERVLET_NAME
> I started tomcat and called the servlet with
> http://ip:8080/project/servlet/SERVLET_NAME
> when I call the servlet, the word SERVLET does not form part of the path?
> how does this wrok?
>
> Is SERVLET_NAME a folder or is it a servlet class? If you have a servlet
> class called SERVLET_NAME then you have called it in the correct fashion.
> What do you mean when you say "the word SERVLET does not form part of the
> path"?
> It would be a good idea to check the documentation:
> http://localhost:8080/tomcat-docs/index.html
>
>
>
> If this list does not anwer these type of questions would anyone please be
> so kind as to tell me where I can find answer for beginners of any on-line
> documentation that explains things in a bit more detail than the Tomcat
> documentation, which is a bit vague.
> Thanks
>
>
> RS
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache + Tomcat : Welcome-file

2002-03-11 Thread rsequeira


If you add a "/" at the very end of the URL as in
http://localhost/alveoledev/


  http://localhost/alveoledev => Doesn't work

you may get what you desire.

OR

You could change the DocumentRoot to "D:\" instead of
"D:/Programmes/jakarta-tomcat-4.0.3/webapps/" in the VirtualHost defn. This
way users don't need to add the "/" at the end of the URL, as shown above.


  
ServerAdmin [EMAIL PROTECTED]
DocumentRoot D:/Programmes/jakarta-tomcat-4.0.3/webapps/
ServerName localhost
WebAppConnection conn  warp  localhost:8008
WebAppDeploy D:\AlveoleDev  conn  /alveoledev/
...



RS





"Elisabeth Julg" <[EMAIL PROTECTED]> on 03/11/2002 04:34:58 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat-User" <[EMAIL PROTECTED]>
cc:

Subject:  Apache + Tomcat : Welcome-file

Hi,

 I would like integrate a Tomcat's application with Apache (version :
tomcat
4.0.2, apache 1.3.23).

  In the Apache's config file : http.conf :


  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot D:/Programmes/jakarta-tomcat-4.0.3/webapps/
  ServerName localhost
  WebAppConnection conn  warp  localhost:8008
  WebAppDeploy D:\AlveoleDev  conn  /alveoledev/
  WebAppInfo /webapp-info


  In the Tomcat's config file : server.xml :

  


  
  
  




  

  

  

  In the Tomcat's file : web.xml

  
jsp/Appli/hdi_index.jsp
  


In the Navigator,

  http://localhost/alveoledev => Doesn't work

but

  http://localhost/alveoledev/jsp/Appli/hdi_index.jsp => Works.

Have you an idea for the url http://localhost/alveoledev uses  the
"welcome-file" ?


Thanks,

Elisabeth



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Help in JDBC

2002-03-11 Thread Thanh Duong

Hi,
if you are using tomcat 4.0, then you need to generate a jar library file.
Tomcat 4.0 cannot read zip file.

Thanh

-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: Montag, 11. März 2002 16:30
To: 'Tomcat Users List'
Subject: RE: Help in JDBC


It would be better to put the location of the classes111.zip file in the
tomcat classpath. What I did was to edit the /usr/bin/dtomcat4 file (for rpm
tomcat on linux, or the catalina.sh for other installs) and include the full
path and file name

CLASSPATH="$JAVA_HOME"/lib/tools.jar:/usr/acct/oracle/9.0.1/jdbc/lib/classes
111.jar

Ted

-Original Message-
From: Neo Gigs [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:16 AM
To: Tomcat Users List
Subject: Re: Help in JDBC


Hi there,

I solved the problem by putting my classes111.zip for Oracle to
%tomcat_home%\lib and %my_application%\WEB-INF\lib

Thanks

Regards,

Neo Gigs

VB?
http://communities.msn.com.my/VisualBasicwithNeo
http://www.vbcity.com/forum
http://www.vbweb.co.uk
Get paid cash receive email?
http://www.MintMail.com/?m=1414418
Reading SMS got paid?
http://www.dynamicsms.com.au/intro.asp?ref=0123502385&refc=348
Malaysianshop.com http://www.malaysianshop.com
More Traffic?
http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924&c=xbad1

Note:This is intended to addressees only, if you wanna be removed, let me
know.

- Original Message -
From: "Cyber Sagar" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:06 PM
Subject: RE: Help in JDBC


> Dear Neo Gigs,
> Thank you very much for your kind cooperation.
> Yours
> Sagar
>
> -Original Message-
> From: Neo Gigs [mailto:[EMAIL PROTECTED]]
> Sent: 11 March 2002 14:54
> To: Tomcat Users List
> Subject: Re: Help in JDBC
>
>
> hi there,
>
> after modifying my codes like this:
>
> 
> Stored Procedure Call using JDBC
> 
> To test JDBC call to fire stored procedure named sp_GetClatTypeIE
> <%@ page language="java" import="java.sql.*, java.math.*, java.io.*" %>
> <%
>  String output = "";
>
>  try{
>   Class myDriver =
Class.forName("oracle.jdbc.driver.OracleDriver");
>  // DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver());
>  String url = "jdbc:oracle:thin:@10.97.2.50:1521:REL4";
>  String scall = "begin sp_GetClatTypeIE(?, ?); end;";
>  Connection conn = DriverManager.getConnection(url, "tux",
> "tux");
>  CallableStatement cs = conn.prepareCall(scall);
>  cs.registerOutParameter(2, Types.VARCHAR);
>  cs.setInt(1, 22555);
>  cs.execute();
>cs.close();
>   conn.close();
>  output = cs.getString(2);
>  } catch (SQLException e) {
>  System.err.println("Error: " + e.getMessage());
> }
> out.println("Result is: " + output);
> %>
> 
> 
>
> and when i run it, it generates this error:
>
> javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver
>  at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
> Source)
>  at SpTest_10._jspService(SpTest_10.java:88)
>  at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
>  at org.apache.tomcat.core.Handler.invoke(Unknown Source)
>  at org.apache.tomcat.core.Handler.service(Unknown Source)
>  at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
>  at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
>  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
>  at
>
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
> Source)
>  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
>  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
> Source)
>  at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
>  at
> org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown
> Source)
>  at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown
Source)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown
> Source)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>  at java.lang.Class.forName0(Native Method)
>  at java.lang.Class.forName(Class.java:120)
>  at SpTest_10._jspService(SpTest_10.java:63)
>  at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
>  at org.apache.tomcat.core.Handler.invoke(Unknown Source)
>  a

Re: Tomcat changing file ownership

2002-03-11 Thread Thomas Cherry

My startup script resets the permissions.  The real question I think is does
tomcat require all it's files to be owned by the tomcat user?

on 3/11/02 9:41 AM, John Wadkin at [EMAIL PROTECTED] wrote:

> Ted,
> 
> If I understand your question correctly, you want to find a way to alter the
> default file permissions for the TomCat user?
> 
> The only thing I can think of is umask, which sets the default permissions.
> In Solaris (C shell):
> 
> umask 000
> 
> Sets (I think!) read and write for all (user, group, other) on files, and
> full permissions on directories. Try putting the command in catalina.sh or
> the tomcat user's login script.
> 
> Thanks,
> 
> John
> 
> Quote for the week:
> 
> The stupid neither forgive nor forget; the naive forgive and forget; the
> wise forgive but do not forget.
> 
> Thomas Szasz, The Second Sin (1973)


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




localhost/ip? IE and Netscape

2002-03-11 Thread Leon Vermaak

I know the answer to this question must be fairly simple, but I have no idea
why this is happening? I am on windows 2000 pro platform, I have tomcat
started. I have both IE 6.0.2 and Netscape 6.2.1. When I call servlets with
my browser in Netscape I can call them by simply typing:
http://localhost:8080/servlet/Servlet_Name,
but, with IE I have to type my IP addresss it won't automatically resolve
localhost to IP?
can anyone please tell me why?
thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: localhost/ip? IE and Netscape

2002-03-11 Thread Chris Pheby

from http://weblogs.userland.com/zopeNewbies/2001/03/05

If you're installing Zope on Windows, have followed all the steps, but you
still cannot access the management screens, or the management screens
misbehave, try upgrading to the latest version of IE 5.5, or try Mozilla or
Netscape. There are caching bugs in some of the earlier IE 4 and 5 builds. I
upgraded to the latest IE 5.5 and had no issues. Under Linux I had similar
issues with Mozilla, but later Mozilla builds fixed the caching bugs.

If localhost won't resolve under Windows, you probably don't have a HOSTS
file in your Windows directory — this is an issue with the toy versions of
Windows, not NT or W2K. Create a HOSTS file and put in an entry for
localhost.

***

Now I know this advice is for Zope but I think it applies here too. The
proper place for the hosts file on Windows is C:\WINNT\system32\drivers\etc.
Make sure it has this line:

127.0.0.1   localhost

Or perhaps your problem is even more obscure.


Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Leon Vermaak
Sent: 11 March 2002 16:32
To: Tomcat Users List
Subject: localhost/ip? IE and Netscape


I know the answer to this question must be fairly simple, but I have no idea
why this is happening? I am on windows 2000 pro platform, I have tomcat
started. I have both IE 6.0.2 and Netscape 6.2.1. When I call servlets with
my browser in Netscape I can call them by simply typing:
http://localhost:8080/servlet/Servlet_Name,
but, with IE I have to type my IP addresss it won't automatically resolve
localhost to IP?
can anyone please tell me why?
thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.3a - error-page context problem

2002-03-11 Thread Chris Murphy

Thanks! The one place I didn't look. I'll no better next time. Thanks
again!

Chris Murphy

On Mon, 2002-03-11 at 08:13, Larry Isaacs wrote:
> This sounds like Bugzilla Bug 6887, see:
> 
> 
> 
> It is fixed in the current Tomcat 3.3.x and will appear
> in Tomcat 3.3.1 Final.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Chris Murphy [mailto:[EMAIL PROTECTED]] 
> > Sent: Sunday, March 10, 2002 7:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat 3.3a - error-page context problem
> > 
> > 
> > Hello,
> > 
> > I'm having quite a bit of trouble figuring this one out. I 
> > have Tomcat 3.3a installed with Apache mod_jk support. I've 
> > declared a virtual host under tomcat in file apps-x.x.x.x.xml:
> >  
> > 
> > 
> > 
> >  >  docBase="/virtual1/www/webapp/xxx" 
> >  debug="9"
> >  reloadable="true"
> >  trusted="true"/>
> > 
> > 
> > 
> > The deployed application works fine, except when an exception 
> > gets thrown. The error-page directive in my web.xml seems to 
> > be getting called outside of the context.  Here's the 
> > error-page definition:
> > 
> >   
> > java.lang.Exception
> > /error.jsp
> >   
> > 
> > Here's what the log says when it tries to call my error page on an
> > exception:
> > 
> > 
> > 2002-03-10 18:24:13 - Ctx() : Class not found: 
> > TOMCAT/JSP/error.jsp 2002-03-10 18:24:13 - Ctx(/xxx) : Status 
> > code:404 request:R( /xxx + test.do + null) msg:null)
> > 
> > It looks like the error.jsp call is not being called in the 
> > /xxx context as I would expect.  All the documentation and 
> > archive e-mails that I've read seem to imply that the call to 
> > the  definition would be in the context of the web app.
> > 
> > Any help would be greatly appreciated.
> > Chris Murphy
> > 
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> > 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: How to Unsubscribe?

2002-03-11 Thread Darren Foltinek

Actually, it's this, from the original "welcome" email:

   To remove your address from the list, send a message to:
   <[EMAIL PROTECTED]>

>Officially [EMAIL PROTECTED] (Haven't tried that
>ever)
>
>>-Ursprüngliche Nachricht-
>>Von: Paul Brown [mailto:[EMAIL PROTECTED]]
>>Gesendet: Montag, 11. März 2002 11:22
>>An: Tomcat Users List
>>Betreff: RE: How to Unsubscribe?
>>
> 
>
>>Does anyone actually moderate this list or have the power to remove
>>people from the list? Or is it completely automated?
>>
>>thanks
>>paul
>>
>>ps. Still trying to remove myself from the list :(
>>
> 
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Smart Upload

2002-03-11 Thread Micael Padraig Og mac Grene

I have, works great.

At 09:54 AM 3/11/02 -0300, you wrote:
>Did anyone already used it under linux/apache3/tomcat4??
>It is not working here
>:(((
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Smart Upload

2002-03-11 Thread Marcelo Mathias Lima

I don't understod correctly the virtual host concept...
can u help me? can't that dir be a real/physical path?

thank u.


Micael Padraig Og mac Grene wrote:

> I have, works great.
>
> At 09:54 AM 3/11/02 -0300, you wrote:
>
>> Did anyone already used it under linux/apache3/tomcat4??
>> It is not working here
>> :(((
>>
>>
>> -- 
>> To unsubscribe:   
>> For additional commands: 
>> Troubles with the list: 
>>
>
>
>
> -- 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: AW: How to Unsubscribe?

2002-03-11 Thread Ralph Einfeldt

Hey, he was asking for the maintainer, as the receiver 
you provided didn't work for him.

> -Ursprüngliche Nachricht-
> Von: Darren Foltinek [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 18:27
> An: Tomcat Users List
> Betreff: Re: AW: How to Unsubscribe?
> 
> Actually, it's this, from the original "welcome" email:
> 
> >>Does anyone actually moderate this list or have the power to remove
> >>people from the list? Or is it completely automated?

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: AW: How to Unsubscribe?

2002-03-11 Thread John Wadkin

Just a thought..

The mail thingy had a go at me when an email from the list to my email
account bounced. It threatened to withdraw me from the list if further mails
bounced and a probe was unsuccessful. If you can re-configure your mail
server to reject TC emails or take your account off-line for a day or two
(!), then the mail thingy might just remove you. A bit drastic I know :)

Thanks,
 
John
 
Quote for the week:
 
The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.
 
Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 17:39
To: Tomcat Users List
Subject: AW: AW: How to Unsubscribe?


Hey, he was asking for the maintainer, as the receiver 
you provided didn't work for him.

> -Ursprüngliche Nachricht-
> Von: Darren Foltinek [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. März 2002 18:27
> An: Tomcat Users List
> Betreff: Re: AW: How to Unsubscribe?
> 
> Actually, it's this, from the original "welcome" email:
> 
> >>Does anyone actually moderate this list or have the power to remove
> >>people from the list? Or is it completely automated?

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: AW: AW: How to Unsubscribe?

2002-03-11 Thread Darren Foltinek

Oh, right - sorry.

-- Darren


>Hey, he was asking for the maintainer, as the receiver 
>you provided didn't work for him.
>
>>-Ursprüngliche Nachricht-
>>Von: Darren Foltinek [mailto:[EMAIL PROTECTED]]
>>Gesendet: Montag, 11. März 2002 18:27
>>An: Tomcat Users List
>>Betreff: Re: AW: How to Unsubscribe?
>>
>>Actually, it's this, from the original "welcome" email:
>>
Does anyone actually moderate this list or have the power to remove
people from the list? Or is it completely automated?

>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Help in JSP

2002-03-11 Thread August Detlefsen

You specify your statement as this:

 String scall = "begin sp_GetClatTypeIE(?, ?); end;";

Which has 2 ?s, but you are only setting the first one: 

 cs.setInt(1, interString);

What does your error message say? If this is the problem, Oracle should
return something like 'Invalid parameters specified'.


--- Neo Gigs <[EMAIL PROTECTED]> wrote:
> hi there,
> 
> thanks for the reminder, yet there is no results return as output. I
> tried
> to replace the line:
> 
> return output;
> 
> with
> 
> return "" + interString;
> 
> and it return my input value...
> 
> - Original Message -
> From: "Karthikeyan .K.V" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, March 09, 2002 12:34 PM
> Subject: RE: Help in JSP
> 
> 
> > Think  use  the "output=" statement before u use  the close
> function
> > statement.
> >
> > Karthik
> >
> > -Original Message-
> > From: Neo Gigs [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 08, 2002 9:53 PM
> > To: Tomcat Users List
> > Subject: Help in JSP
> >
> >
> > Hi there all,
> >
> > I had a JSP page that talks to a JBeans, but the problem is my Bean
> is
> > actually doing DB connectivity to a Oracle db, as no result
> returned from
> > the Bean.
> >
> > As I had tested with the application of the same codes.
> >
> > Could anyone help me to scan thru, whats wrong with this?
> >
> > package com.mbf.beans;
> >
> > import java.sql.*;
> > import java.math.*;
> > import java.io.*;
> > import oracle.jdbc.driver.*;
> >
> > public class SpTest
> > {
> > private int interString;
> > private String output;
> >
> > public String getInput()
> > {
> > // First detect class existance
> > try{
> > Class.forName("oracle.jdbc.driver.OracleDriver");
> > } catch (java.lang.ClassNotFoundException e){
> > System.err.print("Class Not Found error!" +
> e.getMessage());
> > }
> >
> > // Now try to open db connection and do the fetching
> > try{
> > // DriverManager.registerDriver(new
> > oracle.jdbc.driver.OracleDriver());
> > String url = "jdbc:oracle:thin:@10.97.2.50:1521:REL4";
> > String scall = "begin sp_GetClatTypeIE(?, ?); end;";
> > Connection conn = DriverManager.getConnection(url,
> "tux",
> > "tux");
> > CallableStatement cs = conn.prepareCall(scall);
> > cs.registerOutParameter(2, Types.VARCHAR);
> > cs.setInt(1, interString);
> > cs.execute();
> > cs.close();
> > conn.close();
> > output = cs.getString(2);
> > } catch (SQLException e) {
> > System.err.println("Error: " + e.getMessage());
> > }
> > return output;
> > }
> >
> > public void setInput(String s)
> > {
> > // Here to assign input parameters
> > interString = Integer.parseInt(s);
> > }
> > }
> >
> > Thanks
> >
> > Regards,
> >
> > Neo Gigs
> > 
> > VB?
> > http://communities.msn.com.my/VisualBasicwithNeo
> > http://www.vbcity.com/forum
> > http://www.vbweb.co.uk
> > Get paid cash receive email?
> > http://www.MintMail.com/?m=1414418
> > Reading SMS got paid?
> > http://www.dynamicsms.com.au/intro.asp?ref=0123502385&refc=348
> > Malaysianshop.com http://www.malaysianshop.com
> > More Traffic?
> > http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924&c=xbad1
> > 
> > Note:This is intended to addressees only, if you wanna be removed,
> let me
> > know.
> >
> >
> >
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Help in JSP

2002-03-11 Thread August Detlefsen

You specify your statement as this:

 String scall = "begin sp_GetClatTypeIE(?, ?); end;";

Which has 2 ?s, but you are only setting the first one: 

 cs.setInt(1, interString);

What does your error message say? If this is the problem, Oracle should
return something like 'Invalid parameters specified'.


--- Neo Gigs <[EMAIL PROTECTED]> wrote:
> hi there,
> 
> thanks for the reminder, yet there is no results return as output. I
> tried
> to replace the line:
> 
> return output;
> 
> with
> 
> return "" + interString;
> 
> and it return my input value...
> 
> - Original Message -
> From: "Karthikeyan .K.V" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, March 09, 2002 12:34 PM
> Subject: RE: Help in JSP
> 
> 
> > Think  use  the "output=" statement before u use  the close
> function
> > statement.
> >
> > Karthik
> >
> > -Original Message-
> > From: Neo Gigs [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 08, 2002 9:53 PM
> > To: Tomcat Users List
> > Subject: Help in JSP
> >
> >
> > Hi there all,
> >
> > I had a JSP page that talks to a JBeans, but the problem is my Bean
> is
> > actually doing DB connectivity to a Oracle db, as no result
> returned from
> > the Bean.
> >
> > As I had tested with the application of the same codes.
> >
> > Could anyone help me to scan thru, whats wrong with this?
> >
> > package com.mbf.beans;
> >
> > import java.sql.*;
> > import java.math.*;
> > import java.io.*;
> > import oracle.jdbc.driver.*;
> >
> > public class SpTest
> > {
> > private int interString;
> > private String output;
> >
> > public String getInput()
> > {
> > // First detect class existance
> > try{
> > Class.forName("oracle.jdbc.driver.OracleDriver");
> > } catch (java.lang.ClassNotFoundException e){
> > System.err.print("Class Not Found error!" +
> e.getMessage());
> > }
> >
> > // Now try to open db connection and do the fetching
> > try{
> > // DriverManager.registerDriver(new
> > oracle.jdbc.driver.OracleDriver());
> > String url = "jdbc:oracle:thin:@10.97.2.50:1521:REL4";
> > String scall = "begin sp_GetClatTypeIE(?, ?); end;";
> > Connection conn = DriverManager.getConnection(url,
> "tux",
> > "tux");
> > CallableStatement cs = conn.prepareCall(scall);
> > cs.registerOutParameter(2, Types.VARCHAR);
> > cs.setInt(1, interString);
> > cs.execute();
> > cs.close();
> > conn.close();
> > output = cs.getString(2);
> > } catch (SQLException e) {
> > System.err.println("Error: " + e.getMessage());
> > }
> > return output;
> > }
> >
> > public void setInput(String s)
> > {
> > // Here to assign input parameters
> > interString = Integer.parseInt(s);
> > }
> > }
> >
> > Thanks
> >
> > Regards,
> >
> > Neo Gigs
> > 
> > VB?
> > http://communities.msn.com.my/VisualBasicwithNeo
> > http://www.vbcity.com/forum
> > http://www.vbweb.co.uk
> > Get paid cash receive email?
> > http://www.MintMail.com/?m=1414418
> > Reading SMS got paid?
> > http://www.dynamicsms.com.au/intro.asp?ref=0123502385&refc=348
> > Malaysianshop.com http://www.malaysianshop.com
> > More Traffic?
> > http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924&c=xbad1
> > 
> > Note:This is intended to addressees only, if you wanna be removed,
> let me
> > know.
> >
> >
> >
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JDBC mSQL

2002-03-11 Thread Dahnke, Eric


Is anyone using mini-sql (mSQL) w/ jdbc. If so could you send me your driver
.jar file and an example of how you're calling it.

I've installed msql-jdbc-1-0.jar, but no matter how I call it, I get a 
Connection failed.
java.sql.SQLException: Connection failed.
at
com.imaginary.sql.msql.MsqlConnection.connect(MsqlConnection.java:328)


This is for a legacy system, I have no option of installing a different DB.

TIA

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Deploy app to more than one path without creating multiple instances. (How?)

2002-03-11 Thread Jean-Luc Drouot

I had the same need for legacy apps.
Even if it is not standards compliant, I made a small patch for 
mod_webapp - apache1.3 that adds a WebAppAlias directive:

WebAppConnection conn warp localhost:port
WebAppDeploy path/appdirectory conn /path
WebAppAlias /path/ /path1/
WebAppAlias /path/ /path2/

You can find the source patch and the modified mod_webapp.so on 
http://www.lussy.net/misc/WebAppAlias/

Hope this helps ;~)


[EMAIL PROTECTED] wrote:
> I have an app that I'd like to deploy as more than one path:
> 
> http://host.com/path1
> http://host.com/path2
> http://host.com/path3
> etc.
> 
> But I want them all pointing to the same web app.  When I use web app
> deploy:
> 
> WebAppConnection conn warp localhost:port
> WebAppDeploy path/appdirectory conn /path1
> WebAppDeploy path/appdirectory conn /path2
> WebAppDeploy path/appdirectory conn /path3
> 
> I always end up launching 3 seperate apps.  Is there a way to get it so the
> 3 paths end up sharing the same app?
> 
> Thanks...
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




off subject: PROLOG like Java based system

2002-03-11 Thread Amine AMAR

Hi all,

Do you know of any open source inference engine developped using JAVA? Something like 
PROLOG.

Any hints would be very apreciated.

I apologize for this off topic question :)

Amine





Re: Location of DTD file

2002-03-11 Thread rsequeira


I think you try one of this and *hope* :-) it works:
1) Store the "google.dtd" in the servlet.jar. I think that's how the dtds
(web.xml) that Tomcat uses are processed.
OR
2) You might somehow need to edit the 
tag to "/webapps/cnams/WEB_INF/classes>" when your
application is run.
OR
3) Check how Struts implements this. See the Digester link under
http://jakarta.apache.org/commons/index.html

The third might seem the best way to approach and solve your problem. The
previous two should be taken as quick and dirty solutions (that is if they
work :-)
RS





Gaurav Arya <[EMAIL PROTECTED]> on 03/11/2002 04:26:55 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat-User (E-mail)" <[EMAIL PROTECTED]>
cc:

Subject:  Location of DTD file

Hi,
I am using Xerces to parse an xml document which i get in response from an
external site. The XML has the following line:

I have kept the DTD file "google.dtd" in webapps\cnams\WEB-INF\classes
directory but I get an Exception saying "File "google.dtd" not found."
Where
should I keep this dtd file?
Regards,
Gaurav










--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Can I "precompile" CSS?

2002-03-11 Thread JavaJosh

Hi,

I would like to precompile my HTML files that have style sheets. That
is, I would like to generate (perhaps on the fly) basic HTML markup from
the CSS. For example, I want to turn:

P.main {font-family : sans-serif; font-size : 12pt}
...
This is a paragraph

into

  This is a paragraph 

I would prefer to avoid such behavior, as many CSS attributes cannot be
mapped to basic (HTML32) tags. However, I can see where this would be
useful for users of older browsers that don't understand CSS.

(A secondary consideration is the protection of CSS content. This isn't
something that concerns *me* but I can see where it might be an issue.)

So is there a way to do this, if not with a Tomcat directive, with a
special servlet or library?

Thanks,
Josh Rehman


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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JNI fails under Tomcat and JBoss

2002-03-11 Thread Semion Rotshtein

JNI fails under Tomcat and JBoss

Hi,
I'm calling a native method from Java 1.3/Windows 2000
under Tomcat 3.2 and JBoss 2.2 and it fails without any exception.

Before calling the native methods I load up the dll containing the method's
native 
implementation which reports no errors and prints some log messages in dll's
main() 
to prove it's loaded indeed. (For some reason, the messages suggest that the
dll is loaded
several times into the system, which is weird)

Then I call my native method and I get the following:
- the native method'd C code is not reached (no log messages found to prove
otherwise)
- the Java method that calls the native method gets stuck 
- no exceptions are thrown on either side

Important note :
when the same native method is called from a standalone Java application
(not started
under Tomcat/JBoss) - it runs with no problem.

Regards,
Semion.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Help : Error Starting Tomcat 4.0.1 in AIX

2002-03-11 Thread Andy Soedibjo

Hi Everyone,

I've sent this mail before, but nobody answers it ... is it because none of 
you ever face this problem?
I've tried to reinstall my tomcat and then run it directly, but still i 
have a problem.
Is this a problem in the Tomcat, because i just install it, and run it with 
Tomcat's default configuration.

I attach the log file that i got. Hope anyone of you give me suggestion / 
clues how to fix this problem.

I appreciate all the suggestion or clue ... and i will try it. Thanks in 
advance.

Best Regards,
Andy S.






2002-03-11 20:59:12 WebappLoader[/manager]: Deploying class repositories to work 
directory /home/logserv/jakarta-tomcat-4.0.3/work/localhost/manager
2002-03-11 20:59:12 StandardManager[/manager]: Seeding random number generator class 
java.security.SecureRandom
2002-03-11 20:59:12 StandardManager[/manager]: Seeding of random number generator has 
been completed
2002-03-11 20:59:13 ContextConfig[/manager]: Added certificates -> request attribute 
Valve
2002-03-11 20:59:13 ContextConfig[/manager]: Configured an authenticator for method 
BASIC
2002-03-11 20:59:13 StandardWrapper[/manager:default]: Loading container servlet 
default
2002-03-11 20:59:13 org.apache.catalina.servlets.DefaultServlet: init
2002-03-11 20:59:13 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2002-03-11 20:59:13 org.apache.catalina.servlets.InvokerServlet: init
2002-03-11 20:59:13 org.apache.jasper.servlet.JspServlet: init
2002-03-11 20:59:14 StandardContext[/manager]: Servlet /manager threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java(Compiled 
Code))
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java(Compiled 
Code))
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java(Compiled 
Code))
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java(Compiled 
Code))
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoSuchMethodError: javax.servlet.ServletContext: method 
getResourcePaths(Ljava/lang/String;)Ljava/util/Set; not found
at 
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
at 
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at 
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java(Compiled 
Code))
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java(Compiled 
Code))
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java(Compiled 
Code))
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java(Compiled 
Code))
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-03-11 20:59:14 StandardHost[localhost]: Installing web application at context 
path /tomcat-docs from URL file:/home/logserv/jakarta-tomcat-4.0.3/webapps/tomcat-docs
2002-03-11 20:59:14 WebappLoader[/tomcat-docs]: Deploying class repositories to work 
directory /home/logserv/jakarta-tomcat-4.0.3/work/localhost/tomcat-docs
2002-03-11 20:59:14 StandardManager[/tomcat-docs]: Seedi

Reject Request in Tomcat

2002-03-11 Thread Venkatesh Sangam

Hi,

Can anyone please tell me if rejecting requests in possible in Tomcat.
Can I set the maximum number of requests that can be handled by Tomcat in the 
configuration file.
Also can I set the number of requests that can be in the queue.
How can I see which requests are being rejected.

can canyone guide me with this. I am new to Tomcat

Thanks,
venkatesh.




Re: Help : Error Starting Tomcat 4.0.1 in AIX

2002-03-11 Thread jeff . guttadauro


Did you actually look at these log files first?  I only know a few words in
French, but enough to see from your catalina.out that it could not create a
jar file cache in your /tmp directory because it doesn't exist.  The errors in
the localhost_log file seem to result from this as well, so why don't you fix
this first?  If you still get errors, I would highly recommend reading your
log files first before posting them to try to figure out your problem.  If you
do post, please give a better, more detailed account of what the problem is.

-Jeff



   
   
Andy Soedibjo  
   
<[EMAIL PROTECTED]To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
a.slb.com>  cc:
   
Subject: Help : Error Starting 
Tomcat 4.0.1 in AIX
03/11/02 02:21 PM  
   
Please respond to  
   
"Tomcat Users List"
   
   
   
   
   




Hi Everyone,

I've sent this mail before, but nobody answers it ... is it because none of
you ever face this problem?
I've tried to reinstall my tomcat and then run it directly, but still i
have a problem.
Is this a problem in the Tomcat, because i just install it, and run it with
Tomcat's default configuration.

I attach the log file that i got. Hope anyone of you give me suggestion /
clues how to fix this problem.

I appreciate all the suggestion or clue ... and i will try it. Thanks in
advance.

Best Regards,
Andy S.




(See attached file: localhost_log.2002-03-11.txt)(See attached file:
catalina_log.2002-03-11.txt)(See attached file: catalina.out)
--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




localhost_log.2002-03-11.txt
Description: Binary data


catalina_log.2002-03-11.txt
Description: Binary data


catalina.out
Description: Binary data

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Manager reload of web.xml?

2002-03-11 Thread Bryan Field-Elliot

I'm having trouble getting Tomcat to reload my web application's
"web.xml" file, and wondering if there is an official word or FAQ on how
to do this? I've seen mention of Tomcat not reloading web.xml in the
archives, but I'm not sure if this is a bug, or improper use of the
Manager app, on my part.

Basically, my re-deploy process is:

1. Delete my application's subdirectory under tomcat/webapps
2. Re-create from scratch my app's subdirectory under tomcat/webapps
3. Call the Manager servlet, with the reload command (using Lynx which I
do within Ant).

Any classes I change are reloaded correctly, as are configuration
changes I make to other files (such as struts-config.xml). But web.xml
doesn't seem to get reloaded, without a total shutdown and startup of
Tomcat.

Thanks,

Bryan





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




webdav over SSL with http-auth?

2002-03-11 Thread Aditya

I'm trying to allow users to upload their files to their context via webdav on
a Tomcat 4.0.2 server over SSL and with auth-constraints on who can upload
stuff (I've tried it without auth-constraints and it works as expected). I've
followed the basic template offered at:

  http://www.jguru.com/faq/view.jsp?EID=544213

Unfortunately, Tomcat doesn't seem to be requiring the webdav client to
present the http auth login prompt. I've tried logging in as:

  https://username:password@server/context

and that seems not to make a difference. If I try to PUT a file (this is with
the cadaver client) I get a 302 error instead of a 403 as I would expect:

dav:/blah/> put foo.html
Uploading foo.html to `/blah/foo.html':
Progress: [=>] 100.0% of 255 bytes failed:
302 Moved Temporarily

My auth config in the context web.xml looks like the following:


  
 The Entire Web
 /*
 COPY
 DELETE
 MOVE
 POST
 PUT
 LOCK
  
  
 manager
  


  
BASIC
Blah realm
  

  
   An example role defined in a JNDI realm
manager
  

does anyone have any hints on what I might be doing wrong?

Thanks,
Adi

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat tools error

2002-03-11 Thread Kemp Randy-W18971

Has anyone encountered this error trying the JSP examples on Tomcat 4.0.3, using Sun 
JDK1.4.0, on Sun Solaris 2.6?  

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: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
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.valves.CertificatesValve.invoke(CertificatesValve.java:246)
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:536)
root cause 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
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)
  

Onjava Example JDBC Realms with MySQL problem?

2002-03-11 Thread Fred Lankovic

i'm trying to run the example about JDBC realms with
tomcat and mysql, but when i start tomcat i get this
message:

java.sql.SQLException: Cannot disable AUTO_COMMIT

anyone knows what could be happening?

Thanks

_
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat tools error

2002-03-11 Thread Randy Layman


Tomcat can't find the Java Compiler.  This is generally due to an
incorrect JAVA_HOME setting (JAVA_HOME/lib/tools.jar must be valid).  You
can create a symbolic link from the TOMCAT_HOME/lib/container to tools.jar
if you think you set the variable correctly.

Randy

PS This question is asked on a weekly basis and can be found in the archive.
Next time you might want to look there before asking here.

> -Original Message-
> From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 3:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat tools error
> 
> 
> Has anyone encountered this error trying the JSP examples on 
> Tomcat 4.0.3, using Sun JDK1.4.0, on Sun Solaris 2.6?  
> 
> 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: sun/tools/javac/Main
>   at 
> root cause 
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Manager reload of web.xml?

2002-03-11 Thread Cox, Charlie

instead of reload, use stop, then start. reload was not designed to read the
web.xml, but when you stop and start the context, it reads it again.

Charlie

> -Original Message-
> From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Manager reload of web.xml?
> 
> 
> I'm having trouble getting Tomcat to reload my web application's
> "web.xml" file, and wondering if there is an official word or 
> FAQ on how
> to do this? I've seen mention of Tomcat not reloading web.xml in the
> archives, but I'm not sure if this is a bug, or improper use of the
> Manager app, on my part.
> 
> Basically, my re-deploy process is:
> 
> 1. Delete my application's subdirectory under tomcat/webapps
> 2. Re-create from scratch my app's subdirectory under tomcat/webapps
> 3. Call the Manager servlet, with the reload command (using 
> Lynx which I
> do within Ant).
> 
> Any classes I change are reloaded correctly, as are configuration
> changes I make to other files (such as struts-config.xml). But web.xml
> doesn't seem to get reloaded, without a total shutdown and startup of
> Tomcat.
> 
> Thanks,
> 
> Bryan
> 
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Reject Request in Tomcat

2002-03-11 Thread Cox, Charlie

look at the Connector element for server.xml in the docs...

> -Original Message-
> From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: Reject Request in Tomcat
> 
> 
> Hi,
> 
> Can anyone please tell me if rejecting requests in possible in Tomcat.
> Can I set the maximum number of requests that can be handled 
> by Tomcat in the configuration file.
> Also can I set the number of requests that can be in the queue.
> How can I see which requests are being rejected.
> 
> can canyone guide me with this. I am new to Tomcat
> 
> Thanks,
> venkatesh.
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Error 500, Examples work

2002-03-11 Thread Heiko Lettmann

These are the error messages I get when I try to open a *jsp file:

org.apache.jasper.compiler.ParseException: /zeit.jsp(3,15) Attribute page
has no value
at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563)
at
org.apache.jasper.compiler.JspReader.parseTagAttributesBean(JspReader.java:6
16)
at org.apache.jasper.compiler.Parser$Bean.accept(Parser.java:654)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
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:536)

I am using Tomcat 4.03, Apache 1.32 and J2sdk1.4.0.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Unix (Solaris) HTML Editor for Apache and Tomcat, Recommendations?

2002-03-11 Thread Steve

IBM has something out.

I'm only aware of one wysiwyg html editor and that would be composer, it 
comes with netscape 6.2.1

Neo Gigs wrote:


>>Does any have a suggestion of a good unix based HTML editor, similar to
>>Dreamweaver, that can handle the HTML WYSIWYG interface as well as the
>>ability to edit code for JSP scripting?



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How do you achieve persistant Tomcat connections?

2002-03-11 Thread Anders Rundgren

Dear all,
I have no success in getting my TC 4.0.2 under apache and ajp1.3
returning persistant TCP connections in spite of using up-to-date
(HTTP 1.1) browsers.   Any clues to this (except for reprogramming
the application) would be *very* appeciated.

/anders


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Newbie: JNDI lookup error

2002-03-11 Thread Vanga Reddy


I am getting the following error.

1) Error

javax.servlet.ServletException: Cannot create resource instance
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:155)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
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.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:536)
root cause
javax.naming.NamingException: Cannot create resource instance
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:167)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:311)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at EmployeeBean.init(EmployeeBean.java:33)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:106)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at

Re: checksum errors

2002-03-11 Thread Jeffrey_N_Dyke


Hello All.
 I have the need to run multiple virtual servers on a
Unix/Apache/Tomcat set up.  The server is sliced to have a development area
as well as a production area.  I would prefer only to have 1 instance of
Tomcat running(maybe 1 per slice).  Is this possible?  I have been reading
the documentation and mailing list archives, but the more info i get the
more confused i becomeand yes i am fairly new to this.  If anyone has
set up this type of configuration, or attempted it, i'd love to hear about
it.  I am not against doing anything, even installing 1 tomcat per host,
but that doesn't seem to make sense.  I thought if there was a right
way...someone here has probably found it.

It is all the same server...just seperate named hosts and their respective
development environments.

Is this done in httpd.conf? server.xml?  Does anyone have any expierence
with this?  success rates?  suggesstions?

Thanks in advance for any and all assistance.
Jeff


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




virutal hosting with apache/tomcat

2002-03-11 Thread Jeffrey_N_Dyke

sorry for the multiple post and waste of bandwith...didn't want the subject
to throw folks off.
- Forwarded by Jeffrey N Dyke/CORP/Keane on 03/11/2002 04:45 PM -
   
   
Jeffrey_N_Dyke 
   
@Keane.com   To: "Tomcat Users List" 
<[EMAIL PROTECTED]> 
 cc:   
   
03/11/2002   Subject: Re: checksum errors  
   
04:42 PM   
   
Please respond 
   
to "Tomcat 
   
Users List"
   
   
   
   
   





Hello All.
 I have the need to run multiple virtual servers on a
Unix/Apache/Tomcat set up.  The server is sliced to have a development area
as well as a production area.  I would prefer only to have 1 instance of
Tomcat running(maybe 1 per slice).  Is this possible?  I have been reading
the documentation and mailing list archives, but the more info i get the
more confused i becomeand yes i am fairly new to this.  If anyone has
set up this type of configuration, or attempted it, i'd love to hear about
it.  I am not against doing anything, even installing 1 tomcat per host,
but that doesn't seem to make sense.  I thought if there was a right
way...someone here has probably found it.

It is all the same server...just seperate named hosts and their respective
development environments.

Is this done in httpd.conf? server.xml?  Does anyone have any expierence
with this?  success rates?  suggesstions?

Thanks in advance for any and all assistance.
Jeff


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Can I "precompile" CSS?

2002-03-11 Thread Ken Martin

On Monday, March 11, 2002, at 01:53 PM, JavaJosh wrote:

> I would like to precompile my HTML files that have style sheets. That
> is, I would like to generate (perhaps on the fly) basic HTML 
> markup from
> the CSS. For example, I want to turn:
>
> P.main {font-family : sans-serif; font-size : 12pt}
> ...
> This is a paragraph
>
> into
>
>   This is a paragraph 
>
> I would prefer to avoid such behavior, as many CSS attributes cannot be
> mapped to basic (HTML32) tags. However, I can see where this would be
> useful for users of older browsers that don't understand CSS.
>
> (A secondary consideration is the protection of CSS content. This isn't
> something that concerns *me* but I can see where it might be an issue.)
>
> So is there a way to do this, if not with a Tomcat directive, with a
> special servlet or library?

I'm sure there would be a way to do this, but it seems like a 
*lot* of work for questionable payoff (and sounds slow). Do your 
browser stats really indicate that you need to put so much 
effort toward making HTML 3.2 code? In our site which is 
non-technical (a weather site) we only use CSS for text 
formatting and various colorings... we have a very wide range of 
users and I do not get complaints. Virtually all used browsers 
can handle CSS for fonts... CSS-P gets much more glitchy.

Personally, if I *had* to do this I would consider using XML and 
apply XSL dynamically based on browser sniffing. But in the end 
I would have a very hard time justifying the effort.

Use CSS to define elements, and use few classes and spans and 
you should be able to be quite compatible.

JTOTTOMH, you could probably write (fairly complex) taglibs for 
this... blech.

Ken Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Location of DTD file

2002-03-11 Thread Henry

You may try using a URL like www.mydomain.com/app.dtd as the place you put
ur DTD, where mydomain is somewhere you have the right to publish html
files. In your XML file, still use




- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:30 PM
Subject: Re: Location of DTD file


>
> I think you try one of this and *hope* :-) it works:
> 1) Store the "google.dtd" in the servlet.jar. I think that's how the dtds
> (web.xml) that Tomcat uses are processed.
> OR
> 2) You might somehow need to edit the 
> tag to " "/webapps/cnams/WEB_INF/classes>" when your
> application is run.
> OR
> 3) Check how Struts implements this. See the Digester link under
> http://jakarta.apache.org/commons/index.html
>
> The third might seem the best way to approach and solve your problem. The
> previous two should be taken as quick and dirty solutions (that is if they
> work :-)
> RS
>
>
>
>
>
> Gaurav Arya <[EMAIL PROTECTED]> on 03/11/2002 04:26:55 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   "Tomcat-User (E-mail)" <[EMAIL PROTECTED]>
> cc:
>
> Subject:  Location of DTD file
>
> Hi,
> I am using Xerces to parse an xml document which i get in response from an
> external site. The XML has the following line:
> 
> I have kept the DTD file "google.dtd" in webapps\cnams\WEB-INF\classes
> directory but I get an Exception saying "File "google.dtd" not found."
> Where
> should I keep this dtd file?
> Regards,
> Gaurav
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tomcat segmentation fault

2002-03-11 Thread bcarterette

I'm running a Tomcat/Apache web server and a PostgresQL database 
server.  In the past two months or so, the number of webapps I'm running 
has drastically increased, and it has led to many unexpected problems.  
Please bear with me as a summarize before asking my question; hopefully 
this will prove useful to somebody someday:

machine 1:  dual-933MHz, 512 MB RAM, Linux 2.4 (RedHat 7.1), Apache 
1.3.19, Tomcat 4.0.3, Java 1.4
machine 2:  731MHz, 256 MB Ram, Linux 2.2 (RedHat 6.2), PostgresQL 7.1.3

The first problem I ran into was random crashes of PostgresQL.  That 
apparently was caused by too many open files.  I quadrupled the values 
in /proc/sys/fs/file-max and /proc/sys/fs/inode-max and have not had any 
problems with that machine since.

The second problem turned up in my Tomcat logs:  
java.net.SocketException:  Too many open files.  Once I started seeing 
that, I had to reboot Tomcat.  I upped /proc/sys/fs/file-max, but there 
is no /proc/sys/fs/inode-max, and that didn't seem to help.  "ulimit -n 
9" seems to have fixed that, but...

Tomcat kept crashing, but now it was throwing 
java.lang.OutOfMemoryError: requested x bytes.  I added -Xms64M -Xmx256M 
to increase the Java heap size, and added some garbage collection 
routines.  That didn't seem to fix it.  Then I noticed this in one of 
the logs:
java.lang.OutOfMemoryError:  unable to create new native thread
at java.lang.Thread.start
at org.apache.catalina.connector.warp.WarpConnection.start (159)
at org.apache.catalina.connector.warp.WarpConnector.run (601)
at java.lang.Thread.run (536)
Which prefigured an OutOfMemoryError and complete crash of Tomcat by 
minutes.

Doing some research, I found that there was a built-in thread limit in 
glibc.  I got the source RPM off the RedHat 7.1 CD, made the necessary 
changes in linuxthreads, and recompiled.  I copied the new 
linuxthreads.so to /lib/i686, and everything seemed to be working fine.  
No crashes, but it was a weekend and nobody uses it on weekends.  So 
this morning I did a 'make install' on glibc (huge mistake; I feel 
strongly that I had some reason for doing that but I can't remember what 
it was), and wham, Tomcat crashes and won't start up again.  I 
reinstalled the glibc RPMs on the RedHat CD to try to get the system 
back to normal, but Tomcat still won't start up.  Which is where my 
question comes in.

Why won't it start up again?  :)  Using Java 1.4, Tomcat fails to start 
up with a segmentation fault.  I switched to Java 1.3.1, and it fails to 
start up with a "cannot find libhpi.so".  Java 1.2.2 works, but I'm 
using some 1.4 features, so that's only a temporary solution.  I can 
still compile and run programs using 1.4; only Tomcat seems to not be 
working.  What have I done and how can I fix it?

Also, what more do I need to do to get these servers to be able to 
handle the load?  Apache is serving about 400 requests per hour on 
average, as much as 1700 during a busy hour, which doesn't seem to me 
like it should be too much for this server to handle.  I usually have 
between 80 and 120 concurrent database connections during peak hours, 
including sessions which are no longer in use and waiting to expire.

Any help would be very much appreciated.

Thanks,
Ben Carterette
[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: virutal hosting with apache/tomcat

2002-03-11 Thread rsequeira


Disclaimer: Don't take my word on what's provided below. It could be an
overkill or  incorrect. :-) But what the heck if I'm wrong someone will
correct me and we'll learn something in the process.

But I guess you could do it in two ways:
1) Have one tomcat instance, serving the two virtual hosts (one server.xml)
2) Have two tomcat instances running, each serving a virtual host (multiple
server.xml)

Common step) You would need to update the hosts file or the DNS server with
the two virtual host names.
As an example, let say we have two virtual hosts: "viking-dev.com" and
"viking-prod.com" with IP address: 192.168.146.82

To elaborate:
1) One Tomcat instance

Steps:
a) Edit httpd.conf. Configure two virtual hosts.

NameVirtualHost 192.168.146.82

ServerAdmin [EMAIL PROTECTED]
DocumentRoot
D:/Apache-Tomcat-4.0/jakarta-tomcat-4.0.2/webapps/examplesdev
ServerName viking-dev.com
WebAppConnection conndev warp localhost:8008
WebAppDeploy examplesdev conndev /examplesdev
ErrorLog logs/viking.dev.com-error_log
CustomLog logs/viking.dev.com-access_log common


ServerAdmin [EMAIL PROTECTED]
DocumentRoot
D:/Apache-Tomcat-4.0/jakarta-tomcat-4.0.2/webapps/examplesprod
ServerName viking-prod.com
WebAppConnection connprod warp localhost:8008
WebAppDeploy examplesprod connprod /examplesprod
ErrorLog logs/viking.prod.com-error_log
CustomLog logs/viking.prod.com-access_log common


b) Edit server.xml












I think that should do it. You can use the manager app to start, stop,
reload the contexts. Ofcourse you would need to deploy the manager webapp
in each virtual host defn. of the httpd.conf. And the same in the
 element of server.xml. Also it would be a good idea to use two
entirely different DocumentRoots rather than the above (which fall under
webapps). And also modify the appBase attribute in each  element
of server.xml appropriately once you do that. In the above I've use
mod_webapp as the connector. You could use mod_jk instead. I suppose it's
more stable than mod_webapp (see disclaimer again :-). Also remember to
turn off the standalone Http connector on port 8080.


2) Two tomcat instances (I haven't tried this. So I'm shooting in the dark
here :-)
-
a) Edit httpd.conf as in (1) above
b) See the section on Advanced Configuration - Multiple Tomcat 4 instances
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

Also a lot of this has been discussed in the archives. Check it out. And
also the documentation, your best source.
http://localhost:8080/tomcat-docs/index.html  -  tomcat documentation
and
http://localhost/manual/  -  apache documentation

RS







[EMAIL PROTECTED] on 03/11/2002 03:44:15 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  virutal hosting with apache/tomcat

sorry for the multiple post and waste of bandwith...didn't want the subject
to throw folks off.
- Forwarded by Jeffrey N Dyke/CORP/Keane on 03/11/2002 04:45 PM -

Jeffrey_N_Dyke

@Keane.com   To: "Tomcat Users List"
<[EMAIL PROTECTED]>
 cc:

03/11/2002   Subject: Re: checksum errors

04:42 PM

Please respond

to "Tomcat

Users List"








Hello All.
 I have the need to run multiple virtual servers on a
Unix/Apache/Tomcat set up.  The server is sliced to have a development area
as well as a production area.  I would prefer only to have 1 instance of
Tomcat running(maybe 1 per slice).  Is this possible?  I have been reading
the documentation and mailing list archives, but the more info i get the
more confused i becomeand yes i am fairly new to this.  If anyone has
set up this type of configuration, or attempted it, i'd love to hear about
it.  I am not against doing anything, even installing 1 tomcat per host,
but that doesn't seem to make sense.  I thought if there was a right
way...someone here has probably found it.

It is all the same server...just seperate named hosts and their respective
development environments.

Is this done in httpd.conf? server.xml?  Does anyone have any expierence
with this?  success rates?  suggesstions?

Thanks in advance for any and all assistance.
Jeff


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

Difference

2002-03-11 Thread Venkatesh . Sangam

Hi,

can anyone please tell me whats the difference between Tomcat 3.x and Tomcat
4.0.

I wanted to know whats catalina used for.
Can I get away without starting Catalina ??
I had to download Tomcat for Linux, I was confused as to which one to use ..

Thanks,
Venkatesh



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Help ! Connection busy

2002-03-11 Thread August Detlefsen

You have to explicitly close your JDBC statements and connections when
you are done with them. Make sure you are using these for Statement and
Connection, respectively: 

stmt.close();
//and
conn.close();


--- Gurmeet <[EMAIL PROTECTED]> wrote:
> I am getting "[Microsoft][ODBC SQL Server Driver]Connection is busy
> with
> results for another h
> stmt"
> 
> How do I get rid of this?
> 
> Regards
> Gurmeet
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: webdav over SSL with http-auth?

2002-03-11 Thread Aditya

It turned out that the problem fixed itself when I restarted tomcat. ugh.

On Mon, Mar 11, 2002 at 12:54:52PM -0800, Aditya wrote:
> I'm trying to allow users to upload their files to their context via webdav on
> a Tomcat 4.0.2 server over SSL and with auth-constraints on who can upload
> stuff (I've tried it without auth-constraints and it works as expected). I've
> followed the basic template offered at:
> 
>   http://www.jguru.com/faq/view.jsp?EID=544213
> 
> Unfortunately, Tomcat doesn't seem to be requiring the webdav client to
> present the http auth login prompt. I've tried logging in as:
> 
>   https://username:password@server/context
> 
> and that seems not to make a difference. If I try to PUT a file (this is with
> the cadaver client) I get a 302 error instead of a 403 as I would expect:
> 
> dav:/blah/> put foo.html
> Uploading foo.html to `/blah/foo.html':
> Progress: [=>] 100.0% of 255 bytes failed:
> 302 Moved Temporarily
> 
> My auth config in the context web.xml looks like the following:
> 
> 
>   
>  The Entire Web
>  /*
>  COPY
>  DELETE
>  MOVE
>  POST
>  PUT
>  LOCK
>   
>   
>  manager
>   
> 
> 
>   
> BASIC
> Blah realm
>   
> 
>   
>An example role defined in a JNDI realm
> manager
>   
> 
> does anyone have any hints on what I might be doing wrong?
> 
> Thanks,
> Adi
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Help in JSP

2002-03-11 Thread Neo Gigs

There is no problem with the statement of the parameters, coz i had tested
with a application.

- Original Message -
From: "August Detlefsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 2:00 AM
Subject: Re: Help in JSP


> You specify your statement as this:
>
>  String scall = "begin sp_GetClatTypeIE(?, ?); end;";
>
> Which has 2 ?s, but you are only setting the first one:
>
>  cs.setInt(1, interString);
>
> What does your error message say? If this is the problem, Oracle should
> return something like 'Invalid parameters specified'.
>
>
> --- Neo Gigs <[EMAIL PROTECTED]> wrote:
> > hi there,
> >
> > thanks for the reminder, yet there is no results return as output. I
> > tried
> > to replace the line:
> >
> > return output;
> >
> > with
> >
> > return "" + interString;
> >
> > and it return my input value...
> >
> > - Original Message -
> > From: "Karthikeyan .K.V" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Saturday, March 09, 2002 12:34 PM
> > Subject: RE: Help in JSP
> >
> >
> > > Think  use  the "output=" statement before u use  the close
> > function
> > > statement.
> > >
> > > Karthik
> > >
> > > -Original Message-
> > > From: Neo Gigs [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 08, 2002 9:53 PM
> > > To: Tomcat Users List
> > > Subject: Help in JSP
> > >
> > >
> > > Hi there all,
> > >
> > > I had a JSP page that talks to a JBeans, but the problem is my Bean
> > is
> > > actually doing DB connectivity to a Oracle db, as no result
> > returned from
> > > the Bean.
> > >
> > > As I had tested with the application of the same codes.
> > >
> > > Could anyone help me to scan thru, whats wrong with this?
> > >
> > > package com.mbf.beans;
> > >
> > > import java.sql.*;
> > > import java.math.*;
> > > import java.io.*;
> > > import oracle.jdbc.driver.*;
> > >
> > > public class SpTest
> > > {
> > > private int interString;
> > > private String output;
> > >
> > > public String getInput()
> > > {
> > > // First detect class existance
> > > try{
> > > Class.forName("oracle.jdbc.driver.OracleDriver");
> > > } catch (java.lang.ClassNotFoundException e){
> > > System.err.print("Class Not Found error!" +
> > e.getMessage());
> > > }
> > >
> > > // Now try to open db connection and do the fetching
> > > try{
> > > // DriverManager.registerDriver(new
> > > oracle.jdbc.driver.OracleDriver());
> > > String url = "jdbc:oracle:thin:@10.97.2.50:1521:REL4";
> > > String scall = "begin sp_GetClatTypeIE(?, ?); end;";
> > > Connection conn = DriverManager.getConnection(url,
> > "tux",
> > > "tux");
> > > CallableStatement cs = conn.prepareCall(scall);
> > > cs.registerOutParameter(2, Types.VARCHAR);
> > > cs.setInt(1, interString);
> > > cs.execute();
> > > cs.close();
> > > conn.close();
> > > output = cs.getString(2);
> > > } catch (SQLException e) {
> > > System.err.println("Error: " + e.getMessage());
> > > }
> > > return output;
> > > }
> > >
> > > public void setInput(String s)
> > > {
> > > // Here to assign input parameters
> > > interString = Integer.parseInt(s);
> > > }
> > > }
> > >
> > > Thanks
> > >
> > > Regards,
> > >
> > > Neo Gigs
> > > 
> > > VB?
> > > http://communities.msn.com.my/VisualBasicwithNeo
> > > http://www.vbcity.com/forum
> > > http://www.vbweb.co.uk
> > > Get paid cash receive email?
> > > http://www.MintMail.com/?m=1414418
> > > Reading SMS got paid?
> > > http://www.dynamicsms.com.au/intro.asp?ref=0123502385&refc=348
> > > Malaysianshop.com http://www.malaysianshop.com
> > > More Traffic?
> > > http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924&c=xbad1
> > > 
> > > Note:This is intended to addressees only, if you wanna be removed,
> > let me
> > > know.
> > >
> > >
> > >
> > > --
> > > To unsubscribe:
> > 
> > > For additional commands:
> > 
> > > Troubles with the list:
> > 
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> __
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


___

Re: Help in JSP

2002-03-11 Thread Neo Gigs

I found out that my problem is really coz by the Oracle driver cannot be
recognized by Tomcat, but i had been doing it and solve the problem, see
"Help In JSP" posts.

Anyway thanks everyone...

- Original Message -
From: "August Detlefsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 2:00 AM
Subject: Re: Help in JSP


> You specify your statement as this:
>
>  String scall = "begin sp_GetClatTypeIE(?, ?); end;";
>
> Which has 2 ?s, but you are only setting the first one:
>
>  cs.setInt(1, interString);
>
> What does your error message say? If this is the problem, Oracle should
> return something like 'Invalid parameters specified'.
>
>
> --- Neo Gigs <[EMAIL PROTECTED]> wrote:
> > hi there,
> >
> > thanks for the reminder, yet there is no results return as output. I
> > tried
> > to replace the line:
> >
> > return output;
> >
> > with
> >
> > return "" + interString;
> >
> > and it return my input value...
> >
> > - Original Message -
> > From: "Karthikeyan .K.V" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Saturday, March 09, 2002 12:34 PM
> > Subject: RE: Help in JSP
> >
> >
> > > Think  use  the "output=" statement before u use  the close
> > function
> > > statement.
> > >
> > > Karthik
> > >
> > > -Original Message-
> > > From: Neo Gigs [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 08, 2002 9:53 PM
> > > To: Tomcat Users List
> > > Subject: Help in JSP
> > >
> > >
> > > Hi there all,
> > >
> > > I had a JSP page that talks to a JBeans, but the problem is my Bean
> > is
> > > actually doing DB connectivity to a Oracle db, as no result
> > returned from
> > > the Bean.
> > >
> > > As I had tested with the application of the same codes.
> > >
> > > Could anyone help me to scan thru, whats wrong with this?
> > >
> > > package com.mbf.beans;
> > >
> > > import java.sql.*;
> > > import java.math.*;
> > > import java.io.*;
> > > import oracle.jdbc.driver.*;
> > >
> > > public class SpTest
> > > {
> > > private int interString;
> > > private String output;
> > >
> > > public String getInput()
> > > {
> > > // First detect class existance
> > > try{
> > > Class.forName("oracle.jdbc.driver.OracleDriver");
> > > } catch (java.lang.ClassNotFoundException e){
> > > System.err.print("Class Not Found error!" +
> > e.getMessage());
> > > }
> > >
> > > // Now try to open db connection and do the fetching
> > > try{
> > > // DriverManager.registerDriver(new
> > > oracle.jdbc.driver.OracleDriver());
> > > String url = "jdbc:oracle:thin:@10.97.2.50:1521:REL4";
> > > String scall = "begin sp_GetClatTypeIE(?, ?); end;";
> > > Connection conn = DriverManager.getConnection(url,
> > "tux",
> > > "tux");
> > > CallableStatement cs = conn.prepareCall(scall);
> > > cs.registerOutParameter(2, Types.VARCHAR);
> > > cs.setInt(1, interString);
> > > cs.execute();
> > > cs.close();
> > > conn.close();
> > > output = cs.getString(2);
> > > } catch (SQLException e) {
> > > System.err.println("Error: " + e.getMessage());
> > > }
> > > return output;
> > > }
> > >
> > > public void setInput(String s)
> > > {
> > > // Here to assign input parameters
> > > interString = Integer.parseInt(s);
> > > }
> > > }
> > >
> > > Thanks
> > >
> > > Regards,
> > >
> > > Neo Gigs
> > > 
> > > VB?
> > > http://communities.msn.com.my/VisualBasicwithNeo
> > > http://www.vbcity.com/forum
> > > http://www.vbweb.co.uk
> > > Get paid cash receive email?
> > > http://www.MintMail.com/?m=1414418
> > > Reading SMS got paid?
> > > http://www.dynamicsms.com.au/intro.asp?ref=0123502385&refc=348
> > > Malaysianshop.com http://www.malaysianshop.com
> > > More Traffic?
> > > http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924&c=xbad1
> > > 
> > > Note:This is intended to addressees only, if you wanna be removed,
> > let me
> > > know.
> > >
> > >
> > >
> > > --
> > > To unsubscribe:
> > 
> > > For additional commands:
> > 
> > > Troubles with the list:
> > 
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> __
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> --
> To unsubscribe:   
> For additional commands: 

Re: Difference

2002-03-11 Thread $B%"%s%H%K!<(B $B%9%F%$%9(B

 
> can anyone please tell me whats the difference between Tomcat 3.x and Tomcat
> 4.0.

Tomcat 3.x = Servlet 2.2 Container
Tomcat 4.x = Servlet 2.3 Container


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-03-11 Thread Galbayar

Hello all
Here is part of top output. Is it usual that java
processes eat all of memory? ? At now there are 50 java processes started
that running tomcat and each of them uses 59M memory. There is running
apache
server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
how to solve this problem?

106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
wap: 1020116K av, 0K used, 1020116K free 762320K cached

3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java




RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-03-11 Thread Filip Hanik

what you are seeing is that "ps" or "top" lists one process for each thread
in Tomcat.
your tomcat is running 59M all together

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-Original Message-
>From: Galbayar [mailto:[EMAIL PROTECTED]]
>Sent: Monday, March 11, 2002 6:04 PM
>To: Tomcat Users List
>Subject: Tomcat using VERY LARGE Memory (URGENT!)
>
>
>Hello all
>Here is part of top output. Is it usual that java
>processes eat all of memory? ? At now there are 50 java processes started
>that running tomcat and each of them uses 59M memory. There is running
>apache
>server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
>how to solve this problem?
>
>106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
>CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
>Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
>wap: 1020116K av, 0K used, 1020116K free 762320K cached
>
>3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
>3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
>3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
>3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
>3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-03-11 Thread Galbayar

it is top result and every java process using 59M RAM
i'm use mod_jk integrated Tomcat with Apache and Tomcat
top result is :


110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  2.3% user,  1.9% system,  0.0% nice, 95.6% idle
Mem:  1028860K av,  938924K used,   89936K free, 116K shrd,  139628K
buff
Swap: 1020116K av,   0K used, 1020116K free  680228K
cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
17862 root  15   0  1092 1092   836 R 1.7  0.1   0:00 top
17293 root  13   0 28176  59M  9576 S 1.5  2.7   0:01 java
17272 root  10   0 28176  59M  9576 S 0.1  2.7   0:02 java

and see MEM usage total RAM is 1028860K  938924K used,   89936K free


- Original Message -
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 10:14
Subject: RE: Tomcat using VERY LARGE Memory (URGENT!)


> what you are seeing is that "ps" or "top" lists one process for each
thread
> in Tomcat.
> your tomcat is running 59M all together
>
> Filip
>
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> [EMAIL PROTECTED]
> www.filip.net
>
> >-Original Message-
> >From: Galbayar [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 11, 2002 6:04 PM
> >To: Tomcat Users List
> >Subject: Tomcat using VERY LARGE Memory (URGENT!)
> >
> >
> >Hello all
> >Here is part of top output. Is it usual that java
> >processes eat all of memory? ? At now there are 50 java processes started
> >that running tomcat and each of them uses 59M memory. There is running
> >apache
> >server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is
installed.
> >how to solve this problem?
> >
> >106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
> >CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
> >Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
> >wap: 1020116K av, 0K used, 1020116K free 762320K cached
> >
> >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
> >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
> >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
> >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
> >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




how to explixitly close database connections.

2002-03-11 Thread Hari Yellina

Hi All,

 We are using Tomcat 3.2.4 and Postgresql for Point of Sale application.
After few days of working like 7 days. There are few idle postgesql database
connections running in back ground and my application freezes once it
reaches maximum limit of connection.

How to explicitly kill the connections.

Regards,

Hari Yellina.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-03-11 Thread Filip Hanik

and what do you get from running "ps" ?

what I am saying is that your top command lists each thread inside the
Tomcat VM as a process
because you haven't started 110 Tomcat's have you?

search the archives, there are answers to your questions from previous posts
Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

>-Original Message-
>From: Galbayar [mailto:[EMAIL PROTECTED]]
>Sent: Monday, March 11, 2002 6:26 PM
>To: Tomcat Users List
>Subject: Re: Tomcat using VERY LARGE Memory (URGENT!)
>
>
>it is top result and every java process using 59M RAM
>i'm use mod_jk integrated Tomcat with Apache and Tomcat
>top result is :
>
>
>110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped
>CPU states:  2.3% user,  1.9% system,  0.0% nice, 95.6% idle
>Mem:  1028860K av,  938924K used,   89936K free, 116K shrd,  139628K
>buff
>Swap: 1020116K av,   0K used, 1020116K free  680228K
>cached
>
>  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>17862 root  15   0  1092 1092   836 R 1.7  0.1   0:00 top
>17293 root  13   0 28176  59M  9576 S 1.5  2.7   0:01 java
>17272 root  10   0 28176  59M  9576 S 0.1  2.7   0:02 java
>
>and see MEM usage total RAM is 1028860K  938924K used,   89936K free
>
>
>- Original Message -
>From: "Filip Hanik" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Tuesday, March 12, 2002 10:14
>Subject: RE: Tomcat using VERY LARGE Memory (URGENT!)
>
>
>> what you are seeing is that "ps" or "top" lists one process for each
>thread
>> in Tomcat.
>> your tomcat is running 59M all together
>>
>> Filip
>>
>> ~
>> Namaste - I bow to the divine in you
>> ~
>> Filip Hanik
>> Software Architect
>> [EMAIL PROTECTED]
>> www.filip.net
>>
>> >-Original Message-
>> >From: Galbayar [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, March 11, 2002 6:04 PM
>> >To: Tomcat Users List
>> >Subject: Tomcat using VERY LARGE Memory (URGENT!)
>> >
>> >
>> >Hello all
>> >Here is part of top output. Is it usual that java
>> >processes eat all of memory? ? At now there are 50 java
>processes started
>> >that running tomcat and each of them uses 59M memory. There is running
>> >apache
>> >server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is
>installed.
>> >how to solve this problem?
>> >
>> >106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
>> >CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
>> >Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
>> >wap: 1020116K av, 0K used, 1020116K free 762320K cached
>> >
>> >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
>> >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
>> >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
>> >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>> >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
>> >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>> >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>> >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
>> >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
>> >
>> >
>>
>>
>> --
>> To unsubscribe:   
>> For additional commands: 
>> Troubles with the list: 
>>
>>
>>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Java Applet via Apache 1.3.20

2002-03-11 Thread Wisma Leader



Hi! All Users
 
I am a new Linux user and currently running Redhat 
7.1 with Apache_1.3.20.
I am having a problem with Java 
Applet.
 
I cannot view my web-design with Apache Server . 
Need a guide step.
How to install Tomcat into my Apache Server. I am a 
new Linux User.
 
Really need a step by step guide.
This is my attachment files about java applet that 
I currently use.
 
 
Thank Q
 
Best Regards,
WismaLeader
 


is.zip
Description: Zip compressed data

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)

2002-03-11 Thread Oyundalai.N.S

In addtition, after restarting tomcat memory usage of each java processes
decreases until 23M each
and grows up slowly.
Please see output of top that sorted by memory usage. . And after several
days it reaches up to 60M
each and crashes. Apache is working normally all time.

11:47am  up 7 days, 17:15,  2 users,  load average: 0.01, 0.03, 0.08
111 processes: 110 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.0% user,  1.7% system,  0.0% nice, 98.2% idle
Mem:  1028860K av,  961188K used,   67672K free, 116K shrd,  139632K
buff
Swap: 1020116K av,   0K used, 1020116K free  705172K
cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
18492 root   9   0 26536  25M  9576 S 0.0  2.5   0:03 java
18493 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18494 root   9   0 26536  25M  9576 S 0.0  2.5   0:01 java
18495 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18496 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18497 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18498 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18499 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18500 root   9   0 26536  25M  9576 S 0.0  2.5   0:01 java
18503 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18504 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18507 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18508 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18509 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18510 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18511 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18512 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18513 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18514 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18515 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18516 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18517 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18518 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18519 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18520 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18529 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18535 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18538 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18539 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18544 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18545 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18546 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18556 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18557 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18558 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18600 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18602 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18605 root   9   0 26536  25M  9576 S 0.0  2.5   0:00 java
18526 nobody 9   0  4968 4968  4608 S 0.0  0.4   0:00 httpd
18532 nobody 9   0  4780 4780  4368 S 0.0  0.4   0:00 httpd
18531 nobody 9   0  4768 4768  4396 S 0.0  0.4   0:00 httpd
18525 nobody 9   0  4752 4752  4392 S 0.0  0.4   0:00 httpd
18530 nobody 9   0  4480 4480  4260 S 0.0  0.4   0:00 httpd
18524 nobody 9   0  4476 4476  4256 S 0.0  0.4   0:00 httpd
18522 nobody 9   0  4472 4472  4256 S 0.0  0.4   0:00 httpd
18523 nobody 9   0  4472 4472  4256 S 0.0  0.4   0:00 httpd
18528 nobody 9   0  4472 4472  4260 S 0.0  0.4   0:00 httpd
18540 nobody 9   0  4468 4468  4260 S 0.0  0.4   0:00 httpd


After crashing tomcat I see on the browser "Internal server error" and log
file  is fulled by following messages

...
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Sat Mar 09 22:51:13 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:15 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Sat Mar 09 22:51:15 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Sat Mar 09 22:51:15 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
...



- Original Message -
From: "Galbayar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 10:03 AM
Subject: Tomcat u

Re: Database Pooling

2002-03-11 Thread Neo Gigs

Hi there,

Would you mind to tell me how to deploy Excalibur into my Tomcat server
running on Sun solaris?

Also what is Cocoon and where to find it?

TQ

Neo
- Original Message -
From: "Chris Pheby" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 9:00 PM
Subject: RE: Database Pooling


> Hi thanks for the prompt reply, very useful. I am evaluating Excalibur,
> because I think Cocoon uses it, and I am interested in finding out more
> about Cocoon as well.
>
> Regards,
>
> Chris.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of Ralph Einfeldt
> Sent: 11 March 2002 12:09
> To: Tomcat Users List
> Subject: AW: Database Pooling
>
>
> Have a look at
> http://www2.gvsu.edu/~millerjr/ResearchPaper.html
>
> and
>
> http://jakarta.apache.org/avalon/excalibur/datasource.html
>
>
>
> > -Ursprüngliche Nachricht-
> > Von: Chris Pheby [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 11. März 2002 13:03
> > An: [EMAIL PROTECTED]
> > Betreff: Database Pooling
> >
> >
> > Now Poolman is being declared obsolete
> > (http://www.codestudio.com/PoolMan),
> > I wondered if anyone can point me to any documentation on Connection
> > Pooling, hopefully within Tomcat, but perhaps otherwise in
> > another project
> > that they are using?
> >
> >
> > Thanks,
> >
> >
> > Chris.
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Java Applet

2002-03-11 Thread Wisma Leader

Hi! All Users

I am a new Linux user and currently running Redhat 7.1 with Apache_1.3.20.
I am having a problem with Java Applet.

I cannot view my web-design with Apache Server . Need a guide step.
How to install Tomcat into my Apache Server. I am a new Linux User.

Really need a step by step guide



Re: Java Applet

2002-03-11 Thread Neo Gigs

i think you should first download Tomcat from jarkarta website, then read
the installation guide for the installing Tomcat over Apache.

- Original Message -
From: "Wisma Leader" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 12:02 PM
Subject: Java Applet


Hi! All Users

I am a new Linux user and currently running Redhat 7.1 with Apache_1.3.20.
I am having a problem with Java Applet.

I cannot view my web-design with Apache Server . Need a guide step.
How to install Tomcat into my Apache Server. I am a new Linux User.

Really need a step by step guide



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Database Pooling

2002-03-11 Thread Craig R. McClanahan



On Tue, 12 Mar 2002, Neo Gigs wrote:

> Date: Tue, 12 Mar 2002 12:01:18 +0800
> From: Neo Gigs <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Database Pooling
>
> Hi there,
>
> Would you mind to tell me how to deploy Excalibur into my Tomcat server
> running on Sun solaris?
>

Sounds like a good question for the Avalon users list, since it's part of
Avalon.  Subscription info at:

  http://jakarta.apache.org/site/mail.html

> Also what is Cocoon and where to find it?
>

Well, there's always google for questions like this -- it's only the very
first link that comes up :-)

  http://xml.apache.org/cocoon/

> TQ
>
> Neo

Craig


> - Original Message -
> From: "Chris Pheby" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, March 11, 2002 9:00 PM
> Subject: RE: Database Pooling
>
>
> > Hi thanks for the prompt reply, very useful. I am evaluating Excalibur,
> > because I think Cocoon uses it, and I am interested in finding out more
> > about Cocoon as well.
> >
> > Regards,
> >
> > Chris.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > On Behalf Of Ralph Einfeldt
> > Sent: 11 March 2002 12:09
> > To: Tomcat Users List
> > Subject: AW: Database Pooling
> >
> >
> > Have a look at
> > http://www2.gvsu.edu/~millerjr/ResearchPaper.html
> >
> > and
> >
> > http://jakarta.apache.org/avalon/excalibur/datasource.html
> >
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: Chris Pheby [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Montag, 11. März 2002 13:03
> > > An: [EMAIL PROTECTED]
> > > Betreff: Database Pooling
> > >
> > >
> > > Now Poolman is being declared obsolete
> > > (http://www.codestudio.com/PoolMan),
> > > I wondered if anyone can point me to any documentation on Connection
> > > Pooling, hopefully within Tomcat, but perhaps otherwise in
> > > another project
> > > that they are using?
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Chris.
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > >
> > >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Java Applet

2002-03-11 Thread Wisma Leader

OK ..Thank ...which TomCat tools should I download ?


Best regards,
Wismaleader



- Original Message -
From: "Neo Gigs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 12:14 PM
Subject: Re: Java Applet


> i think you should first download Tomcat from jarkarta website, then read
> the installation guide for the installing Tomcat over Apache.
>
> - Original Message -
> From: "Wisma Leader" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 12, 2002 12:02 PM
> Subject: Java Applet
>
>
> Hi! All Users
>
> I am a new Linux user and currently running Redhat 7.1 with Apache_1.3.20.
> I am having a problem with Java Applet.
>
> I cannot view my web-design with Apache Server . Need a guide step.
> How to install Tomcat into my Apache Server. I am a new Linux User.
>
> Really need a step by step guide
>
>
>
>
> _
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   >