Require help

2001-04-16 Thread Vinoj Vijayan

Hi
We are using Apache 1.3.12 as the web server with Tomcat as the
JSP/Servlet engine. We have the following requirement, we are to instantiate
a class when the server starts up. How do we do this ? Do we have to
add/modify lines in the configuration files for apache and/or tomcat? 

Please help.

Thanks and Regards
Vinoj



RE: Repost: tomcat 3.3-M2 /admin/contextAdmin/contextList.jspfailure Date: Mon, 09 Apr 2001 10:14:51 +1000 From: Peter B. West pbwest@powerup.com.au Organization: Repost: tomcat 3.3-M2 /admin/

2001-04-16 Thread Ignacio J. Ortega

Please file a bug in http://nagoya.apache.org/bugzilla

I will revise the Admin app ASAP..

Thanks for the feedback

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En
 nombre de Peter B. West
 Enviado el: lunes 16 de abril de 2001 5:53
 Para: [EMAIL PROTECTED]
 Asunto: Repost: tomcat 3.3-M2 
 /admin/contextAdmin/contextList.jspfailure
 Date: Mon, 09 Apr 2001 10:14:51 +1000 From: "Peter B. West"
 [EMAIL PROTECTED] Organization: Repost: tomcat 3.3-M2 
 /admin/cont
 
 
 Any takers (or takes) on this one.  I posted it a few days 
 ago.  The problem
 does not seem to be with the authentication, but with the 
 refereneces to the
 Logger class.
 
 Peter
 
 I have been trying to set up a JBDCRealm using postgresql 
 7.0.2 under redhat
 linux with tomcat 3.3-M2.  I got the authentication to work, 
 but ran into the
 following problem when trying to access the Context List.
 
 Error: 500
 Location: /admin/contextAdmin/contextList.jsp
 Internal Servlet Error:
 
 java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/Logger
 at 
 contextAdmin.contextList_1._jspService(contextList_1.java:67)
 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(ServletHandl
 er.java:500)
 at org.apache.tomcat.core.Handler.service(Handler.java:223)
 at
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler
 .java:448)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextM
 anager.java:788)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:701)
 at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
 ction(Ajp13Interceptor.java:162)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:424)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.java:497)
 at java.lang.Thread.run(Thread.java:498)
 
 Looking in container/tomcat_util.jar, I see
 org/apache/tomcat/util/qlog/Logger.class, but no 
 log/Logger.class.  Is this the
 problem?  If so, how do I fix it (being new to java)?
 
 Peter
 -- 
 Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
 "Lord, to whom shall we go?"
 



** Does Tomcat need Restart **

2001-04-16 Thread Prashantha . Marathe

Hi,

Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
to restart automatically whenever a servlet gets modified (i.e. I
re-compile the servlet).

I am running Tomcat and Apache on Linux OS.

Regards,
Marathe




Does anybody know how to configure Tomcat on Win95?

2001-04-16 Thread Sergaziev, E.S. - ALAPQ




**
This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified that 
no part of the e-mail or any attachment may be disclosed, copied or distributed, and 
that any other action related to this e-mail or attachment is strictly prohibited, and 
may be unlawful. If you have received this e-mail by error, please notify the sender 
immediately by return e-mail, and delete this message. Koninklijke Luchtvaart 
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for 
the incorrect or incomplete transmission of this e-mail or any attachments, nor 
responsible for any delay in receipt.
**



Re: Does anybody know how to configure Tomcat on Win95?

2001-04-16 Thread skolski

Hello to Holland,

perhaps it would be a good idea to specifie the problem a little bit

sascha





RE: Does anybody know how to configure Tomcat on Win95?

2001-04-16 Thread Sergaziev, E.S. - ALAPQ

I have downloaded Tomcat's zip file.
Unzipped it on to a directory and tried to run Jasper.bat.

It responded with error: "Can't find jpappend.bat", while it is in the same
directory as jasper.bat. I have set JASPER_HOME to refer to Tomcat
directory, but it does not work.

How can I make this work?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 16 April 2001 16:00
To: [EMAIL PROTECTED]
Subject: Re: Does anybody know how to configure Tomcat on Win95?


Hello to Holland,

perhaps it would be a good idea to specifie the problem a little bit

sascha



**
This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified that 
no part of the e-mail or any attachment may be disclosed, copied or distributed, and 
that any other action related to this e-mail or attachment is strictly prohibited, and 
may be unlawful. If you have received this e-mail by error, please notify the sender 
immediately by return e-mail, and delete this message. Koninklijke Luchtvaart 
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for 
the incorrect or incomplete transmission of this e-mail or any attachments, nor 
responsible for any delay in receipt.
**



RE: Question

2001-04-16 Thread Danny Angus

Although I dont have a file named jappend.bat in my installatiuon (there is
a cappend.bat though)...

I found that on win98 (not 95) the batch files didn't set the environment
variables:-(
the solution was to make a list of all the commands needed to set up the
ENV, and start tomcat the way I needed it, then copy-n-paste this into the
terminal window (oops, sorry I mean DOS prompt)

There are bound to be better ways than this ~:-) but you shouldn't really be
running servers on win95 anyway should you!
not when linux is free..
(I only did it so I could mess with servlet ideas on my laptop. )

other tips include (stating the bleedin' obvious);
use the newest jre or jdk.
dont bother with apache (after all you're not using  win95 for a live
machine now are you .. ?)
make sure java is working properly before you even try to start Tomcat,
and don't alter the configuration until you've seen the examples served on
http://localhost:8080/



 -Original Message-
 From: Sergaziev, E.S. - ALAPQ [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 5:12 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Question


 Hi Danny,

 I have been following it up in hope the answer would be found but no luck.

 I also installed Tomcat on my Win95 and whenever I try to launch
 Jasper.bat
 it tops saying "Using JASPER_HOME: JASPER_HOME\bin\jpappend.bat does not
 exists. Please set JASPER_HOME correctly".
 But, I did set the env and in any case the file is in the same
 directory as
 jasper.bat.

 What could be wrong here?

 Erlan

 -Original Message-
 From: Danny Angus [mailto:[EMAIL PROTECTED]]
 Sent: 15 April 2001 20:47
 To: [EMAIL PROTECTED]
 Subject: RE: Question


  Yep, nothing worked. I finally realized that it wasn't going to
 work after
  following the docs so I went decided not to use Tomcat after spending 2
  hours trying to figure it out.

 seems a bit harsh, I had no problems making it work as a standalone server
 straight out of the box on NT  Linux, and only small problems on win98.
 Furthermore it is worth the effort, IMHO.



 **
 This e-mail and any attachment may contain confidential and
 privileged material intended for the addressee only. If you are
 not the addressee, you are notified that no part of the e-mail or
 any attachment may be disclosed, copied or distributed, and that
 any other action related to this e-mail or attachment is strictly
 prohibited, and may be unlawful. If you have received this e-mail
 by error, please notify the sender immediately by return e-mail,
 and delete this message. Koninklijke Luchtvaart Maatschappij NV
 (KLM), its subsidiaries and/or its employees shall not be liable
 for the incorrect or incomplete transmission of this e-mail or
 any attachments, nor responsible for any delay in receipt.
 **




Re: ** Does Tomcat need Restart **

2001-04-16 Thread Mr.Y.SHIVAKANT


-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 3:20 PM
Subject: ** Does Tomcat need Restart **


Hi,

Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
to restart automatically whenever a servlet gets modified (i.e. I
re-compile the servlet).

I am running Tomcat and Apache on Linux OS.

Regards,
Marathe

Hi ,
  Is its into big time tomcat




Re: ** Does Tomcat need Restart **

2001-04-16 Thread Wolle



"Mr.Y.SHIVAKANT" wrote:

 -Original Message-
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Monday, April 16, 2001 3:20 PM
 Subject: ** Does Tomcat need Restart **

 Hi,
 
 Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
 to restart automatically whenever a servlet gets modified (i.e. I
 re-compile the servlet).
 
 I am running Tomcat and Apache on Linux OS.
 
 Regards,
 Marathe
 
 Hi ,
   Is its into big time tomcat

??? what do you mean with this ?

Greetings,
Michael




RE: ** Does Tomcat need Restart **

2001-04-16 Thread Nivy, Ofer

do you want tomcat to use the new version of your Servlet (after you
compile)?
in that case, tomcat reloads the servlets automatically.
this is configurable in the server.xml file (look for "reloadable"
attribute).

ofer

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 12:43 PM
To: [EMAIL PROTECTED]
Subject: ** Does Tomcat need Restart **


Hi,

Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
to restart automatically whenever a servlet gets modified (i.e. I
re-compile the servlet).

I am running Tomcat and Apache on Linux OS.

Regards,
Marathe



Re: saving session attributes across server machines

2001-04-16 Thread Kief Morris

Raul Valenberg typed the following on 03:36 PM 4/15/2001 -0600
We are designing a Web application with Servlets and JSPs that has to run on
several machines in a fail-over mode. Each machine also has to participate in
the workload as longs it is up. Furthermore, our requirements state that if a
user session begins at one server, the fail-over to another server would be
transparent to the client.

I am looking for the right combination of technologies for this case.
Does anyone have any experience with these kind of requirements using Tomcat?

Support for this is underway for Tomcat 4. If you're interested in partipating, check 
out the source from CVS  join us in tomcat-dev.

Kief




servletoutputstream synchronization

2001-04-16 Thread Craig Pfeifer



All 
--

I'm deploying my 
servlet into Tomcat and JRun 3.0, and I'm experiencing different behavior in 
each. I think it's a threading issue, so I wanted to ask:

Does the Tomcat 
servlet container provide synchronized access to the servletoutputstream, or do 
I have to do that myself? What does the servlet spec say about 
this?

Thanks,

Craig

Craig 
PfeiferSoftware EngineerAether Systems, Software Products 
Division(571) 633-5753[EMAIL PROTECTED] 



Re: ** Does Tomcat need Restart **

2001-04-16 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Wolle [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 4:45 PM
Subject: Re: ** Does Tomcat need Restart **




"Mr.Y.SHIVAKANT" wrote:

 -Original Message-
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Monday, April 16, 2001 3:20 PM
 Subject: ** Does Tomcat need Restart **

 Hi,
 
 Is there any option in tomcat CONFIGURATION by which, I can instruct
Tomcat
 to restart automatically whenever a servlet gets modified (i.e. I
 re-compile the servlet).
 
 I am running Tomcat and Apache on Linux OS.
 
 Regards,
 Marathe
 
 Hi ,
   Is its into big time tomcat

??? what do you mean with this ?

Greetings,
Michael

i mean is ITS The company the dude is working INTO big time tomcat(working
like hell on tomcat and nothing to do with Jerry The mouse).

YOURS SINCERELY
Shivakanth

P.S I am getting the error port number null not a valid argument when i shut
down can anyone help me with this.








Re: servletoutputstream synchronization

2001-04-16 Thread Mr.Y.SHIVAKANT






-Original Message-From: 
Craig Pfeifer [EMAIL PROTECTED]To: 
[EMAIL PROTECTED] 
[EMAIL PROTECTED]Date: 
Monday, April 16, 2001 6:34 PMSubject: servletoutputstream 
synchronization
All 
--

I'm deploying my 
servlet into Tomcat and JRun 3.0, and I'm experiencing different behavior in 
each. I think it's a threading issue, so I wanted to 
ask:

Does the Tomcat 
servlet container provide synchronized access to the servletoutputstream, or 
do I have to do that myself? What does the servlet spec say about 
this?

Thanks,

Craig

Craig 
PfeiferSoftware EngineerAether Systems, Software Products 
Division(571) 633-5753[EMAIL PROTECTED]


YOUR 
Comany got a cool logo thats all for now.
YOURS 
SINCERELYShivakanth 



RE: Build Failure

2001-04-16 Thread Kairam, Raj

I am runnig the script as root.
The chmod command is failing not because of improper rights but because the
file to be chmod'ed has not been created.
As you can see, the problem is caused by the failure of the build/compile
process.
The causes for compilation failure are unresolved symbols in the java
programs that it uses.
I am still trying to figure it out.
Thanks for the reply.

Raj Kairam

-Original Message-
From: Natasa Lazetic [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 1:49 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Build Failure


Your first problem is that "chmod" function is failing.  These are the
errors you listed:

chmod: can't access bootstrap/bin/ant
chmod: can't access bootstrap/bin/antRun

So, you need to run the build script as a user that has proper rights to
change properties of "bootstrap/bin/ant" and "bootstrap/bin/antRun"
directories.  Super user (root) will definitely work.

... Natasa ...



-Original Message-
From: Kairam, Raj [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 6:02 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Cc: Kairam, Raj
Subject: Build Failure


I am trying to install and build Tomcat on a HP-UX 11.0 Box without any
success.
This is the environment I am working with.
HOME=/
JAKARTA_HOME=/opt/jakarta
JAVA_HOME=/opt/java1.3
APACHE_HOME=/usr/local/apache
TOMCAT_HOME=/opt/jakarta/dist/tomcat

JAKARTA_TOMCAT_SOURCE=/opt/jakarta-tomcat-3.2.1-src
JAKARTA_ANT_SOURCE=/opt/jakarta-ant-1.3
JAKARTA_SERVLETAPI_SOURCE=/opt/jakarta-servletapi-3.2-src

PATH contains the following ..
:/usr/local/apache/bin:opt/java1.3/bin:/opt/jakarta/dist/tomcat/bin

The two jar files have been downloaded to..
/opt/jakarta-ant-1.3/lib/parser.jar
/opt/jakarta-ant-1.3/lib/jaxp.jar

CLASSPATH is not set explicitly yet..

This is what I have done following the instructions in the README for
Tomcat
Servlet Container
(/opt/jakarta-tomcat-3.2.1-src/README) - As recommended there, tried to
bulid the executable
version for ANT first.

cd $JAKARTA_ANT_SOURCE
./bootstrap.sh  redirect.txt

I am getting the following on the screen
BUILD FAILED
/opt/jakarta-ant-1.3/build.xml:171: Compile failed. Messages should have
been provided
chmod: can't access bootstrap/bin/ant
chmod: can't access bootstrap/bin/antRun

The redirect.txt is attached.
 redirect.txt 
The build fails and the ant.jar is never created.
It looks like there exist a lot of unresolved symbols, for example, the
first error in the attached .txt file
[javac]
/opt/jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/optional/dep
end/
ClassFile.java:81:
[javac] symbol : class ConstantPool
[javac] location: class
org.apache.tools.ant.taskdefs.optional.depend.ClassFile
[javac]   private ConstantPool constantPool;


---/constantpool/ClassCPInfo.java
etc

But the ClassFile.java does exist.

What is being done for the build process to fail ?.  Please advise.

Thanks
Raj Kairam 




RE: servletoutputstream synchronization

2001-04-16 Thread Craig Pfeifer

 humble apologies for HTML mail 

Craig Pfeifer
Software Engineer
Aether Systems, Software Products Division
(571) 633-5753
[EMAIL PROTECTED]

  
-Original Message-
From: Mr.Y.SHIVAKANT [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 9:38 AM
To: [EMAIL PROTECTED]
Subject: Re: servletoutputstream synchronization



-Original Message-
From: Craig Pfeifer [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 6:34 PM
Subject: servletoutputstream synchronization


All --

I'm deploying my servlet into Tomcat and JRun 3.0, and I'm experiencing
different behavior in each. I think it's a threading issue, so I wanted to
ask:

Does the Tomcat servlet container provide synchronized access to the
servletoutputstream, or do I have to do that myself? What does the servlet
spec say about this?

Thanks,

Craig
Craig Pfeifer
Software Engineer
Aether Systems, Software Products Division
(571) 633-5753
[EMAIL PROTECTED]
  



Re: Tomcat

2001-04-16 Thread Mark Mynsted

Setup Tomcat as per instructions on 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.html

Then once you get it running try setting up Tomcat to run as an NT service.  I 
recommend you use JavaService.
The JavaService documentation is found at 
http://www.alexandriasc.com/software/JavaService/documentation.html 

The install is at
http://www.alexandriasc.com/software/JavaService/download.html 

Also subscribe to tomcat-user.  I copied the address on this note.  See the following 
site for subscription instructions.
http://jakarta.apache.org/site/mail.html

 "George "Lifeguard" Flatman" [EMAIL PROTECTED] 4/13/2001 6:08:30 PM 
Hey Mark, I have just finished installing TOmcat on my NT  server which runs
Apache could give me some idea on how i should configure it please.

George G. Flatman
CEO of The Edge Internet Radio
Rock n Roll with an Attitude
www.theedge2k.com 






RE: Require help

2001-04-16 Thread William Kaufman

Dunno about Apache, but in Tomcat, you can add a load-on-startup tag to
the servlet element in web.xml.  That will both load the servlet and call
its init() method.


-- Bill K.


 -Original Message-
 From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 15, 2001 11:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: Require help
 
 
 Hi
   We are using Apache 1.3.12 as the web server with Tomcat as the
 JSP/Servlet engine. We have the following requirement, we are 
 to instantiate
 a class when the server starts up. How do we do this ? Do we have to
 add/modify lines in the configuration files for apache and/or tomcat? 
 
 Please help.
 
 Thanks and Regards
 Vinoj
 



Apache-SSL or Mod-ssl

2001-04-16 Thread Sam Newman



I was wondering which is the prefered choice for 
work with servlets? I am having untold trouble getting Apache-SSL to work (built 
it, can't view a page without a seg fault). Whilst not a tomcat specific issue 
Apache-SSL is the mentioned way to get SSL working with tomcat. I've just tried 
RedHats Stronghold product (try www.c2.net) 
which gave be an out of the box SSL working Apache server (uses mod_ssl) in 
under 10 minutes. Getting tomcat to work with it hasn't been a problem either - 
well, hardly a problem (see my other post). Before I try and get my boss to buy 
stronghold, are there any issues I should be aware of with using mod_sll as 
opposed to Apache-SSL?

sam


Tutorial about cookies and sessions

2001-04-16 Thread Martin Mauri

Hi everybody,

Does anyone know where to find information about cookies and sessions to
work in security and access restrictions?

any info will be appreciated!

thanks.

Lic. Martin O. Mauri
Profesion + Auge A.F.J.P
Parana 666 - Cap. Federal
[EMAIL PROTECTED]
www.profesi.com.ar




RE: Require help

2001-04-16 Thread Vinoj Vijayan

Thanks.
But instead of a servlet can't i just load a simple class ?

Rgds
Vinoj

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 7:23 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Require help


Dunno about Apache, but in Tomcat, you can add a load-on-startup tag to
the servlet element in web.xml.  That will both load the servlet and call
its init() method.


-- Bill K.


 -Original Message-
 From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 15, 2001 11:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: Require help
 
 
 Hi
   We are using Apache 1.3.12 as the web server with Tomcat as the
 JSP/Servlet engine. We have the following requirement, we are 
 to instantiate
 a class when the server starts up. How do we do this ? Do we have to
 add/modify lines in the configuration files for apache and/or tomcat? 
 
 Please help.
 
 Thanks and Regards
 Vinoj
 



Where does System.out.println go under Tomcat

2001-04-16 Thread Brian Burridge



I've put some system out prints in my JSP pages, 
but I cannot find the error logs. I've found the logs for the web site (apache's 
standards logs) and I've found a servlet.log and a jasper.log under the jakarta 
logs directory, but I have no idea where servlet errors go.

Brian


Win2000

2001-04-16 Thread Warner, Randy

Has anyone successfully installed Tomcat on Win2000 with IIS5?

Randy Warner
RightNow Technolgies




RE: Require help

2001-04-16 Thread Randy Layman


No, the Servlet Spec doesn't allow for any automatic startup other
than servlets.  I believe that most people just create a special servlet
that doesn't handle any requests, it just processes an init (and perhaps
destroy) method.

Randy

 -Original Message-
 From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 9:55 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Require help
 
 
 Thanks.
 But instead of a servlet can't i just load a simple class ?
 
 Rgds
 Vinoj
 
 -Original Message-
 From: William Kaufman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 7:23 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Require help
 
 
 Dunno about Apache, but in Tomcat, you can add a 
 load-on-startup tag to
 the servlet element in web.xml.  That will both load the 
 servlet and call
 its init() method.
 
 
 -- Bill K.
 
 
  -Original Message-
  From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, April 15, 2001 11:32 PM
  To: '[EMAIL PROTECTED]'
  Subject: Require help
  
  
  Hi
  We are using Apache 1.3.12 as the web server with Tomcat as the
  JSP/Servlet engine. We have the following requirement, we are 
  to instantiate
  a class when the server starts up. How do we do this ? Do we have to
  add/modify lines in the configuration files for apache 
 and/or tomcat? 
  
  Please help.
  
  Thanks and Regards
  Vinoj
  
 



RE: Win2000

2001-04-16 Thread Randy Layman


Yes.  Most people have problems with their registry entries (check
the files to make sure that everything is correct, including the case) or
the service stops on logout (don't use JDK 1.3.0, see Sun's website for more
information).

Randy

 -Original Message-
 From: Warner, Randy [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 9:56 AM
 To: 'Tomcat-User (E-mail)
 Subject: Win2000
 
 
 Has anyone successfully installed Tomcat on Win2000 with IIS5?
 
 Randy Warner
 RightNow Technolgies
 



RE: Require help

2001-04-16 Thread William Kaufman

Ehhh,... you could, uh, load a non-servlet class from a servlet's init()
method,...  I don't know of any other way, short of hacking the Tomcat
source.

What does your non-servlet do that you want done at Tomcat's startup?  Are
you sure it shouldn't be part of a servlet?  (And if it isn't, why do you
want it done in Tomcat?)

-- Bill K.


 -Original Message-
 From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 6:55 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Require help
 
 
 Thanks.
 But instead of a servlet can't i just load a simple class ?
 
 Rgds
 Vinoj
 
 -Original Message-
 From: William Kaufman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 7:23 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Require help
 
 
 Dunno about Apache, but in Tomcat, you can add a 
 load-on-startup tag to
 the servlet element in web.xml.  That will both load the 
 servlet and call
 its init() method.
 
 
 -- Bill K.
 
 
  -Original Message-
  From: Vinoj Vijayan [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, April 15, 2001 11:32 PM
  To: '[EMAIL PROTECTED]'
  Subject: Require help
  
  
  Hi
  We are using Apache 1.3.12 as the web server with Tomcat as the
  JSP/Servlet engine. We have the following requirement, we are 
  to instantiate
  a class when the server starts up. How do we do this ? Do we have to
  add/modify lines in the configuration files for apache 
 and/or tomcat? 
  
  Please help.
  
  Thanks and Regards
  Vinoj
  
 



Apache/Tomcat integration issues

2001-04-16 Thread Sam Newman



I've just followed the instructions to get Apache 
and Tomcat working together. I editied the workers.properties file (which by the 
way seems to assume you are on a win32 platform!) and the server.xml to include 
the ajpv13 protocol connector. Apache includes tomcats autogenerated config file 
and everything works fine - I can see and execute all the example code. I 
basically have two problems however:

1.) The autogenerated conf file for mod_jk makes no 
reference of ajpv13, which I assumed is the prefered protocol. The only place I 
can see to make ajpv13 the default is for JServ. I obviously would like to avoid 
editing httpd.conf by hand and would rather tomcat generated the file using 
ajpv13 as the default - is it simply a matter of inserting a directive in the 
servler.xml? I appreciate that not everyone will choose to use ajpv13, but if 
its explicitly referenced in the server.xml, couldn't it be put in? What do I 
loose by not using ajpv13 (apart from performance)?

2.) When displaying one of my login servlets (a 
simple form forwarding requests to another servlet) via apache (over standard 
http or https) under netscape on a linux box, I get displayed the source code 
for the page (e.g. the plain text html) rather than the rendered page. Accessing 
the page via the tomcat port solves this. MSIE on my laptop can view the page 
fine - either via http or https. If it was a problem with the format of html i 
would of expected the tomcat served page to likewise display the html 
sourcecode. Any ideas?

Thanks in advance,

sam newman

p.s. I'm tempted to buy redhat's strongohld out of 
my own pocket rather than spend another week of hell getting SSL working 
myself!




packages under WEB-INF/classes

2001-04-16 Thread Mark

I have read on this list and in docs if
your servlet class is part of a package,
say com.foo.foobar...that
if you put it in a directory called

$TOMCAT_HOME/webapps/myapp/WEB-INF/classes/com/foo/foobar

assuming the source file has the statement

package com.foo.foobar;

it will be picked up by the class loader and will work.

I have tried this just that way and had this result:

 - Ctx( /foo ): Exception in: R( /foo + /servlet/foo + null)
- java.lang.NoClassDefFoundError: foo (wrong name: com/bar/foobar/foo)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

[remainder of stack dump snipped]


--

Yet if I remove the package declaration and put the file
in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes,
it works.

All defaults are being used as far as the configuration files  (ie. for this
example I only added the directory under myapps and added nothing
to tomcat.con or server.xml).

What am I missing?  What is the correct way to add a servlet
that has a package declaration?

Thanks,

Mark





Re: Tutorial about cookies and sessions

2001-04-16 Thread Sam Newman

 Hi everybody,

 Does anyone know where to find information about cookies and sessions to
 work in security and access restrictions?

 any info will be appreciated!

 thanks.

 Lic. Martin O. Mauri

If you can afford it, I'd consider getting the O'Reilly servlet programming
book - the new edition should be out any day now. The java tutorial at sun
does have an example of session tracking, although I think this code is now
out of date against the current spec. Go to http://java.sun.com and do a
search for the duke bookstore (its example of an e-commerce app) or servlet
tutorial.

sam




RE: Win2000

2001-04-16 Thread Warner, Randy

I'm using JDK 1.2.2 with Tomcat 3.2.  The URL checks are successful until I
remove port 8080 - this results in a Page Not Found error.  I've checked the
registry entries and everything is fine there.

Randy

 -Original Message-
From:   Randy Layman [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, April 16, 2001 7:30 AM
To: [EMAIL PROTECTED]
Subject:RE: Win2000


Yes.  Most people have problems with their registry entries (check
the files to make sure that everything is correct, including the case) or
the service stops on logout (don't use JDK 1.3.0, see Sun's website for more
information).

Randy

 -Original Message-
 From: Warner, Randy [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 9:56 AM
 To: 'Tomcat-User (E-mail)
 Subject: Win2000
 
 
 Has anyone successfully installed Tomcat on Win2000 with IIS5?
 
 Randy Warner
 RightNow Technolgies
 



RE: Remove me from list

2001-04-16 Thread Gottwald, Oliver

Hey Thomas.

Good luck...

I have put in request multiple times from the web for unsubscribe.
Also I've sent multiple emails to the user site.

Does anyone have the rocket scientist phone number or direct email address
so on can contact?

Oliver

-Original Message-
From: Thomas O' Connor [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 5:45 AM
To: [EMAIL PROTECTED]
Subject: Remove me from list


Please remove me from this mailing list.



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



Re: Where does System.out.println go under Tomcat

2001-04-16 Thread Sam Newman

Hmm, well they will get displayed in the terminal you started tomcat from.
Unless you redirect output from the command line argument you use to start
tomcat, you'll probably loose it (e..g. use command 2 to redirect stderr to
a file, 1 to redirect stdout). I've changed all of my debug prints to login
to a servlet context - e.g. servlet.getServletContext().log(msg, exp). I'm
not sure of the .jsp version. You could write a logging servlet to do it I
guess, and call it from the jsp. Outputs from the context.log() go to the
servlet.log in the tomcat/logs directory. Have a look at the docs for
HttpServletContext

sam
- Original Message -
From: Brian Burridge
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:02 PM
Subject: Where does System.out.println go under Tomcat


I've put some system out prints in my JSP pages, but I cannot find the error
logs. I've found the logs for the web site (apache's standards logs) and
I've found a servlet.log and a jasper.log under the jakarta logs directory,
but I have no idea where servlet errors go.

Brian




HOW TO UNSUBSCRIBE from tomcat-user

2001-04-16 Thread William Kaufman

Here's the part of the mailing list intro you should have received which
details how to unsubscribe:

 To remove your address from the list, send a message to:
[EMAIL PROTECTED]
[...]
 You can start a subscription for an alternate address,
 for example "[EMAIL PROTECTED]", just add a hyphen and your
 address (with '=' instead of '@') after the command word:
 [EMAIL PROTECTED]
 
 To stop subscription for this address, mail:
 [EMAIL PROTECTED]
 
 In both cases, I'll send a confirmation message to that address. When
 you receive it, simply reply to it to complete your subscription.

-- Bill K.



Re: packages under WEB-INF/classes

2001-04-16 Thread Sam Newman

Does your entry in the web.xml for your context reference the servlet using
its full path? Also, double check the case of the packages - the entry
web.xml, the package declaration and the actual directory strucutre all have
to match.

sam
- Original Message -
From: "Mark" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:10 PM
Subject: packages under WEB-INF/classes


 I have read on this list and in docs if
 your servlet class is part of a package,
 say com.foo.foobar...that
 if you put it in a directory called

 $TOMCAT_HOME/webapps/myapp/WEB-INF/classes/com/foo/foobar

 assuming the source file has the statement

 package com.foo.foobar;

 it will be picked up by the class loader and will work.

 I have tried this just that way and had this result:

  - Ctx( /foo ): Exception in: R( /foo + /servlet/foo + null)
 - java.lang.NoClassDefFoundError: foo (wrong name: com/bar/foobar/foo)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

 [remainder of stack dump snipped]

 --
--
 --

 Yet if I remove the package declaration and put the file
 in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes,
 it works.

 All defaults are being used as far as the configuration files  (ie. for
this
 example I only added the directory under myapps and added nothing
 to tomcat.con or server.xml).

 What am I missing?  What is the correct way to add a servlet
 that has a package declaration?

 Thanks,

 Mark






RE: Remove me from list

2001-04-16 Thread Milt Epstein

On Mon, 16 Apr 2001, Gottwald, Oliver wrote:

 Hey Thomas.

 Good luck...

 I have put in request multiple times from the web for unsubscribe.
 Also I've sent multiple emails to the user site.

 Does anyone have the rocket scientist phone number or direct email address
 so on can contact?

Did you try what was suggested here?:

http://marc.theaimsgroup.com/?l=tomcat-userm=98648985324332w=2


 -Original Message-
 From: Thomas O' Connor [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 13, 2001 5:45 AM
 To: [EMAIL PROTECTED]
 Subject: Remove me from list


 Please remove me from this mailing list.


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: Where does System.out.println go under Tomcat

2001-04-16 Thread Kevin Sangeelee


The logs just go to stdout as normal. Assuming you're using a Unix
variant, when you run startup.sh from a console, the stdout output goes to
the console window by default. If you log out then you'll lose any further
output, but Tomcat will continue as normal.

I redirect stdout and stderr to separate files from
$TOMCAT_HOME/bin/startup.sh as follows:

$BASEDIR/tomcat.sh start "$@" $TOMCAT_HOME/stdout.log 
2$TOMCAT_HOME/stderr.log

Kevin

On Mon, 16 Apr 2001, Brian Burridge wrote:

 I've put some system out prints in my JSP pages, but I cannot find the
 error logs. I've found the logs for the web site (apache's standards
 logs) and I've found a servlet.log and a jasper.log under the jakarta
 logs directory, but I have no idea where servlet errors go.




RE: Win2000

2001-04-16 Thread Antonio Vazquez

Yes,I have. What problem have you got?

-Mensaje original-
De: Warner, Randy [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 16 de abril de 2001 15:56
Para: 'Tomcat-User (E-mail)
Asunto: Win2000


Has anyone successfully installed Tomcat on Win2000 with IIS5?

Randy Warner
RightNow Technolgies




RES: Apache/Tomcat integration issues

2001-04-16 Thread Pedro Henrique Ponchio

Put this few lines of code:

 LoadModule jk_modulelibexec/mod_jk.so
 AddModule mod_jk.c
 
 JkWorkersFile /packages/tomcat/conf/workers.properties
 JkLogFile /usr/local/apache_1.3.14/logs/mod_jk.log
 JkLogLevelwarn
 
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 JkMount /otherworker/*.jsp remoteworker
 
include /packages/tomcat/conf/mod_jk.conf-auto

after the VirtualHost directives, into your httpd.conf file.
 
Pedro Henrique

-Mensagem original-
De: Sam Newman [mailto:[EMAIL PROTECTED]]
Enviada em: Monday, April 16, 2001 11:06 AM
Para: [EMAIL PROTECTED]
Assunto: Apache/Tomcat integration issues


I've just followed the instructions to get Apache and Tomcat working
together. I editied the workers.properties file (which by the way seems
to assume you are on a win32 platform!) and the server.xml to include
the ajpv13 protocol connector. Apache includes tomcats autogenerated
config file and everything works fine - I can see and execute all the
example code. I basically have two problems however:
 
1.) The autogenerated conf file for mod_jk makes no reference of ajpv13,
which I assumed is the prefered protocol. The only place I can see to
make ajpv13 the default is for JServ. I obviously would like to avoid
editing httpd.conf by hand and would rather tomcat generated the file
using ajpv13 as the default - is it simply a matter of inserting a
directive in the servler.xml? I appreciate that not everyone will choose
to use ajpv13, but if its explicitly referenced in the server.xml,
couldn't it be put in? What do I loose by not using ajpv13 (apart from
performance)?
 
2.) When displaying one of my login servlets (a simple form forwarding
requests to another servlet) via apache (over standard http or https)
under netscape on a linux box, I get displayed the source code for the
page (e.g. the plain text html) rather than the rendered page. Accessing
the page via the tomcat port solves this. MSIE on my laptop can view the
page fine - either via http or https. If it was a problem with the
format of html i would of expected the tomcat served page to likewise
display the html sourcecode. Any ideas?
 
Thanks in advance,
 
sam newman
 
p.s. I'm tempted to buy redhat's strongohld out of my own pocket rather
than spend another week of hell getting SSL working myself!
 
 




Re: packages under WEB-INF/classes

2001-04-16 Thread Mark

Sam,

I had no web.xml  for the context.  I was able
to fix things by adding it.   I guess web.xml
is not optional in a case like
this, where the servlet is in a package.  I think
the FM should be more clear on this.

Thanks a lot for the help!

Mark


- Original Message -
From: "Sam Newman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Mark" [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 10:15 AM
Subject: Re: packages under WEB-INF/classes


 Does your entry in the web.xml for your context reference the servlet
using
 its full path? Also, double check the case of the packages - the entry
 web.xml, the package declaration and the actual directory strucutre all
have
 to match.

 sam
 - Original Message -
 From: "Mark" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 16, 2001 3:10 PM
 Subject: packages under WEB-INF/classes


  I have read on this list and in docs if
  your servlet class is part of a package,
  say com.foo.foobar...that
  if you put it in a directory called
 
  $TOMCAT_HOME/webapps/myapp/WEB-INF/classes/com/foo/foobar
 
  assuming the source file has the statement
 
  package com.foo.foobar;
 
  it will be picked up by the class loader and will work.
 
  I have tried this just that way and had this result:
 
   - Ctx( /foo ): Exception in: R( /foo + /servlet/foo + null)
  - java.lang.NoClassDefFoundError: foo (wrong name: com/bar/foobar/foo)
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 
  [remainder of stack dump snipped]
 

 --
 --
  --
 
  Yet if I remove the package declaration and put the file
  in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes,
  it works.
 
  All defaults are being used as far as the configuration files  (ie. for
 this
  example I only added the directory under myapps and added nothing
  to tomcat.con or server.xml).
 
  What am I missing?  What is the correct way to add a servlet
  that has a package declaration?
 
  Thanks,
 
  Mark
 
 






Re: Apache/Tomcat integration issues

2001-04-16 Thread Sam Newman

 Put this few lines of code:

  LoadModule jk_modulelibexec/mod_jk.so
  AddModule mod_jk.c

snip

Much of this code is already included in the mod_jk.conf-auto file which
tomcat generates automatically on startup. This file doesn't reference
ajpv13 anywhere. I guess I could simply overide this after I include the
file. My question was as much why, if ajpv13 is theprefered method, can't
tomcat include this information in the mod_jk it generates? Thanks for the
help though - I'll stick those ajpv13 lines after the include.

sam




RE: saving session attributes across server machines

2001-04-16 Thread nati shalom

Hi "Raul"

One approach for this as already mentioned is using a db. However a db is
far from providing an elegant solution to this complex problem.
For example you would need to know in advance where the db is located. You
would need to integrate with its specific jdbc driver you would need to map
your session object into relational model, you would also need to know SQL
and the list goes on.

JavaSpaces which is part of the JINI services can provide a much more
elegant approach to this issue.

JavaSpaces uses a very simple and native api and is more native to java
programmer you can use a simple write/read/take methods to write java
objects.
The space takes care on storing the entry in a persistent backend which may
be a relational db , object db or even in memory depending on the space
attributes.
Using the JINI lookup service you can allocate the appropriate space on
demand without pre-configuration or installation.
I would defiantly recommend the use of this technology for this cases.

If you have any farther questions please let me know.





-Original Message-
From: Raul Valenberg [mailto:[EMAIL PROTECTED]]
Sent: Sun 15 April 2001 23:36
To: [EMAIL PROTECTED]
Subject: saving session attributes across server machines

Hi,

We are designing a Web application with Servlets and JSPs that has to run on
several machines in a fail-over mode. Each machine also has to participate
in
the workload as longs it is up. Furthermore, our requirements state that if
a
user session begins at one server, the fail-over to another server would be
transparent to the client.

I am looking for the right combination of technologies for this case.
Does anyone have any experience with these kind of requirements using
Tomcat?

I though about using SUN JavaSpaces technology as a backbone for the Tomcat
servers.
Does this sounds logical? Has anybody have any experience with this type of
combination?

Thanks.

Raul.


Get free email and a permanent address at http://www.netaddress.com/?N=1




Re: mod_webapp.so advice

2001-04-16 Thread Thom Park

Hmm...

the new one (b3) won't compile ;-)

-Thom


"Fox, the Balloon Fox" wrote:

 D'oh! RightI seem to have suffered a temporary case of insanity and
 confused present with future.  Support for mod_jk is something that they're
 WORKING onhere's what they have in the TODO has high priority:

 "Design and implement a high-performance Connector implementation that
 interoperates with the existing mod_jk infrastructure of Tomcat 3.2, to
 provide either in-process or out-of-process servlet/JSP support for Apache
 (2.0 required for in-process), Microsoft IIS, Netscape iPlanet, and
 AOLServer, or equivalent with a new protocol that is webapp-aware.
 [org.apache.catalina.connector.modjk]"

 Now, you said you where using a mod_webapp from a previous beta right?  Do
 you think it's changed at all?  I'd try compiling the new one and passably
 sending the relevant sections of your config files.

 Sorry for being an idiot!
 Fox, the Balloon Fox

  -Original Message-
  From: dan [mailto:dan]On Behalf Of Dan Sandberg
  Sent: Sunday, April 15, 2001 9:42 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: RE: mod_webapp.so advice
 
 
  Are you saying the connectors from Tomcat 3 work with Tomcat 4?  Because
  Tomcat 4 doesn't include any ajp connectors as far as I can tell.  How
  is this setup?
 
  Thanks,
 
  -Dan
 
  Hi there! I just wanted to say that while I myself haven't tried using
  mod_webapp, I've had great luck using mod_jk to connect Apache
  to Tomcat 4b.
  It worked great with ajp12 and 13 connectors on my win2k system.
  
  Fox, the Balloon Fox

--
http://www.borland.com/newsgroups
http://www.borland.com/devsupport/disclaim.html





Re: Tutorial about cookies and sessions

2001-04-16 Thread Nael Mohammad

Netscape web site, use google for netscape and cookies search
Nael Mohammad
Product Support
Neomar, Inc.
180 Montgomery Street
Suite 2000
San Francisco, CA 94104
Tel: 415-403-7300 ext. 274  Fax: 415-403-7373
Cell Phone: 415-793-0609
URL: www.neomar.com

"When Wireless Means Business"

"To acquire and to earn is the meaning of "Nael""



How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar

Hello All !! 

I am in big trouble, i want to call batch file on the server from the servlet. I have 
tried the following option but they didn't work.. please let me know if is there any 
way to do it... 

Process p = Runtime.getRuntime().exec 
("cmd D:\\myFolder\\myBatchFile.bat"); 
p.waitFor(); 

also i have tried without cmd option: 
Process p = Runtime.getRuntime().exec 
("D:\\myFolder\\myBatchFile.bat"); 
p.waitFor(); 

Its not throwing an exception and not even giving me any output.. 

Thanx in Advance...

/sunil 



_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



Re: Where does System.out.println go under Tomcat

2001-04-16 Thread Boris Niyazov

use application.log method in your jsp pages to log msgs into servlet.log.
HTH

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 




Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
From: "Brian Burridge" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Where does System.out.println go under Tomcat
Date: Mon, 16 Apr 2001 10:02:56 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Loop-Detect: 1
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

I've put some system out prints in my JSP pages, but I cannot find the error 
logs. I've found the logs for the web site (apache's standards logs) and I've 
found a servlet.log and a jasper.log under the jakarta logs directory, but I 
have no idea where servlet errors go.

Brian




RE: How can I run Batch file from servlet ??

2001-04-16 Thread Randy Layman


When you create a process like this, its up to you to read and write
to the process.  This means that any output from your batch file will be
lost unless you deal with is (Process has methods to get the input and
output streams for standard in/out/error).

I would suggest you try running your batch file from the tomcat's
home directory.  The problem is usually one of two things.  Either you have
relative paths which aren't valid in the current context or you are
expecting environment variables that aren't valid.  (Or possibly its
actually working but you aren't catching the batch file's input to know
that).

Randy


 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: How can I run Batch file from servlet ??
 
 
 Hello All !! 
 
 I am in big trouble, i want to call batch file on the server 
 from the servlet. I have tried the following option but they 
 didn't work.. please let me know if is there any way to do it... 
 
 Process p = Runtime.getRuntime().exec 
 ("cmd D:\\myFolder\\myBatchFile.bat"); 
 p.waitFor(); 
 
 also i have tried without cmd option: 
 Process p = Runtime.getRuntime().exec 
 ("D:\\myFolder\\myBatchFile.bat"); 
 p.waitFor(); 
 
 Its not throwing an exception and not even giving me any output.. 
 
 Thanx in Advance...
 
 /sunil 
 
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 



Re: javax.servlet problem

2001-04-16 Thread suha_yacoub



Are you compiling your code on the same box that your tomcat server is located?
If no, then make sure that your development machine has a servlet.jar file in
the jdk.
If yes, then:
 - add the path to servlet.jar in your classpath variable. servlet.jar
should be somewhere in TOMCAT_HOME.
I hope this helps.
Feel free to correct me if this is not the best solution.
thanks,
suha.





"Pae Choi" [EMAIL PROTECTED] on 04/15/2001 01:00:07 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Suha Yacoub/IL/ONE)
Subject:  Re: javax.servlet problem



If your classpath is correctly set for the javax.servlet.* package, did
you also verified that your compiler(whatever)'s context also contain
the classpath?


Pae


Thank you for your help

It seems it is not a typo problem(it is the mistake I made at previous
message without a ";")
The compiler cannot recognize the second statement "import
javax.servlet.*"

I cannot compile the java program with the program header start with

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

during the compilation, it stops with error at the above statement.

I have make sure the classes are set under the correct path.

Thanks!











Re: How can I run Batch file from servlet ??

2001-04-16 Thread Jim Cheesman

At 05:47 PM 4/16/2001, you wrote:
Hello All !!

I am in big trouble, i want to call batch file on the server from the 
servlet. I have tried the following option but they didn't work.. please 
let me know if is there any way to do it...

Process p = Runtime.getRuntime().exec
("cmd D:\\myFolder\\myBatchFile.bat");
p.waitFor();


Try "cmd /c d:\\myFolder\\mybat.bat"


Jim





--

   *   Jim Cheesman   *
 Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: [EMAIL PROTECTED] (34) 606 770 244
  Practice safe eating -- always use condiments.
















RE: Question

2001-04-16 Thread Tim O'Neil

Interesting. Seems to work fine for thousands of people.

At 06:55 AM 4/14/2001 -0700, you wrote:
Yep, nothing worked. I finally realized that it wasn't going to work after
following the docs so I went decided not to use Tomcat after spending 2
hours trying to figure it out.




RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar

Randy 
Actually this batch file contains sql command..
like
osql -U sa -P -i D:\Myfolder\CreateDatabase.sql

i have tried this time.. with "/c start" option
Process p = Runtime.getRuntime().exec 
 ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
 p.waitFor(); 
and this time its able to fire the batch file
but that batch file itself giving error that "The name specified is not recognized as 
an internal or external command"

The good thing is this option of running batch file is working with standalone java 
application but not with servlet..

/sunil
--- Randy Layman [EMAIL PROTECTED]
 wrote:

   When you create a process like this, its up to you to read and write
to the process.  This means that any output from your batch file will be
lost unless you deal with is (Process has methods to get the input and
output streams for standard in/out/error).

   I would suggest you try running your batch file from the tomcat's
home directory.  The problem is usually one of two things.  Either you have
relative paths which aren't valid in the current context or you are
expecting environment variables that aren't valid.  (Or possibly its
actually working but you aren't catching the batch file's input to know
that).

   Randy


 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: How can I run Batch file from servlet ??
 
 
 Hello All !! 
 
 I am in big trouble, i want to call batch file on the server 
 from the servlet. I have tried the following option but they 
 didn't work.. please let me know if is there any way to do it... 
 
 Process p = Runtime.getRuntime().exec 
 ("cmd D:\\myFolder\\myBatchFile.bat"); 
 p.waitFor(); 
 
 also i have tried without cmd option: 
 Process p = Runtime.getRuntime().exec 
 ("D:\\myFolder\\myBatchFile.bat"); 
 p.waitFor(); 
 
 Its not throwing an exception and not even giving me any output.. 
 
 Thanx in Advance...
 
 /sunil 
 
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net


_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



support

2001-04-16 Thread Dustin Tenney

Hi,

Is anyone aware of any companies that are selling support contracts for
tomcat?  I have not been able to find anyone doing this.  Does anyone know
of any smaller companies that would be willing to take on such a task?  We
are hoping to implement tomcat in the near future, but management would
prefer to have some kind of support.  Thanks for any information.


Dustin Tenney



RE: Require help

2001-04-16 Thread Tim O'Neil

At 07:25 PM 4/16/2001 +0530, Vinoj Vijayan wrote:
But instead of a servlet can't i just load a simple class ?

A servlet is a class.

I hope you're not trying to run a non-servlet
class in the Tomcat servlet harness...




How to compile jsp with debugging information with 4.0

2001-04-16 Thread Hui Ye
Title: How to compile jsp with debugging information with 4.0






Hi, all,


I would like to debug the class file generated by Tomcat 4.0 B3. However, the class file generated with default configuration doesn't have debug information in it. I am wondering if somebody could tell me how to compile jsp with debugging information. I am assuming there should be a config flag, but couldn't find a clue in the documentation. 

Can anyone give me direction on this?


Thank in advance.


Hui





RE: Require help

2001-04-16 Thread Vinoj Vijayan

i was thinking on the lines of a non-servlet class


-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 9:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Require help


At 07:25 PM 4/16/2001 +0530, Vinoj Vijayan wrote:
But instead of a servlet can't i just load a simple class ?

A servlet is a class.

I hope you're not trying to run a non-servlet
class in the Tomcat servlet harness...



Re: How can I run Batch file from servlet ??

2001-04-16 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 9:31 PM
Subject: RE: How can I run Batch file from servlet ??



 When you create a process like this, its up to you to read and write
to the process.  This means that any output from your batch file will be
lost unless you deal with is (Process has methods to get the input and
output streams for standard in/out/error).

 I would suggest you try running your batch file from the tomcat's
home directory.  The problem is usually one of two things.  Either you have
relative paths which aren't valid in the current context or you are
expecting environment variables that aren't valid.  (Or possibly its
actually working but you aren't catching the batch file's input to know
that).

 Randy


 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: How can I run Batch file from servlet ??


 Hello All !!

 I am in big trouble, i want to call batch file on the server
 from the servlet. I have tried the following option but they
 didn't work.. please let me know if is there any way to do it...

 Process p = Runtime.getRuntime().exec
 ("cmd D:\\myFolder\\myBatchFile.bat");
 p.waitFor();

 also i have tried without cmd option:
 Process p = Runtime.getRuntime().exec
 ("D:\\myFolder\\myBatchFile.bat");
 p.waitFor();

 Its not throwing an exception and not even giving me any output..

 Thanx in Advance...

 /sunil
 i desperately want to know where i can find mod_jserv for windows can any
one help me.

YOUR SINCERELY
Shivakanth





 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net





RE: AddModule mod_jk.c

2001-04-16 Thread guyr
Title: RE: AddModule mod_jk.c





Windows doesn't require DLLs to have a .dll extension.


-Original Message-
From: e_teer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 4:21 PM
To: [EMAIL PROTECTED]
Subject: Re: AddModule mod_jk.c



Hey Eric,


LoadModule loads the module into memory and AddModule makes it 
available for use. You do need both except when the module is 
already built into Apache which several are in the Win32 version, in 
this case you only need the AddModule.


However, it was my understanding that .so files are Linux only. And 
all the modules for Win32 use .dll libraries. Therefore the 
LoadModule command had to operate on module/filenames with .dll. 


But the config file for Win32 in version 1.3.19 now has all .so 
endings. Just to restate things for other readers I am wondering if 
that was an error/bug or if Apache 1.3.19 now does some internal 
filename translation so everything can be uniformly called .so even 
though you are supposed to use .dll on Win32.


-Ellis Teer


On Sun, 15 Apr 2001 00:10:03 -0700 (PDT), eric leung wrote:
thanks jeff,
i had read this already, but i am still not very clear
about difference between the 2.

what i think is addmodule will add the module to the
list. you can't use the module until you use the
LoadModule command to load the module into memeory.
you don't need to use AddModule before loading it.

would AddModule become pretty much useless?

thanks.

--- Jeff Kilbride [EMAIL PROTECTED] wrote:
 Did you try the docs?

 http://httpd.apache.org/docs/mod/core.html#addmodule


http://httpd.apache.org/docs/mod/mod_so.html#loadmodule

 --jeff

 - Original Message -
 From: brian luk [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, April 14, 2001 2:16 PM
 Subject: AddModule mod_jk.c


  Hi,
  can any one tell me what's difference between the
 2:
 
  LoadModule jk_module libexec/mod_jk.so
  AddModule mod_jk.c
 
  i must load the jk module before i can connect to
  tomcat. I think tomcat works without AddModule
  mod_jk.c, what's AddModule mod_jk.c use for? No
 use?
 
  thanks.
 
 
  P.S.
  part of the httpd.conf
  LoadModule env_module libexec/mod_env.so
  LoadModule config_log_module
  libexec/mod_log_config.so
  LoadModule mime_module libexec/mod_mime.so
  LoadModule negotiation_module
  libexec/mod_negotiation.so
  LoadModule status_module
 libexec/mod_status.so
  LoadModule includes_module
 libexec/mod_include.so
  LoadModule autoindex_module
 libexec/mod_autoindex.so
  LoadModule dir_module libexec/mod_dir.so
  LoadModule cgi_module libexec/mod_cgi.so
  LoadModule asis_module libexec/mod_asis.so
  LoadModule imap_module libexec/mod_imap.so
  LoadModule action_module
 libexec/mod_actions.so
  LoadModule userdir_module
 libexec/mod_userdir.so
  LoadModule alias_module libexec/mod_alias.so
  LoadModule access_module
 libexec/mod_access.so
  LoadModule auth_module libexec/mod_auth.so
  LoadModule setenvif_module
 libexec/mod_setenvif.so
  LoadModule jk_module libexec/mod_jk.so
  LoadModule rewrite_module
 libexec/mod_rewrite.so
  IfDefine SSL
  LoadModule ssl_module libexec/libssl.so
  /IfDefine
 
  ClearModuleList
  AddModule mod_env.c
  AddModule mod_log_config.c
  AddModule mod_mime.c
  AddModule mod_negotiation.c
  AddModule mod_status.c
  AddModule mod_include.c
  AddModule mod_autoindex.c
  AddModule mod_dir.c
  AddModule mod_cgi.c
  AddModule mod_asis.c
  AddModule mod_imap.c
  AddModule mod_actions.c
  AddModule mod_userdir.c
  AddModule mod_alias.c
  AddModule mod_access.c
  AddModule mod_auth.c
  AddModule mod_so.c
  AddModule mod_setenvif.c
  AddModule mod_jk.c
  AddModule mod_rewrite.c
  IfDefine SSL
  AddModule mod_ssl.c
  /IfDefine
 
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail.
  http://personal.mail.yahoo.com/
 



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/



-- e_teer, [EMAIL PROTECTED] on 04/15/2001



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





Re: support

2001-04-16 Thread Tim O'Neil

At 11:07 AM 4/16/2001 -0500, you wrote:
Hi,

Is anyone aware of any companies that are selling support contracts for
tomcat?  I have not been able to find anyone doing this.  Does anyone know
of any smaller companies that would be willing to take on such a task?  We
are hoping to implement tomcat in the near future, but management would
prefer to have some kind of support.  Thanks for any information.


Dustin Tenney

I'll support you. Want me to fax you a contract?




Re: Where does System.out.println go under Tomcat

2001-04-16 Thread suha_yacoub



did u try using out.println("test")?




"Sam Newman" [EMAIL PROTECTED] on 04/16/2001 09:13:21 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Suha Yacoub/IL/ONE)
Subject:  Re: Where does System.out.println go under Tomcat



Hmm, well they will get displayed in the terminal you started tomcat from.
Unless you redirect output from the command line argument you use to start
tomcat, you'll probably loose it (e..g. use command 2 to redirect stderr to
a file, 1 to redirect stdout). I've changed all of my debug prints to login
to a servlet context - e.g. servlet.getServletContext().log(msg, exp). I'm
not sure of the .jsp version. You could write a logging servlet to do it I
guess, and call it from the jsp. Outputs from the context.log() go to the
servlet.log in the tomcat/logs directory. Have a look at the docs for
HttpServletContext

sam
- Original Message -
From: Brian Burridge
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 3:02 PM
Subject: Where does System.out.println go under Tomcat


I've put some system out prints in my JSP pages, but I cannot find the error
logs. I've found the logs for the web site (apache's standards logs) and
I've found a servlet.log and a jasper.log under the jakarta logs directory,
but I have no idea where servlet errors go.

Brian










Re: support

2001-04-16 Thread Sam Newman

I believe tomcat is being deployed as part of companies overall j2ee
solutions. For example, our EJB container, Orcas, bundles and supports
Tomcat as their solution for servlets and jsp support. Orcas are now owned
by Cape Clear and costs the earth if all you want is Tomcat support.

sam
- Original Message -
From: "Dustin Tenney" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 5:07 PM
Subject: support


 Hi,

 Is anyone aware of any companies that are selling support contracts for
 tomcat?  I have not been able to find anyone doing this.  Does anyone know
 of any smaller companies that would be willing to take on such a task?  We
 are hoping to implement tomcat in the near future, but management would
 prefer to have some kind of support.  Thanks for any information.


 Dustin Tenney





Problem in getting charset encoding

2001-04-16 Thread Ratnakar Palle



I apologize 
if this question has already been asked or answered.
I went 
through the archive mails but couldn't find any solution for 
it.

We are 
planning to develop a multilingual application using Servlet/JSP. The servlet 
can receive the request from clients of different languages. By that I mean, 
servlet hosted in en_US can receive requests from languages like Chinese, 
Japanese, French etc.

My question 
is, How do I get the appropriate encoding of the client?

I've 
written a sample servlet like to know what some of the request methods return.. 
Following is the result I got from servlet:

request.getCharacterEncoding() returns 
null
request.getHeader("Accept-Charset") returns 
null
request.getHeader("Accept-Language") returns 
en-us
request.getContentType() returns 
null

I'm 
usingTomcat 3.2.1 on Windows2000 and JDK1.3.0 ( with Java HotSpot Server 
VM)... And, the browser is IE5.0

Any help or pointer 
would be of great help...

Thanks for 
all your time,
-Ratnakar



RE: Tomcat monitor/poller/email

2001-04-16 Thread Mark Mynsted

Yes, that helps.

Has anybody written one of these from scratch?  What approach did you take?  
I am curious what approach folks have taken.

If I write one myself I thought of the following options:
1. Open a system semaphore at the start of Tomcat. Have an email program sit on the 
semaphore.  If Tomcat dies, and it's semaphore dies (which it would/should) then send 
an email.
2. Use a socket.  Open a socket connection between a mail program and Tomcat.  If 
Tomcat breaks the connection, send email.
3. Open an email thread as a hook into Tomcat's runtime via 
Runtime.getRuntime().addShutdownHook(emailThread).  But this will not catch an abend, 
such as a native code failure.
4. Other

 [EMAIL PROTECTED] 4/13/2001 11:40:05 PM 

Not free but very reasonable priced:  http://www.ipsentry.com/ 

If your server is open to the Intranet, we are using www.netmechanics.com 
for 10$
a month.

Hope this helps.

Tal

 -Original Message-
 From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, April 13, 2001 3:08 PM
 To: [EMAIL PROTECTED] 
 Subject: Tomcat monitor/poller/email


 Has anybody out there set anything up that will email them in the
 event the Tomcat would crash or not be running?  (Or know of free
 software that can do that.)  I am running Tomcat under Windows NT.

 If so please let me know.  (I do not want to re-create the wheel.)

 I have NOT had trouble with Tomcat crashing, I simply need to do
 this for my SLA.








RE: How can I run Batch file from servlet ??

2001-04-16 Thread Randy Layman


That sounds like the PATH environment variable isn't set (as in it
can't find osql).

 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: How can I run Batch file from servlet ??
 
 
 Randy 
 Actually this batch file contains sql command..
 like
 osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
 
 i have tried this time.. with "/c start" option
 Process p = Runtime.getRuntime().exec 
  ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
 and this time its able to fire the batch file
 but that batch file itself giving error that "The name 
 specified is not recognized as an internal or external command"
 
 The good thing is this option of running batch file is 
 working with standalone java application but not with servlet..
 
 /sunil
 --- Randy Layman [EMAIL PROTECTED]
  wrote:
 
  When you create a process like this, its up to you to 
 read and write
 to the process.  This means that any output from your batch 
 file will be
 lost unless you deal with is (Process has methods to get the 
 input and
 output streams for standard in/out/error).
 
  I would suggest you try running your batch file from 
 the tomcat's
 home directory.  The problem is usually one of two things.  
 Either you have
 relative paths which aren't valid in the current context or you are
 expecting environment variables that aren't valid.  (Or possibly its
 actually working but you aren't catching the batch file's 
 input to know
 that).
 
  Randy
 
 
  -Original Message-
  From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 11:47 AM
  To: [EMAIL PROTECTED]
  Subject: How can I run Batch file from servlet ??
  
  
  Hello All !! 
  
  I am in big trouble, i want to call batch file on the server 
  from the servlet. I have tried the following option but they 
  didn't work.. please let me know if is there any way to do it... 
  
  Process p = Runtime.getRuntime().exec 
  ("cmd D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
  
  also i have tried without cmd option: 
  Process p = Runtime.getRuntime().exec 
  ("D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
  
  Its not throwing an exception and not even giving me any output.. 
  
  Thanx in Advance...
  
  /sunil 
  
  
  
  _
  Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 



RE: Tomcat monitor/poller/email

2001-04-16 Thread William Kaufman

You could also just add a line in you shell script or batch file to send
email after tomcat has run.

FWIW, I like your option (2): you can even detect catastrophic failures on
the server, just by locating the program on another (theoretically "safer")
machine.

And, can I mention that I'm entertained that anyone still uses the word
"abend"? ;-)


-- Bill K.


 -Original Message-
 From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 9:31 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat monitor/poller/email
 
 
 Yes, that helps.
 
 Has anybody written one of these from scratch?  What approach 
 did you take?  
 I am curious what approach folks have taken.
 
 If I write one myself I thought of the following options:
 1. Open a system semaphore at the start of Tomcat. Have an 
 email program sit on the semaphore.  If Tomcat dies, and it's 
 semaphore dies (which it would/should) then send an email.
 2. Use a socket.  Open a socket connection between a mail 
 program and Tomcat.  If Tomcat breaks the connection, send email.
 3. Open an email thread as a hook into Tomcat's runtime via 
 Runtime.getRuntime().addShutdownHook(emailThread).  But this 
 will not catch an abend, such as a native code failure.
 4. Other
 
  [EMAIL PROTECTED] 4/13/2001 11:40:05 PM 
 
 Not free but very reasonable priced:  http://www.ipsentry.com/ 
 
 If your server is open to the Intranet, we are using 
 www.netmechanics.com 
 for 10$
 a month.
 
 Hope this helps.
 
 Tal
 
  -Original Message-
  From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, April 13, 2001 3:08 PM
  To: [EMAIL PROTECTED] 
  Subject: Tomcat monitor/poller/email
 
 
  Has anybody out there set anything up that will email them in the
  event the Tomcat would crash or not be running?  (Or know of free
  software that can do that.)  I am running Tomcat under Windows NT.
 
  If so please let me know.  (I do not want to re-create the wheel.)
 
  I have NOT had trouble with Tomcat crashing, I simply need to do
  this for my SLA.
 
 
 
 
 



Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar


I have set that path variable already.. still its not working did u find anyother 
solution

thanx.. for responding lot...

/sunil
--- Randy Layman [EMAIL PROTECTED]
 wrote:

   That sounds like the PATH environment variable isn't set (as in it
can't find osql).

 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: How can I run Batch file from servlet ??
 
 
 Randy 
 Actually this batch file contains sql command..
 like
 osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
 
 i have tried this time.. with "/c start" option
 Process p = Runtime.getRuntime().exec 
  ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
 and this time its able to fire the batch file
 but that batch file itself giving error that "The name 
 specified is not recognized as an internal or external command"
 
 The good thing is this option of running batch file is 
 working with standalone java application but not with servlet..
 
 /sunil
 --- Randy Layman [EMAIL PROTECTED]
  wrote:
 
 When you create a process like this, its up to you to 
 read and write
 to the process.  This means that any output from your batch 
 file will be
 lost unless you deal with is (Process has methods to get the 
 input and
 output streams for standard in/out/error).
 
 I would suggest you try running your batch file from 
 the tomcat's
 home directory.  The problem is usually one of two things.  
 Either you have
 relative paths which aren't valid in the current context or you are
 expecting environment variables that aren't valid.  (Or possibly its
 actually working but you aren't catching the batch file's 
 input to know
 that).
 
 Randy
 
 
  -Original Message-
  From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 11:47 AM
  To: [EMAIL PROTECTED]
  Subject: How can I run Batch file from servlet ??
  
  
  Hello All !! 
  
  I am in big trouble, i want to call batch file on the server 
  from the servlet. I have tried the following option but they 
  didn't work.. please let me know if is there any way to do it... 
  
  Process p = Runtime.getRuntime().exec 
  ("cmd D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
  
  also i have tried without cmd option: 
  Process p = Runtime.getRuntime().exec 
  ("D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
  
  Its not throwing an exception and not even giving me any output.. 
  
  Thanx in Advance...
  
  /sunil 
  
  
  
  _
  Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net


_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



Re: Apache-SSL or Mod-ssl

2001-04-16 Thread Jeff Kilbride



Actually, mod-ssl is the preferred way to add SSL 
to Apache these days. Apache-SSL is an older solution. Most of the commercial 
ssl products (i.e. Covalent Raven, Stronghold, etc...) are based on mod-ssl -- 
and they actually supportits development. If you've already gone through 
the pain of setting up Apache-SSL, setting up mod-ssl should seem relatively 
simple. Mod-ssl is extremely well documented on it's website (www.modssl.org). It took me about 20 minutes to 
apply the EAPI patch to Apache and compile the module.

If I were you, I'd look at implementing mod-ssl on 
your own before buying Stronghold or any other commercial product.

Thanks,
--jeff


  - Original Message - 
  From: 
  Sam 
  Newman 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, April 16, 2001 6:53 
AM
  Subject: Apache-SSL or Mod-ssl
  
  I was wondering which is the prefered choice for 
  work with servlets? I am having untold trouble getting Apache-SSL to work 
  (built it, can't view a page without a seg fault). Whilst not a tomcat 
  specific issue Apache-SSL is the mentioned way to get SSL working with tomcat. 
  I've just tried RedHats Stronghold product (try www.c2.net) which gave be an out of the box SSL 
  working Apache server (uses mod_ssl) in under 10 minutes. Getting tomcat to 
  work with it hasn't been a problem either - well, hardly a problem (see my 
  other post). Before I try and get my boss to buy stronghold, are there any 
  issues I should be aware of with using mod_sll as opposed to 
  Apache-SSL?
  
  sam


RE: apache 1.3.19 + tomcat 3.2.1 + Solaris 2.6 + mod_jk = doesno two rk??

2001-04-16 Thread Del Prado, Antonio

Vishy,
Thanks a lot - your suggestion worked!
Tony

 -Original Message-
 From: Vishy Kasar [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, April 10, 2001 2:52 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: apache 1.3.19 + tomcat 3.2.1 + Solaris 2.6 + mod_jk =
 does notwo rk??
 
 I just got the same configuration (apache 1.3.19 + tomcat 3.2.1 + Solaris
 2.6 + mod_jk) working yesterday. Try adding the -lposix4 to your command
 that builds the mod_jk.so. Here is my command.
 
 
 /usr/local/my-apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
 -I/usr/java/include -I/usr/java/include/solaris -lposix4  -c *.c ../jk/*.c
 
 "Del Prado, Antonio" wrote:
 
   I'm getting the following error when I try to start apache(after
 starting
   tomcat):
  
   Syntax error on line 8 of /home/adelprad/tomcat/conf/mod_jk.conf-auto:
   Can't locate API module structure `jk_module' in file
   /home/adelprad/apache/libexec/mod_jk.so: ld.so.1:
   /home/adelprad/apache/bin/httpd: fatal: jk_module: can't find symbol
   ./apachectl start: httpd could not be started
  
  
   apxs worked fine and I did move mod_jk.so to libexec...
  
   Any help would be appreciated
 
 
 --
 
 --
 Cheers!
 
 
 


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers Inc.  Email transmission cannot be guaranteed to be 
secure or error-free.  Therefore, we do not represent that this information is 
complete or accurate and it should not be relied upon as such.  All information is 
subject to change without notice.





Re: Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sam Newman





 I have set that path variable already.. still its not working did u find
anyother solution

 thanx.. for responding lot...

 /sunil

As a test, try replacing the use of the sql command with a simple dir
request, and redirect any output. Make sure you use fully qualified paths
throughtout. That will at least eliminate the sql command as the problem
area.

sam





RE: Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Randy Layman


Try replacing the relative osql with the fully-qualified path name
(i.e. "C:\Program Files\Oracle Apps\bin\osql.exe").

I have several servlets that utilize external processes (and several
other applications).  I've found that you can never count on environment
variables to be correctly set, even when you use cmd.

Randy

 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 12:44 PM
 To: [EMAIL PROTECTED]
 Subject: Randy - RE: How can I run Batch file from servlet ??
 
 
 
 I have set that path variable already.. still its not working 
 did u find anyother solution
 
 thanx.. for responding lot...
 
 /sunil
 --- Randy Layman [EMAIL PROTECTED]
  wrote:
 
  That sounds like the PATH environment variable isn't 
 set (as in it
 can't find osql).
 
  -Original Message-
  From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 12:08 PM
  To: [EMAIL PROTECTED]
  Subject: RE: How can I run Batch file from servlet ??
  
  
  Randy 
  Actually this batch file contains sql command..
  like
  osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
  
  i have tried this time.. with "/c start" option
  Process p = Runtime.getRuntime().exec 
   ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
   p.waitFor(); 
  and this time its able to fire the batch file
  but that batch file itself giving error that "The name 
  specified is not recognized as an internal or external command"
  
  The good thing is this option of running batch file is 
  working with standalone java application but not with servlet..
  
  /sunil
  --- Randy Layman [EMAIL PROTECTED]
   wrote:
  
When you create a process like this, its up to you to 
  read and write
  to the process.  This means that any output from your batch 
  file will be
  lost unless you deal with is (Process has methods to get the 
  input and
  output streams for standard in/out/error).
  
I would suggest you try running your batch file from 
  the tomcat's
  home directory.  The problem is usually one of two things.  
  Either you have
  relative paths which aren't valid in the current context 
 or you are
  expecting environment variables that aren't valid.  (Or 
 possibly its
  actually working but you aren't catching the batch file's 
  input to know
  that).
  
Randy
  
  
   -Original Message-
   From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
   Sent: Monday, April 16, 2001 11:47 AM
   To: [EMAIL PROTECTED]
   Subject: How can I run Batch file from servlet ??
   
   
   Hello All !! 
   
   I am in big trouble, i want to call batch file on the server 
   from the servlet. I have tried the following option but they 
   didn't work.. please let me know if is there any way to 
 do it... 
   
   Process p = Runtime.getRuntime().exec 
   ("cmd D:\\myFolder\\myBatchFile.bat"); 
   p.waitFor(); 
   
   also i have tried without cmd option: 
   Process p = Runtime.getRuntime().exec 
   ("D:\\myFolder\\myBatchFile.bat"); 
   p.waitFor(); 
   
   Its not throwing an exception and not even giving me 
 any output.. 
   
   Thanx in Advance...
   
   /sunil 
   
   
   
   _
   Get LifeTime Free email Visit  --- http://www.nagpurcity.net
  
  
  _
  Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 



Re: Require help

2001-04-16 Thread Milt Epstein

On Mon, 16 Apr 2001, Sam Newman wrote:

  I think your thinking is flawed. Unless I misunderstand
  you still and your not really thinking of trying to run
  a non-servlet class in Tomcat...

 But a servlet can of course use a non-servlet class. I could imagine
 some kind of class required to setup a server for external access
 being run by tomcat. This class could be accessed outside of tomcat,
 and so wouldn't be a servlet. Esentially whilst you cannot directly
 access non-servlet classes, you can do it using a simple servlet
 wrapper.

Exactly.  I have something set up that does something like this.  The
servlet just acts as an "interface" to the non-servlet classes, which
are essentially the "application" and/or "business rules/logic", which
really don't belong in the servlet.  (This was done before J2EE was
around, I'd do it differently now.)  Remember, generally, servlets are
really just a way to access an application, not the application
itself.  I don't think there is really a problem with having
non-servlet classes (when done properly) -- in fact, I've seen lots of
problems from people trying to put too much into servlets, things
would be cleaner if they separated some things into non-servlet
classes.  This is a matter of your overall system design/architecture.

FWIW, to get back to what I think was the original question, I believe
there is something in the new (2.3) servlet spec that will address
loading/startup of non-servlet classes.  At least, I remember that
being "on the list" some time back.  The 2.3 spec (draft) is up at
java.sun.com, so you can check there.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: Apache-SSL or Mod-ssl

2001-04-16 Thread Sam Newman

Which is exactly what I did this afternoon :-) 3 days last week trying to
get apache-SSL working to no avail (core dump on every connection was the
net result!). Got apache running with mod_ssl in 15 minutes!

Oh well, what doesn't kill me, only makes me really anoyed at wasting 3
daysor summat

sam
- Original Message -
From: Jeff Kilbride
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 5:48 PM
Subject: Re: Apache-SSL or Mod-ssl


Actually, mod-ssl is the preferred way to add SSL to Apache these days.
Apache-SSL is an older solution. Most of the commercial ssl products (i.e.
Covalent Raven, Stronghold, etc...) are based on mod-ssl -- and they
actually support its development. If you've already gone through the pain of
setting up Apache-SSL, setting up mod-ssl should seem relatively simple.
Mod-ssl is extremely well documented on it's website (www.modssl.org). It
took me about 20 minutes to apply the EAPI patch to Apache and compile the
module.

If I were you, I'd look at implementing mod-ssl on your own before buying
Stronghold or any other commercial product.

Thanks,
--jeff





RE: Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Darrell Porter

Since you're on a Win32 machine, did you do a search on the local hard drive
for "osql.*" ?

If so, does the path to that location contain any spaces?  If so, specify a
fully qualified path and use the short naming convention for the path (i.e.
C:\Program Files\Oracle Applications\bin\osql.exe becomes
C:\PROGRA~1\ORACLE~1\bin\osql.exe)

Darrell


-Original Message-
From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 9:44 AM
To: [EMAIL PROTECTED]
Subject: Randy - RE: How can I run Batch file from servlet ??



I have set that path variable already.. still its not working did u find
anyother solution

thanx.. for responding lot...

/sunil
--- Randy Layman [EMAIL PROTECTED]
 wrote:

   That sounds like the PATH environment variable isn't set (as in it
can't find osql).

 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 12:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: How can I run Batch file from servlet ??
 
 
 Randy 
 Actually this batch file contains sql command..
 like
 osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
 
 i have tried this time.. with "/c start" option
 Process p = Runtime.getRuntime().exec 
  ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
 and this time its able to fire the batch file
 but that batch file itself giving error that "The name 
 specified is not recognized as an internal or external command"
 
 The good thing is this option of running batch file is 
 working with standalone java application but not with servlet..
 
 /sunil
 --- Randy Layman [EMAIL PROTECTED]
  wrote:
 
 When you create a process like this, its up to you to 
 read and write
 to the process.  This means that any output from your batch 
 file will be
 lost unless you deal with is (Process has methods to get the 
 input and
 output streams for standard in/out/error).
 
 I would suggest you try running your batch file from 
 the tomcat's
 home directory.  The problem is usually one of two things.  
 Either you have
 relative paths which aren't valid in the current context or you are
 expecting environment variables that aren't valid.  (Or possibly its
 actually working but you aren't catching the batch file's 
 input to know
 that).
 
 Randy
 
 
  -Original Message-
  From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 11:47 AM
  To: [EMAIL PROTECTED]
  Subject: How can I run Batch file from servlet ??
  
  
  Hello All !! 
  
  I am in big trouble, i want to call batch file on the server 
  from the servlet. I have tried the following option but they 
  didn't work.. please let me know if is there any way to do it... 
  
  Process p = Runtime.getRuntime().exec 
  ("cmd D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
  
  also i have tried without cmd option: 
  Process p = Runtime.getRuntime().exec 
  ("D:\\myFolder\\myBatchFile.bat"); 
  p.waitFor(); 
  
  Its not throwing an exception and not even giving me any output.. 
  
  Thanx in Advance...
  
  /sunil 
  
  
  
  _
  Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net


_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



RE: Tomcat monitor/poller/email

2001-04-16 Thread Milt Epstein

On Mon, 16 Apr 2001, William Kaufman wrote:

 You could also just add a line in you shell script or batch file to
 send email after tomcat has run.

 FWIW, I like your option (2): you can even detect catastrophic
 failures on the server, just by locating the program on another
 (theoretically "safer") machine.

 And, can I mention that I'm entertained that anyone still uses the
 word "abend"? ;-)

FWIW, I have something that takes a simple approach to this -- it
periodically (using sleep) does a number of checks to make sure tomcat
is running OK -- first, it checks that the tomcat process is running
at all (using ps, so this is a UNIX solution), and it also checks that
there are no OutOfMemoryError's in the appropriate log file.  I have
it set up so that it emails me and/or restarts tomcat, if appropriate.
(And now, as I occasionally have some OutOfMemoryError problems, it
looks like I have some memory leak type problems, so I need to go over
my code and find the problems :-).


  -Original Message-
  From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 9:31 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Tomcat monitor/poller/email
 
 
  Yes, that helps.
 
  Has anybody written one of these from scratch?  What approach
  did you take?
  I am curious what approach folks have taken.
 
  If I write one myself I thought of the following options:
  1. Open a system semaphore at the start of Tomcat. Have an
  email program sit on the semaphore.  If Tomcat dies, and it's
  semaphore dies (which it would/should) then send an email.
  2. Use a socket.  Open a socket connection between a mail
  program and Tomcat.  If Tomcat breaks the connection, send email.
  3. Open an email thread as a hook into Tomcat's runtime via
  Runtime.getRuntime().addShutdownHook(emailThread).  But this
  will not catch an abend, such as a native code failure.
  4. Other
 
   [EMAIL PROTECTED] 4/13/2001 11:40:05 PM 
 
  Not free but very reasonable priced:  http://www.ipsentry.com/
 
  If your server is open to the Intranet, we are using
  www.netmechanics.com
  for 10$
  a month.
 
  Hope this helps.
 
  Tal
 
   -Original Message-
   From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
   Sent: Friday, April 13, 2001 3:08 PM
   To: [EMAIL PROTECTED]
   Subject: Tomcat monitor/poller/email
  
  
   Has anybody out there set anything up that will email them in the
   event the Tomcat would crash or not be running?  (Or know of free
   software that can do that.)  I am running Tomcat under Windows NT.
  
   If so please let me know.  (I do not want to re-create the wheel.)
  
   I have NOT had trouble with Tomcat crashing, I simply need to do
   this for my SLA.
  
 


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




RE: Randy - RE: How can I run Batch file from servlet ??

2001-04-16 Thread Sunil Chandurkar


Thanx..

its working very finely

/sunil
--- Randy Layman [EMAIL PROTECTED]
 wrote:

   Try replacing the relative osql with the fully-qualified path name
(i.e. "C:\Program Files\Oracle Apps\bin\osql.exe").

   I have several servlets that utilize external processes (and several
other applications).  I've found that you can never count on environment
variables to be correctly set, even when you use cmd.

   Randy

 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 12:44 PM
 To: [EMAIL PROTECTED]
 Subject: Randy - RE: How can I run Batch file from servlet ??
 
 
 
 I have set that path variable already.. still its not working 
 did u find anyother solution
 
 thanx.. for responding lot...
 
 /sunil
 --- Randy Layman [EMAIL PROTECTED]
  wrote:
 
 That sounds like the PATH environment variable isn't 
 set (as in it
 can't find osql).
 
  -Original Message-
  From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 12:08 PM
  To: [EMAIL PROTECTED]
  Subject: RE: How can I run Batch file from servlet ??
  
  
  Randy 
  Actually this batch file contains sql command..
  like
  osql -U sa -P -i D:\Myfolder\CreateDatabase.sql
  
  i have tried this time.. with "/c start" option
  Process p = Runtime.getRuntime().exec 
   ("cmd /c start D:\\myFolder\\myBatchFile.bat"); 
   p.waitFor(); 
  and this time its able to fire the batch file
  but that batch file itself giving error that "The name 
  specified is not recognized as an internal or external command"
  
  The good thing is this option of running batch file is 
  working with standalone java application but not with servlet..
  
  /sunil
  --- Randy Layman [EMAIL PROTECTED]
   wrote:
  
   When you create a process like this, its up to you to 
  read and write
  to the process.  This means that any output from your batch 
  file will be
  lost unless you deal with is (Process has methods to get the 
  input and
  output streams for standard in/out/error).
  
   I would suggest you try running your batch file from 
  the tomcat's
  home directory.  The problem is usually one of two things.  
  Either you have
  relative paths which aren't valid in the current context 
 or you are
  expecting environment variables that aren't valid.  (Or 
 possibly its
  actually working but you aren't catching the batch file's 
  input to know
  that).
  
   Randy
  
  
   -Original Message-
   From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
   Sent: Monday, April 16, 2001 11:47 AM
   To: [EMAIL PROTECTED]
   Subject: How can I run Batch file from servlet ??
   
   
   Hello All !! 
   
   I am in big trouble, i want to call batch file on the server 
   from the servlet. I have tried the following option but they 
   didn't work.. please let me know if is there any way to 
 do it... 
   
   Process p = Runtime.getRuntime().exec 
   ("cmd D:\\myFolder\\myBatchFile.bat"); 
   p.waitFor(); 
   
   also i have tried without cmd option: 
   Process p = Runtime.getRuntime().exec 
   ("D:\\myFolder\\myBatchFile.bat"); 
   p.waitFor(); 
   
   Its not throwing an exception and not even giving me 
 any output.. 
   
   Thanx in Advance...
   
   /sunil 
   
   
   
   _
   Get LifeTime Free email Visit  --- http://www.nagpurcity.net
  
  
  _
  Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net


_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



Re: Apache/Tomcat integration issues

2001-04-16 Thread Jeff Kilbride



I don't think there's a way to tell Tomcat to use 
ajp13 in it's auto-generated config files -- which is why I just used the auto 
file as a starting point to create my own. It's pretty simple and it doesn't 
change that often, unless you're constantly adding webapps. Remember, you'll 
have to restart Tomcat -- and therefore Apache, if you're using ajp13 -- when 
you add a new webapp anyway, so adding a few lines to the config file is 
relatively painless at that point.

As for #2, all I can think of is to make sure 
you're setting the ContentType for the response to text/html. I believe it 
defaults to plain text if you don't. MSIE may display the html whether the 
correct header is set or not.

Thanks,
--jeff

  - Original Message - 
  From: 
  Sam 
  Newman 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, April 16, 2001 7:05 
AM
  Subject: Apache/Tomcat integration 
  issues
  
  I've just followed the instructions to get Apache 
  and Tomcat working together. I editied the workers.properties file (which by 
  the way seems to assume you are on a win32 platform!) and the server.xml to 
  include the ajpv13 protocol connector. Apache includes tomcats autogenerated 
  config file and everything works fine - I can see and execute all the example 
  code. I basically have two problems however:
  
  1.) The autogenerated conf file for mod_jk makes 
  no reference of ajpv13, which I assumed is the prefered protocol. The only 
  place I can see to make ajpv13 the default is for JServ. I obviously would 
  like to avoid editing httpd.conf by hand and would rather tomcat generated the 
  file using ajpv13 as the default - is it simply a matter of inserting a 
  directive in the servler.xml? I appreciate that not everyone will choose to 
  use ajpv13, but if its explicitly referenced in the server.xml, couldn't it be 
  put in? What do I loose by not using ajpv13 (apart from 
  performance)?
  
  2.) When displaying one of my login servlets (a 
  simple form forwarding requests to another servlet) via apache (over standard 
  http or https) under netscape on a linux box, I get displayed the source code 
  for the page (e.g. the plain text html) rather than the rendered page. 
  Accessing the page via the tomcat port solves this. MSIE on my laptop can view 
  the page fine - either via http or https. If it was a problem with the format 
  of html i would of expected the tomcat served page to likewise display the 
  html sourcecode. Any ideas?
  
  Thanks in advance,
  
  sam newman
  
  p.s. I'm tempted to buy redhat's strongohld out 
  of my own pocket rather than spend another week of hell getting SSL working 
  myself!
  
  


RE: Weird Cookie Behavior

2001-04-16 Thread John Towell

I am experiencing similar problems setting cookies.  However, I have found
that it is browser dependent, ie.,  works fine with Netscape (4.7) but
doesn't set with IE 5.5 .. What browser are you using?

 -Original Message-
 From: David M. Rosner [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 1:41 PM
 To: [EMAIL PROTECTED]
 Subject: Weird Cookie Behavior 
 
 
 Hi All,
 
 I have a jsp that sets a cookie named 'riCookie'. For some 
 reason this 
 cookie will not be sent to the browser unless I set an 
 additional cookie 
 after that. Here is the code:
 
 This doesn't work:
 
 %
  response.addCookie( new Cookie("riCookie", "DATA" ) ) ;
  response.sendRedirect( "/someOtherPage.jsp" );
 %
 
 But this does work:
 %
  response.addCookie( new Cookie("riCookie", "DATA" ) ) ;
  response.addCookie( new Cookie("Something", "More DATA" ) ) ;
  response.sendRedirect( "/someOtherPage.jsp" );
 %
 
 Any idea why? I tried other names with the word 'Cookie' in 
 them and they 
 seem to work as well.
 
 Thanks for any help,
 
 -dave
 
 



Classpaths

2001-04-16 Thread Purcell, Scott

Hello,
I am confused on CLASSPATH variable on my NT 4.0 box. I am running the
tomcat server, and the Sun book for Core JSP says I can make a folder called
classes in the installdir. My install is at the following location:
D:\tomcat\jakarta-tomcat-3.2.2b2
Inside there are libsrcconfdoclogswebappsworkbinLICENSE
The book says I should create a dir at that level called classes which I
can insert my servlets. 
So I created a dir called classes, and put in a few java files.

I set the CLASSPTH like this:
set CLASSPATH=.;D:\tomcat\jakarta-tomcat-3.2.2b2\lib\servlet.jar
I assume that will get all the classes I need like the HttpServlet, etc.

And that seemed to work. But later I was working on packages, and they said
to do some other classpaths for working with packages, and now I am all
screwed up. 

My Question:
Can I look at what CLASSPATHS are set? If so, how?
How do I work with packages and keep all these paths straight?

Any assistance would be appreciated.
Scott




Re: AddModule mod_jk.c

2001-04-16 Thread Jeff Kilbride
Title: RE: AddModule mod_jk.c



I believe they changed the extensions from .dll to 
.so in Apache 1.3.15 and up.

--jeff


  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, April 16, 2001 9:16 
AM
  Subject: RE: AddModule mod_jk.c
  
  Windows doesn't require DLLs to have a .dll extension. 
  
  -Original Message- From: 
  e_teer [mailto:[EMAIL PROTECTED]] 
  Sent: Sunday, April 15, 2001 4:21 PM To: [EMAIL PROTECTED] 
  Subject: Re: AddModule mod_jk.c 
  Hey Eric, 
  LoadModule loads the module into memory and AddModule makes it 
  available for use. You do need both except when 
  the module is already built into Apache which several 
  are in the Win32 version, in this case you only need 
  the AddModule. 
  However, it was my understanding that .so files are Linux 
  only. And all the modules for Win32 use .dll 
  libraries. Therefore the LoadModule command had 
  to operate on module/filenames with .dll. 
  But the config file for Win32 in version 1.3.19 now has all 
  .so endings. Just to restate things for other 
  readers I am wondering if that was an error/bug or if 
  Apache 1.3.19 now does some internal filename 
  translation so everything can be uniformly called .so even though you are supposed to use .dll on Win32. 
  -Ellis Teer 
  On Sun, 15 Apr 2001 00:10:03 -0700 (PDT), eric leung 
  wrote: thanks jeff, i 
  had read this already, but i am still not very clear about difference between the 2.  
  what i think is addmodule will add the module to 
  the list. you can't use the module until you use 
  the LoadModule command to load the module into 
  memeory. you don't need to use AddModule before 
  loading it.  would 
  AddModule become pretty much useless?  
  thanks.  --- Jeff Kilbride [EMAIL PROTECTED] wrote:  Did you try the docs?  
   http://httpd.apache.org/docs/mod/core.html#addmodule 
http://httpd.apache.org/docs/mod/mod_so.html#loadmodule 
--jeff 
- Original 
  Message -  From: "brian luk" 
  [EMAIL PROTECTED]  To: 
  [EMAIL PROTECTED]  Sent: 
  Saturday, April 14, 2001 2:16 PM  Subject: 
  AddModule mod_jk.c Hi,   can any one tell me what's difference between the 
   2:   
LoadModule 
  jk_module 
  libexec/mod_jk.so   AddModule 
  mod_jk.c i must load the jk module before i can connect to 
tomcat. I think tomcat works without 
  AddModule   mod_jk.c, what's AddModule 
  mod_jk.c use for? No  use? thanks. 
  
P.S.   part 
  of the httpd.conf   LoadModule 
  env_module 
  libexec/mod_env.so   LoadModule 
  config_log_module   
  libexec/mod_log_config.so   LoadModule 
  mime_module 
  libexec/mod_mime.so   LoadModule 
  negotiation_module   
  libexec/mod_negotiation.so   LoadModule 
  status_module  libexec/mod_status.so 
LoadModule includes_module  libexec/mod_include.so   
  LoadModule autoindex_module  
  libexec/mod_autoindex.so   LoadModule 
  dir_module 
  libexec/mod_dir.so   LoadModule 
  cgi_module 
  libexec/mod_cgi.so   LoadModule 
  asis_module 
  libexec/mod_asis.so   LoadModule 
  imap_module 
  libexec/mod_imap.so   LoadModule 
  action_module  libexec/mod_actions.so 
LoadModule userdir_module  libexec/mod_userdir.so   
  LoadModule alias_module 
  libexec/mod_alias.so   LoadModule 
  access_module  libexec/mod_access.so 
LoadModule 
  auth_module 
  libexec/mod_auth.so   LoadModule 
  setenvif_module  
  libexec/mod_setenvif.so   LoadModule 
  jk_module 
  libexec/mod_jk.so   LoadModule 
  rewrite_module  libexec/mod_rewrite.so 
IfDefine SSL   LoadModule 
  ssl_module 
  libexec/libssl.so   
  /IfDefine ClearModuleList   
  AddModule mod_env.c   AddModule 
  mod_log_config.c   AddModule 
  mod_mime.c   AddModule 
  mod_negotiation.c   AddModule 
  mod_status.c   AddModule 
  mod_include.c   AddModule 
  mod_autoindex.c   AddModule 
  mod_dir.c   AddModule mod_cgi.c 
AddModule mod_asis.c   AddModule mod_imap.c  
   AddModule mod_actions.c   AddModule 
  mod_userdir.c   AddModule 
  mod_alias.c   AddModule 
  mod_access.c   AddModule mod_auth.c 
AddModule mod_so.c   AddModule mod_setenvif.c  
   AddModule mod_jk.c   AddModule 
  mod_rewrite.c   IfDefine 
  SSL   AddModule mod_ssl.c 
/IfDefine 
  __   Do You Yahoo!?   Get 
  email at your own domain with Yahoo! Mail.  
   http://personal.mail.yahoo.com/ 
 
__ Do You Yahoo!? Get email at your own 
  domain with Yahoo! Mail. http://personal.mail.yahoo.com/ 
  
  -- e_teer, [EMAIL PROTECTED] on 04/15/2001 
  _ 
  Do You Yahoo!? Get your free 
  @yahoo.com address at http://mail.yahoo.com 



Tomcat in JBoss and IIS - HELP!!!

2001-04-16 Thread Moshe Avdiel

Hi,

I read the HowTo for Tomcat+IIS
(http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.ht
ml
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.ht
ml ) 
I installed Tomcat alone and followed all instructions from above - Works
fine.  (IIS redirect successfully Servlet  JSP requests to Tomcat)
The problem is when Tomcat is running from within JBoss.

Why???

Installed on Windows 2000, JBoss 2.1, Tomcat 3.2.1, IIS 5.0.

Thanks in advance,

Moshe.



Newbie Questions JSP/Tomcat

2001-04-16 Thread Purcell, Scott

Hello,
I am new to JSP and especially Tomcat. I do have it installed and working on
a NT4.0 Box.

Anyway, I am working out of Suns book "Core Servlets And JavaServer Pages".
On page 25 they talk about placing Servlets in the install_dir/classes
directory. My install did not come with a classes dir, in the install_dir?
should I create one? I just want to invoke some simple servlets from the
book to get a handle on how things work.

Also, if I place that directory there, and I update my servlet.java file, I
assume I need to recompile the servlet, and also restart the tomcat? Because
that doesn't seem very efficient. But if that is the way it is I would like
to know.

One last Question. my background is Perl/CGI and I have taken two of suns
classes for Java. But I am not very good with the Java language yet. (my
problem is understanding extending, and that sort of OO stuff). Is it going
to be a problem trying to learn JSP without a great background in Java? Or
if I hack on JSP, will that help me understand the java language a little
better? Kind of a egg or chicken thing going here.

Thanks for any advice or assistance,
Sincerely
Scott









Re: tomcat startup problem

2001-04-16 Thread Jeff Kilbride

Looks like Tomcat may already be running or may not have shut down properly
from a previous run.

Try typing 'ps awx' from the command line and looking for java processes. If
java is running, first try stopping Tomcat again with the shutdown script.
If that doesn't get rid of all your java processes, run 'killall java' from
the command line -- assuming you don't have anything else important running
java on your machine! I've had to do this a few times, if Tomcat doesn't
shutdown properly on it's own.

Thanks,
--jeff

- Original Message -
From: "Chad Harrison" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 10:17 AM
Subject: tomcat startup problem



 redhat 7
 sun jdk 1.3

 when I try to run tomcat I get

 #./startup.sh

 Using classpath:
 /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/

tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomcat/lib/

servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:
 /usr/java/jdk1.3.0_02/lib/tools.jar

 # 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /examples )

 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx(  )
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /test )
 FATAL:java.net.BindException: Address already in use
 java.net.BindException: Address already in use
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
  at java.net.ServerSocket.init(ServerSocket.java:170)
  at java.net.ServerSocket.init(ServerSocket.java:121)
  at
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket
 (DefaultServerSocketFactory.java:97)
  at

org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:
 239)
  at

org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
  at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)





RE: Weird Cookie Behavior

2001-04-16 Thread Craig Pfeifer

There's actually 2 cookie specs: the current one and an older netscape
specification. I don't think that IE abides by the netscape spec
(shocking!). You might have to detect the browser and act accordingly.

That's the greatest thing about standards, there's so many to choose from.

Craig

Craig Pfeifer
Software Engineer
Aether Systems, Software Products Division
703.847.3303 x2053
[EMAIL PROTECTED]

  


 -Original Message-
 From: John Towell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 4:05 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Weird Cookie Behavior 
 
 
 I am experiencing similar problems setting cookies.  However, 
 I have found
 that it is browser dependent, ie.,  works fine with Netscape (4.7) but
 doesn't set with IE 5.5 .. What browser are you using?
 
  -Original Message-
  From: David M. Rosner [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 1:41 PM
  To: [EMAIL PROTECTED]
  Subject: Weird Cookie Behavior 
  
  
  Hi All,
  
  I have a jsp that sets a cookie named 'riCookie'. For some 
  reason this 
  cookie will not be sent to the browser unless I set an 
  additional cookie 
  after that. Here is the code:
  
  This doesn't work:
  
  %
   response.addCookie( new Cookie("riCookie", "DATA" ) ) ;
   response.sendRedirect( "/someOtherPage.jsp" );
  %
  
  But this does work:
  %
   response.addCookie( new Cookie("riCookie", "DATA" ) ) ;
   response.addCookie( new Cookie("Something", "More DATA" ) ) ;
   response.sendRedirect( "/someOtherPage.jsp" );
  %
  
  Any idea why? I tried other names with the word 'Cookie' in 
  them and they 
  seem to work as well.
  
  Thanks for any help,
  
  -dave
  
  
 



RE: tomcat startup problem

2001-04-16 Thread Randy Layman


Something else is trying to use one of the ports Tomcat is trying to
use (by default its 8080 and 8007).  I would suggest you use netstat to
determine what ports are available and reconfigure Tomcat, or stop the other
process.

Randy


 -Original Message-
 From: Chad Harrison [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 1:18 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat startup problem
 
 
 
 redhat 7
 sun jdk 1.3
 
 when I try to run tomcat I get
 
 #./startup.sh
 
 Using classpath: 
 /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar
 :/usr/local/
 tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/loca
 l/tomcat/lib/
 servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/w
 ebserver.jar:
 /usr/java/jdk1.3.0_02/lib/tools.jar
 
 # 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( 
 /examples )
 
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx(  )
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /test )
 FATAL:java.net.BindException: Address already in use
 java.net.BindException: Address already in use
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
  at java.net.ServerSocket.init(ServerSocket.java:170)
  at java.net.ServerSocket.init(ServerSocket.java:121)
  at 
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket
 (DefaultServerSocketFactory.java:97)
  at 
 org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc
 pEndpoint.java:
 239)
  at 
 org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec
 tor.java:188)
  at 
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 



Re: tomcat startup problem

2001-04-16 Thread Chad Harrison


thanks all.

ps awx | grep tom revealed a lingering process... strange.


On Monday, April 16, 2001, at 01:24  PM, Jeff Kilbride wrote:

 Looks like Tomcat may already be running or may not have shut down 
 properly
 from a previous run.

 Try typing 'ps awx' from the command line and looking for java 
 processes. If
 java is running, first try stopping Tomcat again with the shutdown 
 script.
 If that doesn't get rid of all your java processes, run 'killall java' 
 from
 the command line -- assuming you don't have anything else important 
 running
 java on your machine! I've had to do this a few times, if Tomcat doesn't
 shutdown properly on it's own.

 Thanks,
 --jeff

 - Original Message -
 From: "Chad Harrison" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 16, 2001 10:17 AM
 Subject: tomcat startup problem



 redhat 7
 sun jdk 1.3

 when I try to run tomcat I get

 #./startup.sh

 Using classpath:
 /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/

 tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomcat/lib/

 servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:
 /usr/java/jdk1.3.0_02/lib/tools.jar

 # 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /examples )

 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx(  )
 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /test )
 FATAL:java.net.BindException: Address already in use
 java.net.BindException: Address already in use
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
  at java.net.ServerSocket.init(ServerSocket.java:170)
  at java.net.ServerSocket.init(ServerSocket.java:121)
  at
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket
 (DefaultServerSocketFactory.java:97)
  at

 org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
 :
 239)
  at

 org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
  at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)






question regarding realms

2001-04-16 Thread Donald Ball

hi guys. i'm running tomcat-catalina out of cvs and i'm trying to protect
my standalone tomcat-catalina instance using the same crypted passwords
that live in my existing apache.htpasswd files - either using MemoryRealm
or JDBCRealm, i don't care much which. i'd imagine this is fairly common,
does anyone have a working configuration they could share? i note the
JDBCRealm stuff has been refactored since b3, and now you can apparantly
request a particular digest, but it's unclear how to go about doing so,
and what the proper value would be for a 'crypt' digest. any help? tia.

- donald




Re: Newbie Questions JSP/Tomcat

2001-04-16 Thread Tim O'Neil

Look in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes

At 12:12 PM 4/16/2001 -0500, Scott P wrote:
On page 25 they talk about placing Servlets in the install_dir/classes
directory. My install did not come with a classes dir, in the install_dir?




RE: Welcome File : index.jsp

2001-04-16 Thread suha_yacoub



Hello,
I looked at the web.xml which I copied from TOMCAT_HOME/conf and it complies
with the dtd that it refers to on the Sun site:
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd

I'm still trying to get tomcat to load index.jsp when I hit the context
directory. No luck yet.

A few questions:

1)
 This web.xml defines a couple of servlets:
- default (servlet mapping /servlet/*)
- invoker (servlet mapping /*.jsp)
Do I need these, if this is already defined in server.xml?

2)
Should I define index.jsp as a servlet. If so, what should the value be for :
- load-on-startup
- servlet-class

3)
Should I define all the mime types within each context or is this unnecessary?
Can I remove these tags?

4)
My welcome-file-list tag is ok with only one child
welcome-fileindex.jsp/welcome-file.

I apologize if there's documentation about this and I missed it.

Thanks,
suha.

The web.xml file also contains a long list




Michael Wentzel [EMAIL PROTECTED] on 04/10/2001 01:06:16 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
cc:(bcc: Suha Yacoub/IL/ONE)
Subject:  RE: Welcome File : index.html



 I'm having a similar problem. I'm running tomcat in-process
 within apache. Will
 I need to set the welcome file setting on apache? I tried
 setting index.jsp as
 my welcome file in web.xml but the browser/server ignores
 this setting. I
 restarted both apache and tomcat.


You might want to make sure that the xml complies with the dtd
found in TOMCAT_HOME/conf/.  If these items are out of order
then they are ignored at server startup.  In this case it's the
server ignoring the welcome-file not the browser.  And of course,
as mentioned before, make sure you are using the right ordering
for your welcom-file(s) if you have multiples.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com









RE: Tomcat monitor/poller/email

2001-04-16 Thread Mark Mynsted

Great.  :-)
I would like to see it if that would be ok.  I am running under Windows NT right now, 
due to a couple of dependancies I have not had time to 
overcome yet.

Hmm.  Running Tomcat under UNIX sounds like a solution that would prevent the need to 
check if Tomcat is running, at least for me.  ;-)

I seem to have fewer occasions where processes/people kill my applications 
accidentally/deliberately under UNIX/LINUX than under Windows.

 [EMAIL PROTECTED] 4/16/2001 12:01:36 PM 
On Mon, 16 Apr 2001, William Kaufman wrote:

 You could also just add a line in you shell script or batch file to
 send email after tomcat has run.

 FWIW, I like your option (2): you can even detect catastrophic
 failures on the server, just by locating the program on another
 (theoretically "safer") machine.

 And, can I mention that I'm entertained that anyone still uses the
 word "abend"? ;-)

FWIW, I have something that takes a simple approach to this -- it
periodically (using sleep) does a number of checks to make sure tomcat
is running OK -- first, it checks that the tomcat process is running
at all (using ps, so this is a UNIX solution), and it also checks that
there are no OutOfMemoryError's in the appropriate log file.  I have
it set up so that it emails me and/or restarts tomcat, if appropriate.
(And now, as I occasionally have some OutOfMemoryError problems, it
looks like I have some memory leak type problems, so I need to go over
my code and find the problems :-).


  -Original Message-
  From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, April 16, 2001 9:31 AM
  To: [EMAIL PROTECTED] 
  Subject: RE: Tomcat monitor/poller/email
 
 
  Yes, that helps.
 
  Has anybody written one of these from scratch?  What approach
  did you take?
  I am curious what approach folks have taken.
 
  If I write one myself I thought of the following options:
  1. Open a system semaphore at the start of Tomcat. Have an
  email program sit on the semaphore.  If Tomcat dies, and it's
  semaphore dies (which it would/should) then send an email.
  2. Use a socket.  Open a socket connection between a mail
  program and Tomcat.  If Tomcat breaks the connection, send email.
  3. Open an email thread as a hook into Tomcat's runtime via
  Runtime.getRuntime().addShutdownHook(emailThread).  But this
  will not catch an abend, such as a native code failure.
  4. Other
 
   [EMAIL PROTECTED] 4/13/2001 11:40:05 PM 
 
  Not free but very reasonable priced:  http://www.ipsentry.com/ 
 
  If your server is open to the Intranet, we are using
  www.netmechanics.com 
  for 10$
  a month.
 
  Hope this helps.
 
  Tal
 
   -Original Message-
   From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
   Sent: Friday, April 13, 2001 3:08 PM
   To: [EMAIL PROTECTED] 
   Subject: Tomcat monitor/poller/email
  
  
   Has anybody out there set anything up that will email them in the
   event the Tomcat would crash or not be running?  (Or know of free
   software that can do that.)  I am running Tomcat under Windows NT.
  
   If so please let me know.  (I do not want to re-create the wheel.)
  
   I have NOT had trouble with Tomcat crashing, I simply need to do
   this for my SLA.
  
 


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED] 






Re: Auth bug in 3.2.1?

2001-04-16 Thread Rajesh A

I found this bug report- 
http://znutar.cortexity.com/BugRatViewer/ShowReport/757. I think this is 
what we are talking about. It has already been fixed in 3.2.2beta3. I 
installed it and my problem seems to have been solved. I will be interested 
to know if this beta3 release solves the problems others have posted in this 
thread "Auth bug in 3.2.1".

Rajesh

From: "Jeff Kilbride" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Auth bug in 3.2.1?
Date: Sat, 14 Apr 2001 16:01:20 -0700

Hi Thom,

Thanks for posting a solution! I was just about to start exploring
JDBCRealms.

Did you post this as a patch to the Tomcat-dev list? If not, that might be
the best first step, since it looks like you've solved the problem. Who
knows how long it will take for someone on the Dev side to read through 
this
list and find this thread...

--jeff

- Original Message -
From: "Rajesh A" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 14, 2001 8:12 AM
Subject: Re: Auth bug in 3.2.1?


  I completely agree with Marc. This is a very serious problem and if I
  understand Thom's mail right, it affects ALL realms including 
SimpleRealm,
  JDBCRealm etc.
 
  I also request others using tomcat auth to revisit their applications 
and
  make sure users and roles are being assigned properly. Perhaps many may 
be
  hit by this problem but have not discovered it yet. Without a solution 
to
  this problem I will have to redesign security for my application and 
that
  will blow my project plan!
 
  We already seem to have a solution posted by Thom Park. Can someone from
  tomcat dev please consider it and release a patch?
 
  Please help.
 
  Rajesh
 
 
  From: Marc Palmer [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Auth bug in 3.2.1?
  Date: Sat, 14 Apr 2001 08:08:21 GMT
  
   Hi Marc,
   I saw this problem in 3.2.1 as well  - I made a fix for it in the
tomcat
  that ships with the Borland AppServer but
   couldn't get anyone to comment on the fix in the main code-line
  (essentially I'm not a commiter so couldn't submit the fix)
  Hi Thom,
  Thanks for the info. Can someone from the Tomcat development team 
please
  comment on this? I would have thought that this was quite a serious
  security problem - am I wrong?
  The way I see it, the bug could lead to anybody grabbing another user's
  role while appearing to be somebody else. This is certainly possible if
  you use somebody else's PC after they have. It may be even worse if you
  can also do this from a different PC - essentially getting a "random"
  role that somebody else already "provided" by logging in. Not to 
mention
  plain old failure in the case where a higher "privileged" person get's 
a
  lower privileged role allocated. It's not clear at this time whether 
the
  principal caching is tied to IP or "per pooled connection". If the
  latter, it's a bit more scary.
  So once again, can someone from the Tomcat team PLEASE comment on this
  problem and whether a fix is being implemented? Perhaps there is too 
much
  work/redesign going on in 4.0 for people to consider patching 3.2.x but 
I
  would have thought this is pretty essential, and perhaps even merits a
  post to the BUGTRAQ mailing list. We already have 3 confirmed 
"sufferers"
  - who knows how many systems that depend on tomcat have slipped through
  the net and represent significant authentication breaches?
  
  Cheers
  
  
 
  
_
  Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.
 


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




web.xml

2001-04-16 Thread Maureen Fisher

Is there a way to specify the name of the web.xml file, as 
a command line parameter to tomcat? (Much like we can specify different server.xml 
files.) This is the default web.xml, not application specific.

Thanks.

Maureen Fisher, CIT/ASDT, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/
Ad astra per aspera




Does Tomcat 3.2.1 work on Windows 2000 Server/IIS5

2001-04-16 Thread Geofferey G Chen


Does Tomcat 3.2.1 work on Windows 2000 w/IIS5.0?





RE: tomcat startup problem

2001-04-16 Thread Wong, Connie

Try to stop tomcat and start it again.
Something when you create a new class (or recompile), you need to stop and
start tomcat.

Connie


 -Original Message-
 From: Craig Pfeifer [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 1:23 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: tomcat startup problem
 
 This should be in an FAQ somewhere..
 
 If I'm not mistaken, this error :
 
  FATAL:java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
 
 means that there's already another application that has bound to the
 socket
 that you are trying to use.
 
 So, chances are another instance of Tomcat is running on this machine
 already.
 
 Craig Pfeifer
 Software Engineer
 Aether Systems, Software Products Division
 703.847.3303 x2053
 [EMAIL PROTECTED]
 
   
 
 
  -Original Message-
  From: Chad Harrison [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 1:18 PM
  To: [EMAIL PROTECTED]
  Subject: tomcat startup problem
  
  
  
  redhat 7
  sun jdk 1.3
  
  when I try to run tomcat I get
  
  #./startup.sh
  
  Using classpath: 
  /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar
  :/usr/local/
  tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/loca
  l/tomcat/lib/
  servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/w
  ebserver.jar:
  /usr/java/jdk1.3.0_02/lib/tools.jar
  
  # 2001-04-16 10:14:56 - ContextManager: Adding context Ctx( 
  /examples )
  
  2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /admin )
  Starting tomcat. Check logs/tomcat.log for error messages
  2001-04-16 10:14:56 - ContextManager: Adding context Ctx(  )
  2001-04-16 10:14:56 - ContextManager: Adding context Ctx( /test )
  FATAL:java.net.BindException: Address already in use
  java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
   at java.net.ServerSocket.init(ServerSocket.java:170)
   at java.net.ServerSocket.init(ServerSocket.java:121)
   at 
  org.apache.tomcat.net.DefaultServerSocketFactory.createSocket
  (DefaultServerSocketFactory.java:97)
   at 
  org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc
  pEndpoint.java:
  239)
   at 
  org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec
  tor.java:188)
   at 
  org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
  



Re: Does Tomcat 3.2.1 work on Windows 2000 Server/IIS5

2001-04-16 Thread Mark Mynsted

Have you tried it?

 [EMAIL PROTECTED] 4/16/2001 1:07:57 PM 

Does Tomcat 3.2.1 work on Windows 2000 w/IIS5.0?







Re: Does Tomcat 3.2.1 work on Windows 2000 Server/IIS5

2001-04-16 Thread Geofferey G Chen


Haven't tried yet.







"Mark Mynsted" [EMAIL PROTECTED] on 04/16/2001 02:08:57 PM

Please respond to [EMAIL PROTECTED]





  
  
  
 To:  [EMAIL PROTECTED]  
  
 cc:  (bcc: Geofferey G Chen/Corporate/Allianz Canada 
  Inc.)   
  
  
  
 Subject: Re: Does Tomcat 3.2.1 work on Windows 2000  
  Server/IIS5 
  


Fax to:




Have you tried it?

 [EMAIL PROTECTED] 4/16/2001 1:07:57 PM 

Does Tomcat 3.2.1 work on Windows 2000 w/IIS5.0?










RE: Does Tomcat 3.2.1 work on Windows 2000 Server/IIS5

2001-04-16 Thread Randy Layman


Yes.  This is the second question today about this, I would suggest
reading the mailing list archives before posting to this list.

 -Original Message-
 From: Geofferey G Chen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 2:08 PM
 To: [EMAIL PROTECTED]
 Subject: Does Tomcat 3.2.1 work on Windows 2000 Server/IIS5
 
 
 
 Does Tomcat 3.2.1 work on Windows 2000 w/IIS5.0?
 
 



java.lang.OutOfMemoryError... O happy day.

2001-04-16 Thread Daniel Wintschel

Hey there.

I just took over a project that is running on Solaris 2.6 and an Apache
1.3.12/Tomcat 3.2.1 install.

After about three days of the server being up, it slows to a crawl and dies
a wonderful death spewing forth Internal Server Errors and a wonderful
inability to connect to any databases. (Namely repeated
java.lang.OutOfMemoryError's)

I am wondering if there are any known issues of memory leaks in this
distribution of Tomcat, or if my most probable solution to the problem would
be to read through all of the previous developers code to find out where it
sucks and needs to get fixed.

The Frustrated Code Maintainer.
-daniel

___
...what is of value is never the habits and skills acquired
from practice, but the understanding that results from
consciously undertaken struggles...
___
Daniel Wintschel
Java/Web Developer

Tantalus Communications Inc.
500-1122 Mainland Street
Vancouver BC V6B 5L1

eMaiL:   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
diReCt:  604.782.2713
MaiN:604.609.0700
faX:   604.609.0705

http://www.tantalus.com http://www.tantalus.com
"When eBusiness Experience Counts."





RE: java.lang.OutOfMemoryError... O happy day.

2001-04-16 Thread Randy Layman


Tomcat itself doesn't leak any memory as far as our systems
indicate.  One thing to look at might be session usage - has the orginial
developer made the session never timeout (which means that the memory used
in it will never be recollected) or jave exceptionally long timeouts?  Also,
since you can't connect to the database, I would look at that portion of the
code, possibly keeping connections open until you use all the database
server/license supports?

As you probably know, you need to look at objects that grow without
being garbage collected (static variables are often times problems,
especially Collections (maps, lists, etc)) as well as keeping open IO
streams with very large buffers and not flushing them at points of
inactivity.

Randy

 -Original Message-
 From: Daniel Wintschel [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 2:14 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.OutOfMemoryError... O happy day.
 
 
 Hey there.
 
 I just took over a project that is running on Solaris 2.6 and 
 an Apache
 1.3.12/Tomcat 3.2.1 install.
 
 After about three days of the server being up, it slows to a 
 crawl and dies
 a wonderful death spewing forth Internal Server Errors and a wonderful
 inability to connect to any databases. (Namely repeated
 java.lang.OutOfMemoryError's)
 
 I am wondering if there are any known issues of memory leaks in this
 distribution of Tomcat, or if my most probable solution to 
 the problem would
 be to read through all of the previous developers code to 
 find out where it
 sucks and needs to get fixed.
 
 The Frustrated Code Maintainer.
 -daniel
 
 ___
 ...what is of value is never the habits and skills acquired
 from practice, but the understanding that results from
 consciously undertaken struggles...
 ___
 Daniel Wintschel
 Java/Web Developer
 
 Tantalus Communications Inc.
 500-1122 Mainland Street
 Vancouver BC V6B 5L1
 
 eMaiL:   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 diReCt:  604.782.2713
 MaiN:604.609.0700
 faX:   604.609.0705
 
 http://www.tantalus.com http://www.tantalus.com
 "When eBusiness Experience Counts."
 
 



Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-16 Thread Chris Andreou

Dear forum, 

Please take a time to provide me with the following opinion. I spend some
time configuring Tomcat and Apache. Because of deadline constaints and the
fact that some allready developed code has been devloped using only Tomcat
as standalone, the prototype team is focusing on just using Tomcat. Does
anybody know if that approach is good? Personally I feel very reluctant in
following that approach, but I have to convence by team leader why Tomcat by
itself won't do the same work as Apache  Tomcat  together will. 

Any  opinions are wellcome


Thanks



RE: Tomcat at Windows 2000

2001-04-16 Thread Chris Andreou

Set the Http Server on Tomcat and it will show the error (standalone) and
the window will not close


-Original Message-
From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 8:16 AM
To: [EMAIL PROTECTED]
Subject: Tomcat at Windows 2000


Hi,
I am trying to run Jakarta at Windows 2000, but I am having my jakarta
window closed as soon as it starts !!!
What kind of problem is that ?
at Win98 I wasnt having any problem and it was working well 
Can anybody helps me ???

Regards
Daniel

Daniel Alvares
Santos - SP - Brazil



Security - Simple Realm/JDBC Realm - Pls Help

2001-04-16 Thread Suchi sekar


Hi
I am relatively new to tomcat and I hope someone can
help me. I am using JDBC realm to protect parts of my
web app. Everything including authentication was
working great on my stand alone tomcat server.
Recently I moved my web app to apache/tomcat
installation. I configured apache/tomcat as per docs.
Everything is working fine except the authentication
module. The login screen pops up correctly when I try
to access a protected URL. But when I type in the user
name and password it gives me a "404 not found URL
"j_security_check". It seems to be looking under
"web_app_doc_root/"j_security_check". I have checked
the server.xml and the web.xml and find nothing amiss.
Am I missing some class path/required library, Can
someone point me to what I am missing?
Thank You very much
Suchi

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



RE: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-16 Thread Randy Layman


My opinion, and its just that, is that unless there is a compelling
reason to use Apache (like its superior speed in static content, logging
abilities, support of PHP/SSI/mod_perl/whatever, or ability to gracefully
handle very large loads), don't use it.  In most of today's systems, the
complexity is astounding.  Its easy to build a system using 5 to 10 levels
of software (including various OS levels), which increases the number of
points of failure.  Any time that you can decrease the number of levels in a
system you increase its speed (level communication is generally
inter-process communication or sockets) and decrease the number of points of
failure (in this sense, I mean software bugs).  Obviously, if Apache gets
you something that would be difficult, time consuming, or impossible to do
with Tomcat, use it.  But in general, I would advice to use the simplest
approach.

I know this isn't the opinion you were looking for, but its what I
think is best.

Randy


 -Original Message-
 From: Chris Andreou [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 2:27 PM
 To: '[EMAIL PROTECTED]'
 Subject: Asking for an Opionio on Apache  Tomcat or Just Apache
 
 
 Dear forum, 
 
 Please take a time to provide me with the following opinion. 
 I spend some
 time configuring Tomcat and Apache. Because of deadline 
 constaints and the
 fact that some allready developed code has been devloped 
 using only Tomcat
 as standalone, the prototype team is focusing on just using 
 Tomcat. Does
 anybody know if that approach is good? Personally I feel very 
 reluctant in
 following that approach, but I have to convence by team 
 leader why Tomcat by
 itself won't do the same work as Apache  Tomcat  together will. 
 
 Any  opinions are wellcome
 
 
 Thanks
 



  1   2   >