Re: Re: mod_jk: ajp13: cpu load problem with apache

2002-05-02 Thread csterg

First of all thank you for your interest.
I will download the latest code and try this out. I do have the debug mode 
enabled so I will sent you any errors (although I have not noticed anything 
special). 
I don't think though that I can reproduce the problem myself. 
About the gdb, I have no experience of how to attach to the process but I will 
do my best to find a colleague that does.
Thanks,
Costas
 
 Can you try the CVS head, and see if it still happens ?
 If so, can you give us more details that would allow to
 reproduce it ? 
 
 Messages like 'it doesn't work for me, you figure out why'
 are not very helpfull.
 
 At least enable the debug messages, let it run until it
 hungs, then maybe trim the log and send the last entries.
 Or use gdb to attach to the problem process and do a 
 stack trace. 
 
 Costin
 
 On Wed, 1 May 2002, Costas Stergiou wrote:
 
  Hi,
  I have an installation of Apache 1.3.19 + Tomcat 4.0.3
  on a aix4.3 machine with IBM JDK 1.3.0. I have two tomcat
  engines and I use the lb worker of mod_jk to balance user
  request to these two engines. 
  
  The problem is that some httpd processes seem to go
  into some cpu performance tasks and start consuming all
  the cpu of the machine (2processors, 2GB mem). After
  some time almost all available CPU is consumed by the
  apache processes. If I kill the child processes that cause
  the problem, the load falls back to normal. At the same time,
  I notice that I have excessive CPU usage in one of the
  tomcat instances.
  
  The problem keeps recurring all the time (almost every hour).
  I read in the mail-archives about similar problems but I didn't 
  find a good answer. 
  
  The version of mod_jk is the one in jakarta-tomcat-connectors-4.0.2.01
  I compiled the source on the same machine (aix).
  
  I have to say that I have noticed similar problems on many more 
  apache installations that have similar installations (apache, lb + 
  2 or more tomcat engines) with older versions of mod_jk and tomcat.
  
  Actually, the above problem makes the lb worker unusable since 
  I cannot trust the setup in my production environment. 
  
  Please, any idea or patches or whatever will be very helpful.
  Thanks very much for any ideas,
  Costas
  
  
  
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




How to redirect the log file from the command window to a file?

2002-05-02 Thread Louis Voo

Hi,

I'm using tomcat 4.04b2 for window.  After I start my tomcat, all the
system.out log will print out in that command window, can I redirect it to a
file?  Please tell me  how to do that.


Thank you

Louis



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




what is needed to connect to mysql

2002-05-02 Thread # Lalit Nagpal #


hello,

plz can anybody tell me how to connect to a mysql database through a servlet. i know 
how to prepare a connection etc through code but what other settings are needed. i am 
using tomcat 4 as a standalone.

The error i get is Class not found org.gjt.mm.mysql.Driver

plz help ... 


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness


digested passwords: using RealmBase.Digest() in a jsp

2002-05-02 Thread Ralf Baumert

Hi Folks,

please help me out of this one...

I´ve set up a tomcat with JDBC Realm Authentication
and MD5 Digest. So far, it works fine, but I
somehow don´t manage to use the Method
org.apache.catalina.realm.RealmBase.Digest()
in one of my JSPs.

I need this Feature to let my Users change their
passwords via web.

This works well when implemented as Standalone
Application. I just can´t import this class in my
JSPs. The reason is that I can´t include catalina.jar
in my classpath - tomcat won´t start when I do.

Any Ideas ? Workarounds ?

regards,
Ralf

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Sie brauchen mehr Speicher für Ihre E-Mails? - http://premiummail.yahoo.de

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




R: what is needed to connect to mysql

2002-05-02 Thread Gianluca Gravina



 -Messaggio originale-
 Da: # Lalit Nagpal # [mailto:[EMAIL PROTECTED]] 
 Inviato: giovedì 2 maggio 2002 11.09
 A: [EMAIL PROTECTED]
 Oggetto: what is needed to connect to mysql
 
 
 
 hello,
 
 plz can anybody tell me how to connect to a mysql database 
 through a servlet. i know how to prepare a connection etc 
 through code but what other settings are needed. i am using 
 tomcat 4 as a standalone.
 
 The error i get is Class not found org.gjt.mm.mysql.Driver
 
 plz help ... 
 

Put your jdbc driver for mysql in your {webapp}/WEB-INF/lib/folder ...
It should work!

Bye, Grava



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




Receipt of 02/05/102 10:31 message

2002-05-02 Thread Andrew . Bate


Re:R: what is needed to connect to mysql




**
This message has been sent via the Internet. Internet communications 
are not secure against interception or modification. Severn Trent 
Systems therefore can not guarantee that this message has not been
modified in transit, and this message should not be viewed as 
contractually binding.

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 
***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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




web application using implementation Sun's JSSE

2002-05-02 Thread Richard Wooding

Hi all,

I have following configuration:

1. Local Web server:

* A web application written using JSP 1.2
* IBM Java SDK 1.3 (for Linux)
* Tomcat 4
* Sun's JSSE 1.0.2 (as an SSL Implementation)

2. Remote Web Server
* Black box with a servlet which accepts requests via HTTPS

The local web application generates a document (in XML) which needs to
send a HTTPS POST request to the remote web server for processing. I
have written a class which does this using JSSE. The class works fine
standalone outside Tomcat and successfully posts the document to the
remote web server.

I have installed JSSE jar file JAVA_HOME/lib/ext

However when trying to use the class from within a JSP web application I
receive 'SSL Implemention Not Available'.

Most help on web is on how to use JSSE for HTTPS enabling Tomcat,
however I am not doing this, my web application is acting as an HTTPS
client.

Regards
Richard Wooding


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




Problem while retreiving Client Certificate

2002-05-02 Thread Raja Sekhar

Hi,

I am using Tomcat 4.0.3 with Apache 1.3.24 on Redhat Linux 7.1. For SSL, I have 
configured Apache with mod_ssl  the connector I am using is mod_webapp. The SSL 
Connection is successfully done. I have a servlet on Tomcat which is expecting a 
Client Certificate. I have made SSLVerifyClient -- True  it accepts client 
certificate at SSL Handshake. 

I am using the following code to retreive the certificate from servlet running on 
Tomcat

Object certReqObject = request.getAttribute(javax.servlet.request.X509Certificate);
I have downloaded the WarpConnector source. In WarpRequest.java, the certificate 
object is set to null if any exception occurs. 
Can any one help me where I am going wrong. I am using trial Server certificate which 
we automatically get while configuring Apache with SSL. The certificate entry in 
httpd.conf is as follows
-
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
SSLVerifyClient require
SSLVerifyDepth  10 
---
Please help me out at the earliest as I am struck badly.
Thanks  Regards,
..Raj



Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




Re: R: what is needed to connect to mysql

2002-05-02 Thread # Lalit Nagpal #


thanx man,
it works if u keep the extracted package
in the lib directory, and if u keep the 
jar file ... i wonder why it wont get
the necessary classes.
 


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness


RE: How to redirect the log file from the command window to a file?

2002-05-02 Thread Jon Wingfield

1) alter the catalina.bat file:

... extract ...
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
%DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath
%CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_H
OME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS%
%ACTION%  %ACTION%-server.log
... extract end ...

this puts all the system.out into a file start-server.log in the tomcat bin
directory.

2) use the jakarta log4j logging package with a ConsoleAppender ;)

Hope this helps,

Jon

-Original Message-
From: Louis Voo [mailto:[EMAIL PROTECTED]]
Sent: 02 May 2002 08:17
To: Tomcat Users List
Subject: How to redirect the log file from the command window to a file?


Hi,

I'm using tomcat 4.04b2 for window.  After I start my tomcat, all the
system.out log will print out in that command window, can I redirect it to a
file?  Please tell me  how to do that.


Thank you

Louis



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



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




ideas invited

2002-05-02 Thread # Lalit Nagpal #

hi,

i want tomcat 4 to startup up auto whenever the
machine is rebooted so i have put the entry
tomcat_path/startup.sh. As suggested by some i have
set the java path and tomcat home also in rc.local
file before running the startup.sh file. still it does
not seem to work. any bright ideas on this.

thanx a lot




# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness


Re: ideas invited

2002-05-02 Thread David Kavanagh

What I've done is to insert some commands at the top of tomcat.sh, then 
link it from /etc/rc2.d/S99tomcat to tomcathome/bin/tomcat.sh (if on 
solaris).
on Linux, I put it in /etc/rc5.d

David

# Lalit Nagpal # wrote:

hi,

i want tomcat 4 to startup up auto whenever the
machine is rebooted so i have put the entry
tomcat_path/startup.sh. As suggested by some i have
set the java path and tomcat home also in rc.local
file before running the startup.sh file. still it does
not seem to work. any bright ideas on this.

thanx a lot




# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness




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




How to add a throw exception to a servlet

2002-05-02 Thread Raphael

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The doPost method of a servlet looks like this :

public class selectdetail extends HttpServlet {
public void doPost(HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException {

What if in my doPost method I am using Object methods that throw other 
exceptions, like SQLException. The Java compiler would not let me write :

public void doPost(HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException,SQLException

But I want the exception to be caught in the error.jsp page, not do a try 
{...} catch{...} inside the doPost body.

I don't know if I explained it correctly but is there a simple solution to 
this problem ?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE80Sfrh2ITK4xBkFERAgMfAJ95HwnlLTICnfOeOrK33jifllqhtACdFrXN
xtFJ/YRjwGEqQNESeKRTrAE=
=IMF1
-END PGP SIGNATURE-


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




Re: ideas invited

2002-05-02 Thread # Lalit Nagpal #


 so sorry,
i did not understand what u meant ... where did rc5.d come from
  David Kavanagh [EMAIL PROTECTED] wrote: What I've done is to insert some commands at 
the top of tomcat.sh, then 
link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on 
solaris).
on Linux, I put it in /etc/rc5.d

David

# Lalit Nagpal # wrote:

hi,

i want tomcat 4 to startup up auto whenever the
machine is rebooted so i have put the entry
/startup.sh. As suggested by some i have
set the java path and tomcat home also in rc.local
file before running the startup.sh file. still it does
not seem to work. any bright ideas on this.

thanx a lot




# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness




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


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness


Re: ideas invited

2002-05-02 Thread David Kavanagh

Well, it sounds like you are running on some flavor of unix. I've set up 
tomcat servers on solaris and linux. For Solaris you can put the startup 
script in /etc/rc2.d or /etc/rc3.d. If you run on Linux. I found you 
need to put it in /etc/rc5.d. If you don't use linux, don't worry about 
rc5.d.

The commands I've put in the top of the tomcat.sh are to set environment 
variables. An alternative would be write your own script that sets the 
variables, then calls tomcat.sh (forwarding the commandline arguments). 
That way, tomcat.sh won't be altered. Come to think of it, I'll probably 
start doing this myself...

David

# Lalit Nagpal # wrote:

 so sorry,
i did not understand what u meant ... where did rc5.d come from
  David Kavanagh [EMAIL PROTECTED] wrote: What I've done is to insert some commands at 
the top of tomcat.sh, then 
link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on 
solaris).
on Linux, I put it in /etc/rc5.d

David

# Lalit Nagpal # wrote:

hi,

i want tomcat 4 to startup up auto whenever the
machine is rebooted so i have put the entry
/startup.sh. As suggested by some i have
set the java path and tomcat home also in rc.local
file before running the startup.sh file. still it does
not seem to work. any bright ideas on this.

thanx a lot




# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness




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


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness





Re: ideas invited

2002-05-02 Thread PChaganti

If you set the java path and tomcat home in rc.local, what user are these 
env variables being set for??

prabhakar




hi,

i want tomcat 4 to startup up auto whenever the
machine is rebooted so i have put the entry
tomcat_path/startup.sh. As suggested by some i have
set the java path and tomcat home also in rc.local
file before running the startup.sh file. still it does
not seem to work. any bright ideas on this.

thanx a lot




# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness



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




Re: ideas invited

2002-05-02 Thread David Cassidy

following in the standard 'and here's one I made earlier' line

here's one that works - really rather well !

Install it in /etc/rc.d/init.d

then ( if you have linux ) run
chkconfig --add tomcat

or if you use some other unix varient see what run level you are running at

( have a look in inittab )

and then cd to /etc/rc.d/rcx.d
ln -s /etc/rc.d/init.d/tomcat .

if you don't have the /etc/rc.d directory you can miss that bit out ...

this will run Tomcat as the user tomcat - so you might want to add that 
user or change it ...

Let us know

David Cassidy




David Kavanagh wrote:

 Well, it sounds like you are running on some flavor of unix. I've set up

 tomcat servers on solaris and linux. For Solaris you can put the startup

 script in /etc/rc2.d or /etc/rc3.d. If you run on Linux. I found you 
 need to put it in /etc/rc5.d. If you don't use linux, don't worry 
 about rc5.d.

 The commands I've put in the top of the tomcat.sh are to set environment

 variables. An alternative would be write your own script that sets the 
 variables, then calls tomcat.sh (forwarding the commandline 
 arguments). That way, tomcat.sh won't be altered. Come to think of it, 
 I'll probably

 start doing this myself...

 David

 # Lalit Nagpal # wrote:

 so sorry,
 i did not understand what u meant ... where did rc5.d come from
  David Kavanagh [EMAIL PROTECTED] wrote: What I've done is to insert

 some commands at the top of tomcat.sh, then

 link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on solaris).
 on Linux, I put it in /etc/rc5.d

 David

 # Lalit Nagpal # wrote:

 hi,

 i want tomcat 4 to startup up auto whenever the
 machine is rebooted so i have put the entry
 /startup.sh. As suggested by some i have
 set the java path and tomcat home also in rc.local
 file before running the startup.sh file. still it does
 not seem to work. any bright ideas on this.

 thanx a lot




 # Lalit Nagpal #


 -
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness




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

 # Lalit Nagpal #


 -
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness







tomcat
Description: application/java-vm

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


urgent : treeview...

2002-05-02 Thread Jean Fotovat

hello community,

is there someone who has tested successfully the tree implementation sample on
http://www.keyboardmonkey.com/pilotlight
with tomcat 3.2.1, or better with jbuilder 5.



Is the list administrator blocking people who come back

2002-05-02 Thread snodx

Is the list administrator blocking
mails from subscribed participants
who come back after 6 months to
participate in the list

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




Processing JSPs from stand-alone Java App

2002-05-02 Thread Klaas_Bals

Hi,

I have JSP pages that I want to process in an offline mode from with my
Java application. I've been able to compile it with Jasper JspC, but now I
need to execute them.
I've started doing this, but I can't get the environment (Contexts,
Response and Request...) set up properly for the JSP class files to
execute.

Has anyone done this or tried doing this? Some help/links/example code is
VERY welcome!

Thanks a lot!
-
Klaas Bals  -  Project Leader  Technical Designer
Inventive Designers
Phone: +32 - 3 - 8210170
Fax: +32 - 3 - 8210171
Email: [EMAIL PROTECTED]





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




RE: Which Connector for Tomcat 4.0.3 - mod_webapp or mod_jk

2002-05-02 Thread Noel J. Bergman

 For example, mod_jk won't know that we want
 Tomcat to process a filter chain against a directory unless we've done a
 JkMount for that tree, whereas it would know that Tomcat needs to process
a
 JSP page.  On the other hand, mod_webapp would know about the filter
chain
 because the resources would have been deployed as part of a web app.

 This isn't quite true.  You can get the same functionality with mod_jk as
 mod_webapp by saying:

 JkMount /mycontext ajp13
 JkMount /mycontext/* ajp13
 that works *exactly* the same as:
 WebAppDeploy mycontext warpConnection /mycontext/

Which part of unless we've done a JkMount for that tree didn't you
understand?  I did not say that mod_jk doesn't support the facility, just
that it has to be configured properly.  Your example provides exactly what I
said would be necessary.

Having done this, Tomcat will serve up even static resources in that
context.  Which is what the deployment is asking for in this case.

--- Noel


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




Please Help The New Bie For Virtual Hosting

2002-05-02 Thread Designing Department

Hello,

I am using Tomcat 3.3.1 on my unix server now want to use it for Virtual
Hosting also. I have done everything as suggested at
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html
but when restarting Tomcat with the -f command line option I receive the
following errors I know there is some problrm at line 14 where I
mentioned
Logger name=tc_log path=logs/tomcat_joe.log customOutput=yes /
but unable to detect please help me I am a new bie

Best Regards
Vikas


[root@unixhost5 conf]#$TOMCAT_HOME/bin/startup.sh -f
server_webcrossway.xml
  Using classpath: /usr/local/jakarta-tomcat-3.3.1/bin/../lib/tomcat.jar

  Using JAVA_HOME: /usr/local/jdk1.3
  Using TOMCAT_HOME: /usr/local/jakarta-tomcat-3.3.1
  [root@unixhost5 conf]# ERROR reading
  /usr/local/jakarta-tomcat-3.3.1/conf/server_webcrossway.xml
  At Line 14 /Server/Logger/ name=tc_log
path=logs/tomcat_webcrossway.log
  customOutput=yes

  java.lang.ClassNotFoundException:
org.apache.tomcat.util.log.QueueLogger
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at
org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.java:772)
  at
org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:493)
  at
org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:87)
   at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)

  at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
  at
org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
  at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
  at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
  at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
  at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
  at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
  at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:311)
  at

org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(ServerXmlReader.java:173)

  at

org.apache.tomcat.modules.config.ServerXmlReader.addInterceptor(ServerXmlReader.java:149)

  at
org.apache.tomcat.core.ContextManager.addInterceptor(ContextManager.java:436)

  at

org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:552)

  at
org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)

  at
org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
  at

org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)

  at java.security.AccessController.doPrivileged(Native Method)
   at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)

  at
org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
  at java.lang.reflect.Method.invoke(Native Method)
  at
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)

  at org.apache.tomcat.startup.Main.execute(Main.java:313)
  at org.apache.tomcat.startup.Main.main(Main.java:140)
  EmbededTomcat: exception initializing ContextManager
  org.apache.tomcat.core.TomcatException: Root cause -
  org.apache.tomcat.util.log.QueueLogger
  at

org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(ServerXmlReader.java:177)

  at

org.apache.tomcat.modules.config.ServerXmlReader.addInterceptor(ServerXmlReader.java:149)

  at
org.apache.tomcat.core.ContextManager.addInterceptor(ContextManager.java:436)

  at

org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:552)

  at
org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)

  at
org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
   at

org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)

  at java.security.AccessController.doPrivileged(Native Method)
  at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)

  at
org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
  at java.lang.reflect.Method.invoke(Native Method)
  at
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)

  at org.apache.tomcat.startup.Main.execute(Main.java:313)
  at org.apache.tomcat.startup.Main.main(Main.java:140)
  Guessed home=/usr/local/jakarta-tomcat-3.3.1
  Exception: 

A bit off topic

2002-05-02 Thread Richard Johnstone

I know this is a bit off topic but I can't seem to get an answer from
anywhere.
Has anyone been able to load a Java array from a servlet into a
javascript array within the HTML page generated by the servlet?
Is it possible?


The information contained in this communication is intended solely for the use of the 
individual or entity to whom it is addressed and others authorized to receive it.  It 
may contain confidential or legally privileged information.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, distribution 
or taking any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you received this communication in error, please 
notify us immediately by responding to this email and then delete it from your system.
Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper 
and complete transmission of the information contained in this communication nor for 
any delay in its receipt.



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


Tomcat 4 Configuration help needed!!!

2002-05-02 Thread Mikael Helbo Kjær

Hi all.

I am in need of the help of a clever soul from this list.

I have a tomcat 4 running a major web application based on struts and
several internal developed classes, which needs to assume some control of
the virtual hosting on the server.

See in our application we have a framework based on a filter which needs to
do something like this:

http://www.tse.dk/tse/do/login should really be redirected to the resource
at:
http://www.tse.dk/do/login, but only if the tse part of the URL is present
otherwise it is a errorneous URL in the context of the application. Now we
achieve this through a Servlet 2.3 Filter which puts a wrapper around the
ServletRequest to ensure proper routing happens. This is all an exercise to
allow for one web application to host many virtual companies without
needing to actually do any kind of installing on the server for each company
we host for. Now the problem is I have all the code running, however when
the URL is '/tse/do/login' instead of '/do/login' then our filter doesn't
get called. We have a context mapping in servlet.xml, which maps the '/'
context to our webapplication, and that works, however when we do '/tse/' it
seems that Tomcat goes off looking for other webapplications instead of
mapping it to ours correctly.

I hope somebody here can tell me how to keep Tomcat from doing that. To make
Tomcat map all stuff coming in after the hostname to be mapped to our
webapplication instead of anything else.

Best regards
Mikael Helbo Kjaer
Software developer @ TSE


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




RE: A bit off topic

2002-05-02 Thread Mikael Helbo Kjar


 I know this is a bit off topic but I can't seem to get an answer from
 anywhere.
 Has anyone been able to load a Java array from a servlet into a
 javascript array within the HTML page generated by the servlet?
 Is it possible?

I have just written out the initialization of the JavaScript array by just
outputting it the page. I suspect a dynamic keep-alive solution might be
possible using DOM and JavaScript. I have seen JavaScript and ASP examples
of this. Maybe one of those could help you.

Best regards
Mikael


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




RE: A bit off topic

2002-05-02 Thread Wagoner, Mark

You can't do it directly, but using a loop and JavaScript's literal
initializer you can create the JS code to do it.

(Note: this is not the most efficient way to do it, you should use a
StringBuffer to build the variable.)

String jsVar = [ + array[0];
for (int i = 1; i  array.length; i++)
  jsVar = jsVar + , + array[i];
out.println(var jsArray =  + jsVar + ];;

There is nothing special to do on the client side.  Just make sure the line
is output within the HEAD section of the page and your array (called
jsArray) will be declared and populated when the page is loaded in the
browser.

-Original Message-
From: Richard Johnstone
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 9:02 AM
To: [EMAIL PROTECTED]
Subject: A bit off topic


I know this is a bit off topic but I can't seem to get an answer from
anywhere.
Has anyone been able to load a Java array from a servlet into a
javascript array within the HTML page generated by the servlet?
Is it possible?

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




Re: OutofMemoryError

2002-05-02 Thread Jari Ikavalko

Hi Matthew and co.,

have you tried to examine tomcat -behaviour with a profiler? I tried with
OptimizeIt, and it seems to me that the Garbage Collector doesn't free
memory that is reserved for sessions. I mean that session itself ends ok,
but the gc just won't free the memory.

Does anyone else have noticed something similar?

My system:
Windows 2000
JDK 1.4.0
Tomcat 4.0

-- Jari Ikävalko --


On Wed, 1 May 2002, Matthew Boeckman wrote:

 Are you running java 1.3 or 1.4 ? We're really trying to nail this down. 
 We've had the Xms and Xmx options in place now for some time, and the 
 java proc just grows right past Xmx, up to nearly full system memory, 
 then tomcat dies.
 
 I'm ready to hear any suggestions, but I want to try to narrow the scope 
 somewhat.
 
 Laurent Féral-Pierssens wrote:
  Hi Matthew,
  
  I have been experiencing the same problems but with T3.2.x.
  
  You should try to use Tomcat options -Xms and -Xmx
  
  I added those 2 lines:
  
  TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc
  export TOMCAT_OPTS
  
  in my /etc/init.d/tomcat script 
  
  This increase the default heap size of the JVM to 256Meg (from 64Meg)
  and make sure incremental Garbage collection is done. Since I changed
  those, I have no more OutOfMemory errors.
  
  Hope it helps,
  Laurent
  
  
  
  
  -Original Message-
  From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
  Sent: May 1, 2002 12:08 PM
  To: [EMAIL PROTECTED]
  Subject: OutofMemoryError
  
  
  Hello List.
  
  I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 
  3.23.43
  I am occasionally seeing tomcat go postal with the following errors:
  Exception in thread CompileThread0 java.lang.OutOfMemoryError: 
  requested 32760 bytes
  
  
  
  Another exception has been detected while we were handling last error.
  No information available. Please check ERROR REPORT FILE for further
  information, if there is any. Good bye.
  
  An unexpected exception has been detected in native code outside the VM.
  Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A)
  Library=(N/A)
  
  NOTE: We are unable to locate the function name symbol for the error
 just occurred. Please refer to release documentation for possible
 reason and solutions.
  
  
  Current Java thread:
  
  
  
  Another exception has been detected while we were handling last error.
  Dumping information about last error: ERROR REPORT FILE = (N/A)
  PC= 0x0x419852cb
  SIGNAL= 11
  FUNCTION NAME = (N/A)
  LIBRARY NAME  = (N/A)
  Please check ERROR REPORT FILE for further information, if there is any.
  Good bye.
  
  Any thoughts on what might be the cause? There is nothing in the log 
  files to tell me more than this, which gets dumped to the console.
  
  -Thanks!
  
 
 
 -- 
 Matthew Boeckman  (816) 777-2160
 Manager - Systems Integration Saepio Technologies
 == 
   ==
 ...Many say that DOS is the dark side, but actually UNIX is more like 
 the dark side: It's less likely to find the one way to destroy your 
 incredibly powerful machine, and more likely to make upper management choke.
   -Lore Sjoberg
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Re: How to redirect the log file from the command window to a file?

2002-05-02 Thread Louis Voo

Hi Jon
Thanks for your tip, but I still got problem, the start-server.log
file is created, but no content in it, there are many print out from the
command window, but the file is still empty.  Somewhere goes wrong?


Louis
- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 12:01 PM
Subject: RE: How to redirect the log file from the command window to a file?


 1) alter the catalina.bat file:

 ... extract ...
 %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
 %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath

%CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_H
 OME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS%
 %ACTION%  %ACTION%-server.log
 ... extract end ...

 this puts all the system.out into a file start-server.log in the tomcat
bin
 directory.

 2) use the jakarta log4j logging package with a ConsoleAppender ;)

 Hope this helps,

 Jon

 -Original Message-
 From: Louis Voo [mailto:[EMAIL PROTECTED]]
 Sent: 02 May 2002 08:17
 To: Tomcat Users List
 Subject: How to redirect the log file from the command window to a file?


 Hi,

 I'm using tomcat 4.04b2 for window.  After I start my tomcat, all the
 system.out log will print out in that command window, can I redirect it to
a
 file?  Please tell me  how to do that.


 Thank you

 Louis



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



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




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




Maximum user with Tomcat

2002-05-02 Thread paolo ciao

I have a question: which is the maximum load of user
with tomcat? There is a documentation to find ansewer
to this question?
Thanks, bye

__
Con Yahoo! vinci viaggi per i Mondiali FIFA 2002
http://it.yahoo.com/mail_it/foot/?http://lasfida.yahoo.net/

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




Could'nt connect to X11 window server

2002-05-02 Thread snodx

Greetings everybody,

The list administrator may please pardon
me for my earlier excesses. I was
repeatedly getting [EMAIL PROTECTED]
so I had to resort to messages like the
earlier one.

To begin with I may mention that I am
posting this question here because the
JServ list has been discontinued (the last
posting was on March of last year!). Tomcat
is a servlet engine closely modelled on JServ
so any trouble that JServ comes up with can
be handled by the masters of Tomcat.

So this is my setup, I have Apache JServ 1.1.2
configured to run with Apache 1.3.19 on a Mandrake
7.2 with the X11 window server installed and running.

I compiled the following servlet and placed it in
the servlets folder of JServ:

public class OpenFrame extends HttpServlet implements SingleThreadModel
{
 public void doGet(Http..request req, ..response res) throws 
 {
   set content type text/html
   PrintWriter out=res.getWriter();
   out.println(htmlheadtitle);
   out.println(THIS SERVLET ALSO OPENS A AWT FRAME);
   out.println(/titlebodyOPENING FRAMEbr/);
try
{
 java.awt.Frame fram=new java.awt.Frame(FRAME TITLE);
 set the frame size...
 set the frame background color
 set the frame foreground color
 fram.show();
}

  catch(Exception e)
  {
   out.println(+e);
  }
   out.println(/body/html);
   out.close();
 }
}

Its compiling successfully. I ran the Apache
server on the Mandrake machine and from another
Windows machine I opened OpenFram. I got an
Internal Server 500 error. I checked the JServ
logs:

Can't connect to X11 window server using ' 0:0'
as the value of the DISPLAY variable

I ran a google search to find out what this
error means and I came across this post:

http://java.apache.org/faq/fom-serve/cache/73.html

After reading this post I came to the
conclusion that JServ WAS TRYING TO LOAD AND OPEN
THE FRAME ON THE MANDRAKE MACHINE, despite the
request coming from the Windows machine.

The frame should open in the Windows machine.

What is happening here? I am in the process
of disabling my X11 window server but still
this is the strangest thing I ever came across.

  _
  | MANDRAKE 7.2  |
  |   WITH|
  | X11 window server |
  |   |
___   |   ___ |
| WINDOWS |   REQUEST FOR FRAME   |   | APACHE  | |
|  2000   |_\\__\\|   |   WEB   | |
| MACHINE | //  //|   | SERVER  | |
|_|CREATING SERVLET   |   | | |
  |   |  __ | |
  |   |  | JSERV  | | |
  |   |  | SERVLET| | |
  |   |  | ENGINE | | |
  |   |  || | |
  |   |_| |
  |   |
  |___|
Any suggestions would be welcome.

Thanks in advance.
   SNODX

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




Re: RE: email servlet not working on TOMCAT

2002-05-02 Thread Vibha . Mullick


Great!!! This worked!!!


From Ignacio J. Ortega [EMAIL PROTECTED] on 1 May 2002 3:31:51 PM
To : 'Tomcat Users List' [EMAIL PROTECTED]
Subject : RE: email servlet not working on TOMCAT


 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Enviado el: miércoles 1 de mayo de 2002 21:22

 The classpath is set to:

Tomcat 3.3 and 4.0, doesnt use the classpath env var, it's overwrited
with his own, in the startup.(bat|sh), AFAIK, so better try to put them
on the appropiate directory inside tomcat/lib, that in your case would
be %tomcat_home%/lib/apps, be sure you doesnt have this jars in the
extension repository at %java_home%/jre/lib/ext ( perhaps i've mispelled
this path in writing from memory )

Saludos ,
Ignacio J. Ortega

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



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




mod_jk performance optimization

2002-05-02 Thread M. Serrano

Hi.

I've got installed in my box Linux, Apache 1.3.19, JDK 1.3.1 and TC 3.3.1 
working with ajp13. The following error appeard in my mod_jk.log after a bit 
of continuous utilisation:

[jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - 
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (621)]: Error reading request

After analysing the server's config files and reading some threads, I 
concluded that the problem might be resolved through a bit of extra 
re-configuration. Although the problem appearence was delayed, it still 
existed.

I wonder if anyone out there could help me with this subject. I'm sending in 
attach some lines of httpd.conf, server.xml and mod_jk.conf

Thanx a lot for your time.
Serrano.

##
## httpd.conf -- Apache HTTP server configuration file
##

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to Off to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

#
# Server-pool size regulation.  Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request.  If there are fewer than MinSpareServers, it creates
# a new spare.  If there are more than MaxSpareServers, some of the
# spares die off.  The default values are probably OK for most sites.
#
MinSpareServers 5
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 8

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150

#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.  The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources.  On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries. For these platforms, set to something like 1
# or so; a setting of 0 means unlimited.
#
# NOTE: This value does not include keepalive requests after the initial
#   request per connection. For example, if a child process handles
#   an initial request and 10 subsequent keptalive requests, it
#   would only count as 1 request towards this limit.
#
MaxRequestsPerChild 200

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot /usr/local/jakarta-tomcat-3.3.1/webapps/ROOT

# This should be changed to whatever you set DocumentRoot to.
#
Directory /usr/local/jakarta-tomcat-3.3.1/webapps/ROOT

#
# This may also be None, All, or any combination of Indexes,
# Includes, FollowSymLinks, ExecCGI, or MultiViews.
#
# Note that MultiViews must be named *explicitly* --- Options All
# doesn't give it to you.
#
Options  indexes  includes  followSymLinks

#
# This controls which options the .htaccess files in directories can
# override. Can also be All, or any combination of Options, FileInfo,
# AuthConfig, and Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
/Directory

# Include TOMCAT
Include /usr/local/jakarta-tomcat-3.3.1/conf/auto/mod_jk.conf-local



-  mod_jk.conf-local -


## Auto generated on Tue Apr 30 11:47:40 WEST 2002##

IfModule !mod_jk.c
  LoadModule jk_module libexec/mod_jk.so
  AddModule mod_jk.c
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-3.3.1/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-3.3.1/logs/mod_jk.log

JkLogLevel error



 /WebApplication 

# Static files
Alias /WebApplication 
/usr/local/jakarta-tomcat-3.3.1/webapps/WebApplication

Directory /usr/local/jakarta-tomcat-3.3.1/webapps/WebApplication
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm

List manager busted?

2002-05-02 Thread Dave North

I've sent an email to the list owner, but no reply yet.  It seems the
unsubscribe function isn't working.   Can anyone here help out?

Thanks

Dave


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 5:26 PM
To: Dave North
Subject: failure notice


Hi. This is the qmail-send program at nagoya.betaversion.org.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 772 invoked by uid 98); 1 May 2002 21:26:26 -
Delivered-To: [EMAIL PROTECTED]
X-Antivirus: nagoya (v4198 created Apr 24 2002)
Received: (qmail 753 invoked from network); 1 May 2002 21:26:25 -
Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
  by nagoya.betaversion.org with SMTP; 1 May 2002 21:26:25 -
Received: (qmail 94652 invoked by uid 500); 1 May 2002 21:26:18 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 94644 invoked from network); 1 May 2002 21:26:18 -
Received: from unknown (HELO mail.signiant.com) (66.48.39.38)
  by daedalus.apache.org with SMTP; 1 May 2002 21:26:18 -
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: 
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Date: Wed, 1 May 2002 17:26:24 -0400
Message-ID:
[EMAIL PROTECTED]
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Index: AcHxVtW3Tzuj8saZRhmhjnk8R8HELA==
From: Dave North [EMAIL PROTECTED]
To: tomcat-user-uc.1020288367.deebcnlbhphdailhcjkc-Dave.North=
[EMAIL PROTECTED]
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N



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




java.lang.IllegalAccessException

2002-05-02 Thread Edam Cheeseman

Hi list,

I'm having a very odd problem with tomcat 3.3.1 on windows today,

suddenly, and for no apparent reason, tomcat's classloader is having 
problems accessing (public) methods in any of my beans. All the code I'm 
working on has been running fine for over a month.

here's the stacktrace:

javax.servlet.ServletException:  Cannot create bean of class DbUtilities
at index_10._jspService(index_10.java:80)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)
Root cause:
java.lang.ClassNotFoundException: class DbUtilities : 
java.lang.IllegalAccessException: Class java.beans.Beans can not access a 
member of class DbUtilities with modifiers public
at java.beans.Beans.instantiate(Beans.java:208)
at java.beans.Beans.instantiate(Beans.java:48)
at index_10._jspService(index_10.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)


In this instance the bean in question is DBUtilities, but I get the same 
result for all other beans in any of the web apps I'm running.

I found this on sun's site regarding the IllegalAccessException:

Thrown when an application tries to load in a class through its string name 
using:
The forName method in class Class.
The findSystemClass method in class ClassLoader.
The loadClass method in class ClassLoader.
but the currently executing method does not have access to the definition of 
the specified class, because the class is not public and in another package.

None of these cases are relevant, especially since up until an hour ago teh 
code had been running fine, and the ClassLoader was fiding my beans without 
any problems.

The directory in which the beans are stored (mywebapp\web-inf\classes) is in 
my classpath, hte beans arn't packaged (this is tomcat 3x). The class in 
question is imported into a jsp via a jsp:Usebean tag. As I said, this is 
now happenning with all my beans in all my webapps. All have the correct 
public no-argument consrtuctors. I havn't changed anything in my tomcat 
config. Previously the code was running fine.

Posts regarding this Exception in the archive seem to be mainly package or 
JNDI related, not the case here.

Any ideas anyone?

thanks,

Paul


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


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




Re: How to redirect the log file from the command window to a file?

2002-05-02 Thread David Rault

you still have output on the console because you redirect the standard
output to your file (see the ' %ACTION%-server.log' ?)
the remaining output is most surely the error output which you might also
want to redirect to your file
i don't know the windows command
for linux, i add '21' before the classic redirect
that tells the system to redirect the second output (ie the error output) to
the 1st output (ie the standard output)
somepath/mycommand 21  someotherpath/mylogfile

you can also separate the files
somepath/mycommand 2  someotherpath/errorlog  someotherpath/standardlog

another solution would be to tell java that System.out and System.err must
be redirected to a file
see java.lang.System javadoc, i know there is a setter for both streams
something like
System.setOut(new java.io.FileWriter(somepath/somefile);
System.setErr(new java.io.FileWriter(somepath/someotherfile);

bye
David
- Original Message -
From: Louis Voo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 3:21 PM
Subject: Re: How to redirect the log file from the command window to a file?


 Hi Jon
 Thanks for your tip, but I still got problem, the start-server.log
 file is created, but no content in it, there are many print out from the
 command window, but the file is still empty.  Somewhere goes wrong?


 Louis
 - Original Message -
 From: Jon Wingfield [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, May 02, 2002 12:01 PM
 Subject: RE: How to redirect the log file from the command window to a
file?


  1) alter the catalina.bat file:
 
  ... extract ...
  %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
  %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath
 

%CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_H
  OME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS%
  %ACTION%  %ACTION%-server.log
  ... extract end ...
 
  this puts all the system.out into a file start-server.log in the tomcat
 bin
  directory.
 
  2) use the jakarta log4j logging package with a ConsoleAppender ;)
 
  Hope this helps,
 
  Jon
 
  -Original Message-
  From: Louis Voo [mailto:[EMAIL PROTECTED]]
  Sent: 02 May 2002 08:17
  To: Tomcat Users List
  Subject: How to redirect the log file from the command window to a file?
 
 
  Hi,
 
  I'm using tomcat 4.04b2 for window.  After I start my tomcat, all
the
  system.out log will print out in that command window, can I redirect it
to
 a
  file?  Please tell me  how to do that.
 
 
  Thank you
 
  Louis
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 



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





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




Re: OutofMemoryError

2002-05-02 Thread Matthew Boeckman

We have figured this out, although for the life of me I can't understand 
   why. We had been running with java -server -Xms128m -Xmx256m -Xincgc 
and saw the VM climb way up to 2GB, then drop the tomcat process.

By removing the -server flag, everything is fine. I realise this means 
that the JVM is defaulting to 'client'... so I guess is anyone aware of 
memory holes in the 1.3.1 JVM on linux? I've dug around deja c and seen 
  a few references to this suspicion but nothing concrete.

I'm going to start working on Tomcat 4 and jdk1.4.0 in my lab this 
morning, hopefully the problem is fixed in 1.4.0!

Thanks for all the responses!


Jari Ikavalko wrote:
 Hi Matthew and co.,
 
 have you tried to examine tomcat -behaviour with a profiler? I tried with
 OptimizeIt, and it seems to me that the Garbage Collector doesn't free
 memory that is reserved for sessions. I mean that session itself ends ok,
 but the gc just won't free the memory.
 
 Does anyone else have noticed something similar?
 
 My system:
 Windows 2000
 JDK 1.4.0
 Tomcat 4.0
 
 -- Jari Ikävalko --
 
 
 On Wed, 1 May 2002, Matthew Boeckman wrote:
 
 
Are you running java 1.3 or 1.4 ? We're really trying to nail this down. 
We've had the Xms and Xmx options in place now for some time, and the 
java proc just grows right past Xmx, up to nearly full system memory, 
then tomcat dies.

I'm ready to hear any suggestions, but I want to try to narrow the scope 
somewhat.

Laurent Féral-Pierssens wrote:

Hi Matthew,

I have been experiencing the same problems but with T3.2.x.

You should try to use Tomcat options -Xms and -Xmx

I added those 2 lines:

TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc
export TOMCAT_OPTS

in my /etc/init.d/tomcat script 

This increase the default heap size of the JVM to 256Meg (from 64Meg)
and make sure incremental Garbage collection is done. Since I changed
those, I have no more OutOfMemory errors.

Hope it helps,
Laurent




-Original Message-
From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 12:08 PM
To: [EMAIL PROTECTED]
Subject: OutofMemoryError


Hello List.

I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 
3.23.43
I am occasionally seeing tomcat go postal with the following errors:
Exception in thread CompileThread0 java.lang.OutOfMemoryError: 
requested 32760 bytes



Another exception has been detected while we were handling last error.
No information available. Please check ERROR REPORT FILE for further
information, if there is any. Good bye.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.


Current Java thread:



Another exception has been detected while we were handling last error.
Dumping information about last error: ERROR REPORT FILE = (N/A)
PC= 0x0x419852cb
SIGNAL= 11
FUNCTION NAME = (N/A)
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.

Any thoughts on what might be the cause? There is nothing in the log 
files to tell me more than this, which gets dumped to the console.

-Thanks!



-- 
Matthew Boeckman  (816) 777-2160
Manager - Systems Integration Saepio Technologies
== 
  ==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management choke.
  -Lore Sjoberg


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

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


-- 
Matthew Boeckman(816) 777-2160
Manager - Systems Integration   Saepio Technologies
== 
==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management choke.
-Lore Sjoberg


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




RE: A bit off topic

2002-05-02 Thread Richard Wooding

Yes I've done it and it is possible.

-Original Message-
From: Richard Johnstone
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 02, 2002 15:02
To: [EMAIL PROTECTED]
Subject: A bit off topic

I know this is a bit off topic but I can't seem to get an answer from
anywhere.
Has anyone been able to load a Java array from a servlet into a
javascript array within the HTML page generated by the servlet?
Is it possible?


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




Re: OutofMemoryError

2002-05-02 Thread David Cassidy

I found exactly the same thing ( memory usage climbing)
but when I removed the -Xincgc it's all OK
memory useage fine etc etc etc ...


D


Matthew Boeckman wrote:

 We have figured this out, although for the life of me I can't 
 understand   why. We had been running with java -server -Xms128m 
 -Xmx256m -Xincgc and saw the VM climb way up to 2GB, then drop the 
 tomcat process.

 By removing the -server flag, everything is fine. I realise this means 
 that the JVM is defaulting to 'client'... so I guess is anyone aware 
 of memory holes in the 1.3.1 JVM on linux? I've dug around deja c and 
 seen  a few references to this suspicion but nothing concrete.

 I'm going to start working on Tomcat 4 and jdk1.4.0 in my lab this 
 morning, hopefully the problem is fixed in 1.4.0!

 Thanks for all the responses!


 Jari Ikavalko wrote:

 Hi Matthew and co.,

 have you tried to examine tomcat -behaviour with a profiler? I tried 
 with
 OptimizeIt, and it seems to me that the Garbage Collector doesn't free
 memory that is reserved for sessions. I mean that session itself ends 
 ok,
 but the gc just won't free the memory.

 Does anyone else have noticed something similar?

 My system:
 Windows 2000
 JDK 1.4.0
 Tomcat 4.0

 -- Jari Ikävalko --


 On Wed, 1 May 2002, Matthew Boeckman wrote:


 Are you running java 1.3 or 1.4 ? We're really trying to nail this 
 down. We've had the Xms and Xmx options in place now for some time, 
 and the java proc just grows right past Xmx, up to nearly full 
 system memory, then tomcat dies.

 I'm ready to hear any suggestions, but I want to try to narrow the 
 scope somewhat.

 Laurent Féral-Pierssens wrote:

 Hi Matthew,

 I have been experiencing the same problems but with T3.2.x.

 You should try to use Tomcat options -Xms and -Xmx

 I added those 2 lines:

 TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc
 export TOMCAT_OPTS

 in my /etc/init.d/tomcat script
 This increase the default heap size of the JVM to 256Meg (from 64Meg)
 and make sure incremental Garbage collection is done. Since I changed
 those, I have no more OutOfMemory errors.

 Hope it helps,
 Laurent




 -Original Message-
 From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] Sent: May 1, 
 2002 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: OutofMemoryError


 Hello List.

 I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, 
 mysql 3.23.43
 I am occasionally seeing tomcat go postal with the following errors:
 Exception in thread CompileThread0 java.lang.OutOfMemoryError: 
 requested 32760 bytes


 
 Another exception has been detected while we were handling last error.
 No information available. Please check ERROR REPORT FILE for further
 information, if there is any. Good bye.

 An unexpected exception has been detected in native code outside 
 the VM.
 Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A)
 Library=(N/A)

 NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for 
 possible
   reason and solutions.


 Current Java thread:


 
 Another exception has been detected while we were handling last error.
 Dumping information about last error: ERROR REPORT FILE = (N/A)
 PC= 0x0x419852cb
 SIGNAL= 11
 FUNCTION NAME = (N/A)
 LIBRARY NAME  = (N/A)
 Please check ERROR REPORT FILE for further information, if there is 
 any.
 Good bye.

 Any thoughts on what might be the cause? There is nothing in the 
 log files to tell me more than this, which gets dumped to the console.

 -Thanks!



 -- 
 Matthew Boeckman(816) 777-2160
 Manager - Systems IntegrationSaepio Technologies
 == ==
 ...Many say that DOS is the dark side, but actually UNIX is more 
 like the dark side: It's less likely to find the one way to destroy 
 your incredibly powerful machine, and more likely to make upper 
 management choke.
 -Lore Sjoberg


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



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







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




JSP's GzippedOutputStream

2002-05-02 Thread Ivan Balashov

Hi!
Afaik servlets may produce Gzipped template output something like this:
  ...
  OutputStream out1 = response.getOutputStream();
  out = new PrintWriter(new GZIPOutputStream(out1), false);
  response.setHeader(Content-Encoding, gzip);
  .

But how we can do that with JspWriter? Is it possible to do similar
with JSP?

Use Tomcat 4.x

Thanks!

-- 
Best regards,
 Ivan  mailto:[EMAIL PROTECTED]


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




Can I switch XML Parser with Tomcat 3.2.4

2002-05-02 Thread Brandon Cruz

I am using Tomcat 3.2.4, can I switch from using parser.jar to using
crimson.jar instead?  One of our web applications requires the use of some
classes that are in Crimson, but not parser.

Thanks!


Brandon


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




RE: OutofMemoryError

2002-05-02 Thread Laurent Féral-Pierssens

Matthew,

We are using JDK 1.3.1_02. And yes we do see the process climbs very
high (past the Xms) but it goes back down after without Tomcat dying. 

Laurent


-Original Message-
From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 4:22 PM
To: Tomcat Users List
Subject: Re: OutofMemoryError


Are you running java 1.3 or 1.4 ? We're really trying to nail this down.

We've had the Xms and Xmx options in place now for some time, and the 
java proc just grows right past Xmx, up to nearly full system memory, 
then tomcat dies.

I'm ready to hear any suggestions, but I want to try to narrow the scope

somewhat.

Laurent Féral-Pierssens wrote:
 Hi Matthew,
 
 I have been experiencing the same problems but with T3.2.x.
 
 You should try to use Tomcat options -Xms and -Xmx
 
 I added those 2 lines:
 
 TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc
 export TOMCAT_OPTS
 
 in my /etc/init.d/tomcat script
 
 This increase the default heap size of the JVM to 256Meg (from 64Meg) 
 and make sure incremental Garbage collection is done. Since I changed 
 those, I have no more OutOfMemory errors.
 
 Hope it helps,
 Laurent
 
 
 
 
 -Original Message-
 From: Matthew Boeckman [mailto:[EMAIL PROTECTED]]
 Sent: May 1, 2002 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: OutofMemoryError
 
 
 Hello List.
 
 I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, 
 mysql
 3.23.43
 I am occasionally seeing tomcat go postal with the following errors:
 Exception in thread CompileThread0 java.lang.OutOfMemoryError: 
 requested 32760 bytes
 
 
 
 Another exception has been detected while we were handling last error.

 No information available. Please check ERROR REPORT FILE for further 
 information, if there is any. Good bye.
 
 An unexpected exception has been detected in native code outside the 
 VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function 
 name=(N/A)
 Library=(N/A)
 
 NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for
possible
reason and solutions.
 
 
 Current Java thread:
 
 
 
 Another exception has been detected while we were handling last error.

 Dumping information about last error: ERROR REPORT FILE = (N/A)
 PC= 0x0x419852cb
 SIGNAL= 11
 FUNCTION NAME = (N/A)
 LIBRARY NAME  = (N/A)
 Please check ERROR REPORT FILE for further information, if there is 
 any. Good bye.
 
 Any thoughts on what might be the cause? There is nothing in the log
 files to tell me more than this, which gets dumped to the console.
 
 -Thanks!
 


-- 
Matthew Boeckman(816) 777-2160
Manager - Systems Integration   Saepio Technologies
== 
==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management
choke.
-Lore Sjoberg


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



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




Re: Problem while retreiving Client Certificate

2002-05-02 Thread Raja Sekhar

Hi Christian,

I have added this line in my httpd.conf file. It is as follows :

SSLVerifyClient require
SSLVerifyDepth  10
SSLOptions +StdEnvVars +ExportCertData 

But still my problem remains the same. Is it this way I should do or any other way. I 
have seen the link what you referred. But there is no way specified there. Its just 
written that you need to put this entry. I did but no use.

Do we have any alternative. Please help me out.

Thanks  Regards,

..Raj
--

On Thu, 2 May 2002 12:41:57Christian Bockerman wrote:
On Thu, May 02, 2002 at 03:03:16AM -0700, Raja  Sekhar wrote:
 Hi,
 
 I am using Tomcat 4.0.3 with Apache 1.3.24 on Redhat Linux 7.1.
 For SSL, I have configured Apache with mod_ssl  the connector
 I am using is mod_webapp. The SSL Connection is successfully done.
 I have a servlet on Tomcat which is expecting a Client Certificate.
 I have made SSLVerifyClient -- True  it accepts client
 certificate at SSL Handshake. 
 
 I am using the following code to retreive the certificate from
 servlet running on Tomcat
 
 Object certReqObject = 
request.getAttribute(javax.servlet.request.X509Certificate);
 I have downloaded the WarpConnector source. In WarpRequest.java, 
 the certificate object is set to null if any exception occurs. 
 Can any one help me where I am going wrong. I am using trial 
 Server certificate which we automatically get while configuring 
 Apache with SSL. The certificate entry in httpd.conf is as follows
 -
 SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
 SSLVerifyClient require
 SSLVerifyDepth  10 
 ---
 Please help me out at the earliest as I am struck badly.
 Thanks  Regards,
 ..Raj

In http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html#s4
there is a bit about Apache+mod_ssl and mod_jk which says 

  When using mod_jk with Apache  mod_ssl, it is essential 
   to specify SSLOptions +StdEnvVars +ExportCertData in 
   the httpd.conf file. Otherwise, mod_ssl will not produce 
   the neccessary environment variables for mod_jk.

Perhaps you should add

  SSLOptions +StdEnvVars +ExportCertData
 
to your httpd.conf as this seems to be a problem with mod_ssl
and mod_jk on the mod_ssl-side and might solve your problem
with mod_webapp and mod_ssl.


-Christian



Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




Re: List manager busted?

2002-05-02 Thread Milt Epstein

On Thu, 2 May 2002, Dave North wrote:

 I've sent an email to the list owner, but no reply yet.  It seems
 the unsubscribe function isn't working.  Can anyone here help out?
[ ... ]

I haven't been very active on the tomcat-user list for a while, but I
do recall that the list owner (if there ever even really was one,
i.e. a human one) was not very responsive -- I sent mail to them a
number of times, and I don't think I ever got a response.

Regarding unsubscribing, I think the biggest problem (but not
necessarily the only one) has to do with trying to unsubscribe from a
different address than the one you're subscribed as.  That is, when
you subscribed, it was as a certain address -- if you didn't
explicitly set it, it was from wherever you sent the subscribe
message.  But perhaps because of moves, address changes, machine
changes, etc., you are no longer at that address (but because of
forwards/aliases, you still receive mail sent to that address).  So,
if you try the simple unsubscribe method (i.e. without specifying an
address), the address you send it from won't match the subscribed
address, and the list won't accept it.  The simple unsubscribe method
is to send a message to [EMAIL PROTECTED]

The trick is to tell it what address you are subscribed as when you
try to unsubscribe.  Of course, you have to know what address you are
subscribed as before you can do that.  The way to find that out is to
look for a header on a message from the list that contains that
information.  On my setup (using Pine on a UNIX system), I can look at
the From  line (not From:) or the Return-Path: line.  There'll
I'll see something like:

[EMAIL PROTECTED]

The 18383 is the message number, and the mepstein=uiuc.edu is the
address I'm subscribed as (with the @ changed to a =).

Now that you have that info, you can include it with your unsubscribe
request.  To do that, instead of sending a message to
[EMAIL PROTECTED], send it to
[EMAIL PROTECTED], where
name=domain.com (or rather [EMAIL PROTECTED]) is the subscribed
address.

BTW, the necessary header info to get your subscribed address is
available with Outlook -- you may have to click in a certain place
and/or set some options, but it is there, it's been mentioned on the
list before.

Hope this helps.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: java.lang.IllegalAccessException

2002-05-02 Thread Edam Cheeseman

we'll, I've looked a little further into my problem.

It turns out that its only within this webapp's context I'm getting the 
error (sorry - should have checked further the first time). I reinstalled my 
most recent backup of the webapp and it found the beans ok.

I didn't alter the code in any of the jsp pages or the beans today, so the 
Import Routine servlet timing out in my browser seems to have somehow caused 
the error.

However, if I simply copy over the webapp which is having trouble by copying 
the folder with all its contents and giving the folder a different name and 
restart tomcat, so creating a new webapp, I still have the same ClassLoader 
problem.

It might be relevant that just prior to this problem appearing I ran a 
servlet which imports a (quite large) tab delimited file into a mysql db 
table. My machine appeared to run out of memory before completing the 
operation and I got the default IE 'dns' error screen. After this, I had 
problems trying to instantiate beans within this context.

tomcat restarts and full machine restarts have no effect.


From: Edam Cheeseman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: java.lang.IllegalAccessException
Date: Thu, 02 May 2002 13:30:57 +

Hi list,

I'm having a very odd problem with tomcat 3.3.1 on windows today,

suddenly, and for no apparent reason, tomcat's classloader is having
problems accessing (public) methods in any of my beans. All the code I'm
working on has been running fine for over a month.

here's the stacktrace:

javax.servlet.ServletException:  Cannot create bean of class DbUtilities
   at index_10._jspService(index_10.java:80)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
   at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
   at org.apache.tomcat.core.Handler.service(Handler.java:235)
   at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
   at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
   at java.lang.Thread.run(Thread.java:536)
Root cause:
java.lang.ClassNotFoundException: class DbUtilities :
java.lang.IllegalAccessException: Class java.beans.Beans can not access a
member of class DbUtilities with modifiers public
   at java.beans.Beans.instantiate(Beans.java:208)
   at java.beans.Beans.instantiate(Beans.java:48)
   at index_10._jspService(index_10.java:78)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
   at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
   at org.apache.tomcat.core.Handler.service(Handler.java:235)
   at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
   at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
   at java.lang.Thread.run(Thread.java:536)


In this instance the bean in question is DBUtilities, but I get the same
result for all other beans in any of the web apps I'm running.

I found this on sun's site regarding the IllegalAccessException:

Thrown when an application tries to load in a class through its string name
using:
The forName method in class Class.
The findSystemClass method in class ClassLoader.
The loadClass method in class ClassLoader.
but the currently executing method does not have access to the definition 
of
the specified class, because the class is not public and in another 
package.

None of these cases are relevant, especially since up until an hour ago teh
code had been running fine, and the ClassLoader was fiding my beans without
any problems.

The directory in which the beans are stored (mywebapp\web-inf\classes) is 
in
my classpath, hte beans arn't packaged (this is tomcat 3x). The class in
question is imported into a jsp via a jsp:Usebean tag. As I said, this is
now happenning with all my beans in all my webapps. All have the correct
public no-argument 

Extension Mechanism Architecture JSSE

2002-05-02 Thread Richard Wooding

Hi all,
 
I'm still struggling to use HTTPS as a client (from classes within) a
web application on:
 
Redhat Linux 7.2
IBM JDK 1.3.1
Tomcat 4
JSSE 1.0.2
 
I think the fact that it uses the Extension Mechanism at URL:
http://java.sun.com/j2se/1.3/docs/guide/extensions/spec.html
has a bearing on this problem. I think my web applications' class loader
cannot see the JSSE libraries, jnet.jar, jsse.jar, and jcert.jar.
 
Has anybody experienced the same problem?
 
Regards,
Richard Wooding



Re: Problem while retreiving Client Certificate

2002-05-02 Thread Christian Bockermann

Hi !

On Thu, 2002-05-02 at 17:03, Raja Sekhar wrote:
 Hi Christian,
 
 I have added this line in my httpd.conf file. It is as follows :
 
 SSLVerifyClient require
 SSLVerifyDepth  10
 SSLOptions +StdEnvVars +ExportCertData 
 
 But still my problem remains the same. Is it this way I should 
 do or any other way. I have seen the link what you referred. But there
 is no way specified there. Its just written that you need to put this
 entry. I did but no use.
 
 Do we have any alternative. Please help me out.

You could try to set up mod_jk and see if this solves your problem. If
it does, then mod_webapp seems to miss this feature. I would try mod_jk.

I currently don't have time to test this myself, but perhaps I can
manage that tomorrow.

-Christian


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




Tomcat issue on SOAP

2002-05-02 Thread Martin Mauri

H, I'm trying to make some classes available to access them through SOAP.
After following the installation steps, I try to run an example that has a
readme file that says:

To install this service on an Apache-SOAP listener, you need to make
the samples.addressbook package available on the Apache-SOAP listener's
classpath. Then deploy this service by filling in the deployment
template using the info in the deployment descriptor in this
directory.

As far as I know, just putting the classes under the classes directory of
the soap context is ok. Anyway, when I run the sample, it gives me the
following error:

Generated fault:
  Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
  Fault String = Unable to resolve target object:
samples.addressbook.AddressBook

Any idea?

thanks!

Martin



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




Re: OutofMemoryError

2002-05-02 Thread Matthew Boeckman

I noticed something about this on the tomcat 4.0 download site :

IMPORTANT NOTE: Virtual machine crashes have been reported when using
Linux 2.4 with Sun JVM version 1.2.x and 1.3.x. See the release notes 
below for more details. (the release notes simply restate this rather 
useless paragraph)

One would think that would have been somewhat more prominently displayed 
somewhere, but I never saw it until I went to get 4.0.3 ...

We had seen the VM go past Xms before, but it only starts crashing in 
certain fairly high session situations. I'm working on some tests for 
jdk1.4.0 and TM 4.0.3 now. If that upgrade fixes this hole, I'll happily 
post back to the list!

I'm glad to hear that I'm not crazy and that others have seen this.

-Matthew

Laurent Féral-Pierssens wrote:
 Matthew,
 
 We are using JDK 1.3.1_02. And yes we do see the process climbs very
 high (past the Xms) but it goes back down after without Tomcat dying. 
 
 Laurent
 
 
 -Original Message-
 From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
 Sent: May 1, 2002 4:22 PM
 To: Tomcat Users List
 Subject: Re: OutofMemoryError
 
 
 Are you running java 1.3 or 1.4 ? We're really trying to nail this down.
 
 We've had the Xms and Xmx options in place now for some time, and the 
 java proc just grows right past Xmx, up to nearly full system memory, 
 then tomcat dies.
 
 I'm ready to hear any suggestions, but I want to try to narrow the scope
 
 somewhat.
 
 Laurent Féral-Pierssens wrote:
 
Hi Matthew,

I have been experiencing the same problems but with T3.2.x.

You should try to use Tomcat options -Xms and -Xmx

I added those 2 lines:

TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc
export TOMCAT_OPTS

in my /etc/init.d/tomcat script

This increase the default heap size of the JVM to 256Meg (from 64Meg) 
and make sure incremental Garbage collection is done. Since I changed 
those, I have no more OutOfMemory errors.

Hope it helps,
Laurent




-Original Message-
From: Matthew Boeckman [mailto:[EMAIL PROTECTED]]
Sent: May 1, 2002 12:08 PM
To: [EMAIL PROTECTED]
Subject: OutofMemoryError


Hello List.

I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, 
mysql
3.23.43
I am occasionally seeing tomcat go postal with the following errors:
Exception in thread CompileThread0 java.lang.OutOfMemoryError: 
requested 32760 bytes



Another exception has been detected while we were handling last error.
 
 
No information available. Please check ERROR REPORT FILE for further 
information, if there is any. Good bye.

An unexpected exception has been detected in native code outside the 
VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function 
name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for
 
 possible
 
   reason and solutions.


Current Java thread:



Another exception has been detected while we were handling last error.
 
 
Dumping information about last error: ERROR REPORT FILE = (N/A)
PC= 0x0x419852cb
SIGNAL= 11
FUNCTION NAME = (N/A)
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is 
any. Good bye.

Any thoughts on what might be the cause? There is nothing in the log
files to tell me more than this, which gets dumped to the console.

-Thanks!

 
 
 


-- 
Matthew Boeckman(816) 777-2160
Manager - Systems Integration   Saepio Technologies
== 
==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management choke.
-Lore Sjoberg


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




Re: Problem while retreiving Client Certificate

2002-05-02 Thread Raja Sekhar

Hi Christian,

I will try configuring mod_jk now. But I would request you to try the same at your 
convinience. This has become a show stopper for me.

Thanks in advance.

Regards,

..Raj
--

On 02 May 2002 17:18:18 +020   Christian Bockermann wrote:
Hi !

On Thu, 2002-05-02 at 17:03, Raja Sekhar wrote:
 Hi Christian,
 
 I have added this line in my httpd.conf file. It is as follows :
 
 SSLVerifyClient require
 SSLVerifyDepth  10
 SSLOptions +StdEnvVars +ExportCertData 
 
 But still my problem remains the same. Is it this way I should 
 do or any other way. I have seen the link what you referred. But there
 is no way specified there. Its just written that you need to put this
 entry. I did but no use.
 
 Do we have any alternative. Please help me out.

You could try to set up mod_jk and see if this solves your problem. If
it does, then mod_webapp seems to miss this feature. I would try mod_jk.

I currently don't have time to test this myself, but perhaps I can
manage that tomorrow.

-Christian


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




Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




Re: Can I switch XML Parser with Tomcat 3.2.4

2002-05-02 Thread PChaganti

Add crimson.jar to the the WEB-INF/lib in your webapp. That will make the 
classes from crimson.jar available to only your webapp while Tomcat and 
other apps will use the one shipped with Tomcat.

-prabhakar chaganti




I am using Tomcat 3.2.4, can I switch from using parser.jar to using
crimson.jar instead?  One of our web applications requires the use of some
classes that are in Crimson, but not parser.



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




A Question

2002-05-02 Thread Hiroshi Ito

Hello Tomcat,

I am a beginner-user of Tomcat and have a question.

I am developing an embedded data-measurement system. This system is running
under LinuxOS and equipped with many scientific measurement apparatus, such as
the Temperature measurement, Frequency/Spectrum  measurement inside the optical
fiber, etc. Each of these measurements is defined as 'Spawn-able/deletable' process
on the Linux.

I would like to use Tomcat for the web-based remote-control of the system, as a
Java-Servlet application. i.e  I would like start/stop a Linux process from a remote
PC's browser and collect data on Real-Time. 

 Browser-Tomcat -GateServlet Spawn a process on Linux.
   

Is it possible to execute a Linux Shell's Script-file via GateServlet? If so, please
let me know how to do it.
Or, does it need to get-out of  Tomcat, and we have to rely on some Inter-Process
communication between Tomcat(as a Linux process) and the other Linux processes?


I will really appreciate any of you answer suggestion.

Hiroshi Ito

[EMAIL PROTECTED]
(301)922-0358

 





JSP's GzippedOutputStream

2002-05-02 Thread Ivan Balashov

Hi!
Afaik servlets may produce Gzipped template output something like this:
  ...
  OutputStream out1 = response.getOutputStream();
  out = new PrintWriter(new GZIPOutputStream(out1), false);
  response.setHeader(Content-Encoding, gzip);
  .

But how we can do that with JspWriter? Is it possible to do similar
with JSP?

Use Tomcat 4.x

Thanks!


-- 
Sincerely yours,
 Ivan  mailto:[EMAIL PROTECTED]


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




Re: Problem while retreiving Client Certificate

2002-05-02 Thread Christian Bockerman

On Thu, May 02, 2002 at 03:03:16AM -0700, Raja  Sekhar wrote:
 Hi,
 
 I am using Tomcat 4.0.3 with Apache 1.3.24 on Redhat Linux 7.1.
 For SSL, I have configured Apache with mod_ssl  the connector
 I am using is mod_webapp. The SSL Connection is successfully done.
 I have a servlet on Tomcat which is expecting a Client Certificate.
 I have made SSLVerifyClient -- True  it accepts client
 certificate at SSL Handshake. 
 
 I am using the following code to retreive the certificate from
 servlet running on Tomcat
 
 Object certReqObject = 
request.getAttribute(javax.servlet.request.X509Certificate);
 I have downloaded the WarpConnector source. In WarpRequest.java, 
 the certificate object is set to null if any exception occurs. 
 Can any one help me where I am going wrong. I am using trial 
 Server certificate which we automatically get while configuring 
 Apache with SSL. The certificate entry in httpd.conf is as follows
 -
 SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
 SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
 SSLVerifyClient require
 SSLVerifyDepth  10 
 ---
 Please help me out at the earliest as I am struck badly.
 Thanks  Regards,
 ..Raj

In http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html#s4
there is a bit about Apache+mod_ssl and mod_jk which says 

  When using mod_jk with Apache  mod_ssl, it is essential 
   to specify SSLOptions +StdEnvVars +ExportCertData in 
   the httpd.conf file. Otherwise, mod_ssl will not produce 
   the neccessary environment variables for mod_jk.

Perhaps you should add

  SSLOptions +StdEnvVars +ExportCertData
 
to your httpd.conf as this seems to be a problem with mod_ssl
and mod_jk on the mod_ssl-side and might solve your problem
with mod_webapp and mod_ssl.


-Christian

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




OutOfMemoryError and static pages

2002-05-02 Thread bf

hi,

I'm experiencing memory problems with Tomcat as a Standalone Server.
(this must have popped up somewhere before, but I could not find it in the 
bugbase or mailing archives.)

I see the problem under those settings:
Linux / Sun JVM 1.2.2_06 / Tomcat 4.0.1 rel.
Linux / Sun JVM 1.4.0 / Tomcat 4.1 current cvs

My application dynamically creates (lots of) jpg files in a webapp's subdir.
The client(s) access these (HTTP/GET) once. after that, the jpg is useless 
and gets deleted after a certain amount of time.
Each GET consumes a considerable amount of memory (around 12k) within Tomcat 
which is not freed until Tomcat is shut down.

Running my stress test application (which was intended for stressing _my_ 
application) results in a Tomcat uptime of less than five hours with max heap 
I can do on this box (256M). this is very bad scalability.
Tomcat goes dark with trace logs like those attached at the end of my email.

It appears (but is not measured) that the problem has something to do with 
the size of the JPGs: The bigger the JPG, the more memory is consumed at each 
request.

I looked into the current Tomcat code and measured some things but did not 
find the hotspot. DefaultServlet (esp. serveResource(), copyRange()) is used 
everytime a JPG is loaded but it seems to be ok, the BufferedXXXStreams seem 
to be fine.

Possible workarounds:
- Access the jpgs via file-protocol - only possible on local host. but 
leaves Tomcat memory constant. (as expected. tomcat is doing nothing then.)
- Using apache for serving the jpgs - ok, but the nasty scalability problem 
in Tomcat would stay, my setting would completly change.

I read a brief remark in a posting (by Remy Maucherat?) that static 
fileserving is an issue and associated code is currently rewritten.

My questions:
- is this scalability issue known and is there a prospect of a fix?
- can you point out the cause for my problem (i.e. where to look at in the 
Tomcat code or which objects eat all that memory)?
- can i help out with testing as soon as a the issue is tracked down? 

I've dumped the heap but as I'm not familiar with Tomcat interns I see 
nothing from that (can you?).

thanks,
bernd


Stack #1:
java.lang.OutOfMemoryError:
at java.io.BufferedInputStream.init(BufferedInputStream.java:155)
at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1638)
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1194)
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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:201)
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.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
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:462)
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:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 

Re: what is needed to connect to mysql

2002-05-02 Thread Christian Bockerman

Hi !

On Thu, May 02, 2002 at 02:09:09AM -0700, # Lalit Nagpal # wrote:
 
 hello,
 
 plz can anybody tell me how to connect to a mysql database through
 a servlet. i know how to prepare a connection etc through code but
 what other settings are needed. i am using tomcat 4 as a standalone.
 
 The error i get is Class not found org.gjt.mm.mysql.Driver


As the message says, the classloader cannot find the mysql-driver
class. I guess your having something like

  Driver DriverRecordSet1 = 
(Driver)Class.forName(org.gjt.mm.mysql.Driver).newInstance();

in your code. Now imagine that your classloader wants to load a class.
There are a few places where he can look for it. Either the places
specified in your CLASSPATH-Variable or the predefined places of your
tomcat-installation. 
You can read about that in 
   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

where it says that you should put your mysql-2.0.4.jar (or how it is
called) in $CATALINA_HOME/lib. This would share your mysql-classes across
all webapplications.

Hope this helps...

-Christian

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




Using the precompiled jsps with tomcat 4.0.x

2002-05-02 Thread Dmitri Lysenko

Hi,

I'm using the tomcat 4.0.3 and I'm looking for the way to avoid the 
jsp page compilation in runtime. I was about to use the supplied jspc 
compiler that's included in the distribution. However I shortly found out 
that it generates the classnames that are different from those generated by 
the runtime jsp compiler. I resolved this problem by subclassing the JspC 
class and delegating the jsp compilation to the JspCompiler class instead of 
the CommandLineCompiler. As a result I have the java files with the proper 
names. However I don't see the good way to avoid runtime compilation. Even 
having the precompiled classes in the webapp's war file the Jasper doesn't 
use it. It looks the jsp page from the war and tries to find corresponding 
class in the _work_ directory that's empty initially. Therefore it involves 
the compilation of the source JSP. Is there any way to avoid this compilation 
without populating the tomcat's _work_ directory with the precompiled 
classes?! What's the right approach to use the JSP precompilation?

I appreciate any help in this matter.

Dmitri Lyssenko
[EMAIL PROTECTED]

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




RE: Can I switch XML Parser with Tomcat 3.2.4

2002-05-02 Thread Brandon Cruz

I think I was told a while back that there is no way to be sure which
classes will be used first.  In fact, I think that with Tomcat 3.2.x the
files inside tomcat/lib are used before the files in WEB-INF/lib.

Is this correct?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 10:23 AM
To: Tomcat Users List
Subject: Re: Can I switch XML Parser with Tomcat 3.2.4


Add crimson.jar to the the WEB-INF/lib in your webapp. That will make the
classes from crimson.jar available to only your webapp while Tomcat and
other apps will use the one shipped with Tomcat.

-prabhakar chaganti




I am using Tomcat 3.2.4, can I switch from using parser.jar to using
crimson.jar instead?  One of our web applications requires the use of some
classes that are in Crimson, but not parser.



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



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




java.lang.VerifyError while using struts with Tomcat 4.0.x

2002-05-02 Thread Dmitri Lysenko

Hi,

I'm using tomcat 4.0.3 integrated with JBoss 2.4.4 (they run in the same 
JVM).  Struts framework is used to handle the presentation logic. 
This combination works fine with Tomcat 3.x. 
However after I upgrated to the Tomcat 4.0.3 I'm experiencing the 
java.lang.VerifyError (Incompartible argument for a function) while the 
ActionServlet instanciates some action classes.  I'm sure that the problem 
caused by the changes in the tomcat's classloader. I had the situation when 
the class with the same name is accessible by two different classloaders. I 
found out that the problem appears if the class is loaded by the classloader 
that's different with the one that the current thread uses. In this situation 
I had this VerifyError. I was able to resolve the problem by eliminating the 
class duplication, now I have no two same classes that are placed in the
different jars. However the question is why this error appears? The situation 
that I had when the same class is accessible by multiple class loaders is not 
prohibited by the Java language. I'm wondering what classloader contraint was 
violated. 

To fix the problem I have to use the jar's packaging that's not very 
convenient for me. So I appreciate any help that allows me to resolve this 
problem in better way.

Dmitri Lyssenko,
[EMAIL PROTECTED]

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




RE: what is needed to connect to mysql

2002-05-02 Thread Mardones Francisco-afm009

Did you put the driver in the /var/tomcat/lib/common?

regards

Francisco Mardones

-Original Message-
From: # Lalit Nagpal # [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 02 de Mayo de 2002 5:09
To: [EMAIL PROTECTED]
Subject: what is needed to connect to mysql



hello,

plz can anybody tell me how to connect to a mysql database through a
servlet. i know how to prepare a connection etc through code but what other
settings are needed. i am using tomcat 4 as a standalone.

The error i get is Class not found org.gjt.mm.mysql.Driver

plz help ... 


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

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




Re: How to add a throw exception to a servlet

2002-05-02 Thread Larry Meadors

You can wrap almost any exception in a ServletException and rethrow it
that way.
 
The ServletException class allows you to call one of four constructors:

 1) no parameters
 2) String
 3) String, Throwable
 4) Throwable
 
===


  try{
//some code here that may throw a SQLException...
  }catch(SQLException se)
throw new ServletException(se);
  }finally{
//remember to close any connections here!
  }
===
 
Larry
 
 [EMAIL PROTECTED] 05/02/02 05:49AM 
But I want the exception to be caught in the error.jsp page, not do a
try 
{...} catch{...} inside the doPost body.

I don't know if I explained it correctly but is there a simple solution
to 
this problem ?




Re: JSP's GzippedOutputStream

2002-05-02 Thread Larry Meadors

I do not think so. The JSPWriter is not able to send a byte array
(something I found while trying to output a pdf 2 weeks ago...the hard
way). 
 
It converts byte values to char values which are double bytes in java.
 
Your byte array may look like this {01 02 03}, but the JSPWriter sends
out something like this {01 00 02 00 03 00} instead.
 
Larry

 [EMAIL PROTECTED] 05/02/02 07:38AM 
Hi!
Afaik servlets may produce Gzipped template output something like
this:
  ...
  OutputStream out1 = response.getOutputStream();
  out = new PrintWriter(new GZIPOutputStream(out1), false);
  response.setHeader(Content-Encoding, gzip);
  .

But how we can do that with JspWriter? Is it possible to do similar
with JSP?




Re: JSP's GzippedOutputStream

2002-05-02 Thread David Cassidy

You can always use mod_gzip on apache to send compressed
 data... I take it you're trying to reduce your bandwidth usage ?

PS mod_gzip does very well

:)

Larry Meadors wrote:

I do not think so. The JSPWriter is not able to send a byte array
(something I found while trying to output a pdf 2 weeks ago...the hard
way). 
 
It converts byte values to char values which are double bytes in java.
 
Your byte array may look like this {01 02 03}, but the JSPWriter sends
out something like this {01 00 02 00 03 00} instead.
 
Larry

  

[EMAIL PROTECTED] 05/02/02 07:38AM 


Hi!
Afaik servlets may produce Gzipped template output something like
this:
  ...
  OutputStream out1 = response.getOutputStream();
  out = new PrintWriter(new GZIPOutputStream(out1), false);
  response.setHeader(Content-Encoding, gzip);
  .

But how we can do that with JspWriter? Is it possible to do similar
with JSP?


  




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




RE: db connections and Abusive refresh

2002-05-02 Thread Laurent Féral-Pierssens


Jay,

From what we do in the page, it is hardly possible to actually do that.
But we'll try to make some example and compare both methods.

Thanks,
Laurent


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 6:33 PM
To: Tomcat Users List; Jacob Kjome
Subject: RE: db connections and Abusive refresh


If you are not going to use MVC is there any reason why you can't do
your database accesses at the top of your JSP and the put the results in
variables to be output below in the page? Sorry, if I don't understand
your question, but it sounded like you were holding a database
connection open until a scriplet closes it at the bottom of the page.

--JG

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:31 PM
To: Tomcat Users List
Subject: Re: db connections and Abusive refresh

Hello Laurent,

Yes,

Here is an example.  Take notice of how connections, result sets, and
prepared statements are guaranteed to be closed in the finally
blocks:


public Site getSite( int _id ) throws SQLException
{
Connection conn = null;
Site newSite= null;

try {
conn = openConn();
newSite = getSite(_id, conn);
closeConn(conn);
return newSite;
}
catch(SQLException e) {
System.out.println(MSG_ERROR_CONNECTION + e.getMessage());
throw e;
}
finally {
if (conn != null)  try { closeConn(conn); } catch(Exception
e2) {}
}
}

//  Get a single site by id
public Site getSite( int _id, Connection _conn ) throws SQLException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
Site newSite = null;

String query = SELECT id, url, description, created, updated,
deleted  +
   FROM site WHERE id = ?;

try {
pstmt = _conn.prepareStatement(query);
pstmt.setInt(1,_id);
rs = pstmt.executeQuery();

while (rs.next()) {
newSite = Site.fromResults(rs);
if (debug) System.out.println(\n + newSite);
}
rs.close();
pstmt.close();
return newSite;
}
catch(SQLException e) {
System.out.println(MSG_ERROR_RESULTSET + e.getMessage());
throw e;
}
finally {
if (rs != null)try { rs.close(); }catch(Exception
e2) {}
if (pstmt != null) try { pstmt.close(); } catch(Exception
e3) {}
}
}


You can also use Syncronization if it is still a problem.

Jake

Wednesday, May 01, 2002, 2:23:17 PM, you wrote:


LFP Hi all,

LFP We are experiencing a few problems with our DB connection code and 
LFP an abusive usage of the F5/refresh function on the client side.

LFP Each of our jsp actually connects to the db at the top and 
LFP disconnects at the bottom. When someone uses the refresh in the 
LFP browser it leaves connections hanging/sleeping in MySQL. Is there 
LFP anyway to avoid this?

LFP Thanks for the help,
LFP Laurent




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



--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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


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



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




Does the HTTPConnector not follow the virtual hosting part of the spec

2002-05-02 Thread Abraham Fathman

All,

I appologize for asking this question again, however I haven't gotten a
response and I was hoping to get some of your thoughts

...

I have noticed a difference between the HttpConnector and the
WarpConnector while using tomcat 4.0.2.

From the 2.3 spec:

SRV.3.6 Multiple Hosts and Servlet Contexts
Web servers may support multiple logical hosts sharing one IP address on
a server. This capability is sometimes referred to as virtual hosting.
In this case, each logical host must have its own servlet context or set
of servlet contexts. Servlet contexts can not be shared across virtual
hosts.

This seems to be true when using the WarpConnector but not true when
using the HttpConnector.

While using the HttpConnector on Windows I have one subdirectory under
work, which is localhost. I can connect to this server from multiple
host names however I always just have one directory - localhost. Static
variables are also shared between hostnames.


While using the WarpConnector on Linux I have multiple directories under
my work directory - one for each host that I navigate to. Static
variables are not shared between hostnames.

I saw this article:
http://faqchest.dynhost.com/prgm/tomcat-l/tmct-01/tmct-0108/tmct-010850/
tmct01082322_32599.html
which looks like the user is experiencing different contexts on Linux
but not on Windows - It could be because the user is using the
WarpConnector on Linux but not on Windows...


Has anyone had any experience with this?


Thank you all for your help! 
I have been a reader of this list for a long time and I appreciate all
of the help that I have received! Abraham Fathman


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




Re: db connections and Abusive refresh

2002-05-02 Thread Eddie Bush

Use MVC - Struts works good.  Make life easier on yourself.

http://jakarta.apache.org/struts/index.html

- Original Message -
From: Laurent Féral-Pierssens [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 10:41 AM
Subject: RE: db connections and Abusive refresh



 Jay,

 From what we do in the page, it is hardly possible to actually do that.
 But we'll try to make some example and compare both methods.

 Thanks,
 Laurent


 -Original Message-
 From: Jay Gardner [mailto:[EMAIL PROTECTED]]
 Sent: May 1, 2002 6:33 PM
 To: Tomcat Users List; Jacob Kjome
 Subject: RE: db connections and Abusive refresh


 If you are not going to use MVC is there any reason why you can't do
 your database accesses at the top of your JSP and the put the results in
 variables to be output below in the page? Sorry, if I don't understand
 your question, but it sounded like you were holding a database
 connection open until a scriplet closes it at the bottom of the page.

 --JG

 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 1:31 PM
 To: Tomcat Users List
 Subject: Re: db connections and Abusive refresh

 Hello Laurent,

 Yes,

 Here is an example.  Take notice of how connections, result sets, and
 prepared statements are guaranteed to be closed in the finally
 blocks:


 public Site getSite( int _id ) throws SQLException
 {
 Connection conn = null;
 Site newSite= null;

 try {
 conn = openConn();
 newSite = getSite(_id, conn);
 closeConn(conn);
 return newSite;
 }
 catch(SQLException e) {
 System.out.println(MSG_ERROR_CONNECTION + e.getMessage());
 throw e;
 }
 finally {
 if (conn != null)  try { closeConn(conn); } catch(Exception
 e2) {}
 }
 }

 //  Get a single site by id
 public Site getSite( int _id, Connection _conn ) throws SQLException
 {
 PreparedStatement pstmt = null;
 ResultSet rs = null;
 Site newSite = null;

 String query = SELECT id, url, description, created, updated,
 deleted  +
FROM site WHERE id = ?;

 try {
 pstmt = _conn.prepareStatement(query);
 pstmt.setInt(1,_id);
 rs = pstmt.executeQuery();

 while (rs.next()) {
 newSite = Site.fromResults(rs);
 if (debug) System.out.println(\n + newSite);
 }
 rs.close();
 pstmt.close();
 return newSite;
 }
 catch(SQLException e) {
 System.out.println(MSG_ERROR_RESULTSET + e.getMessage());
 throw e;
 }
 finally {
 if (rs != null)try { rs.close(); }catch(Exception
 e2) {}
 if (pstmt != null) try { pstmt.close(); } catch(Exception
 e3) {}
 }
 }


 You can also use Syncronization if it is still a problem.

 Jake

 Wednesday, May 01, 2002, 2:23:17 PM, you wrote:


 LFP Hi all,

 LFP We are experiencing a few problems with our DB connection code and
 LFP an abusive usage of the F5/refresh function on the client side.

 LFP Each of our jsp actually connects to the db at the top and
 LFP disconnects at the bottom. When someone uses the refresh in the
 LFP browser it leaves connections hanging/sleeping in MySQL. Is there
 LFP anyway to avoid this?

 LFP Thanks for the help,
 LFP Laurent




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



 --
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]


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


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



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



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




Name java:comp is not bound in this Context???

2002-05-02 Thread Alvin Wang

Hi! I have an urgent question. Could any guru help me to diagnosis it?

I'm using tomcat 4.0. My servlet gets the DataSource from JNDI. However, it
raise the following exception:

javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at javax.naming.InitialContext.lookup(InitialContext.java:350)

That means the the whole java:comp cannot be found, which I think should
have nothing to do with my DataSource resource setup in my web application
context. Also I use

   javax.naming.NamingEnumeration ne = initCtx.list();

I found there is nothing under JNDI root.

I think there is much some configuration not right. Can any gurus help?
thanks so much!

Alvin


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




RE: Can I switch XML Parser with Tomcat 3.2.4

2002-05-02 Thread PChaganti

I am using Tomcat 4.0.3. The way Tomcat4.x classloaders work, your webapp 
will look for a class first in your WEB-INF/lib and WEB-INF/classes 
directory before going up the chain of classloaders. Tomcat 3.2 may handle 
things differently like you said. 

prabhakar chaganti




I think I was told a while back that there is no way to be sure which
classes will be used first.  In fact, I think that with Tomcat 3.2.x the
files inside tomcat/lib are used before the files in WEB-INF/lib.

Is this correct?



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




TC41 Test Drop

2002-05-02 Thread Anthony W. Marino

I would like to run TC41 with however I have some questions I need answered.

1) Do I need to (should I) update the coyote connectors available in this
 drop with a more recent drop found somewhere else?

2) What mod_jk2 drop should I use to test TC41/Apache2 integration?


Thank You,
Anthony



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




Re: java.lang.VerifyError while using struts with Tomcat 4.0.x

2002-05-02 Thread Craig R. McClanahan

Don't know if this is exactly the same issue, but some class loader bugs
in 4.0.3 have been fixed in 4.0.4-b2 -- you should give that a try
instead.

Craig


On Thu, 2 May 2002, Dmitri Lysenko wrote:

 Date: Thu, 2 May 2002 10:43:54 +1000
 From: Dmitri Lysenko [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: java.lang.VerifyError while using struts with Tomcat 4.0.x

 Hi,

 I'm using tomcat 4.0.3 integrated with JBoss 2.4.4 (they run in the same
 JVM).  Struts framework is used to handle the presentation logic.
 This combination works fine with Tomcat 3.x.
 However after I upgrated to the Tomcat 4.0.3 I'm experiencing the
 java.lang.VerifyError (Incompartible argument for a function) while the
 ActionServlet instanciates some action classes.  I'm sure that the problem
 caused by the changes in the tomcat's classloader. I had the situation when
 the class with the same name is accessible by two different classloaders. I
 found out that the problem appears if the class is loaded by the classloader
 that's different with the one that the current thread uses. In this situation
 I had this VerifyError. I was able to resolve the problem by eliminating the
 class duplication, now I have no two same classes that are placed in the
 different jars. However the question is why this error appears? The situation
 that I had when the same class is accessible by multiple class loaders is not
 prohibited by the Java language. I'm wondering what classloader contraint was
 violated.

 To fix the problem I have to use the jar's packaging that's not very
 convenient for me. So I appreciate any help that allows me to resolve this
 problem in better way.

 Dmitri Lyssenko,
 [EMAIL PROTECTED]

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




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




Invalid virtual host name

2002-05-02 Thread Kaveh

I followed the steps outlined on the pubbitch.com article and everything
is fine until I add this line to my httpd.conf:

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples 

At that point I get the follwing error when I try to start apache:

Syntax error on line 222 of /usr/local/apache2/conf/httpd.conf:
Invalid virtual host name

Can someone help?

Kaveh


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




Re: JSP's GzippedOutputStream

2002-05-02 Thread Craig R. McClanahan



On Thu, 2 May 2002, Ivan Balashov wrote:

 Date: Thu, 2 May 2002 17:38:27 +0400
 From: Ivan Balashov [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  Ivan Balashov [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: JSP's GzippedOutputStream

 Hi!
 Afaik servlets may produce Gzipped template output something like this:
   ...
   OutputStream out1 = response.getOutputStream();
   out = new PrintWriter(new GZIPOutputStream(out1), false);
   response.setHeader(Content-Encoding, gzip);
   .

 But how we can do that with JspWriter? Is it possible to do similar
 with JSP?


No.

JSP is for text output only, not binary.

 Use Tomcat 4.x

 Thanks!


 --
 Sincerely yours,
  Ivan  mailto:[EMAIL PROTECTED]


Craig


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




Re: java.lang.IllegalAccessException

2002-05-02 Thread Edam Cheeseman

Hi again,

sorry for the repeat postings, but I'm getting a bit further every time

I've discovered that if I instantiate my classes without using the 
jsp:Usebean tag ( i.e. DbUtilities db = new DbUtilities(); ) the jsp's run 
fine.

If I try to instantiate them with the useBean tag I get the 
IllegalAccessException.

Does that spark any ideas?

thanks,

Paul




From: Edam Cheeseman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: java.lang.IllegalAccessException
Date: Thu, 02 May 2002 15:13:25 +

we'll, I've looked a little further into my problem.

It turns out that its only within this webapp's context I'm getting the
error (sorry - should have checked further the first time). I reinstalled 
my
most recent backup of the webapp and it found the beans ok.

I didn't alter the code in any of the jsp pages or the beans today, so the
Import Routine servlet timing out in my browser seems to have somehow 
caused
the error.

However, if I simply copy over the webapp which is having trouble by 
copying
the folder with all its contents and giving the folder a different name and
restart tomcat, so creating a new webapp, I still have the same ClassLoader
problem.

It might be relevant that just prior to this problem appearing I ran a
servlet which imports a (quite large) tab delimited file into a mysql db
table. My machine appeared to run out of memory before completing the
operation and I got the default IE 'dns' error screen. After this, I had
problems trying to instantiate beans within this context.

tomcat restarts and full machine restarts have no effect.


From: Edam Cheeseman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: java.lang.IllegalAccessException
Date: Thu, 02 May 2002 13:30:57 +

Hi list,

I'm having a very odd problem with tomcat 3.3.1 on windows today,

suddenly, and for no apparent reason, tomcat's classloader is having
problems accessing (public) methods in any of my beans. All the code I'm
working on has been running fine for over a month.

here's the stacktrace:

javax.servlet.ServletException:  Cannot create bean of class DbUtilities
  at index_10._jspService(index_10.java:80)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
  at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
  at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
  at org.apache.tomcat.core.Handler.service(Handler.java:235)
  at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
  at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
  at java.lang.Thread.run(Thread.java:536)
Root cause:
java.lang.ClassNotFoundException: class DbUtilities :
java.lang.IllegalAccessException: Class java.beans.Beans can not access a
member of class DbUtilities with modifiers public
  at java.beans.Beans.instantiate(Beans.java:208)
  at java.beans.Beans.instantiate(Beans.java:48)
  at index_10._jspService(index_10.java:78)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
  at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
  at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
  at org.apache.tomcat.core.Handler.service(Handler.java:235)
  at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
  at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
  at java.lang.Thread.run(Thread.java:536)


In this instance the bean in question is DBUtilities, but I get the same
result for all other beans in any of the web apps I'm running.

I found this on sun's site regarding the IllegalAccessException:

Thrown when an application tries to load in a class through its string 
name
using:
The forName method in class Class.
The findSystemClass method in class ClassLoader.
The loadClass method in class ClassLoader.
but the currently executing method does not have access to the definition
of
the specified class, because the class is 

XML and JSP

2002-05-02 Thread Wiwi Wiwi

Hello... buddies. Can somebody tell me the websites regarding the 
tutorials/guidelines on how to use XML and JSP. THanks. :)



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




catalina.out rotation.

2002-05-02 Thread Edward Broustinov

Hello,
I have tomcat-4.0.3, solaris sparc 8.

Well, as the topic says I need to know how to rotate catalina.out log
file, without restarting the tomcat. It's created in bin/catalina.sh and
every time catalina starts the logs are just appended to it with no rotation.
The problem is that file handle is kept all the time while the tomcat is
running, so moving/copying to another file and then deleting the original
doesn't help. Once the next action has to be logged, the original file
is becoming the same size as the copied file is + the normal log output
for the action happened. Regular tricks with
cp catalina.out catalina.out.backup;cat /dev/null catalina.out
don't help either - same result.


Thanks,
Edward




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




Re: digested passwords: using RealmBase.Digest() in a jsp

2002-05-02 Thread Rick Fincher

Hi Ralph,

Have you tried putting catalina.jar in common/lib/ or /java/jre/lib/ext/ or
even WEB-INF/lib?

I don't know if Tomcat can get by without it in tomcat/server/lib, but you
may need to move it to prevent multiple class loading, but I doubt it.

Rick


- Original Message -
From: Ralf Baumert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 5:09 AM
Subject: digested passwords: using RealmBase.Digest() in a jsp


 Hi Folks,

 please help me out of this one...

 I´ve set up a tomcat with JDBC Realm Authentication
 and MD5 Digest. So far, it works fine, but I
 somehow don´t manage to use the Method
 org.apache.catalina.realm.RealmBase.Digest()
 in one of my JSPs.

 I need this Feature to let my Users change their
 passwords via web.

 This works well when implemented as Standalone
 Application. I just can´t import this class in my
 JSPs. The reason is that I can´t include catalina.jar
 in my classpath - tomcat won´t start when I do.

 Any Ideas ? Workarounds ?

 regards,
 Ralf



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




Upgrading to 4.1.x (I hope)

2002-05-02 Thread Eddie Bush

I've been looking on the Tomcat site to determine where I should download the version 
I desire - I see the 3.x and 4.0.x sections, but nothing for 4.1.x.  Am I blind?

If someone could be generous and either give me explicit navigational instrutions or 
(ideally) a link to the nightly builds directory, I'd be most appreciative.  Currently 
I run 4.0.1 but want to upgrade to the 4.1.x series in order to move datasources from 
my apps to Tomcat.  I don't want to use a 4.0.x version becasue ... well I don't =)

Any information is greatly appreciated!

Thanks so much!

Eddie




RE: Can I switch XML Parser with Tomcat 3.2.4

2002-05-02 Thread Brandon Cruz

Does anyone know if Tomcat 3.2.4 can use crimson.jar instead of parser.jar
successfully?  It seems to work, but am I going to cause problems down the
road?




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 10:52 AM
To: Tomcat Users List
Subject: RE: Can I switch XML Parser with Tomcat 3.2.4


I am using Tomcat 4.0.3. The way Tomcat4.x classloaders work, your webapp
will look for a class first in your WEB-INF/lib and WEB-INF/classes
directory before going up the chain of classloaders. Tomcat 3.2 may handle
things differently like you said.

prabhakar chaganti




I think I was told a while back that there is no way to be sure which
classes will be used first.  In fact, I think that with Tomcat 3.2.x the
files inside tomcat/lib are used before the files in WEB-INF/lib.

Is this correct?



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



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




RE: Which Connector for Tomcat 4.0.3 - mod_webapp or mod_jk

2002-05-02 Thread costinm

On Thu, 2 May 2002, Noel J. Bergman wrote:

 AIUI, mod_webapp has been easier to configure; mod_jk offers load balancing,

The configuration is the same, for the 'basic' things:
 WebAppDeploy examples /examples

is arguably as easy as:
 
 JkMount /examples/* tomcat

And has the same effect (i.e. current webapp behavior ).

What is complex is advanced configuration - lb, letting apache handle 
static resources, etc. 

 This really is a huge difference, if I understand the implications (without
 reading through the code).  For example, mod_jk won't know that we want
 Tomcat to process a filter chain against a directory unless we've done a
 JkMount for that tree, whereas it would know that Tomcat needs to process a
 JSP page.  On the other hand, mod_webapp would know about the filter chain
 because the resources would have been deployed as part of a web app.

mod_webapp will know that because it forwards all requests. Same is 
trivial with mod_jk, however jk does give you the option to fine tune
what resources are forwarded ( and maybe use apache where an equivalent
functionality exists ).

One of the goals of mod_jk2 is to go further and be able to operate with
only 'standard' apache directives and configuration ( i.e. Location and 
SetHandler ). That'll be much faster and easier to integrate - but even
more verbose. However that's just one option, for advanced use.

Costin


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




Re: Re: mod_jk: ajp13: cpu load problem with apache

2002-05-02 Thread costinm

On Thu, 2 May 2002 [EMAIL PROTECTED] wrote:

 First of all thank you for your interest.
 I will download the latest code and try this out. I do have the debug mode 
 enabled so I will sent you any errors (although I have not noticed anything 
 special). 
 I don't think though that I can reproduce the problem myself. 
 About the gdb, I have no experience of how to attach to the process but I will 
 do my best to find a colleague that does.

Short course on gdb:

ps -aux |grep httpd
( or ps -fea )

Find the PID of the process that takes all the CPU, then

gdb httpd PID
and inside do a 'bt' ( backtrace ), it'll generate a stacktrace 
we can use.


Costin

 Thanks,
 Costas
  
  Can you try the CVS head, and see if it still happens ?
  If so, can you give us more details that would allow to
  reproduce it ? 
  
  Messages like 'it doesn't work for me, you figure out why'
  are not very helpfull.
  
  At least enable the debug messages, let it run until it
  hungs, then maybe trim the log and send the last entries.
  Or use gdb to attach to the problem process and do a 
  stack trace. 
  
  Costin
  
  On Wed, 1 May 2002, Costas Stergiou wrote:
  
   Hi,
   I have an installation of Apache 1.3.19 + Tomcat 4.0.3
   on a aix4.3 machine with IBM JDK 1.3.0. I have two tomcat
   engines and I use the lb worker of mod_jk to balance user
   request to these two engines. 
   
   The problem is that some httpd processes seem to go
   into some cpu performance tasks and start consuming all
   the cpu of the machine (2processors, 2GB mem). After
   some time almost all available CPU is consumed by the
   apache processes. If I kill the child processes that cause
   the problem, the load falls back to normal. At the same time,
   I notice that I have excessive CPU usage in one of the
   tomcat instances.
   
   The problem keeps recurring all the time (almost every hour).
   I read in the mail-archives about similar problems but I didn't 
   find a good answer. 
   
   The version of mod_jk is the one in jakarta-tomcat-connectors-4.0.2.01
   I compiled the source on the same machine (aix).
   
   I have to say that I have noticed similar problems on many more 
   apache installations that have similar installations (apache, lb + 
   2 or more tomcat engines) with older versions of mod_jk and tomcat.
   
   Actually, the above problem makes the lb worker unusable since 
   I cannot trust the setup in my production environment. 
   
   Please, any idea or patches or whatever will be very helpful.
   Thanks very much for any ideas,
   Costas
   
   
   
   
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




Re: XML and JSP

2002-05-02 Thread PChaganti

Try the JSP spec. It details how the xml version of the jsps work. It is 
available at the sun site. 

-prabhakar chaganti




Hello... buddies. Can somebody tell me the websites regarding the 
tutorials/guidelines on how to use XML and JSP. THanks. :)



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




Re: mod_jk performance optimization

2002-05-02 Thread costinm

On Thu, 2 May 2002, M. Serrano wrote:

 Hi.
 
 I've got installed in my box Linux, Apache 1.3.19, JDK 1.3.1 and TC 3.3.1 
 working with ajp13. The following error appeard in my mod_jk.log after a bit 
 of continuous utilisation:
 
 [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - 
 jk_tcp_socket_recvfull failed
 [jk_ajp13_worker.c (621)]: Error reading request

From the line numbers, you may use an older version of jk, try updating 
from CVS head first ( the bug may be already fixed ) ( you can use either
the 'frozen' jk from 3.3 or j-t-c ).

The error message means from some reasons tomcat didn't sent back any 
content - so you may need to look in tomcat's lots as well.

( the 'reading request' means the request from tomcat to jk to send a 
chunk of data ) 

Costin

 
 After analysing the server's config files and reading some threads, I 
 concluded that the problem might be resolved through a bit of extra 
 re-configuration. Although the problem appearence was delayed, it still 
 existed.
 
 I wonder if anyone out there could help me with this subject. I'm sending in 
 attach some lines of httpd.conf, server.xml and mod_jk.conf
 
 Thanx a lot for your time.
 Serrano.
 
 ##
 ## httpd.conf -- Apache HTTP server configuration file
 ##
 
 #
 # Timeout: The number of seconds before receives and sends time out.
 #
 Timeout 300
 
 #
 # KeepAlive: Whether or not to allow persistent connections (more than
 # one request per connection). Set to Off to deactivate.
 #
 KeepAlive On
 
 #
 # MaxKeepAliveRequests: The maximum number of requests to allow
 # during a persistent connection. Set to 0 to allow an unlimited amount.
 # We recommend you leave this number high, for maximum performance.
 #
 MaxKeepAliveRequests 100
 
 #
 # KeepAliveTimeout: Number of seconds to wait for the next request from the
 # same client on the same connection.
 #
 KeepAliveTimeout 15
 
 #
 # Server-pool size regulation.  Rather than making you guess how many
 # server processes you need, Apache dynamically adapts to the load it
 # sees --- that is, it tries to maintain enough server processes to
 # handle the current load, plus a few spare servers to handle transient
 # load spikes (e.g., multiple simultaneous requests from a single
 # Netscape browser).
 #
 # It does this by periodically checking how many servers are waiting
 # for a request.  If there are fewer than MinSpareServers, it creates
 # a new spare.  If there are more than MaxSpareServers, some of the
 # spares die off.  The default values are probably OK for most sites.
 #
 MinSpareServers 5
 MaxSpareServers 10
 
 #
 # Number of servers to start initially --- should be a reasonable ballpark
 # figure.
 #
 StartServers 8
 
 #
 # Limit on total number of servers running, i.e., limit on the number
 # of clients who can simultaneously connect --- if this limit is ever
 # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
 # It is intended mainly as a brake to keep a runaway server from taking
 # the system with it as it spirals down...
 #
 MaxClients 150
 
 #
 # MaxRequestsPerChild: the number of requests each child process is
 # allowed to process before the child dies.  The child will exit so
 # as to avoid problems after prolonged use when Apache (and maybe the
 # libraries it uses) leak memory or other resources.  On most systems, this
 # isn't really needed, but a few (such as Solaris) do have notable leaks
 # in the libraries. For these platforms, set to something like 1
 # or so; a setting of 0 means unlimited.
 #
 # NOTE: This value does not include keepalive requests after the initial
 #   request per connection. For example, if a child process handles
 #   an initial request and 10 subsequent keptalive requests, it
 #   would only count as 1 request towards this limit.
 #
 MaxRequestsPerChild 200
 
 #
 # DocumentRoot: The directory out of which you will serve your
 # documents. By default, all requests are taken from this directory, but
 # symbolic links and aliases may be used to point to other locations.
 #
 DocumentRoot /usr/local/jakarta-tomcat-3.3.1/webapps/ROOT
 
 # This should be changed to whatever you set DocumentRoot to.
 #
 Directory /usr/local/jakarta-tomcat-3.3.1/webapps/ROOT
 
 #
 # This may also be None, All, or any combination of Indexes,
 # Includes, FollowSymLinks, ExecCGI, or MultiViews.
 #
 # Note that MultiViews must be named *explicitly* --- Options All
 # doesn't give it to you.
 #
 Options  indexes  includes  followSymLinks
 
 #
 # This controls which options the .htaccess files in directories can
 # override. Can also be All, or any combination of Options, FileInfo,
 # AuthConfig, and Limit
 #
 AllowOverride None
 
 #
 # Controls who can get stuff from this server.
 #
 Order allow,deny
 Allow from all
 /Directory
 
 # Include TOMCAT
 Include /usr/local/jakarta-tomcat-3.3.1/conf/auto/mod_jk.conf-local
 
 
 
 -  mod_jk.conf-local -
 
 
 ## Auto generated on 

Anyone out there who knows hot to link apache 2.0.x with tomcat 4.0.x?

2002-05-02 Thread Cheng Yan

If you know, could you please share your experiences with me?

I know how to link apache 1.3.x with tomcat using mod_webapp. But the
mod_webapp binary I found is for apache 1.3.x ONLY. Where can I find a
similar module for apache 2?

Thank you for your reply.


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




Tomcat 4.0.2 and JDK1.4

2002-05-02 Thread yinglcs

In tomcat 4.0.2-b2 release note, it said tomcat has issues with Jdk1.4 beta3. I would 
like to know if Tomcat 4.0.2 works with the Jdk1.4 final release?

Thanks.

-
Tomcat 4.0 and Sun JDK 1.4 beta 3:
-

Some unpredictable classloading behavior has been reported when Tomcat is 
used with Sun JDK 1.4. For this reason, it is recommended to use this release 
of Tomcat with Sun JDK 1.3.1.



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


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




404 HELP HELP! this is driveing me NUTS

2002-05-02 Thread Jason Wood

i am receiving a 404 error for a
servlethttp://localhost/servlet/vm.admin.servlet.Login

situation all class files are under d:\webapps\vmonitor\

this is my server.xml

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75 enableLookups=true
redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/
Engine name=Standalone defaultHost=localhost debug=0
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
Realm className=org.apache.catalina.realm.MemoryRealm /
Host name=localhost debug=1 appBase=d:/webapps
unpackWARs=true
Valve
className=org.apache.catalina.valves.AccessLogValve directory=logs
prefix=localhost_access_log. suffix=.txt pattern=common/
  Logger
className=org.apache.catalina.logger.FileLogger directory=logs
prefix=localhost_log.suffix=.txt timestamp=true/
Context path=/servlet docBase=vmonitor
debug=1  privileged=false/
Context path= docBase=tomcat-docs
debug=1  privileged=false/
  /Host
/Engine
  /Service
  Service name=Tomcat-Apache
Connector className=org.apache.catalina.connector.warp.WarpConnector
port=8008 minProcessors=5 maxProcessors=75 enableLookups=true
appBase=webapps acceptCount=10 debug=0/
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache debug=0
  Logger className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /
/Engine
  /Service
/Server


this my web.xml file

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameAdmin Login Servlet/servlet-name
servlet-classvm.admin.servlet.Login/servlet-class
load-on-startup1/load-on-startup
/servlet
/web-app

snap shoot of directory structure

 ...OLE_Obj... 







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




how do I redirect the generated files?

2002-05-02 Thread Mike Davis

We're trying to redirect the automatically generated files like
tomcat-apache.conf, obj.conf-auto, mod_jk.conf-auto, ... because we
don't have write permission to the /usr/local/tomcat/conf directory. We
have successfully redirected the log files to /var/log by editing the
server.xml file. Can we direct all generated files to a directory other
than /usr/local/tomcat/conf?

Thanks,
Mike


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




RE: how do I redirect the generated files?

2002-05-02 Thread Larry Isaacs

mod_jk.conf-auto suggests you are using a version of Tomcat 3.2.x.
The generated files are not configurable in in 3.2.x.  These are
configurable in Tomcat 3.3.x, with slightly different defaults.
The generated files for 3.3.x all default to being written to the
conf/auto directory instead of into conf.  AFAIK, your choice
is to upgrade to 3.3.x or patch 3.2.x source and build your own
Tomcat 3.2.x.

Cheers,
Larry

 -Original Message-
 From: Mike Davis [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, May 02, 2002 1:33 PM
 To: [EMAIL PROTECTED]
 Subject: how do I redirect the generated files?
 
 
 We're trying to redirect the automatically generated files like
 tomcat-apache.conf, obj.conf-auto, mod_jk.conf-auto, ... because we
 don't have write permission to the /usr/local/tomcat/conf 
 directory. We
 have successfully redirected the log files to /var/log by editing the
 server.xml file. Can we direct all generated files to a 
 directory other
 than /usr/local/tomcat/conf?
 
 Thanks,
 Mike
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: Tomcat 4.0.2 and JDK1.4

2002-05-02 Thread Joseph Molnar

Not sure about 4.0.2, but I am using 4.0.3 with JDK 1.4 and haven't had any
problems thus far (been running that config for about a month).



Joseph Molnar
http://www.codesta.com/



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 10:22 AM
Subject: Tomcat 4.0.2 and JDK1.4


 In tomcat 4.0.2-b2 release note, it said tomcat has issues with Jdk1.4
beta3. I would like to know if Tomcat 4.0.2 works with the Jdk1.4 final
release?

 Thanks.

 -
 Tomcat 4.0 and Sun JDK 1.4 beta 3:
 -

 Some unpredictable classloading behavior has been reported when Tomcat is
 used with Sun JDK 1.4. For this reason, it is recommended to use this
release
 of Tomcat with Sun JDK 1.3.1.



 __
 Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


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



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




R: problem with mod_jk

2002-05-02 Thread Christian

I check in to the freebsd ports but I not find jdk 1.3.1, for freebsd
4.5 I find only jdk1.1.8.

I try to your configuration the error not change:

Syntax error on line 1 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/apache/mod_jk.so into server:
Cannot open /usr/local/apache/libexec/apache/mod_jk.so
/bin/apachectl start: httpd could not be started

naturally on line 1 there is the line that load mod_jk.so

 

-Messaggio originale-
Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
Inviato: mercoledì 1 maggio 2002 19.55
A: Tomcat Users List
Oggetto: Re: R: problem with mod_jk

Christian wrote:

FreeBSD 4.5 release
Jdk 1.1.8
Apache 1.3.24
Tomcat 3.2.4

I use binary version, fount on the site for tomcat 2.3.4, jdk is a
ports
of freebsd (java originally not support FreeBSD), apache 1.3.24 is a
source fount on apache web site.
For compile mod_jk I download source of tomcat 3.2.4, in this source
there is makefile.freebsd, they permits make source specific on
freebsd.

-Messaggio originale-
Da: adrianthiele [mailto:[EMAIL PROTECTED]] 
Inviato: mercoledì 1 maggio 2002 18.58
A: Tomcat Users List
Oggetto: Re: R: problem with mod_jk

Tell me your setup ? what version of Apache , what version of Tomcat, 
did you build the mod_jk ? Are you using any of the ports to build this

? What jdk are you using?




Christian wrote:

  

mod_jk.so is in /usr/local/apache/libexec and I start first tomcat
with
shell script startup.sh and apache with apachectl when tomcat are
started.

The problem Isn't resolve.

This is the usual error:
Sintax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so: Undefined symbol map_name_at
/bin/apachectl start: http could not started

HELP!!!


[EMAIL PROTECTED]


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



  

Why aren`t you using the jdk1.3.1 for freeBSD ?
Would you like to try mine (mod_jk) ?

here`s my worker.properties
workers.tomcat_home=$CATALINA_HOME
workers.java_home=$JAVA_HOME
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Added to httpd.conf
#

LoadModule jk_module  libexec/apache/mod_jk.so

AddModule mod_jk.c



IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile  logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

/IfModule




##

Check yours to see if it jives. what does your auto .conf file look like
?








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


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




HELP !!!! PLEASE !!!!! RE: JAAS inside of a Servlet

2002-05-02 Thread Marcio Adriano Oliveira

Repost !!!

-Original Message-
From: Marcio Adriano Oliveira [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: JAAS inside of a Servlet


Hi there,

I'm trying to run the simple authentication inside a Servlet and I'm getting
a security exception:
unable to instantiate LoginConfiguration.
I have the same code working from a stand-alone application.
I read on that there is a problem with jdk 1.3 and JAAS 1.0, so I did what
they recommend to put the jaas.jar and login module jar on the classpath, I
did and didn't work.
I found also that the jdk 1.4 would fix this problem, installed and I still
have the problem.

Any help would be very appreciate.

Thanks in advance,

Marcio Adriano

PS.: The following is the full exception message:

java.lang.SecurityException: unable to instantiate LoginConfiguration
at
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:
212)
at
javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.init(LoginContext.java:163)
at
javax.security.auth.login.LoginContext.init(LoginContext.java:319)
at
com.truecontext.wasabi.presentation.control.web.handlers.LoginHandler.doStar
t(LoginHandler.java:75)
at
com.truecontext.wasabi.presentation.control.web.RequestProcessor.processRequ
est(RequestProcessor.java:86)
at
com.truecontext.wasabi.presentation.control.web.MainServlet.doProcess(MainSe
rvlet.java:191)
at
com.truecontext.wasabi.presentation.control.web.MainServlet.doGet(MainServle
t.java:140)
at
com.truecontext.wasabi.presentation.control.web.MainServlet.doPost(MainServl
et.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:201)
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.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
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:462)
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
:163)
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:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


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


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




Loadbalancing....please Help!

2002-05-02 Thread Gabriel Maffia

Hello all:

I´ve been struggling with this issue for quite a long time now, and I can´t seem to 
find a solution.

I´m actually using this configuration:

Apache 1.3.23
Tomcat 4.0.1
Jboss 4.2.3


I´ve used mod_jk and the loadbalancer connector to connect my web server with two 
other tomcat servers. Both of the tomcat servers connect to the Jboss server.

The problem is that sessions are not mantained. Apache keeps sending me randomly to 
one tomcat server or the other instead of choosing one. That makes me lose my session 
id and get errors in my application.


Regarding to the tomcat servers configuration, I have my jvmroute statement set right 
(I think):

in server 1:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=foo.bar.com debug=1

in server 2:


Engine jvmRoute=tomcat2 name=Standalone defaulttHost=foo2.bar.com debug=1



the workers.properties file has this configuration:

# list the workers by name

worker.list=tomcat1, tomcat2, loadbalancer

# 
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=foo.bar.com
worker.tomcat1.type=ajp13#

# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.tomcat1.lbfactor=50

# 
# Second tomcat server
# 
worker.tomcat2.port=8009
worker.tomcat2.host=foo2.bar.com
worker.tomcat2.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat2.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.tomcat2.lbfactor=50

# 
# Load Balancer worker
# 

#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

#
# END workers.properties
#

Maybe I set the lbfactor wrong? Wich numbers should I use?

Thanks a lot for all your help so far.
 

Gabriel

PS: Here is a little graph of the distribution of the servers


****
*Apache web server  ** Tomcat2 server   *
*Tomcat1 server   **  Jboss 2.4.3   *
*foo.bar.com** foo2.bar.com  *
****



RE: Tomcat 4.0.2 and JDK1.4

2002-05-02 Thread Whitcomb, Roger

I have been running both Tomcat 4.0.2 and 4.0.3 with Sun JDK 1.4 on Win NT 4.0 and Win 
2000 (not heavy loads, but constantly) for about a month now also with no problems.

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


-Original Message-
From: Joseph Molnar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:04 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.2 and JDK1.4


Not sure about 4.0.2, but I am using 4.0.3 with JDK 1.4 and haven't had any
problems thus far (been running that config for about a month).



Joseph Molnar
http://www.codesta.com/



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 10:22 AM
Subject: Tomcat 4.0.2 and JDK1.4


 In tomcat 4.0.2-b2 release note, it said tomcat has issues with Jdk1.4
beta3. I would like to know if Tomcat 4.0.2 works with the Jdk1.4 final
release?

 Thanks.

 -
 Tomcat 4.0 and Sun JDK 1.4 beta 3:
 -

 Some unpredictable classloading behavior has been reported when Tomcat is
 used with Sun JDK 1.4. For this reason, it is recommended to use this
release
 of Tomcat with Sun JDK 1.3.1.



 __
 Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


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



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

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




Re[4]: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-05-02 Thread Jacob Kjome

Hello Tom,

Well, how about here:
http://www.alexandriasc.com/software/JavaService/source.html

Tomcat.exe is simply a program called JavaService:

JavaService is a Win32 executable that allows any Java class to be
run as an NT service. It uses JNI's invocation API to create a Java
Virtual Machine using any JNI compliant Java implementation.

Also, the options being referred to have nothing specifically to do
with Tomcat at all.  They are JVM options...specifically, Sun JVM
options for JDK1.3 and JDK1.4.

CATALINA_OPTS = -server -Xms8m -Xmx128m

1. -server - use the server VM
2. -Xms8m - Set the initial size of the Java memory allocation pool (that is, the 
heap) to 8 Mbytes (The default value is 2MB)
3. -Xmx128m - Set the maximum heap size to 128 Mbytes (The default value is 64MB)
4. -Xincgc - Use incremental GC, eliminate occasional garbage-collection pauses during 
program execution, although 10% hit in overall GC performance


The CATALINA_OPTS evironment variable is there as an convenience for
you to use when running Tomcat.  If you've specified this environment
variable, Tomcat, using the scripts to start up, will use these flags
when starting itself up.  These flags tell the Sun JVM to behave in
particular ways that may optimize your application running within the
JVM.

Does that clear things up?

Jake

Thursday, May 02, 2002, 1:16:48 AM, you wrote:

TB Jake,


 Also, what is that -jvm_option?  I haven't seen that before?  My
 %CATALINA_OPTS% evironment var looks like: -server -Xms8m -Xmx128m.
 Should I be using -jvm_option?


TB I have NO -server option. I think there is a big difference between Tomcat
TB 3.x and 4.x. If you type tomcat.exe /? you will see all available options.
TB It may also be a difference between Tomcat running as a service (Win$ows
TB only) or running it in a shell.

TB Some weeks ago I tried to find out where the source code of  Tomcat.exe is,
TB but nobody replied! It seems to be TOP SECRET open source -:)

TB Tom



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: port 80 !!?? Running !

2002-05-02 Thread Lauren Commons


--- adrianthiele [EMAIL PROTECTED] wrote:
 The Process must run as root,  If you can see it
 on yours , you 
 should be able to see it from others. If I start the
 whole tomcat 
 process as another user it can start on any port
 over 1024.
 Do you use localhost to see the servlet on your
 machiine ?  Can you 
 use the ip address to view it ?

I BELIEVE (but I'm not at home so can't be sure) that
it only works with Localhost.

 
 Lauren Commons wrote:
 
 I also got Tomcat to listen on port 80 by changing
 the
 port number in Server.xml.  My problem is I can
 only
 browse from the local (server) machine.  If I point
 my
 browser on another machine on the same network to
 the
 server's ip address I get no response (I think that
 was what happened; I can't test it now to recall
 exactly what happens...)
 
 I'm guessing this is a unix thing, but am not sure.
 I'm running on Redhat 7.2
 
 --- adrianthiele [EMAIL PROTECTED] wrote:
   
 
 Tevfik , I have mine running on port 80, I just
 grepped Server.xml and 
 changed the port number from 8080 to 80 no the non
 ssl http config. It 
 only needs to be changed in one spot.
 I just ran apachectl stop the startup.sh and
 everything is fine.
 
 Adrian
 
 
 Tevfik Aytekin wrote:
 
 
 
 But apache server can manage to bind to port 80
   
 
 with another user.
 
 
 What I am asking is why tomcat can not do this.
 Is
   
 
 it becasue it is written
 
 
 in Java?
 
 TA.
 
 -Original Message-
 From: Renato Romano
   
 
 [mailto:[EMAIL PROTECTED]]
 
 
 Sent: Tuesday, April 30, 2002 3:30 PM
 To: 'Tomcat Users List'
 Subject: RE: port 80 !!??
 
 
 That's because on Unix-like systems well-known
 port
   
 
 numbers, like www
 
 
 (port 80), or ftp, telnet etc, are
 system-reserved
   
 
 to the root user. No
 
 
 other user can open server sockets on ports less
   
 
 than 1024. You should
 
 
 run it as root, or have another user having
 system
   
 
 administrator
 
 
 prvileges.
 Renato
 
 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA
 
 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _
 
 
 -Original Message-
 From: Tevfik Aytekin
   
 
 [mailto:[EMAIL PROTECTED]]
 
 
 Sent: martedì 30 aprile 2002 14.32
 To: Tomcat Users List
 Subject: port 80 !!??
 
 
 Hi,
 I suppose this question should have been
 answered,
   
 
 but I could not find
 
 
 a satisfactory answer in the archives. Isn't it
   
 
 possible to run tomcat
 
 
 as standalone on port 80 with a user other then
   
 
 root. Apache server
 
 
 manages to do this. But as far as I can see
 tomcat
   
 
 can not. I wonder
 
 
 why? Can someone answer? This ability of tomcat
   
 
 would have been great
 
 
 since we did not need neither apache nor mod_jk,
   
 
 etc. Also since apache
 
 
 and mod_jk are written in C it troubles many
 people
   
 
 to get them run on
 
 
 different platforms. So I do not understand why
   
 
 tomcat do not have the
 
 
 ability run on port 80 with a user other than
 root.
 
 Thanks in advance.
 TA.
 
 
 --
 To unsubscribe:  
   
 

mailto:[EMAIL PROTECTED]
 
 
 For additional commands:
   
 
 mailto:[EMAIL PROTECTED]
 
 
 Troubles with the list:
   
 
=== message truncated ===


=
-
Mr Lauren Commons
DISCLAIMER: The opinions expressed 
ARE in fact those of my employer.

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




mod_webapp !!!!!!!

2002-05-02 Thread Kaveh

I followed the steps outlined on the pubbitch.com article and everything
is fine until I add this line to my httpd.conf:
 
WebAppConnection warpConnection warp localhost:8008 WebAppDeploy
examples warpConnection /examples 
 
At that point I get the follwing error when I try to start apache:
 
Syntax error on line 222 of /usr/local/apache2/conf/httpd.conf:
Invalid virtual host name
 
Can someone help?
 
Kaveh 



Re: mod_webapp !!!!!!!

2002-05-02 Thread Oktay Altunergil

Make sure there is a 

ServerName  hostname

statement before those lines. You might also need to specify the port number ( I 
didn't have to )
as 

ServerName localhost:80

Oktay 


On Thu, 02 May 2002 15:36:54 -0400
Kaveh [EMAIL PROTECTED] wrote:

 I followed the steps outlined on the pubbitch.com article and everything
 is fine until I add this line to my httpd.conf:
  
 WebAppConnection warpConnection warp localhost:8008 WebAppDeploy
 examples warpConnection /examples 
  
 At that point I get the follwing error when I try to start apache:
  
 Syntax error on line 222 of /usr/local/apache2/conf/httpd.conf:
 Invalid virtual host name
  
 Can someone help?
  
 Kaveh 
 

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




ApacheConfig for Windows2000

2002-05-02 Thread Helferty, Richard (FUSA)

Hello, I need help configuring Apache and Tomcat. Here are my versions.
j2sdk1.4.0
tomcat-3.3a
Apache 2.0.35
on Windows2000 Professional

Basically I have tomcat and Apache both installed and running but can't run
both. I got a little lost following Tomcat-Apache HOWTO instructions on
jakarta.apache.org but basically I followed the instructions
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html#run
ning_examples
1. Modify Apache's httpd.conf file.
2. Install a web server adapter.
3. Modify Tomcat's server.xml file.
When I insert Include c:/jakarta-tomcat-3.3a/conf/auto/mod_jk.conf in the
Apache httpd.conf file and attempt to start the web service, it fails. Any
help would be greatly appreciated. Thanks



**
This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you
**


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




RE: mod_webapp !!!!!!!

2002-05-02 Thread Kaveh

Thanks Oktay

I think I was too tired last night and overlooked that in the
instructions.

It actually works now.

-Original Message-
From: Oktay Altunergil [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 02, 2002 3:51 PM
To: Tomcat Users List
Subject: Re: mod_webapp !!!

Make sure there is a 

ServerName  hostname

statement before those lines. You might also need to specify the port
number ( I didn't have to )
as 

ServerName localhost:80

Oktay 


On Thu, 02 May 2002 15:36:54 -0400
Kaveh [EMAIL PROTECTED] wrote:

 I followed the steps outlined on the pubbitch.com article and
everything
 is fine until I add this line to my httpd.conf:
  
 WebAppConnection warpConnection warp localhost:8008 WebAppDeploy
 examples warpConnection /examples 
  
 At that point I get the follwing error when I try to start apache:
  
 Syntax error on line 222 of /usr/local/apache2/conf/httpd.conf:
 Invalid virtual host name
  
 Can someone help?
  
 Kaveh 
 

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



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




RE: mod_webapp !!!!!!!

2002-05-02 Thread Ziyun Tao

Kaveh,
Could you send me the article's URL you mentioned inthe email, I tried 
pubbitch.com, It doesn't work.

Thank,

Ziyun


From: Kaveh [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: mod_webapp !!!
Date: Thu, 2 May 2002 16:35:52 -0400

Thanks Oktay

I think I was too tired last night and overlooked that in the
instructions.

It actually works now.

-Original Message-
From: Oktay Altunergil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 3:51 PM
To: Tomcat Users List
Subject: Re: mod_webapp !!!

Make sure there is a

ServerName  hostname

statement before those lines. You might also need to specify the port
number ( I didn't have to )
as

ServerName localhost:80

Oktay


On Thu, 02 May 2002 15:36:54 -0400
Kaveh [EMAIL PROTECTED] wrote:

  I followed the steps outlined on the pubbitch.com article and
everything
  is fine until I add this line to my httpd.conf:
 
  WebAppConnection warpConnection warp localhost:8008 WebAppDeploy
  examples warpConnection /examples
 
  At that point I get the follwing error when I try to start apache:
 
  Syntax error on line 222 of /usr/local/apache2/conf/httpd.conf:
  Invalid virtual host name
 
  Can someone help?
 
  Kaveh
 

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



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



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: ApacheConfig for Windows2000

2002-05-02 Thread Tim Cronin

this is for tomcat 4.0.x

http://www.acg-gmbh.de/mod_jk/

you may want to upgrade tomcat

-Original Message-
From: Helferty, Richard (FUSA) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: ApacheConfig for Windows2000


Hello, I need help configuring Apache and Tomcat. Here are my versions.
j2sdk1.4.0
tomcat-3.3a
Apache 2.0.35
on Windows2000 Professional

Basically I have tomcat and Apache both installed and running but can't run
both. I got a little lost following Tomcat-Apache HOWTO instructions on
jakarta.apache.org but basically I followed the instructions
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html#run
ning_examples
1. Modify Apache's httpd.conf file.
2. Install a web server adapter.
3. Modify Tomcat's server.xml file.
When I insert Include c:/jakarta-tomcat-3.3a/conf/auto/mod_jk.conf in the
Apache httpd.conf file and attempt to start the web service, it fails. Any
help would be greatly appreciated. Thanks



**
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you
**


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

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




Re: R: what is needed to connect to mysql

2002-05-02 Thread Jacob Kjome

Hello Gianluca,

Or use:

Thread.currentThread().getContextClassLoader().loadClass(dbDriver);

Instead of:

Class.forName(dbDriver);

The latter won't find the driver if it isn't immediately within the
same classloader as the class calling Class.forName where the first
one will find it in parent classloaders, so you can have the driver in
$TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib...or WEB-INF/lib if you
still want to do that.

Jake

Thursday, May 02, 2002, 4:31:15 AM, you wrote:



 -Messaggio originale-
 Da: # Lalit Nagpal # [mailto:[EMAIL PROTECTED]] 
 Inviato: giovedì 2 maggio 2002 11.09
 A: [EMAIL PROTECTED]
 Oggetto: what is needed to connect to mysql
 
 
 
 hello,
 
 plz can anybody tell me how to connect to a mysql database 
 through a servlet. i know how to prepare a connection etc 
 through code but what other settings are needed. i am using 
 tomcat 4 as a standalone.
 
 The error i get is Class not found org.gjt.mm.mysql.Driver
 
 plz help ... 
 

GG Put your jdbc driver for mysql in your {webapp}/WEB-INF/lib/folder ...
GG It should work!

GG Bye, Grava



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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




  1   2   >