re: simple tomcat question

2002-09-25 Thread Ryan

here is the source to my  page
http://the45.dhs.org:8080/examples/jsp/test.jsp

%@ page session=false %
%
String title = Hello, world!;
%
head
title%= title %/title
/head
body bgcolor=white
h1%= title %/h1
/body



-ryan
The Original X-tra Strength Non-Aspirin Caplets


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




Re: simple tomcat question

2002-09-25 Thread Kwok Peng Tuck

Attributes have to be quoted.

Somewhere in your  error message there was also a something similar 
about a attribute not being quoted. Check out your previous post to see.
Good luck with the rest of the page :)


%@ page session=false %


Ryan wrote:

here is the source to my  page
http://the45.dhs.org:8080/examples/jsp/test.jsp

%@ page session=false %
%
String title = Hello, world!;
%
head
title%= title %/title
/head
body bgcolor=white
h1%= title %/h1
/body



-ryan
The Original X-tra Strength Non-Aspirin Caplets


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


  




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




JDBC problem

2002-09-25 Thread Ryan

I just downloaded the latest mySQL JDBC driver and have placed the directory
that the jar extracts into the CLASSPATH.

I am trying to load the driver with this line:
Class.forName(org.gjt.mm.mysql.Driver).newInstance();

All I have done is set the CLASSPATH and restart tomcat.
Is there anything else that needs to be done?

-ryan
The Original X-tra Strength Non-Aspirin Caplets


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




AW: JDBC problem

2002-09-25 Thread Dominik Jednoralski

tomcat ignores the classpath setting. place the .jar file in

$TOMCAT_HOME/webapps/root/web-inf/lib

i hope that'll work
dominik

-Ursprüngliche Nachricht-
Von: Ryan [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 25. September 2002 09:32
An: [EMAIL PROTECTED]
Betreff: JDBC problem


I just downloaded the latest mySQL JDBC driver and have placed the directory
that the jar extracts into the CLASSPATH.

I am trying to load the driver with this line:
Class.forName(org.gjt.mm.mysql.Driver).newInstance();

All I have done is set the CLASSPATH and restart tomcat.
Is there anything else that needs to be done?

-ryan
The Original X-tra Strength Non-Aspirin Caplets


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


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




AW: Copious Connectors Conundrum

2002-09-25 Thread Ralph Einfeldt

mod_jserv (deprecated)

mod_proxy (no loadbalancing)
  - This is a quite old apache module that
isn't intended as a connector but as 
a proxy (It forwards incoming request to an 
IP/Port and sends the response to the requesting 
client). I haven't tried to use mod_proxy
but I think that you just use it to forward
HTTP reqests to the HttpConnector (or Coyote)

mod_jk
 - Successor of mod_jserv
   the current connector for load balancing.
   AFAIK this is the most stable connector for tomcat 4.0 
   and apache 1.3.

mod_webapp (no loadbalancing)
 - This connector was intended as the replacement 
   of mod_jk for tomcat 4.0. As it wasn't ready
   when tomcat 4.0 was released, some peopled 
   started to extend mod_jk to work with 4.0.
   From then on mod_jk started a live of it's own.
   AFAIK this connector has also the drawback this it forwards 
   all requests for a webapp to tomcat (also for static
   resources).
   
mod_jk2
 - I think this offspring started with apache 2.
   As far as I can remember mod_jk has a design problem 
   with a nulti threaded apache (AFAIK under windows 
   this is the default for apache). This connector
   was announces as beta several month ago, and I'm
   not aware that this state has changed. 

coyote 
 - Here you have two different components:
   - CoyoteConnector is just a HTTP 1.1 Connector 
 to use tomcat stand alone
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
   - Jk 2 Connector is a new Connector that implements 
 the java side of the mod_jk/mod_jk2 connectors
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html

For an overview see:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 25. September 2002 01:59
 An: [EMAIL PROTECTED]
 Betreff: Copious Connectors Conundrum
 
 Hi!  I'm bewildered by the array of connector options.  I'm trying to
 hook up a cluster of Tomcat 4.0.4 instances (running in JBoss) behind
 Apache 1.3, all running on Linux.  I'm looking for a stable,
 production-quality option.
 
 mod_jserv (this is deprecated, right?)
 mod_jk
 mod_jk2
 mod_webapp
 mod_proxy (this is a simple proxy that doesn't offer 
 clustering, right?)
 coyote (this is only for tomcat 4.1, right?)
 

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




Re: SSL security contraint for just the login page.

2002-09-25 Thread Martin Jacobson

HAVENS,PETER (HP-Cupertino,ex3) wrote:

 I am using form based authentication on my Tomcat 4.0.4 server and I am
 trying to figure out how to set up a security constraint that would apply
 only to the login page.  My global web.xml has a security constraint that
 points to a login.jsp page as the form-login-page.  As I understand it, the
 global web.xml can only have one security-constraint.  What I want to do is
 configure this login.jsp page to be served up via HTTPS only.  This way
 users will not be submitting password as plain text.
  
 I know about using the user-data-constraint transport-guarantee, but I
 do not want to require SSL for all pages, just the login page.
  
 Is this possible?
  


I don't know whether this is possible - I tried for a while, thinking 
like you that it was sufficient to protect the login page, until I Saw 
The Light.
If you only protected the login page, then although the user's password 
would not be sent in clear, the session id on subsequent pages would be. 
Since a hacker only needs the session id to masquerade as your logged-in 
user, you MUST encrypt the entire session after login. This is what the 
servlet spec mandates, and what Tomcat does.

Martin



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




Re: JDBC problem

2002-09-25 Thread Ryan

Thank you, this worked!
However, now, the next line of code gives me problems:
Connection C = DriverManager.getConnection(jdbc:mysql://localhost/tob,
user, pass);

Gives me the error :
javax.servlet.ServletException: Invalid authorization specification: Access
denied for user: '[EMAIL PROTECTED]' (Using password: YES)

When I run mysql --user=user -p
with the same user/pass as in the getConnection() method, everything works
fine.

-thanx, ryan


- Original Message -
From: Dominik Jednoralski [EMAIL PROTECTED]
To: Tomcat User Help [EMAIL PROTECTED]
Sent: Tuesday, September 24, 2002 12:34 AM
Subject: AW: JDBC problem


 tomcat ignores the classpath setting. place the .jar file in

 $TOMCAT_HOME/webapps/root/web-inf/lib

 i hope that'll work
 dominik

 -Ursprüngliche Nachricht-
 Von: Ryan [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 25. September 2002 09:32
 An: [EMAIL PROTECTED]
 Betreff: JDBC problem


 I just downloaded the latest mySQL JDBC driver and have placed the
directory
 that the jar extracts into the CLASSPATH.

 I am trying to load the driver with this line:
 Class.forName(org.gjt.mm.mysql.Driver).newInstance();

 All I have done is set the CLASSPATH and restart tomcat.
 Is there anything else that needs to be done?

 -ryan
 The Original X-tra Strength Non-Aspirin Caplets


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


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



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




Re: Tomcat 4.0.2, Apache 1.3.24, mod_jk, OpenBSD 3.1 - erratic behaviour

2002-09-25 Thread MTimpe

Hi, 

I have the same problem (problem 2) on Windows NT. I am using Tomcat
4.0.3, Apache 1.3.26, mod_jk. Tomcat standalone is working fine. I can
work with my application. After an idle time (but smaller than the
defined Timeouts) I get the same message as you got. After clicking
reload in the browser, everything is fine. Still don't have a solution
up to now. If you find a solution, it would be a great help for me,
too.

Greetings

Michael


danox schrieb:
 I have set up tomcat 4.0.2 to run with apache 1.3.24 on
 an OpenBSD 
 platform. I used mod_jk to provide the connection, which
 I managed to 
 compile from source on OpenBSD.
 
 I am having 2 problems,  believe if I resolved the first
 it would help 
 me someways to resolve the second.
 
 1)
 mod_jk creates a log file, but never writes to it. the
 log is always 0 
 length. I have used the following lines to try and get it
 to produce a 
 log file:
 ***
   !-- Define the default virtual host --
   Host name=monkeymagic debug=0
 appBase=/var/tomcat/webapps 
 unpackWAR
 s=true
 
 !-- this line is included for apache integration
 using mod_jk --
  Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 append =true 
 forwardAll=true noRoot=false jkDebug=debug  /
 ***
 
 I have tried this with jkDebug=debug and
 jkDebug=error as well. (got 
 this from
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html)
 
 Everything else goes fine, catalina.out reveals that
 tomcat-apache has 
 started, and I can actually get apache to talk to tomcat,
 but no log 
 file is generated.
 
 2).
 Apache-Tomcat link using mod_jk is highly erratic.
 You can check this for yoursefl here:
 http://monkeymagic.netforce.com.au/examples/jsp/index.html
 Every 10 page requests or so, apache will serve the
 example jsp page 
 using tomcat. the rest of the time I get a 500 Internal
 Server Error.
 I have been unable to diagnose this problem, and my main
 concerns are:
 - nothing is reported in the apache error_log
 - nothing is reported in catalina.out, or any of the
 other logs generate 
 by tomcat.
 - the mod_jk log file is completely empty.
 
 some background information here:
 - Running as standalone (port 8080) tomcat works just
 fine.
 - The same goes for apache running apache without
 mod_jk.
 - mod_jk loads with tomcat and creates mod_jk.conf in the
 auto directory.
 - this setup seems to be more stable when I define the
 host in 
 server.xml as localhost instead of monkeymagic, but
 still occurs.
 
 
 Relevant sections of server.xml:
 ***
 Server port=8005 shutdown=SHUTDOWN debug=0
 
 
   !-- A Service is a collection of one or more
 Connectors that share
a single Container (and therefore the web
 applications visible
within that Container).  Normally, that Container
 is an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so
 you may not
define subcomponents such as Valves or Loggers
 at this level.
--
 
   !-- define the appache config connector --
   Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 /
 .
 .
 .
   !-- Define the default virtual host --
   Host name=monkeymagic debug=0
 appBase=/var/tomcat/webapps 
 unpackWARs=true
 
 !-- this line is included for apache integration
 using mod_jk --
  Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true 
 forwardAll=true noRoot=false jkDebug=info /
 .
 .
 .
 
 ***
 
 Relevant section of httpd.conf:
 ***
 .
 .
 .
 Include
 /usr/local/jakarta-tomcat-4.0.2/conf/auto/mod_jk.conf
 ***
 
 Any pointers as to at least how to get mod_jk loging, or
 where to look 
 for some answers would be most appreciated. Thanks for
 your consideration.
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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




VAJ Test Environment servlet-mapping

2002-09-25 Thread Kristoffer Larsson

Hello!

I have installed VisualAge for Java 4.0 and Apache Tomcat Test
Environment 3.2.3 and have a question regarding this setup. How can
I define a servlet-mapping for my servlets? I have this servlet
se.openmind.trapp.go.GOEjInloggad which now can be reached through

http://localhost:8080/servlet/se.openmind.trapp.go.GOEjInloggad

However, I want to reach it through

http://localhost:8080/servlet/GOEjInloggad

I want to map GOEjInloggad to se.openmind.trapp.go.GOEjInloggad. Is
this possible? The servlet exists only in the VisualAge IDE, of
course, and not in a physical location on the hard drive, since I'm
using the test environment and not the standalone servlet container.

Thanks in advance!

Kristoffer Larsson



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




Re: JDBC problem

2002-09-25 Thread Martin Jacobson

Ryan wrote:

 Thank you, this worked!
 However, now, the next line of code gives me problems:
 Connection C = DriverManager.getConnection(jdbc:mysql://localhost/tob,
 user, pass);
 
 Gives me the error :
 javax.servlet.ServletException: Invalid authorization specification: Access
 denied for user: '[EMAIL PROTECTED]' (Using password: YES)
 
 When I run mysql --user=user -p
 with the same user/pass as in the getConnection() method, everything works
 fine.
 
 -thanx, ryan
 
 


I had the same problem. The point is that tomcat passes the45.dhs.org 
as the host name, and NOT localhost. Therefore, you have to GRANT 
privileges to the user on this host in MySQL for the connection to work.

HTH,
Martin



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




webapp shutdown

2002-09-25 Thread RP C987342


My webapp needs to know when Tomcat shuts down in order
to do some cleanup. How can I do this?

For startup, I am using the following tag in my web.xml
load-on-startup1/load-on-startup
Is this the correct method?

Or is there a way to register startup/shutdown classes
with Tomcat?

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


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




RE: webapp shutdown

2002-09-25 Thread Nicholas Orr

You could have a servlet that is called StartUp_ShutDown use
load-on-startup1/load-on-startup to start it and everything that needs
to be done on start up put in the init() method, and then when tomcat is
shutdown it will call the destroy() method.

One suggestion, probably others.

Nicholas Orr

-Original Message-
From: RP C987342 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 25 September 2002 6:37 PM
To: [EMAIL PROTECTED]
Subject: webapp shutdown



My webapp needs to know when Tomcat shuts down in order
to do some cleanup. How can I do this?

For startup, I am using the following tag in my web.xml
load-on-startup1/load-on-startup
Is this the correct method?

Or is there a way to register startup/shutdown classes
with Tomcat?

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


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


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




RE: webapp shutdown

2002-09-25 Thread Heligon Sandra

The servlet2.3 specification introduces the HttpServletContext listener
class.
When tomcat is shutdown, I think that the contextDestroyed() method of this
class
will be called.

Sandra

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 10:41
To: 'Tomcat Users List'
Subject: RE: webapp shutdown


You could have a servlet that is called StartUp_ShutDown use
load-on-startup1/load-on-startup to start it and everything that needs
to be done on start up put in the init() method, and then when tomcat is
shutdown it will call the destroy() method.

One suggestion, probably others.

Nicholas Orr

-Original Message-
From: RP C987342 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 25 September 2002 6:37 PM
To: [EMAIL PROTECTED]
Subject: webapp shutdown



My webapp needs to know when Tomcat shuts down in order
to do some cleanup. How can I do this?

For startup, I am using the following tag in my web.xml
load-on-startup1/load-on-startup
Is this the correct method?

Or is there a way to register startup/shutdown classes
with Tomcat?

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


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


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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

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




Tomcat4.1.12 on windows and JDK1.3 problems

2002-09-25 Thread Domagoj Jugovic

Tomcat 4.0.3 works fine in the same enviroment (win98 + IBM JDK1.3).

But Tomcat 4.1.10 and Tomcat 4.1.12 are complaining about : 
java.util.logging.* and I downloaded the version for jdk1.2+ which doesn't 
have logging, mybe this is an overlook, OK.
The I find out how to put exactly the same logging possibilities like in 
jdk 1.4 to jdk 1.3 (see : http://javalogging.sourceforge.net/  it's an JSR 
47 implementation and).  So java.util.logging.* is now ok.

But now the comand line stack trace after typing bin/startup is :

Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\IBMJava1_3
java.lang.NoSuchMethodError: java.lang.Throwable: method 
getStackTrace()[Ljava/lang/StackTraceElement; not found
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:115)
at org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:192)
at org.apache.commons.modeler.Registry.loadRegistry(Registry.java:264)
at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:1620)
at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:162)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(GlobalResourcesLifecycleListener.java:115)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:254)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:454)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:217)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:594)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:777)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)




Thanks in advance,  
Cheers.



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




Re: JDBC problem

2002-09-25 Thread Ryan

great, thanx couldn't quite get the grants changed right, so I found
that 127.0.0.1 worked fine.

-gratzie
 ryan


- Original Message -
From: Martin Jacobson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 1:34 AM
Subject: Re: JDBC problem


 Ryan wrote:

  Thank you, this worked!
  However, now, the next line of code gives me problems:
  Connection C = DriverManager.getConnection(jdbc:mysql://localhost/tob,
  user, pass);
 
  Gives me the error :
  javax.servlet.ServletException: Invalid authorization specification:
Access
  denied for user: '[EMAIL PROTECTED]' (Using password: YES)
 
  When I run mysql --user=user -p
  with the same user/pass as in the getConnection() method, everything
works
  fine.
 
  -thanx, ryan
 
 


 I had the same problem. The point is that tomcat passes the45.dhs.org
 as the host name, and NOT localhost. Therefore, you have to GRANT
 privileges to the user on this host in MySQL for the connection to work.

 HTH,
 Martin



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



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




Re: Which Tomcat version for production environment ?

2002-09-25 Thread Simon M Pascoe

Thanks to Glenn Nielsen, John Turner and Jon Wingfield for their input 
on this one - I've decided to stick with the 4.04 release for production 
right now, but I'll be looking to test 4.1.x for later use (in addition 
to upgrading my Apache version).

Regards,

sImon


 Glenn Nielsen wrote:

 Although there are those few gotchas when moving from 4.0.4 to 4.1,
 4.1.x has much better performance and IMHO is more stable than 4.0.x.
 And if you use JSP there will be a huge improvement in performance for
 JSP pages.

 I have had Tomcat 4.1.x in production for 6 months with Jasper 1, and
 just recently upgraded it to Jasper 2.  This is on a site with  500k
 page views per month.  This also uses Apache 1.3.26 and mod_jk 1.2.

 I agrree, upgrade to Apache 1.3.26.

 Regards,

 Glenn

 Turner, John wrote:

 4.0.4

 In addition, upgrade your Apache to 1.3.26.  There are numerous fixes 
 and
 some security fixes between .19 and .26.

 Don't move to 4.1.x until you have tested it thoroughly, there have 
 already
 been a few gotchas with 4.1.10.

 John



 -Original Message-
 From: Simon M Pascoe [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 20, 2002 7:52 AM
 To: [EMAIL PROTECTED]
 Subject: Which Tomcat version for production environment ?


 Hi,

 hopefully a simple question, first some background. I'm about to 
 install Tomcat with mod_jk and Apache 1.3.19 on a server running 
 RedHat Advanced Server 2.1 for production use. I have already setup 
 a very similar test box running Tomcat 4.0.4. Though it hasn't been 
 under much of a load it has been stable for a few months now.

 My main criteria is that I need 4.x. and I really want to make sure 
 that I'm running the most stable (as opposed to latest and greatest) 
 version of Tomcat on my new server. Anyone out there with reasonable 
 experience in a production environment who could make a 
 recommendation please ?

 Thanks in advance for any help,

 sImon Pascoe


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


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





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





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




how to WML in TOMCAT

2002-09-25 Thread MOHAMMAD AHMED


hello,

   I am a JSP developer and use Tomcat 4.0 for JSP

development I  have no problem in any configuration

regarding Java and tomcat integration or else but the

main  problem  I am facing is that ,How can I run Wml

applications on Tomcat, I mean where to place WML files

 from where to configure the mime type and how to add

Mime types, i am also using Nokia Active Server 2.0 

and Nokia Mobile Toolkit 3.1 so please reply me soon and help me 
.


   WML --req- Tomcat- Database
   --res-  Tomcat Database.


Thanks for Your consideration


Mohammad Ahmed


__
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/


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




RE: mod_jk.conf Listener

2002-09-25 Thread Turner, John


Yes.  Check the source code for the ApacheConfig class, then just write your
own.

The best place depends on the need.  I would think the best place for an
SSL Listener would be in the Host element, as different Hosts have different
certificates.

I'm sure others on the list would be interested in seeing anything you
wrote, and perhaps even teh developers would integrate it into the full
package.  My guess is, though, that they either 1) thought about doing it
and decided not to for some reason, or 2) thought about it and want to do it
but don't have the time.

John


 -Original Message-
 From: Günter Kukies [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 1:56 AM
 To: Tomcat Users List
 Subject: mod_jk.conf Listener
 
 
 Hi,
 
 is it possible to have a Listener to get SSL information into 
 the mod_jk.conf file?
 For Example 'SSLEngine on' or any other SSL directive.
 What are the possible places for placing a Listener Element 
 within server.xml?
 
 Günter Kukies
 

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




RE: Oracle JDBC Drivers on Tomcat

2002-09-25 Thread Miguel Angel Mulero Martinez

Zip and Jar are the same format. Simply rename .zip to .jar and use it.
Tomcat ignores .zip.

-Mensaje original-
De: hari hari [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 25 de septiembre de 2002 0:13
Para: [EMAIL PROTECTED]
Asunto: Re: Oracle JDBC Drivers on Tomcat

hi there,

thanks for replying. Do we need ZIP version or JAR version of JDBC Drivers
on Tomcat...?

thks.

--HARI


From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Oracle JDBC Drivers on Tomcat
Date: Tue, 24 Sep 2002 16:41:56 +1000

No don't bother, its fine.
I use Ora9i and the rest of the stuff, didn't unzip.
(In case u have download something : U can't use a tar ball though !)

Tam, Michael wrote:
 
  It works fine for me as in .zip extension.
 
  Cheers,
  Michael
 
  -Original Message-
  From: hari hari [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 24, 2002 1:25 PM
  To: [EMAIL PROTECTED]
  Subject: Oracle JDBC Drivers on Tomcat
 
  hi every1,
 
  i using java servlets to connect to my Oracle db. I get the
  jdbc-drivers and installed into app server and included in my classpath.
  these drivers are in zip format - do I need to extract them or will they
do
  fine just with zip?
 
  --HARI


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


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


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




Re: Tomcat 4.0.2, Apache 1.3.24, mod_jk, OpenBSD 3.1 - erraticbehaviour

2002-09-25 Thread Milt Epstein

On Wed, 25 Sep 2002, danox wrote:

 I have set up tomcat 4.0.2 to run with apache 1.3.24 on an OpenBSD
 platform. I used mod_jk to provide the connection, which I managed to
 compile from source on OpenBSD.

 I am having 2 problems,  believe if I resolved the first it would help
 me someways to resolve the second.

 1)
 mod_jk creates a log file, but never writes to it. the log is always 0
 length. I have used the following lines to try and get it to produce a
 log file:
 ***
   !-- Define the default virtual host --
   Host name=monkeymagic debug=0 appBase=/var/tomcat/webapps
 unpackWAR
 s=true

 !-- this line is included for apache integration using mod_jk --
  Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig append =true
 forwardAll=true noRoot=false jkDebug=debug  /
 ***

 I have tried this with jkDebug=debug and jkDebug=error as well. (got
 this from http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html)

 Everything else goes fine, catalina.out reveals that tomcat-apache has
 started, and I can actually get apache to talk to tomcat, but no log
 file is generated.
[ ... ]

I believe the mod_jk log file is controlled by directives that go in
the Apache httpd.conf (perhaps via an Include).  (The above Listener
is to have Tomcat auto-generate a mod_jk.conf file.)  Check out the
JkLogFile and JkLogLevel directives.  You show that you include the
auto-generated mod_jk.conf file, but you don't show what's in it.

Don't know about 2.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: Tomcat Security Problem Help (using mod_jk)

2002-09-25 Thread Milt Epstein

On Wed, 25 Sep 2002, Ramilio D wrote:

 Hi Everyone,

 I read in the buqraq posting that I could fix the source code
 exposure vulnerablilty in tomcat by modifying the JkMount
 directive. I took a quick look at some documentation but I couldn't
 figure out how to allow apache serve servlets yet disallow those
 containing the org.apache.catalina.servlets.DefaultServlet string.

 Any help would be greatly appreciated

I believe the report about it that was sent to this list (one of them,
at least) had some detailed instructions about how to do this.  I
suggest checking the list archives.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Starting TOMCAT without opening new DOS promt

2002-09-25 Thread RAJESH KANNAN

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt. 
How should we do this?


With Regards
K.RajeshKannan



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


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




Re: AW: Copious Connectors Conundrum

2002-09-25 Thread Marc

Hi!
Can I use Coyote Jk 2 connector, with mod_jk.so, for connecting apache with
tomcat? (using ajp13 protocol), or I must use an Ajp13Connector?

Thanxs!!

Marc


Ralph Einfeldt wrote:

 mod_jserv (deprecated)

 mod_proxy (no loadbalancing)
   - This is a quite old apache module that
 isn't intended as a connector but as
 a proxy (It forwards incoming request to an
 IP/Port and sends the response to the requesting
 client). I haven't tried to use mod_proxy
 but I think that you just use it to forward
 HTTP reqests to the HttpConnector (or Coyote)

 mod_jk
  - Successor of mod_jserv
the current connector for load balancing.
AFAIK this is the most stable connector for tomcat 4.0
and apache 1.3.

 mod_webapp (no loadbalancing)
  - This connector was intended as the replacement
of mod_jk for tomcat 4.0. As it wasn't ready
when tomcat 4.0 was released, some peopled
started to extend mod_jk to work with 4.0.
From then on mod_jk started a live of it's own.
AFAIK this connector has also the drawback this it forwards
all requests for a webapp to tomcat (also for static
resources).

 mod_jk2
  - I think this offspring started with apache 2.
As far as I can remember mod_jk has a design problem
with a nulti threaded apache (AFAIK under windows
this is the default for apache). This connector
was announces as beta several month ago, and I'm
not aware that this state has changed.

 coyote
  - Here you have two different components:
- CoyoteConnector is just a HTTP 1.1 Connector
  to use tomcat stand alone
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
- Jk 2 Connector is a new Connector that implements
  the java side of the mod_jk/mod_jk2 connectors
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html

 For an overview see:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

 Ralph Einfeldt
 Uptime Internet Solution Center GmbH
 Hamburg, Germany
 Hosting, Content Management, Java Consulting
 http://www.uptime-isc.de

  -Ursprüngliche Nachricht-
  Von: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 25. September 2002 01:59
  An: [EMAIL PROTECTED]
  Betreff: Copious Connectors Conundrum
 
  Hi!  I'm bewildered by the array of connector options.  I'm trying to
  hook up a cluster of Tomcat 4.0.4 instances (running in JBoss) behind
  Apache 1.3, all running on Linux.  I'm looking for a stable,
  production-quality option.
 
  mod_jserv (this is deprecated, right?)
  mod_jk
  mod_jk2
  mod_webapp
  mod_proxy (this is a simple proxy that doesn't offer
  clustering, right?)
  coyote (this is only for tomcat 4.1, right?)
 

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


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




RE: webapp shutdown

2002-09-25 Thread Shapira, Yoav

Hi,
Create a listener that implements javax.servlet.ServletContextListener.
Its contextInitialized() and contextDestroyed() methods will be called,
once each, on server startup and shutdown respectively.

This is better than a startup/shutdown servlet because the container is
free to destroy and reload that servlet if it needs to.  Accordingly,
the init() and destroy() methods of that servlet can be called more than
once.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 4:49 AM
To: 'Tomcat Users List'
Subject: RE: webapp shutdown

The servlet2.3 specification introduces the HttpServletContext listener
class.
When tomcat is shutdown, I think that the contextDestroyed() method of
this
class
will be called.

Sandra

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 10:41
To: 'Tomcat Users List'
Subject: RE: webapp shutdown


You could have a servlet that is called StartUp_ShutDown use
load-on-startup1/load-on-startup to start it and everything that
needs
to be done on start up put in the init() method, and then when tomcat
is
shutdown it will call the destroy() method.

One suggestion, probably others.

Nicholas Orr

-Original Message-
From: RP C987342 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 25 September 2002 6:37 PM
To: [EMAIL PROTECTED]
Subject: webapp shutdown



My webapp needs to know when Tomcat shuts down in order
to do some cleanup. How can I do this?

For startup, I am using the following tag in my web.xml
load-on-startup1/load-on-startup
Is this the correct method?

Or is there a way to register startup/shutdown classes
with Tomcat?

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


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


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:  ++61 7 3833 8000
Support Centre e-mail: [EMAIL PROTECTED]
Support Centre phone:  Australia 1800500646
   International ++61 7 38338042
**


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

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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


Starting TOMCAT without opening new DOS promt

2002-09-25 Thread RAJESH KANNAN

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt. 
How should we do this?

Thanks in anticipation.

With Regards
K.RajeshKannan



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


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




simplest Servlet-jdbc not working

2002-09-25 Thread hari hari

hi,

i having simplest of Servlet program (DBServlet.java) which is trying to 
connecting to my ORCL DB.
my Application and DB Server are sit on different machines. I having my JDBC 
Drivers (in ZIP format) on my App Server installed with CLASSPATH.

when I trying to run i getting below errors: police helping me
# java DBServlet
Exception in thread main java.lang.NoSuchMethodError: main
#

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

public class DBServlet extends HttpServlet {

private Connection con;
private PrintWriter out;
private String url = jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;


public void init(ServletConfig conf)
throws ServletException {
super.init(conf);
try{

   //Class.forName(oracle.jdbc.OracleDriver);
   //con =DriverManager.getConnection(url, scott, tiger);
}catch(Exception e) {
System.err.println(e);
}
}

public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType(text/html);
try {
out = res.getWriter();
out.println(html);
out.println(head);
out.println(title Sample JDBC Servlet Demo + /title);
out.println(/head);
out.println(body);

Class.forName(oracle.jdbc.OracleDriver);
con =DriverManager.getConnection(url, scott, tiger);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(select * from emp);
out.println(UL);
while(rs.next()) {
out.println(LI +  rs.getString(EName));
}
out.println(/UL);
rs.close();
stmt.close();
} catch(Exception e) { System.err.println(e);}
  out.println(/body);
  out.println(/html);
  out.close();
}

--
HARI


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


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




something changed between 3.3 4.1

2002-09-25 Thread Grégory Luguet

Hello all,

I have been using Tomcat 3.3.1 (installed from a rpm but I don't want to use
it any more) for my J2EE apps, but want to update it for the 4.1.10 version
now.

I downloaded the tgz file from tomcat ftp site, but at launching of my EJB
Server, I get a ClassNotFoundException :
org.apache.tomcat.util.compat.Action
Seems like this file is nowhere to be seen now.

Is there another package I should take? which one?
I looked after it in tomcat's site , but did not find.

Any idea?

Thank you in advance,
Grégory


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




[OT] no activity this morning

2002-09-25 Thread Tim Funk

I apologize for writing this. Please do not respond. I have gotten no 
jakarta related mail all morning and am checking if it is broken with 
respect to my mail subsystem.


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




Apache 2 with Tomcat 4.* on Solaris 8

2002-09-25 Thread Hauck, Joe

Hello all,

Is anyone using Apache2 with Tomcat 4 on Solaris 8?  If so, what
connector are you using (mod_jk, mod_jk2, mod_webapp)?

I have tried to build both mod_jk and mod_jk2 from source with no luck.

Any help would be greatly appreciated.

Joe.

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




Re: OT: Help wanted

2002-09-25 Thread Eugene Gluzberg

I would use tomcat over weblogic anytime. Just out of curiosity, what 
hosting provider do you use to host your tomcat?

Eugene

Bill Blackmon wrote:
 I've hired a host for a Tomcat/Struts/MySQL site that I've developed under
 Win2000, my common
 dev. environment. I'm a Java /DB application developer and this is the first
 app I've developed without
 having a sys admin or DBA etc, so I'm new to these aspects. I have no Linux
 or Unix experience,
 (though after this I plan to get as much as possible). The host has provided
 me with a complete Tomcat
 instance, no shared JVM etc. I've moved the database to their server
 successfully. I've moved all of my jar files
 to their servers. I was provided with standard server.xml and web.xml files
 that I've modified to register my app with Tomcat.
 Initially I was getting xml error messages but that was my fault and while I
 think I've fixed the problem, I'm not
 sure. The main problem at this time is that I cannot start and stop Tomcat
 successfully through Putty using SSH
 to connect to their server. It shuts down and when I restart then I get an
 'address space already in use' message in the logs.
 I've never seen this error before but I assume something is still opened and
 blocking but I have no idea how to go about
 fixing it.
 
 They did not answered my emails on this for 2 days until this evening in
 which they  assured me they working to straighten things out. So, at the
 risk of alienating them and pissing them off, I'm going to give them the
 benefit of the doubt and let the Tech Support guy work his magic and see if
 the problems can be fixed.   I need a good host with a good relationship
 since
 I'm sure this project will continue and others will come along.
 
 If it's not up by Friday evening, I'll have to have someone else look at it
 before I consider another host. This is the 3rd host
 I've tried out. They got quite a few good recommendations so I really want
 to make this work. My client is as frustrated as I am
 and with this terrible job market, I can' t afford to make ANY mistakes. I'm
 sure you know what I mean.
 
 What are your experiences and opinions regarding creating and deploying
 Tomcat web apps? This has taken me twice as long as I thought it would so
 I've been working for about $10 an hour. I got a lot of good code out of it
 and learned a lot but it
 has been a very painstaking and frustrating experience. Would you do it
 again or would you use JRun or Resin? I'd give anything to go back to
 WebLogic!
 
 I appreciate your time and offer and opinions.
 
 Thanks,
 Bill Blackmon
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, September 24, 2002 12:24 AM
 Subject: Re: OT: Help wanted
 
 
 
Bill Blackmon wrote:

Needed a Tomcat/MySql/Linux admin/developer in NYC to help with

 deploying a
 
weapp to host.
If you are local and can spare a few hours, I'm willing to pay up to $75

 hr.
 
to get a site up and running
on a hosts Linux machine.

I am in Brooklyn, F Line.
Never mind the money.
What can I do for you ?

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


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




Simplest Servlet-JDBC not working

2002-09-25 Thread hari hari

hi my many freinds,

i having simplest of Servlet program (DBServlet.java) which is trying to 
connecting to my ORCL DB.

my Application and DB Server are sit on different machines. I having my JDBC 
Drivers (in ZIP format) on my App Server installed with CLASSPATH.

when I trying to run i getting below errors: police helping me
# java DBServlet
Exception in thread main java.lang.NoSuchMethodError: main
#

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

public class DBServlet extends HttpServlet {

private Connection con;
private PrintWriter out;
private String url = jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;


public void init(ServletConfig conf)
throws ServletException {
super.init(conf);
try{

   //Class.forName(oracle.jdbc.OracleDriver);
   //con =DriverManager.getConnection(url, scott, tiger);
}catch(Exception e) {
System.err.println(e);
}
}

public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType(text/html);
try {
out = res.getWriter();
out.println(html);
out.println(head);
out.println(title Sample JDBC Servlet Demo + /title);
out.println(/head);
out.println(body);

Class.forName(oracle.jdbc.OracleDriver);
con =DriverManager.getConnection(url, scott, tiger);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(select * from emp);
out.println(UL);
while(rs.next()) {
out.println(LI +  rs.getString(EName));
}
out.println(/UL);
rs.close();
stmt.close();
} catch(Exception e) { System.err.println(e);}
  out.println(/body);
  out.println(/html);
  out.close();
}

--HARI



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


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




RE: Copious Connectors Conundrum

2002-09-25 Thread John Moore


Jeff,

Am using mod_jk w/ kernel 2.4.9-34smp, apache 1.3.26 and jboss 2.4.6/Tomcat
4.0.3 (combined continer).   Two servers both run apache and jboss/tomcat
with balancing between them.  It also has a h/w load balancer in front of
apache.  Live since March under low load (~20K/day) and very stable.
Another site uses apache/mod_jk/tomcat on solaris for two years and have had
some issues (posted issues last week on Ajp13 connections), could have been
self-inflicted.  It has about (~40K/day).

John



-Original Message-
From: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 4:59 PM
To: [EMAIL PROTECTED]
Subject: Copious Connectors Conundrum


Hi!  I'm bewildered by the array of connector options.  I'm trying to
hook up a cluster of Tomcat 4.0.4 instances (running in JBoss) behind
Apache 1.3, all running on Linux.  I'm looking for a stable,
production-quality option.

It would be really really helpful to me and probably everyone else
trying to cluster Tomcat if someone could offer a brief overview of the
history (why so many different projects?) and merits of each of these
ways of connecting Apache to Tomcat:

mod_jserv (this is deprecated, right?)
mod_jk
mod_jk2
mod_webapp
mod_proxy (this is a simple proxy that doesn't offer clustering, right?)
coyote (this is only for tomcat 4.1, right?)

I've searched the archives extensively, but there doesn't seem to be any
posts that explain why I should use one connector over another.

BTW, are there supposed to be binaries available in
http://jakarta.apache.org/builds/jakarta-tomcat-connectors?  There is a
nice hierarchy of directories, but no files :-(  Of course I can build
from source, but I'm lazy :)

Thanks in advance,
Jeff Schnitzer
[EMAIL PROTECTED]

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



simplest Servlet-JDBC not working

2002-09-25 Thread hari hari

hi,

i having simplest of Servlet program (DBServlet.java) which is trying to 
connecting to my ORCL DB.
my Application and DB Server are sit on different machines. I having my JDBC 
Drivers (in ZIP format) on my App Server installed with CLASSPATH.

when I trying to run i getting below errors: police helping me
# java DBServlet
Exception in thread main java.lang.NoSuchMethodError: main
#

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

public class DBServlet extends HttpServlet {

private Connection con;
private PrintWriter out;
private String url = jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;


public void init(ServletConfig conf)
   throws ServletException {
   super.init(conf);
   try{

  //Class.forName(oracle.jdbc.OracleDriver);
  //con =DriverManager.getConnection(url, scott, tiger);
   }catch(Exception e) {
   System.err.println(e);
   }
}

public void service(HttpServletRequest req, HttpServletResponse res)
   throws ServletException, IOException {
   res.setContentType(text/html);
   try {
   out = res.getWriter();
   out.println(html);
   out.println(head);
   out.println(title Sample JDBC Servlet Demo + /title);
   out.println(/head);
   out.println(body);

   Class.forName(oracle.jdbc.OracleDriver);
   con =DriverManager.getConnection(url, scott, tiger);
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery(select * from emp);
   out.println(UL);
   while(rs.next()) {
   out.println(LI +  rs.getString(EName));
   }
   out.println(/UL);
   rs.close();
   stmt.close();
   } catch(Exception e) { System.err.println(e);}
 out.println(/body);
 out.println(/html);
 out.close();
}
--
HARI




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


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




simplest Servlet-JDBC not working

2002-09-25 Thread hari hari

hi,

i having simplest of Servlet program (DBServlet.java) which is trying to 
connecting to my ORCL DB.
my Application and DB Server are sit on different machines. I having my JDBC 
Drivers (in ZIP format) on my App Server installed with CLASSPATH.

when I trying to run i getting below errors: police helping me
# java DBServlet
Exception in thread main java.lang.NoSuchMethodError: main
#

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

public class DBServlet extends HttpServlet {

private Connection con;
private PrintWriter out;
private String url = jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;


public void init(ServletConfig conf)
   throws ServletException {
   super.init(conf);
   try{

  //Class.forName(oracle.jdbc.OracleDriver);
  //con =DriverManager.getConnection(url, scott, tiger);
   }catch(Exception e) {
   System.err.println(e);
   }
}

public void service(HttpServletRequest req, HttpServletResponse res)
   throws ServletException, IOException {
   res.setContentType(text/html);
   try {
   out = res.getWriter();
   out.println(html);
   out.println(head);
   out.println(title Sample JDBC Servlet Demo + /title);
   out.println(/head);
   out.println(body);

   Class.forName(oracle.jdbc.OracleDriver);
   con =DriverManager.getConnection(url, scott, tiger);
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery(select * from emp);
   out.println(UL);
   while(rs.next()) {
   out.println(LI +  rs.getString(EName));
   }
   out.println(/UL);
   rs.close();
   stmt.close();
   } catch(Exception e) { System.err.println(e);}
 out.println(/body);
 out.println(/html);
 out.close();
}
--
HARI




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


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




Re: JSP source code exposure in Tomcat 4.x

2002-09-25 Thread Carrie Salazar


 3.2 Workaround:
 There are at least two ways to protect from this vulnerability.
 A. Tomcat in tandem with HTTP server front-end:
 If you are using front-end HTTP server you can filter all
 requests with the pattern */servlet/org.apache.catalina.servlets.DefaultServlet*
 b. If you are using mod_jk to connect tomcat to you front-end server 
 map to Tomcat only the URL's that are part from you application but 
 not all request.  See the usage of JkMount directive.

Anyone can post an example of how either A or B can be done?
Does it matter which method is used?
--
carrie s.

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




Problem shutting down tomcat

2002-09-25 Thread Rafael Angarita

I just installed tomcat3.3.1 compiling the sources (to increase the 
ThreadPool size to 2000) , but  there's a problem shutting down the java 
process (using tomcat.sh stop),  an exception is thrown  and  the 
process keeps alive (I have to force to finish with shutdown.sh -force 
or sending a SIGKILL)
The output from tomcat.sh

Using classpath: /usr/local/tomcat/bin/../lib/tomcat.jar
Using JAVA_HOME: /usr/java
Using TOMCAT_HOME: /usr/local/tomcat
Stopping Tomcat.
Stopping tomcat on null:-1 null
Guessed home=/usr/local/tomcat-3.3.1
Exception: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException


Any suggestion?

Thanks in advance,

-- 

Rafael Angarita
Administrador de Sistemas
Telcel Bellsouth
(+58212)(2009765)





Re: simplest Servlet-jdbc not working

2002-09-25 Thread Jacob Kjome

Hello hari,

Are you trying to run this on the command line or something?  That is
the only reason I can think of for it trying to run main.

Jake

Wednesday, September 25, 2002, 11:30:48 AM, you wrote:

hh hi,

hh i having simplest of Servlet program (DBServlet.java) which is trying to 
hh connecting to my ORCL DB.
hh my Application and DB Server are sit on different machines. I having my JDBC 
hh Drivers (in ZIP format) on my App Server installed with CLASSPATH.

hh when I trying to run i getting below errors: police helping me
hh # java DBServlet
hh Exception in thread main java.lang.NoSuchMethodError: main
hh #

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

hh public class DBServlet extends HttpServlet {

hh private Connection con;
hh private PrintWriter out;
hh private String url = jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;


hh public void init(ServletConfig conf)
hh throws ServletException {
hh super.init(conf);
hh try{

hh//Class.forName(oracle.jdbc.OracleDriver);
hh//con =DriverManager.getConnection(url, scott, tiger);
hh }catch(Exception e) {
hh System.err.println(e);
hh }
hh }

hh public void service(HttpServletRequest req, HttpServletResponse res)
hh throws ServletException, IOException {
hh res.setContentType(text/html);
hh try {
hh out = res.getWriter();
hh out.println(html);
hh out.println(head);
hh out.println(title Sample JDBC Servlet Demo + /title);
hh out.println(/head);
hh out.println(body);

hh Class.forName(oracle.jdbc.OracleDriver);
hh con =DriverManager.getConnection(url, scott, tiger);
hh Statement stmt = con.createStatement();
hh ResultSet rs = stmt.executeQuery(select * from emp);
hh out.println(UL);
hh while(rs.next()) {
hh out.println(LI +  rs.getString(EName));
hh }
hh out.println(/UL);
hh rs.close();
hh stmt.close();
hh } catch(Exception e) { System.err.println(e);}
hh   out.println(/body);
hh   out.println(/html);
hh   out.close();
hh }

hh --
hh HARI


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


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Carlos

Do you mean at boot-up?

-Original Message-
From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: Starting TOMCAT without opening new DOS promt


Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt. 
How should we do this?

Thanks in anticipation.

With Regards
K.RajeshKannan



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


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

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




RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Donie Kelly

Catalina run

You could also run it as a service if running under NT/2000 so that you
don't see the dos box at all. See docs.

Donie




-Original Message-
From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 15:31
To: [EMAIL PROTECTED]
Subject: Starting TOMCAT without opening new DOS promt

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt.
How should we do this?


With Regards
K.RajeshKannan



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


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

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




Re: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Jacob Kjome

Hello RAJESH,

Install Catalina Service:

%CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar 
-Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start 
org.apache.catalina.startup.BootstrapService -params start -stop 
org.apache.catalina.startup.BootstrapService -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

Uninstall Catalina Service:

%CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina


Copy the above strings to the command line. Just make sure to set all
the environment variables referenced before you run these commands...
and make sure you open a brand new command window after setting any
environment variables to make sure the new command window references
the most current configuration.

Jake


Wednesday, September 25, 2002, 9:31:47 AM, you wrote:

RK Hi all,

RK We would like to start the TOMCAT server without opening a new DOS prompt. 
RK How should we do this?

RK Thanks in anticipation.

RK With Regards
RK K.RajeshKannan



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


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Setting Tag Attribute Value

2002-09-25 Thread Sundar Chakravarthy

Hi,

I am on Tomcat 4.0.x , jdk1.4,win2K.

When I try to set a tag attribute value using
a jsp script varaible like below ,

inc= %= path %/jsp/dd/inc/ 

the value of path shows up as null . Why ?

Thanks




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




Re: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Vivek Chopra

I take it you are trying to start it from the command
line, and you are on Tomcat 4.x.

Try the TOMCAT_HOME_DIR/bin/catalina run command-
this will start it in the current DOS command shell.
In case you want tomcat server to run everytime you
start up your PC, you may want to install it as a (NT)
service. In which case, this document
(http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html)
would be useful

Hope this helps,

- Vivek


--- RAJESH KANNAN [EMAIL PROTECTED] wrote:
 Hi all,
 
 We would like to start the TOMCAT server without
 opening a new DOS prompt. 
 How should we do this?
 
 Thanks in anticipation.
 
 With Regards
 K.RajeshKannan
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Jim Urban

Instead of running startup.bat execute:  catalina.bat run

Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 9:32 AM
To: [EMAIL PROTECTED]
Subject: Starting TOMCAT without opening new DOS promt

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt.
How should we do this?

Thanks in anticipation.

With Regards
K.RajeshKannan



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


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


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




RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Turner, John


Run it as a service.  Check the docs and archives, this has been covered
many times.

John

 -Original Message-
 From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: Starting TOMCAT without opening new DOS promt
 
 
 Hi all,
 
 We would like to start the TOMCAT server without opening a 
 new DOS prompt. 
 How should we do this?
 
 Thanks in anticipation.
 
 With Regards
 K.RajeshKannan
 
 
 
 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




[OT] Sys-admin book pointers (was: RE: ? java.net.BindException: Address already in use)

2002-09-25 Thread Turner, John


There are all sorts of books out there.  I would recommend Essential System
Administration from O'Reilly (I think it is in the 3rd or 4th edition by
now, mine is pretty old).  It isn't specific to a particular OS.  Other than
that, I would say the Red Hat Linux Bible is pretty good (ISBN: 0764536303)
for Linux.  I'm sure there are many other good books out there...I learned
through trial and error many years ago, so haven't had much need for a
general sys-admin overview book.

The best thing to do, in my opinion, is knock together a cheap PC and put
Linux on it and learn by doing.  You shouldn't need to spend more than $200,
if that.  A 300-600MHz chip, 128MB RAM, 4-10GB disk, a basic video card, a
basic CD-ROM (preferably bootable) and a network card and you are good to
go.  Many companies are throwing away PCs with those specs, and they're
available online in auctions and such for $100 or less.  Add in CD-ROM media
for your OS of choice from CheapBytes (www.cheapbytes.com) for $3-$4 or
download it yourself and you are golden.  

John


 -Original Message-
 From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 10:25 PM
 To: Tomcat Users List
 Subject: Re: ? java.net.BindException: Address already in use
 
 
 Thanks - I really appreciate it. Can you recommend a good 
 Linux book to get
 me started on this?
 I'm obviously out of my element here and feel really stupid.
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, September 24, 2002 12:37 PM
 Subject: RE: ? java.net.BindException: Address already in use
 
 
 
 From a command prompt:
 
 man ps (manual pages for the ps command, ps = process status)
 man netstat (manual pages for the netstat command, netstat = 
 network status,
 including ports)
 
 Also:
 
 ps -ef --cols=300 |grep java |more (tells you all tomcat 
 processes running)
 
 If tomcat is shutdown, but java processes are still present 
 in the output of
 the ps command, then Tomcat is hung.  At that point, you'll 
 need to use the
 kill command to kill Tomcat, but you'll need to be root to do 
 it (man kill).
 You would use the output of the ps command to get the process 
 ID (PID) of
 the java process where the parent process ID (PPID) is 1.  If 
 there are
 other developers/tomcat processes on this box, you will have 
 to be very
 careful not to trash whatever it is they are doing.
 
 John
 
  -Original Message-
  From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 24, 2002 12:23 PM
  To: Tomcat Users List
  Subject: Re: ? java.net.BindException: Address already in use
 
 
  The host machine is Linux, don't know which flavor. I have no
  idea how how
  to:
  
  Look if there are tomcat processes runing.
  Look at the state of the ports.
  Look who owns the ports.
  
  from the SSH connection I have.
 
  Thanks,
  Bill
 
 
 
  - Original Message -
  From: Ralph Einfeldt [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, September 24, 2002 12:04 PM
  Subject: AW: ? java.net.BindException: Address already in use
 
 
  There are this options:
  - at least one thread isn't dying so there is still
a tomcat instance running
  - the time between the end of tomcat and
the restart was to short. So that the soccets have
not closed completly.
  - you have a port conflict.
 
  Look if there are tomcat processes runing.
  Look at the state of the ports.
  Look who owns the ports.
 
  If you wan't more help on how to achieve this
  you have to supply your operating system as the
  tools that answer this question are very different.
 
  (For linux and other unik like systems is ps, netstat, lsof)
 
   -Ursprüngliche Nachricht-
   Von: Bill Blackmon [mailto:[EMAIL PROTECTED]]
   Gesendet: Dienstag, 24. September 2002 17:44
   An: TOMCAT USERS GROUP
   Betreff: ? java.net.BindException: Address already in use
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Tomcat 4.0 - SSL DOES NOT WORK!

2002-09-25 Thread Turner, John


Or post a HOWTO for the archives.

John


 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 1:37 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.0 - SSL DOES NOT WORK!
 
 
 Now, to pay back everyone for all that help, you should 
 answer the next 
 person that asks with all your coding. RIght?
 
 At 04:00 PM 9/24/2002 -0700, you wrote:
 Alright,
 
 For anyone out there considering using SSL with Tomcat4 
 Standalone, I just
 wanted to append this thread to let everyone know that ... 
 it DOES work
 afterall!  :)
 
 Thanks to Ian and Martin for convincing me it is possible.
 
 It turns out that our configuration was right all along and 
 my SysAdmin just
 needed to restart the server after opening up the port for 
 SSL.  I dunno
 something with the firewall and opening up that port.  And 
 now it works just
 fine.
 
 So yes, Tomcat SSL works just fine. :)
 
 Cheers.
 Neal
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Copious Connectors Conundrum

2002-09-25 Thread Turner, John


Ralph already posted an excellent overview.  I would add that in my opinion,
mod_jk is the most suitable for production.

Also, regarding your questions about binaries, the answer is no.  You'll
have to build from source, or check my Connector Collection at
http://www.johnturner.com/howto

John

 -Original Message-
 From: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 7:59 PM
 To: [EMAIL PROTECTED]
 Subject: Copious Connectors Conundrum
 
 
 Hi!  I'm bewildered by the array of connector options.  I'm trying to
 hook up a cluster of Tomcat 4.0.4 instances (running in JBoss) behind
 Apache 1.3, all running on Linux.  I'm looking for a stable,
 production-quality option.
 
 It would be really really helpful to me and probably everyone else
 trying to cluster Tomcat if someone could offer a brief 
 overview of the
 history (why so many different projects?) and merits of each of these
 ways of connecting Apache to Tomcat:
 
 mod_jserv (this is deprecated, right?)
 mod_jk
 mod_jk2
 mod_webapp
 mod_proxy (this is a simple proxy that doesn't offer 
 clustering, right?)
 coyote (this is only for tomcat 4.1, right?)
 
 I've searched the archives extensively, but there doesn't 
 seem to be any
 posts that explain why I should use one connector over another.
 
 BTW, are there supposed to be binaries available in
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors?  
 There is a
 nice hierarchy of directories, but no files :-(  Of course I can build
 from source, but I'm lazy :)
 
 Thanks in advance,
 Jeff Schnitzer
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: AW: Copious Connectors Conundrum

2002-09-25 Thread Turner, John


JK2 requires mod_jk2.so. I think the protocol designation is AJP14 instead
of AJP13, though I could be wrong.

John


 -Original Message-
 From: Marc [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 9:51 AM
 To: Tomcat Users List
 Subject: Re: AW: Copious Connectors Conundrum
 
 
 Hi!
 Can I use Coyote Jk 2 connector, with mod_jk.so, for 
 connecting apache with
 tomcat? (using ajp13 protocol), or I must use an Ajp13Connector?
 
 Thanxs!!
 
 Marc
 

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




RE: Tomcat Security Problem Help (using mod_jk)

2002-09-25 Thread Rossen Raykov

Do not mount /servlet/* but only the servlets that you application is really
using.

Regards,
Rossen Raykov

 -Original Message-
 From: Ramilio D [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 12:30 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat Security Problem Help (using mod_jk)
 
 
 Hi Everyone,
 
 I read in the buqraq posting that I could fix the source code 
 exposure 
 vulnerablilty in tomcat by modifying the JkMount directive. I 
 took a quick 
 look at some documentation but I couldn't figure out how to 
 allow apache 
 serve servlets yet disallow those containing the 
 org.apache.catalina.servlets.DefaultServlet string.
 
 Any help would be greatly appreciated
 
 Cheers,
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Apache 2 with Tomcat 4.* on Solaris 8

2002-09-25 Thread Turner, John


Others have built the connectors on Solaris 8.

Do you have a GNU build environment setup?  You'll need gcc, libtool,
automake, make, and autoconf if you want to do it the old school way using
./configure.  All tools are available at http://www.sunfreeware.com

If you want to post more specific information about your build problems
(error messages, etc), you will probably get a response from someone who has
the answer.

John

 -Original Message-
 From: Hauck, Joe [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 12:57 PM
 To: [EMAIL PROTECTED]
 Subject: Apache 2 with Tomcat 4.* on Solaris 8
 
 
 Hello all,
 
 Is anyone using Apache2 with Tomcat 4 on Solaris 8?  If so, what
 connector are you using (mod_jk, mod_jk2, mod_webapp)?
 
 I have tried to build both mod_jk and mod_jk2 from source 
 with no luck.
 
 Any help would be greatly appreciated.
 
 Joe.
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Anybody using Jtds for connection handling..??

2002-09-25 Thread sathya

hi there anybody here using jtds for connection handling with ms sql
server,,
I would like to know how to give the properties file for it.
Kindly let me know..
---Sathya



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




Re: Simplest Servlet-JDBC not working

2002-09-25 Thread Vivek Chopra

Hari,

You don't typically try to execute a servlet
directly.. it is invoked by the servlet engine when
you browse over to the appropriate URL. The error you
see is due to the fact that the JRE is looking for a
main() method. Since this is a servlet, it doesnt have
one!

Please read the Tomcat app developer's guide at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
on how to deploy a servlet in Tomcat.

- Vivek

--- hari hari [EMAIL PROTECTED] wrote:
 hi my many freinds,
 
 i having simplest of Servlet program
 (DBServlet.java) which is trying to 
 connecting to my ORCL DB.
 
 my Application and DB Server are sit on different
 machines. I having my JDBC 
 Drivers (in ZIP format) on my App Server installed
 with CLASSPATH.
 
 when I trying to run i getting below errors: police
 helping me
 # java DBServlet
 Exception in thread main
 java.lang.NoSuchMethodError: main
 #
 
 import java.io.*;
 import java.sql.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 public class DBServlet extends HttpServlet {
 
 private Connection con;
 private PrintWriter out;
 private String url =
 jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;
 
 
 public void init(ServletConfig conf)
 throws ServletException {
 super.init(conf);
 try{
 
//Class.forName(oracle.jdbc.OracleDriver);
//con =DriverManager.getConnection(url,
 scott, tiger);
 }catch(Exception e) {
 System.err.println(e);
 }
 }
 
 public void service(HttpServletRequest req,
 HttpServletResponse res)
 throws ServletException, IOException {
 res.setContentType(text/html);
 try {
 out = res.getWriter();
 out.println(html);
 out.println(head);
 out.println(title Sample JDBC Servlet
 Demo + /title);
 out.println(/head);
 out.println(body);
 
 Class.forName(oracle.jdbc.OracleDriver);
 con =DriverManager.getConnection(url,
 scott, tiger);
 Statement stmt = con.createStatement();
 ResultSet rs = stmt.executeQuery(select *
 from emp);
 out.println(UL);
 while(rs.next()) {
 out.println(LI + 
 rs.getString(EName));
 }
 out.println(/UL);
 rs.close();
 stmt.close();
 } catch(Exception e) { System.err.println(e);   
 }
   out.println(/body);
   out.println(/html);
   out.close();
 }
 
 --HARI
 
 
 

_
 MSN Photos is the easiest way to share and print
 your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: Apache 2 with Tomcat 4.* on Solaris 8

2002-09-25 Thread Jacob Heric

We use Apache 2.0.39, Tomcat 4.0.3. on Solaris 8 w/ 
mod_webapp.  

-Original Message-
From: Hauck, Joe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: Apache 2 with Tomcat 4.* on Solaris 8


Hello all,

Is anyone using Apache2 with Tomcat 4 on Solaris 8?  If so, what
connector are you using (mod_jk, mod_jk2, mod_webapp)?

I have tried to build both mod_jk and mod_jk2 from source with no luck.

Any help would be greatly appreciated.

Joe.

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

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




Re: DBCP pool always increasing

2002-09-25 Thread Glenn Nielsen

Your config isn't configured to use DBCP.  It is missing the following:

 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter

That is why none of the DBCP features were working.

Glenn

Amitabh Dubey wrote:
 This is what my final working server.xml file looks like
 
 Resource name=SQLServerDS scope=Shareable type=javax.sql.DataSource/
 ResourceParams name=SQLServerDS
   parameter
 nameurl/name
 
 valuejdbc:microsoft:sqlserver://dnas07:1113;DatabaseName=NorthWind/value
   /parameter
   parameter
 namevalidationQuery/name
 value/value
   /parameter
   parameter
 namemaxIdle/name
 value3/value
   /parameter
   parameter
 namemaxActive/name
 value5/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
   /parameter
   parameter
 namemaxWait/name
 value6000/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameuser/name
 valuesa/value
   /parameter
   parameter
 nameremoveAbandonedTimeout/name
 value5/value
   /parameter
   parameter
 namepassword/name
 valuesa/value
   /parameter
 /ResourceParams
 
 And this was my test program
 
 
 try {
 
   // assumes jndi.properties has been configured appropriately
   Context initCtx = new InitialContext();
   Context envCtx = (Context) initCtx.lookup(java:comp/env);
 
   // Get a Connection
   DataSource ds = (DataSource) envCtx.lookup(jndiName);
   Connection con = null;
   Statement st = null;
 
   ResultSet res = null;
 
   ResultSetMetaData meta = null;
 
   try
   {
 
   con = ds.getConnection();
 
   st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
  ResultSet.CONCUR_READ_ONLY);
 
   res = st.executeQuery(sql);
 
   meta = res.getMetaData();
   int cols = meta.getColumnCount();
   // since this is a scrollable ResultSet,
   // do something a little strange...
   while (!res.isLast()) {
   res.next();
   for (int i=1; i=cols; i++) {
   Object val = res.getObject(i);
   System.out.print(\t + meta.getColumnLabel(i) + : );
   System.out.print(val == null ?   : val.toString());
   }
   System.out.print(\n);
   }
   }
   catch (SQLException sqle)
   {
   sqle.printStackTrace();
   }
   finally
   {
   // PoolMan closes ResultSets and Statements whenever
   // Connections are closed, no need for it here
 
   if (null != res)
   {
   try
   {
   res.close();
   }
   catch(SQLException e)
   {
   }
   }
 
   if (null != st)
   {
   try
   {
   st.close();
   }
   catch(SQLException e)
   {
   }
   }
 
   if (con != null)
   {
   try
   {
   con.close();
   }
   catch (SQLException sqle2)
   {
   }
   }
   }
 
   } catch (javax.naming.NameNotFoundException nne) {
   System.out.println(ERROR: No DataSource is registered under the name 
 +
  jndiName + , please check your poolman.props  +
   and deployment tool.\n);
   return nne.getMessage();
   } catch (javax.naming.NamingException nex) {
   System.out.println(ERROR: JNDI Exception Occurred. Is your JNDI
 resource available?\n);
   nex.printStackTrace();
   return nex.getMessage();
   } catch (java.security.AccessControlException ae) {

Re: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Mark O'Driscoll

Use Linux! (Sorry, couldn't resist that one)

You can run it as a service? (net start ...)

- Original Message -
From: RAJESH KANNAN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 3:31 PM
Subject: Starting TOMCAT without opening new DOS promt


 Hi all,

 We would like to start the TOMCAT server without opening a new DOS prompt.
 How should we do this?

 Thanks in anticipation.

 With Regards
 K.RajeshKannan



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


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





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




RE: Tomcat+IIS+https redirect

2002-09-25 Thread Ignacio J. Ortega

 De: Hoffman, Matt [mailto:[EMAIL PROTECTED]]
 Enviado el: 25 de septiembre de 2002 5:18

 found it. We recently implemented an SSL accelerator which acts as a
 frontend, transfering de-encrypted SSL communcation to IIS, which then
 transfers it to Tomcat. The only problem is when we use a 

It's a issue with Tomcat ( any version if i recall well ), tomcat does a
redirection to the welcome pages, and your acelerator is sending the req
uest to tc and iis withoput the correct scheme, when tomcat trie to do a
redirect for the welcome page i does not have any way to get to know
that the redirection   should be with https instead of http.. 

a Solution could be to use a static page for welcome file served
directly from IIs not tomcat, IIS doesnot redirect for welcome files,
does the equivalent to a jsp:forward..

In anycase with your setup, you couldnt do any redirect from tomcat nor
from IIS.. 

Saludos ,
Ignacio J. Ortega



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




RE: Special consideration of invoking native methods in Tomcat?

2002-09-25 Thread Furlan Bojan ITWET2

There is no error message in logs. Error is handled nicely within the
function itself, but it occurs only when executed within Tomcat.
The native function I'm calling is a C function defined to access the legacy
system by its provider. The system is not under maintenance and the
internals of the function is unknown to me. It returns error trying to
execute the command on the legacy server. The error code returned is an ugly
one - it is used to collect errors that should not happen. Since the same
java class calling the same function execute correctly and is used in many
of our C applications, I assume there is something special in the way it is
executed within Tomcat. I know the execution of this function depends on
environment variables and user executing it. I have checked this and this
requirements are met.
When executed within Tomcat, it takes unusually long time to execute this
function and the rest of processes are blocked during this execution. To me,
it looks like the request for service is sent to a server, but incomplete,
which blocks the server. The timeout is then exceeded and function returns
the error which I then handle within my java class.
Let me stress again that the same class gets executed without any problem
outside Tomcat.

Bojan


-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 2:06 PM
To: 'Tomcat Users List'
Subject: RE: Special consideration of invoking native methods in Tomcat?


you're going to have to provide the error message. Look in the tomcat logs
and post the stack trace.

Charlie

 -Original Message-
 From: Furlan Bojan ITWET2 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 4:13 AM
 To: 'Tomcat Users List'
 Subject: RE: Special consideration of invoking native methods 
 in Tomcat?
 
 
 I may be wrong, but I believe I have set the socket for 
 Tomcat access to
 8080 since another web server is running on the same server. 
 The sockets
 used by the legacy system I'm trying to access are completely 
 different.
 
 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 10:06 AM
 To: 'Tomcat Users List'
 Subject: RE: Special consideration of invoking native methods 
 in Tomcat?
 
 
 A possibility is Tomcat is already using the socket.
 
  -Original Message-
  From: Furlan Bojan ITWET2 [mailto:[EMAIL PROTECTED]]
  Sent: 24 September 2002 09:01
  To: '[EMAIL PROTECTED]'
  Subject: Special consideration of invoking native methods in Tomcat?
  
  
  I am trying to access existing legacy system in our company 
  over JSP running
  on Tomcat. Using JNI, I am now able to call one of the C functions
  (something like connect to a server and select database) from 
  existing API.
  The call succeeds, but it results in error during execution of that
  function. The same call in a standalone java application is always
  successful.
  As far as I know, API communicates to server over socket 
  mechanism. What
  would be a difference between calling such a native function 
  in standalone
  Java application and using the same in JSP? I'm new in Java 
  environment,
  Tomcat and JSP, so I would appreciate any hint.
  
  Regards
  Bojan Furlan 
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 
 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not 
 an intended
 recipient of this email you must not copy, distribute or take any 
 further action in reliance on it and you should delete it and 
 notify the
 sender immediately. Email is not a secure method of communication and 
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s). Please 
 examine this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura 
 International plc is
 regulated by the Financial Services Authority and is a member of the
 London Stock Exchange.
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: Not enough space Error: on tomcat 4.0.4

2002-09-25 Thread BTTL

I am also facing the same problem on a Solaris 2.7. I have been using
the
tomcat 4.0.3 integrated with Apache through warp connector. I have
allocated
384 max memory to tomcat out of 1GB total memory.

In my case all the JSP pages are compiled since the site is in
production
and all the pages has been accessed once and I believe the Tomcat will
not
compile the pages every time they are accessed.

I have observed the tomcat memory usage. Tomcat allocates 32 MB of RAM
when
starts and this keeps on increasing till reaches 384 max memory and
consequently tomcat crashes.

Raj Saini




Re: Oracle JDBC Drivers on Tomcat

2002-09-25 Thread BTTL

Jar version. And driver jar must be copied in the TOMCAT_HOME/common/lib so
that it can be shared between your web applications and tomcat internal
classes.

Raj





RE: Setting Tag Attribute Value

2002-09-25 Thread Turner, John


You'll need to post more information than that!

Where is path set?  How is it set?  Why would it be anything but NULL?

John


 -Original Message-
 From: Sundar Chakravarthy [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 1:23 PM
 To: Tomcat Users List
 Subject: Setting Tag Attribute Value
 
 
 Hi,
 
 I am on Tomcat 4.0.x , jdk1.4,win2K.
 
 When I try to set a tag attribute value using
 a jsp script varaible like below ,
 
 inc= %= path %/jsp/dd/inc/ 
 
 the value of path shows up as null . Why ?
 
 Thanks
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




How to change the user ID during session?

2002-09-25 Thread Frank Lawlor

Is there any way to change the logged in user during a session?
I tried setting j_username in the session to the new user name
but  then Tomcat throws a security error.

Is there some legal way to change the user during the session?

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.





RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread John Trollinger

tomcat install dir/bin/catalina run

 -Original Message-
 From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 25, 2002 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Starting TOMCAT without opening new DOS promt
 
 
 Hi all,
 
 We would like to start the TOMCAT server without opening a 
 new DOS prompt. 
 How should we do this?
 
 
 With Regards
 K.RajeshKannan
 
 
 
 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: [SECURITY] Apache Tomcat 4.x JSP source disclosurevulnerability

2002-09-25 Thread Rossen Raykov

The servlets are not vulnerable since their code is under WEB-INF and is
successfully protected from downloads.
All other interpreted application stuff, outside of WEB-INF, like JSP are
vulnerable since they can be downloaded as regular files but not be
processed by the corresponding engine.
That's why I believe Velocity should suffer from this bug in the same way
JSP is.
I didn't test Velocity but there is not any reason that it will be resistant
to this exposure.

Regards,
Rossen Raykov

 -Original Message-
 From: Kent Perrier [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 6:59 PM
 To: Tomcat Users List
 Subject: Re: [SECURITY] Apache Tomcat 4.x JSP source
 disclosurevulnerability
 
 
 On Tue, Sep 24, 2002 at 06:52:10PM -0400, Tim Moore wrote:
  OK, thanks. (The BugTraq search engine wasn't working when I checked
  there.)
  
  So it sounds pretty much like what I thought it was. I still don't
  understand why Velocity wouldn't be vulnerable to this exploit.
 
 It sounds to me like it should be.  From the bugtraq post, 
 all servlets
 and JSPs that run in a Tomcat instance are vulnerable.  Since Velocity
 runs under Tomcat, logically, it is vulnerable.  All other claims are
 illogical.
 
 Kent
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Tomcat 4.0 - SSL DOES NOT WORK!

2002-09-25 Thread neal

Sure,

Anyone who want to see my config file is welcome to. Just drop me an email.
:)

Neal

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:37 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.0 - SSL DOES NOT WORK!


Now, to pay back everyone for all that help, you should answer the next
person that asks with all your coding. RIght?

At 04:00 PM 9/24/2002 -0700, you wrote:
Alright,

For anyone out there considering using SSL with Tomcat4 Standalone, I just
wanted to append this thread to let everyone know that ... it DOES work
afterall!  :)

Thanks to Ian and Martin for convincing me it is possible.

It turns out that our configuration was right all along and my SysAdmin
just
needed to restart the server after opening up the port for SSL.  I dunno
something with the firewall and opening up that port.  And now it works
just
fine.

So yes, Tomcat SSL works just fine. :)

Cheers.
Neal


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



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


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




Re: Apache 2 with Tomcat 4.* on Solaris 8

2002-09-25 Thread Hendryx-Parker, Calvin

I am currently using it on Solaris 9 and it wasn't easy to get things 
working, but I have managed to get all 3 to work and I have decided to go 
with mod_jk for now since it seems to handle the SSL info the best.  I 
couldn't get the other 2 to pass the cert chain from apache2 to tomcat.

Here are a few hints on getting it compiled:

You have to make sure you have the following packages installed:
libtool
autoconf
automake
m4

Then you have to make sure you use gcc to compile and set these env 
variables:
CC=gcc
CFLAGS=-DBSD_COMP

I just went into the jk/native directory and ran the buildconf.sh script 
then use run configure like this:

./configure --with-apxs=[path to your apxs binary]

then make and you should have the mod_jk.so file in the apache-2.0 
directory when you are finished.

Calvin

--On Wednesday, September 25, 2002 12:57:08 PM -0400 Hauck, Joe 
[EMAIL PROTECTED] wrote:

 Hello all,

 Is anyone using Apache2 with Tomcat 4 on Solaris 8?  If so, what
 connector are you using (mod_jk, mod_jk2, mod_webapp)?

 I have tried to build both mod_jk and mod_jk2 from source with no luck.




calvin hendryx-parker  www.epylon.com
enterprise infomediary, engineering

415.593.2738 o | 415.593.2738 f

Epylon Corporation
645 Harrison Street, Suite 200
San Francisco, CA 94107

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




tomcat 4.1.12 and log4j

2002-09-25 Thread Dan Lipofsky

When doing development I usually have log4j appenders on
the root category at the DEBUG level.  This hasn't been a
problem with earlier versions of tomcat but under 4.1.12
I get megabytes of debug messages generated by tomcat.
A small sample is below.  Does anyone know what is up
or how to control it? (setting my level to INFO or putting
the appenders not on root works of course but that is not
what I want).

$ tail -f catalina.out
1 [main] INFO modeler.Registry  - Loading registry information
8 [main] INFO modeler.Registry  - Creating new Registry instance
1138 [main] INFO modeler.Registry  - Creating MBeanServer
2678 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1 on
port 8010
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
Wed 09:53:21 DEBUG [Digester:1604] addRuleSet() with no namespace URI
Wed 09:53:21 DEBUG [Digester:1604] addRuleSet() with no namespace URI
Wed 09:53:21 DEBUG [sax:1138]
setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@
4f459c)
Wed 09:53:21 DEBUG [sax:1172] startDocument()
Wed 09:53:21 DEBUG [sax:1201] startElement(,,Context)
Wed 09:53:21 DEBUG [Digester:1208]   Pushing body text ''
Wed 09:53:21 DEBUG [Digester:1224]   New match='Context'
Wed 09:53:21 DEBUG [Digester:1235]   Fire begin() for
ObjectCreateRule[className=org.apache.catalina.core.StandardContext,
attributeName=className]
Wed 09:53:21 DEBUG [Digester:247] [ObjectCreateRule]{Context}New
org.apache.catalina.core.StandardContext
Wed 09:53:21 DEBUG [Digester:1235]   Fire begin() for SetPropertiesRule[]
Wed 09:53:21 DEBUG [Digester:244] [SetPropertiesRule]{Context} Setting
property 'path' to '/manager'
Wed 09:53:21 DEBUG [Digester:244] [SetPropertiesRule]{Context} Setting
property 'docBase' to '../server/webapps/manager'
Wed 09:53:21 DEBUG [Digester:244] [SetPropertiesRule]{Context} Setting
property 'debug' to '0'
Wed 09:53:21 DEBUG [Digester:244] [SetPropertiesRule]{Context} Setting
property 'privileged' to 'true'
Wed 09:53:21 DEBUG [Digester:256] [SetPropertiesRule]{Context} Set
org.apache.catalina.core.StandardContext properties
Wed 09:53:21 DEBUG [BeanUtils:710] BeanUtils.populate(StandardContext[null],
{docBase=../server/webapps/manager, debug=0, privileged=true,
path=/manager})



Thanks,
Dan



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




Re: So what database and script language do you use?

2002-09-25 Thread Felipe Schnack

  I'm using postgresql and I'm happy with it. Feature-wise, how firebird
stands? Got FKs, SPs, subqueries, all of it? It's fast? I'm pretty
curious about it :-)

On Tue, 2002-09-24 at 19:35, Rick Fincher wrote:
 Hi Keith,
 
 I've been using Firebird and the JayBird JCA-JDBC driver and JSP.  Firebird
 is open source and a complete SQL 92 DB.  It was spawned from Borland's
 Interbase 6.0 when it went open source, so it's commercial quality.
 Interbase has been around for nearly 20 years as a commercial product, so it
 is rock solid.
 
 Firebird is on SourceForge.  The web site for the outfit that does most of
 the Firebird development is: www.ibphoenix.com.  They have a list of Fortune
 500 companies using it on the web site and a list of sites you can browse to
 see it powering web sites.
 
 Support contracts are available if that's important to you or your
 management.
 
 There are a number of commercial sites listed offering hosting if you want
 somebody else to run your web apps and Firebird database for you.
 
 It's very stable.  I've been running it for a couple of years on a Sun
 server without a crash or lockup.  I've never had the database become
 corrupted even  when some bonehead forgot to shut down the database before
 killing the machine.
 
 Firebird comes with a nice watchdog process that monitors the DB.  If the DB
 process dies for any reason other than a normal shutdown the watchdog
 restarts it.  I've intentionally killed the DB process multiple times to
 simulate a failure and the watchdog always restarted it with no loss of
 data.
 
 A Tomcat session doesn't like that very much because it links to the
 database for user authorization and Tomcat doesn't recover when the DB
 restarts.  I've been meaning to write a script that monitors the Firebird
 process ID for a change, then restarts Tomcat but I've never bothered
 because Firebird never dies.  Mind you, this is on a Solaris server so you
 may not be so lucky on other OS's.
 
 You can also shadow the database, i.e. run two copies of the database file
 simultaneously on two different disk drives.  If one drive dies, the DB
 continues to run on the remaining drive.
 
 It supports stored procedures, blobs, clobs, auto-incrementing keys,
 security roles, etc., etc.
 
 Borland subsequently decided to make Interbase 6.5 un-open source, so
 Firebird and Interbase have begun to diverge, but most tools still work for
 both.  There are 5 or 6 decent database creation/administration apps
 available.  Most are freebies, a few commercial.
 
 You can run the backup/restore utilities in these programs to migrate the DB
 files between OS's.  For example, you can run a backup utility on Windows to
 read a DB file over the net on a Sun Solaris server, then restore to a
 Windows server and subsequently run the database file on a Windows system.
 
 The JCA-JDBC driver (JayBird) features internal connection pooling, which is
 nice for standalone apps, or if you can't figure out DBCP :-).
 
 It can be used with JBoss or other J2EE containers if you use the JCA-JDBC
 driver.
 
 The DB is written in C++, so it's fast.  It's available precompiled for most
 platforms including: Linux, Windows, Solaris (sparc and X86), FreeBSD, Mac
 OS X, HP/UX 10 and 11, and now WinCE.
 
 Installation is a snap compared to Oracle.
 
 There are 64 bit versions for Solaris and Linux in case you nead REALLY big
 databases.
 
 I've used Firebird and the JCA-JDBC driver with DreamWeaver UltraDev to
 knock out quickie web apps with SQL database access in a few hours without
 writing a line of code.  The driver works with most tools that accept
 external JDBC drivers.
 
 There are active newsgroups to support the DB and the JCA-JDBC driver.  The
 developers monitor these so the info is very good.
 
 
 Rick
 
   -Original Message-
   From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, September 24, 2002 4:39 AM
   To: [EMAIL PROTECTED]
   Subject: So what database and script language do you use?
  
  
   Hi everyone...
  
I have been trying to use MySQL and JSP,Servlets to interact with
   my tomcat server.  So far I have had a lot of frustration and little
   luck.  Anyway, I was just wonder what the majority of ppl are using as a
   database and scripting language.  Your input is much appreciated!
  
   Keith
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




password storage on Tomcat 4.1.12

2002-09-25 Thread Kemp Randy-W18971

Does anyone know which file and directory the password is stored on Tomcat 4.1.12 for 
the admin server?

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




RE: DBCP pool always increasing

2002-09-25 Thread Amitabh Dubey

I read in the archive, that it was not necessary to supply the factory
parameter. Anyways, I tried it with the parameter also and it did not work.

Amitabh

-Original Message-
From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 5:46 AM
To: Tomcat Users List
Subject: Re: DBCP pool always increasing


Your config isn't configured to use DBCP.  It is missing the following:

 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter

That is why none of the DBCP features were working.

Glenn

Amitabh Dubey wrote:
 This is what my final working server.xml file looks like

 Resource name=SQLServerDS scope=Shareable
type=javax.sql.DataSource/
 ResourceParams name=SQLServerDS
   parameter
 nameurl/name


valuejdbc:microsoft:sqlserver://dnas07:1113;DatabaseName=NorthWind/value
   /parameter
   parameter
 namevalidationQuery/name
 value/value
   /parameter
   parameter
 namemaxIdle/name
 value3/value
   /parameter
   parameter
 namemaxActive/name
 value5/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
   /parameter
   parameter
 namemaxWait/name
 value6000/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameuser/name
 valuesa/value
   /parameter
   parameter
 nameremoveAbandonedTimeout/name
 value5/value
   /parameter
   parameter
 namepassword/name
 valuesa/value
   /parameter
 /ResourceParams

 And this was my test program


 try {

   // assumes jndi.properties has been configured appropriately
   Context initCtx = new InitialContext();
   Context envCtx = (Context) initCtx.lookup(java:comp/env);

   // Get a Connection
   DataSource ds = (DataSource) envCtx.lookup(jndiName);
   Connection con = null;
   Statement st = null;

   ResultSet res = null;

   ResultSetMetaData meta = null;

   try
   {

   con = ds.getConnection();

   st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
  ResultSet.CONCUR_READ_ONLY);

   res = st.executeQuery(sql);

   meta = res.getMetaData();
   int cols = meta.getColumnCount();
   // since this is a scrollable ResultSet,
   // do something a little strange...
   while (!res.isLast()) {
   res.next();
   for (int i=1; i=cols; i++) {
   Object val = res.getObject(i);
   System.out.print(\t + meta.getColumnLabel(i) + : );
   System.out.print(val == null ?   : val.toString());
   }
   System.out.print(\n);
   }
   }
   catch (SQLException sqle)
   {
   sqle.printStackTrace();
   }
   finally
   {
   // PoolMan closes ResultSets and Statements whenever
   // Connections are closed, no need for it here

   if (null != res)
   {
   try
   {
   res.close();
   }
   catch(SQLException e)
   {
   }
   }

   if (null != st)
   {
   try
   {
   st.close();
   }
   catch(SQLException e)
   {
   }
   }

   if (con != null)
   {
   try
   {
   con.close();
   }
   catch (SQLException sqle2)
   {
   }
   }
   }

   } catch (javax.naming.NameNotFoundException nne) {
   System.out.println(ERROR: No DataSource is registered under the name

 +
  jndiName + , please check your poolman.props  +
   and deployment tool.\n);
   

Re: Simplest Servlet-JDBC not working

2002-09-25 Thread hari hari

hi friends,

thanking you for sending email.

I tried runnin my Servlet-JDBC from Browser also on which I getting 
following Error at my command console.

11:53:15,713 INFO  [MainDeployer] Successfully completed deployment of 
package: file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/app.war
11:53:22,531 INFO  [Engine] DBServlet: init
11:53:22,562 ERROR [STDERR] java.lang.ClassNotFoundException: 
oracle.jdbc.OracleDriver
---

I having my App Server and DB Servere on DIFFERENT machines. I having loaded 
my JDBC Drivers (both ZIP and JAR) on my App. Server and have included them 
in CLASSPATH as well.

police helping me thought.

--HARI



From: Vivek Chopra [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Simplest Servlet-JDBC not working
Date: Wed, 25 Sep 2002 10:39:14 -0700 (PDT)

Hari,

You don't typically try to execute a servlet
directly.. it is invoked by the servlet engine when
you browse over to the appropriate URL. The error you
see is due to the fact that the JRE is looking for a
main() method. Since this is a servlet, it doesnt have
one!

Please read the Tomcat app developer's guide at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
on how to deploy a servlet in Tomcat.

- Vivek

--- hari hari [EMAIL PROTECTED] wrote:
  hi my many freinds,
 
  i having simplest of Servlet program
  (DBServlet.java) which is trying to
  connecting to my ORCL DB.
 
  my Application and DB Server are sit on different
  machines. I having my JDBC
  Drivers (in ZIP format) on my App Server installed
  with CLASSPATH.
 
  when I trying to run i getting below errors: police
  helping me
  # java DBServlet
  Exception in thread main
  java.lang.NoSuchMethodError: main
  #
 
  import java.io.*;
  import java.sql.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
 
  public class DBServlet extends HttpServlet {
 
  private Connection con;
  private PrintWriter out;
  private String url =
  jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;
 
 
  public void init(ServletConfig conf)
  throws ServletException {
  super.init(conf);
  try{
 
 //Class.forName(oracle.jdbc.OracleDriver);
 //con =DriverManager.getConnection(url,
  scott, tiger);
  }catch(Exception e) {
  System.err.println(e);
  }
  }
 
  public void service(HttpServletRequest req,
  HttpServletResponse res)
  throws ServletException, IOException {
  res.setContentType(text/html);
  try {
  out = res.getWriter();
  out.println(html);
  out.println(head);
  out.println(title Sample JDBC Servlet
  Demo + /title);
  out.println(/head);
  out.println(body);
 
  Class.forName(oracle.jdbc.OracleDriver);
  con =DriverManager.getConnection(url,
  scott, tiger);
  Statement stmt = con.createStatement();
  ResultSet rs = stmt.executeQuery(select *
  from emp);
  out.println(UL);
  while(rs.next()) {
  out.println(LI +
  rs.getString(EName));
  }
  out.println(/UL);
  rs.close();
  stmt.close();
  } catch(Exception e) { System.err.println(e);
  }
out.println(/body);
out.println(/html);
out.close();
  }


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


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




RE: [SECURITY] Apache Tomcat 4.x JSP source disclosurevulnerabili ty

2002-09-25 Thread Felipe Schnack

  Anyway, using scriptlets (JSP) is a bad pratice... good code uses only
taglibs.

On Wed, 2002-09-25 at 10:57, Rossen Raykov wrote:
 The servlets are not vulnerable since their code is under WEB-INF and is
 successfully protected from downloads.
 All other interpreted application stuff, outside of WEB-INF, like JSP are
 vulnerable since they can be downloaded as regular files but not be
 processed by the corresponding engine.
 That's why I believe Velocity should suffer from this bug in the same way
 JSP is.
 I didn't test Velocity but there is not any reason that it will be resistant
 to this exposure.
 
 Regards,
 Rossen Raykov
 
  -Original Message-
  From: Kent Perrier [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 24, 2002 6:59 PM
  To: Tomcat Users List
  Subject: Re: [SECURITY] Apache Tomcat 4.x JSP source
  disclosurevulnerability
  
  
  On Tue, Sep 24, 2002 at 06:52:10PM -0400, Tim Moore wrote:
   OK, thanks. (The BugTraq search engine wasn't working when I checked
   there.)
   
   So it sounds pretty much like what I thought it was. I still don't
   understand why Velocity wouldn't be vulnerable to this exploit.
  
  It sounds to me like it should be.  From the bugtraq post, 
  all servlets
  and JSPs that run in a Tomcat instance are vulnerable.  Since Velocity
  runs under Tomcat, logically, it is vulnerable.  All other claims are
  illogical.
  
  Kent
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




Should tomcat use this much CPU?

2002-09-25 Thread Brandon Cruz

Should the CPU usage percentage in linux continue to increase as long as
Tomcat is running.  On a 1G processor with 512M Ram, it seems that the
memory usage is 90MB and the CPU usage is around 32% for only one of the
many java processes I see by using ps aux.  Is this normal, does it mean
there is a problem with Tomcat, a problem with our application???



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




RE: Simplest Servlet-JDBC not working

2002-09-25 Thread Turner, John


WHERE did you load them on your App server!?

John


 -Original Message-
 From: hari hari [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 2:07 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Simplest Servlet-JDBC not working
 
 
 hi friends,
 
 thanking you for sending email.
 
 I tried runnin my Servlet-JDBC from Browser also on which I getting 
 following Error at my command console.
 
 11:53:15,713 INFO  [MainDeployer] Successfully completed 
 deployment of 
 package: file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/app.war
 11:53:22,531 INFO  [Engine] DBServlet: init
 11:53:22,562 ERROR [STDERR] java.lang.ClassNotFoundException: 
 oracle.jdbc.OracleDriver
 ---
 
 I having my App Server and DB Servere on DIFFERENT machines. 
 I having loaded 
 my JDBC Drivers (both ZIP and JAR) on my App. Server and have 
 included them 
 in CLASSPATH as well.
 
 police helping me thought.
 
 --HARI
 
 
 
 From: Vivek Chopra [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Simplest Servlet-JDBC not working
 Date: Wed, 25 Sep 2002 10:39:14 -0700 (PDT)
 
 Hari,
 
 You don't typically try to execute a servlet
 directly.. it is invoked by the servlet engine when
 you browse over to the appropriate URL. The error you
 see is due to the fact that the JRE is looking for a
 main() method. Since this is a servlet, it doesnt have
 one!
 
 Please read the Tomcat app developer's guide at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
 on how to deploy a servlet in Tomcat.
 
 - Vivek
 
 --- hari hari [EMAIL PROTECTED] wrote:
   hi my many freinds,
  
   i having simplest of Servlet program
   (DBServlet.java) which is trying to
   connecting to my ORCL DB.
  
   my Application and DB Server are sit on different
   machines. I having my JDBC
   Drivers (in ZIP format) on my App Server installed
   with CLASSPATH.
  
   when I trying to run i getting below errors: police
   helping me
   # java DBServlet
   Exception in thread main
   java.lang.NoSuchMethodError: main
   #
  
   import java.io.*;
   import java.sql.*;
   import javax.servlet.*;
   import javax.servlet.http.*;
  
   public class DBServlet extends HttpServlet {
  
   private Connection con;
   private PrintWriter out;
   private String url =
   jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;
  
  
   public void init(ServletConfig conf)
   throws ServletException {
   super.init(conf);
   try{
  
  //Class.forName(oracle.jdbc.OracleDriver);
  //con =DriverManager.getConnection(url,
   scott, tiger);
   }catch(Exception e) {
   System.err.println(e);
   }
   }
  
   public void service(HttpServletRequest req,
   HttpServletResponse res)
   throws ServletException, IOException {
   res.setContentType(text/html);
   try {
   out = res.getWriter();
   out.println(html);
   out.println(head);
   out.println(title Sample JDBC Servlet
   Demo + /title);
   out.println(/head);
   out.println(body);
  
   Class.forName(oracle.jdbc.OracleDriver);
   con =DriverManager.getConnection(url,
   scott, tiger);
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery(select *
   from emp);
   out.println(UL);
   while(rs.next()) {
   out.println(LI +
   rs.getString(EName));
   }
   out.println(/UL);
   rs.close();
   stmt.close();
   } catch(Exception e) { System.err.println(e);
   }
 out.println(/body);
 out.println(/html);
 out.close();
   }
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Simplest Servlet-JDBC not working

2002-09-25 Thread hari hari

i putting them in /jdbc directory and then including that in CLASSPATH as:
--
CLASSPATH=/usr/java130/lib/tools.jar:/jboss/bin/run.jar:/jboss/catalina/common/lib/servlet.jar:/jdbc/classes12.jar:/jdbc/classes111.jar
:/jdbc/nls_charset11.jar:/jdbc/nls_charset12.jar:/hari/WEB-INF/classes:/hari/WEB-INF/classes/mybean


thanking you.

HARI



From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Simplest Servlet-JDBC not working
Date: Wed, 25 Sep 2002 14:27:02 -0400


WHERE did you load them on your App server!?

John


  -Original Message-
  From: hari hari [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 25, 2002 2:07 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Simplest Servlet-JDBC not working
 
 
  hi friends,
 
  thanking you for sending email.
 
  I tried runnin my Servlet-JDBC from Browser also on which I getting
  following Error at my command console.
  
  11:53:15,713 INFO  [MainDeployer] Successfully completed
  deployment of
  package: file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/app.war
  11:53:22,531 INFO  [Engine] DBServlet: init
  11:53:22,562 ERROR [STDERR] java.lang.ClassNotFoundException:
  oracle.jdbc.OracleDriver
  ---
 
  I having my App Server and DB Servere on DIFFERENT machines.
  I having loaded
  my JDBC Drivers (both ZIP and JAR) on my App. Server and have
  included them
  in CLASSPATH as well.
 
  police helping me thought.
 
  --HARI
 
 
 
  From: Vivek Chopra [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Simplest Servlet-JDBC not working
  Date: Wed, 25 Sep 2002 10:39:14 -0700 (PDT)
  
  Hari,
  
  You don't typically try to execute a servlet
  directly.. it is invoked by the servlet engine when
  you browse over to the appropriate URL. The error you
  see is due to the fact that the JRE is looking for a
  main() method. Since this is a servlet, it doesnt have
  one!
  
  Please read the Tomcat app developer's guide at
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
  on how to deploy a servlet in Tomcat.
  
  - Vivek
  
  --- hari hari [EMAIL PROTECTED] wrote:
hi my many freinds,
   
i having simplest of Servlet program
(DBServlet.java) which is trying to
connecting to my ORCL DB.
   
my Application and DB Server are sit on different
machines. I having my JDBC
Drivers (in ZIP format) on my App Server installed
with CLASSPATH.
   
when I trying to run i getting below errors: police
helping me
# java DBServlet
Exception in thread main
java.lang.NoSuchMethodError: main
#
   
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
   
public class DBServlet extends HttpServlet {
   
private Connection con;
private PrintWriter out;
private String url =
jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;
   
   
public void init(ServletConfig conf)
throws ServletException {
super.init(conf);
try{
   
   //Class.forName(oracle.jdbc.OracleDriver);
   //con =DriverManager.getConnection(url,
scott, tiger);
}catch(Exception e) {
System.err.println(e);
}
}
   
public void service(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException {
res.setContentType(text/html);
try {
out = res.getWriter();
out.println(html);
out.println(head);
out.println(title Sample JDBC Servlet
Demo + /title);
out.println(/head);
out.println(body);
   
Class.forName(oracle.jdbc.OracleDriver);
con =DriverManager.getConnection(url,
scott, tiger);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(select *
from emp);
out.println(UL);
while(rs.next()) {
out.println(LI +
rs.getString(EName));
}
out.println(/UL);
rs.close();
stmt.close();
} catch(Exception e) { System.err.println(e);
}
  out.println(/body);
  out.println(/html);
  out.close();


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


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




Tomcat and SSL accelerators

2002-09-25 Thread Kaltwasser, Jonathan LT (OP 09WN5B)

Howdy folks!

Running TC 4.0.4, IIS 5.0 (groan, i know), Windows 2k Server, ISAPI
redirect sending servlets and JSP's to TC, mainly for Computer
Associate's CleverPath portal to function.

What I'm wondering is if anyone has experience getting SSL accelerators
like Redline's T|X 2250 to work with this setup.  We need to offload the
SSL load off our web servers to support a significant number of
users...and SSL is required for our site due to security reasons.

Will this require massaging and does anyone have some good gouge on how
to set this up?  Found good stuff on clustering TC
(http://www.theserverside.com/resources/article.jsp?l=Tomcat) but
nothing on clustering+SSL.

Thanks,

Jon



RE: Simplest Servlet-JDBC not working

2002-09-25 Thread Turner, John


The best place would be CATALINA_HOME/common/lib.

Tomcat ignores the CLASSPATH environment variable and assembles its own
version of CLASSPATH (which may or may not be the same as the CLASSPATH
environment variable) when catalina.sh is run.

John

 -Original Message-
 From: hari hari [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 2:40 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Simplest Servlet-JDBC not working
 
 
 i putting them in /jdbc directory and then including that 
 in CLASSPATH as:
 --
 CLASSPATH=/usr/java130/lib/tools.jar:/jboss/bin/run.jar:/jboss
 /catalina/common/lib/servlet.jar:/jdbc/classes12.jar:/jdbc/cla
 sses111.jar
 :/jdbc/nls_charset11.jar:/jdbc/nls_charset12.jar:/hari/WEB-INF
 /classes:/hari/WEB-INF/classes/mybean
 
 
 thanking you.
 
 HARI
 
 
 
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Simplest Servlet-JDBC not working
 Date: Wed, 25 Sep 2002 14:27:02 -0400
 
 
 WHERE did you load them on your App server!?
 
 John
 
 
   -Original Message-
   From: hari hari [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, September 25, 2002 2:07 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Simplest Servlet-JDBC not working
  
  
   hi friends,
  
   thanking you for sending email.
  
   I tried runnin my Servlet-JDBC from Browser also on which 
 I getting
   following Error at my command console.
   
   11:53:15,713 INFO  [MainDeployer] Successfully completed
   deployment of
   package: 
 file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/app.war
   11:53:22,531 INFO  [Engine] DBServlet: init
   11:53:22,562 ERROR [STDERR] java.lang.ClassNotFoundException:
   oracle.jdbc.OracleDriver
   ---
  
   I having my App Server and DB Servere on DIFFERENT machines.
   I having loaded
   my JDBC Drivers (both ZIP and JAR) on my App. Server and have
   included them
   in CLASSPATH as well.
  
   police helping me thought.
  
   --HARI
  
  
  
   From: Vivek Chopra [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: Re: Simplest Servlet-JDBC not working
   Date: Wed, 25 Sep 2002 10:39:14 -0700 (PDT)
   
   Hari,
   
   You don't typically try to execute a servlet
   directly.. it is invoked by the servlet engine when
   you browse over to the appropriate URL. The error you
   see is due to the fact that the JRE is looking for a
   main() method. Since this is a servlet, it doesnt have
   one!
   
   Please read the Tomcat app developer's guide at
   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
   on how to deploy a servlet in Tomcat.
   
   - Vivek
   
   --- hari hari [EMAIL PROTECTED] wrote:
 hi my many freinds,

 i having simplest of Servlet program
 (DBServlet.java) which is trying to
 connecting to my ORCL DB.

 my Application and DB Server are sit on different
 machines. I having my JDBC
 Drivers (in ZIP format) on my App Server installed
 with CLASSPATH.

 when I trying to run i getting below errors: police
 helping me
 # java DBServlet
 Exception in thread main
 java.lang.NoSuchMethodError: main
 #

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

 public class DBServlet extends HttpServlet {

 private Connection con;
 private PrintWriter out;
 private String url =
 jdbc:oracle:thin:@MY_IP_ADDRESS:1521:MY_SID;


 public void init(ServletConfig conf)
 throws ServletException {
 super.init(conf);
 try{

//Class.forName(oracle.jdbc.OracleDriver);
//con =DriverManager.getConnection(url,
 scott, tiger);
 }catch(Exception e) {
 System.err.println(e);
 }
 }

 public void service(HttpServletRequest req,
 HttpServletResponse res)
 throws ServletException, IOException {
 res.setContentType(text/html);
 try {
 out = res.getWriter();
 out.println(html);
 out.println(head);
 out.println(title Sample JDBC Servlet
 Demo + /title);
 out.println(/head);
 out.println(body);

 Class.forName(oracle.jdbc.OracleDriver);
 con =DriverManager.getConnection(url,
 scott, tiger);
 Statement stmt = con.createStatement();
 ResultSet rs = stmt.executeQuery(select *
 from emp);
 out.println(UL);
 while(rs.next()) {
 out.println(LI +
 rs.getString(EName));
 }
 out.println(/UL);
   

RE: Oracle JDBC Drivers on Tomcat

2002-09-25 Thread Miguel Angel Mulero Martinez

You need to rename the zip file to jar file. Servlets specification (so
tomcat too) only accept .jar.

Regards

-Mensaje original-
De: Tam, Michael [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 25 de septiembre de 2002 1:10
Para: 'Tomcat Users List'
Asunto: RE: Oracle JDBC Drivers on Tomcat


Oracle JDBC driver comes as ZIP and so you leave it as it is.

Cheers,
Michael

-Original Message-
From: hari hari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Oracle JDBC Drivers on Tomcat


hi there,

thanks for replying. Do we need ZIP version or JAR version of JDBC Drivers
on Tomcat...?

thks.

--HARI


From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Oracle JDBC Drivers on Tomcat
Date: Tue, 24 Sep 2002 16:41:56 +1000

No don't bother, its fine.
I use Ora9i and the rest of the stuff, didn't unzip.
(In case u have download something : U can't use a tar ball though !)

Tam, Michael wrote:
 
  It works fine for me as in .zip extension.
 
  Cheers,
  Michael
 
  -Original Message-
  From: hari hari [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 24, 2002 1:25 PM
  To: [EMAIL PROTECTED]
  Subject: Oracle JDBC Drivers on Tomcat
 
  hi every1,
 
  i using java servlets to connect to my Oracle db. I get the
  jdbc-drivers and installed into app server and included in my classpath.
  these drivers are in zip format - do I need to extract them or will they

do
  fine just with zip?
 
  --HARI


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


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

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


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




Two nics, two ips, one Tomcat instance

2002-09-25 Thread Januski, Ken

Hi,

Can anyone point me in the right direction for instructions on setting up a
server with 2 nics, 2 ips, and one Tomcat instance? I've spent the better
part of two days reading and experimenting but still don't have an answer. I
should add that there are no connectors, just Tomcat Standalone.

For instance should I just use 2 different hosts in server.xml? From what I
can see that expects 2 virtual hosts with 1 ip, which is not what I want.

Or can someone advise me as to it would actually be better to have two
different Tomcat instances, and if so, how'd I'd go about setting that up. I
can see some advantages to having 2 instances but I don't want to run into
resource problems by having more than one.


Thanks in advance,

Ken



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




Connection Pooling -- Please Help a newbie

2002-09-25 Thread O'Dell, Stacy

I have the following setup:
TC 4.0.4
Sybase JConnect 5.5
 
What EXACTLY do I need to do to get connection pooling working?  What
configuration, code, parameters, etc.
 
I'm kinda lost here.
 
Thanks, 

Stacy 



I believe everybody in the world should have guns. Citizens should have
bazookas and rocket launchers too. I believe that all citizens should have
their weapons of choice. 

However, I also believe that only I should have the ammunition. Because
frankly, I wouldn't trust the rest of the goobers with anything more
dangerous than string 


-- Scott Adams 

 



Connector not working in Tomcat 4.1.12

2002-09-25 Thread Mark Hansen

I've been working on a JMS Connector (for calling HTTPServlets via JMS) that
was working under 4.0.3 and won't load under 4.1.12.

Has org.apache.catalina.loader.StandardClassLoader changed?  What classpath
does this loader user when Tomcat boots up?  I'm getting errors stating
can't find classes (e.g., org.apache.catalina.Connector) that are stored in
%CATALINA_HOME%\server\lib\catalina.jar.

Thanks for your help.

-- Mark


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




Re: Setting Tag Attribute Value

2002-09-25 Thread Jeff

OK, quick question... is %= path % ***itself*** null, or it simply
being ---interpreted--- by Tomcat as null in the context of a tag attribute?

An easy way to check is to stick a copy somewhere inside a html comment
adjacent to the tag where you're using it so you can launch the page and see
for sure. For example...

!-- VALUE of path = '%= path %' --
... inc=%= path %/jsp/dd/inc ...

if %= path % is itself null and is itself supposed to be set by another
tag either wrapping it or coming earlier in the page, it's probably a
problem with that tag's TEI file.

On the other hand, if %= path % is non-null, check the tag's .tld file and
make sure that the inc attribute has rtexprvaluetrue/rtexprvalue

rtexprvalue tells the compiler whether it can save time and hardcode the
current value of %= path % at ***compile time***, or whether it needs to
stop and fetch the current value of %= path % at ---runtime---. If
rtexprvalue is false, it's using path's value at compile time... which more
likely than not, is null.

- Original Message -
From: Sundar Chakravarthy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 1:23 PM
Subject: Setting Tag Attribute Value


Hi,

I am on Tomcat 4.0.x , jdk1.4,win2K.

When I try to set a tag attribute value using
a jsp script varaible like below ,

inc= %= path %/jsp/dd/inc/

the value of path shows up as null . Why ?

Thanks




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





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




Re: Running multiple tomcat instances ?????

2002-09-25 Thread Ryszard Lach

On Mon, Sep 23, 2002 at 05:31:45PM +0200, Ralph Einfeldt wrote:
 
 We install different versions of tomcat like this:
 
 /usr/local/java/tomcat-4.0.3
 /usr/local/java/tomcat-4.1.10
 
 For each site we have something like this:
 
 /www/online/site

Could you tell me how many instances do you have and how strong is your
machine (CPU's, RAM)?

Richard.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




RE: Running multiple tomcat instances ?????

2002-09-25 Thread Turner, John


I have 13, soon to be 16, instances of Tomcat 3.1 running with apache
1.3.26.  The machine is a dual 1.2 GHz system with 1GB RAM and 72GB of
RAID-5 disk at 10,000RPM.  Average load for some fairly intensive processing
and traffic is about 45%.

John


 -Original Message-
 From: Ryszard Lach [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 25, 2002 3:37 PM
 To: Tomcat Users List
 Subject: Re: Running multiple tomcat instances ?
 
 
 On Mon, Sep 23, 2002 at 05:31:45PM +0200, Ralph Einfeldt wrote:
  
  We install different versions of tomcat like this:
  
  /usr/local/java/tomcat-4.0.3
  /usr/local/java/tomcat-4.1.10
  
  For each site we have something like this:
  
  /www/online/site
 
 Could you tell me how many instances do you have and how 
 strong is your
 machine (CPU's, RAM)?
 
 Richard.
 
 -- 
 First they ignore you. Then they laugh at you. Then they
 fight you. Then you win. - Mohandas Gandhi.
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Automatic Client Login

2002-09-25 Thread Frank Lawlor

My application uses Form-based authentication.

However, I would like to be able to have a request
from a client automacally log in without their seeing the
form by passing the userid/password with an HTTP request.  

I thought I saw one time some syntax like:

  http://myhost?user=someonepassword=base64pwd/.

Is there some way to set the userid and password in
the header from a page (genrated by a JSP) sent 
from the server to the client
so that the login occurs silently (e.g. a page with just 
javascript that does an automatic submit or a redirect
from the server)?

Thanks,

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.





RE: Setting Tag Attribute Value

2002-09-25 Thread Tim Moore

Also, if we're talking about a JSP taglib tag (which it sounds like we
are), something like this:

 inc= %= path %/jsp/dd/inc/

isn't allowed.  In fact, I'm kind of surprised that compiles.  When an
attribute is a rtexprvalue, the *whole* thing needs to be a runtime
expression.  You can't mix a runtime expression with static text as in
the above.  You'll need to rewrite the attribute like this:

inc='%= path + /jsp/dd/inc %'

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Jeff [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 25, 2002 3:16 PM
 To: Tomcat Users List
 Subject: Re: Setting Tag Attribute Value
 
 
 OK, quick question... is %= path % ***itself*** null, or it 
 simply being ---interpreted--- by Tomcat as null in the 
 context of a tag attribute?
 
 An easy way to check is to stick a copy somewhere inside a 
 html comment adjacent to the tag where you're using it so you 
 can launch the page and see for sure. For example...
 
 !-- VALUE of path = '%= path %' --
 ... inc=%= path %/jsp/dd/inc ...
 
 if %= path % is itself null and is itself supposed to be 
 set by another tag either wrapping it or coming earlier in 
 the page, it's probably a problem with that tag's TEI file.
 
 On the other hand, if %= path % is non-null, check the 
 tag's .tld file and make sure that the inc attribute has 
 rtexprvaluetrue/rtexprvalue
 
 rtexprvalue tells the compiler whether it can save time and 
 hardcode the current value of %= path % at ***compile 
 time***, or whether it needs to stop and fetch the current 
 value of %= path % at ---runtime---. If rtexprvalue is 
 false, it's using path's value at compile time... which more 
 likely than not, is null.
 
 - Original Message -
 From: Sundar Chakravarthy [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 25, 2002 1:23 PM
 Subject: Setting Tag Attribute Value
 
 
 Hi,
 
 I am on Tomcat 4.0.x , jdk1.4,win2K.
 
 When I try to set a tag attribute value using
 a jsp script varaible like below ,
 
 inc= %= path %/jsp/dd/inc/
 
 the value of path shows up as null . Why ?
 
 Thanks
 

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




RE: Automatic Client Login

2002-09-25 Thread Reynir Hübner

sometimes this may work (depending on the browser/server combination): 
http://username:[EMAIL PROTECTED]


 -Original Message-
 From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
 Sent: 25. september 2002 19:47
 To: 'Tomcat'
 Subject: Automatic Client Login
 
 
 My application uses Form-based authentication.
 
 However, I would like to be able to have a request
 from a client automacally log in without their seeing the
 form by passing the userid/password with an HTTP request.  
 
 I thought I saw one time some syntax like:
 
   http://myhost?user=someonepassword=base64pwd/.
 
 Is there some way to set the userid and password in
 the header from a page (genrated by a JSP) sent 
 from the server to the client
 so that the login occurs silently (e.g. a page with just 
 javascript that does an automatic submit or a redirect
 from the server)?
 
 Thanks,
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating technology
 strategy and software solutions.
 
 
 

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




Shutting down tomcat 3.3.1

2002-09-25 Thread Rafael Angarita

Where is configured the port  to shutdown tomcat 3.3.1?

I'm getting this error: when trying to shutdown tomcat using
# $TOMCAT_HOME/bin/tomcat.sh stop

...
Root Exception: java.lang.IllegalArgumentException: port out of range:-1
java.lang.IllegalArgumentException: port out of range:-1
...

It looks like the port is not setted  (AJP12 and AJP13 are 
configured in server.xml to bind to ports 8007 and 8009 respectively)

Thanks in advance

--

Rafael Angarita





RE: Two nics, two ips, one Tomcat instance

2002-09-25 Thread Reynir Hübner

how about, server.xml ?

tomcat doesn't really care about the Ip numbers it's replying to if you have virtual 
hosts setup. If you need it to responde to ip numbers you can use 
alias123.123.123.123/alias under host ..  in tomcat_home/conf/server.xml

hope it  helps
[EMAIL PROTECTED]




 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED]]
 Sent: 25. september 2002 18:48
 To: Tomcat Users List
 Subject: Two nics, two ips, one Tomcat instance
 
 
 Hi,
 
 Can anyone point me in the right direction for instructions 
 on setting up a
 server with 2 nics, 2 ips, and one Tomcat instance? I've 
 spent the better
 part of two days reading and experimenting but still don't 
 have an answer. I
 should add that there are no connectors, just Tomcat Standalone.
 
 For instance should I just use 2 different hosts in 
 server.xml? From what I
 can see that expects 2 virtual hosts with 1 ip, which is not 
 what I want.
 
 Or can someone advise me as to it would actually be better to have two
 different Tomcat instances, and if so, how'd I'd go about 
 setting that up. I
 can see some advantages to having 2 instances but I don't 
 want to run into
 resource problems by having more than one.
 
 
 Thanks in advance,
 
 Ken
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




Making a webapp the document root, help?

2002-09-25 Thread Paul Tomsic

Is it possible, from Apache 1.3 and Tomcat 4.1.10
(tied together w/ mod_jk)
to make a webapp the top-level (DocumentRoot) ?? 
For instance: 
/usr/local/tomcat/webapps/MYAPP 

I want MYAPP to be my document root and start serving
JSPs immediately, only using Apache if a HTML file is
requested and for htaccess (using mod_auth_db). 
I don't want to have to type into the browser: 
http://this.that.com/MYAPP 

I would like: http://this.that.com 
and have it simply use the MYAPP from this point on 
This doesn't work, b/c if I try to access a file: 
/usr/local/tomcat/webapps/MYAPP/jsp/myfile.jsp 
using the following URL: 
http://this.that.com/jsp/myfile.jsp 
I get a 404 error, thrown from Tomcat, b/c the server
is apparently looking for that file somewhere else. 
Thoughts/help? 
Thanks, 
Paul



__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: Setting Tag Attribute Value

2002-09-25 Thread Sundar Chakravarthy

Yes, you are right about rtexprvalue.
In my case it was set to false instead of true.

Thanks, 



On the other hand, if %= path % is non-null, check the tag's .tld file and
make sure that the inc attribute has rtexprvaluetrue/rtexprvalue

rtexprvalue tells the compiler whether it can save time and hardcode the
current value of %= path % at ***compile time***, or whether it needs to
stop and fetch the current value of %= path % at ---runtime---. If
rtexprvalue is false, it's using path's value at compile time... which more
likely than not, is null.

- Original Message -
From: Sundar Chakravarthy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 1:23 PM
Subject: Setting Tag Attribute Value


Hi,

I am on Tomcat 4.0.x , jdk1.4,win2K.

When I try to set a tag attribute value using
a jsp script varaible like below ,

inc= %= path %/jsp/dd/inc/

the value of path shows up as null . Why ?

Thanks




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





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


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




RE: Setting Tag Attribute Value

2002-09-25 Thread Sundar Chakravarthy

Tim,

You are right too. I had to replace the whole thing.

Thanks.

-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Setting Tag Attribute Value


Also, if we're talking about a JSP taglib tag (which it sounds like we
are), something like this:

 inc= %= path %/jsp/dd/inc/

isn't allowed.  In fact, I'm kind of surprised that compiles.  When an
attribute is a rtexprvalue, the *whole* thing needs to be a runtime
expression.  You can't mix a runtime expression with static text as in
the above.  You'll need to rewrite the attribute like this:

inc='%= path + /jsp/dd/inc %'

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Jeff [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, September 25, 2002 3:16 PM
 To: Tomcat Users List
 Subject: Re: Setting Tag Attribute Value
 
 
 OK, quick question... is %= path % ***itself*** null, or it 
 simply being ---interpreted--- by Tomcat as null in the 
 context of a tag attribute?
 
 An easy way to check is to stick a copy somewhere inside a 
 html comment adjacent to the tag where you're using it so you 
 can launch the page and see for sure. For example...
 
 !-- VALUE of path = '%= path %' --
 ... inc=%= path %/jsp/dd/inc ...
 
 if %= path % is itself null and is itself supposed to be 
 set by another tag either wrapping it or coming earlier in 
 the page, it's probably a problem with that tag's TEI file.
 
 On the other hand, if %= path % is non-null, check the 
 tag's .tld file and make sure that the inc attribute has 
 rtexprvaluetrue/rtexprvalue
 
 rtexprvalue tells the compiler whether it can save time and 
 hardcode the current value of %= path % at ***compile 
 time***, or whether it needs to stop and fetch the current 
 value of %= path % at ---runtime---. If rtexprvalue is 
 false, it's using path's value at compile time... which more 
 likely than not, is null.
 
 - Original Message -
 From: Sundar Chakravarthy [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 25, 2002 1:23 PM
 Subject: Setting Tag Attribute Value
 
 
 Hi,
 
 I am on Tomcat 4.0.x , jdk1.4,win2K.
 
 When I try to set a tag attribute value using
 a jsp script varaible like below ,
 
 inc= %= path %/jsp/dd/inc/
 
 the value of path shows up as null . Why ?
 
 Thanks
 

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


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




RE: Two nics, two ips, one Tomcat instance

2002-09-25 Thread Januski, Ken

Reynir,

This sounds good but I'm not sure of the alias syntax. I've never heard of
alias before but it sounds like it's just what I need. Is this more or less
what you mean?

Host name=inqTest debug=0
alias 123.xxx.xx.xx/
...
/Host


Ken

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 3:51 PM
To: Tomcat Users List
Subject: RE: Two nics, two ips, one Tomcat instance


how about, server.xml ?

tomcat doesn't really care about the Ip numbers it's replying to if you have
virtual hosts setup. If you need it to responde to ip numbers you can use
alias123.123.123.123/alias under host ..  in
tomcat_home/conf/server.xml

hope it  helps
[EMAIL PROTECTED]




 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED]]
 Sent: 25. september 2002 18:48
 To: Tomcat Users List
 Subject: Two nics, two ips, one Tomcat instance
 
 
 Hi,
 
 Can anyone point me in the right direction for instructions 
 on setting up a
 server with 2 nics, 2 ips, and one Tomcat instance? I've 
 spent the better
 part of two days reading and experimenting but still don't 
 have an answer. I
 should add that there are no connectors, just Tomcat Standalone.
 
 For instance should I just use 2 different hosts in 
 server.xml? From what I
 can see that expects 2 virtual hosts with 1 ip, which is not 
 what I want.
 
 Or can someone advise me as to it would actually be better to have two
 different Tomcat instances, and if so, how'd I'd go about 
 setting that up. I
 can see some advantages to having 2 instances but I don't 
 want to run into
 resource problems by having more than one.
 
 
 Thanks in advance,
 
 Ken
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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

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




DBTags problem with Tomcat 4.1.12?

2002-09-25 Thread Ryan Cornia

I'm trying to use DBTags from jakarta.apache.org with Tomcat 4.1.12. The tags worked 
correctly in Tomcat 4.0.4, but in 4.1.12, if the sql query does not return a result 
set, the actual sql query is printed to the JSP!!! Yikes! The query should not be 
printed to the JSP page under any circumstances.
 
Anyone else experience this, know of a fix?
 
Thanks,
Ryan

 




building connectors for 4.1.12

2002-09-25 Thread Thad Humphries

Why does building connectors have to be such a pain?  It never seems to
go smoothly for me...

My current problem is the connectors from
jakarta-tomcat-connectors-4.1.12-src.tar.gz, specifically mod_jk
(I am running RedHat 6.2, Apache 2.0.40, and libtool 1.4.2)

I run buildconf.sh:

$ ./buildconf.sh
libtoolize --force --automake --copy
aclocal
automake -a --foreign -i --copy
automake: configure.in: installing `scripts/build/unix/install-sh'
error while copying

automake: configure.in: installing `scripts/build/unix/mkinstalldirs'
error while copying

automake: configure.in: installing `scripts/build/unix/missing'
error while copying

configure.in: 22: required file `scripts/build/unix/ltconfig' not found
autoconf

Like the BUILDING file says, ignore errors from automake but configure
doesn't work:

$ ./configure --with-apxs=/usr/local/apache2/bin/apxs
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
scripts/build/unix/ltconfig: scripts/build/unix/ltconfig: No such file
or directory
configure: error: libtool configure failed


I see in tomcat-dev that ltconfig and other files were removed from CVS
as excessive... since they are autogenerated
(http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg26834.html)

Exactly where are they autogenerated?  What step do I need to add?

-- 

Thad Humphries  ...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States. -Article VI


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




RE: Two nics, two ips, one Tomcat instance

2002-09-25 Thread Januski, Ken

Correction, I mean:

Host name=inqTest debug=0
alias 123.xxx.xx.xx/Alias
...
/Host


-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 4:12 PM
To: Tomcat Users List
Subject: RE: Two nics, two ips, one Tomcat instance


Reynir,

This sounds good but I'm not sure of the alias syntax. I've never heard of
alias before but it sounds like it's just what I need. Is this more or less
what you mean?

Host name=inqTest debug=0
alias 123.xxx.xx.xx/
...
/Host


Ken

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 3:51 PM
To: Tomcat Users List
Subject: RE: Two nics, two ips, one Tomcat instance


how about, server.xml ?

tomcat doesn't really care about the Ip numbers it's replying to if you have
virtual hosts setup. If you need it to responde to ip numbers you can use
alias123.123.123.123/alias under host ..  in
tomcat_home/conf/server.xml

hope it  helps
[EMAIL PROTECTED]




 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED]]
 Sent: 25. september 2002 18:48
 To: Tomcat Users List
 Subject: Two nics, two ips, one Tomcat instance
 
 
 Hi,
 
 Can anyone point me in the right direction for instructions 
 on setting up a
 server with 2 nics, 2 ips, and one Tomcat instance? I've 
 spent the better
 part of two days reading and experimenting but still don't 
 have an answer. I
 should add that there are no connectors, just Tomcat Standalone.
 
 For instance should I just use 2 different hosts in 
 server.xml? From what I
 can see that expects 2 virtual hosts with 1 ip, which is not 
 what I want.
 
 Or can someone advise me as to it would actually be better to have two
 different Tomcat instances, and if so, how'd I'd go about 
 setting that up. I
 can see some advantages to having 2 instances but I don't 
 want to run into
 resource problems by having more than one.
 
 
 Thanks in advance,
 
 Ken
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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

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

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




Re: Making a webapp the document root, help?

2002-09-25 Thread Dan Lipofsky

The webapp called ROOT has the behavior you desire.
Is it possible for you to just use that one?
I am afraid I don't know how to make something else
behave like ROOT or even if it is possible.
- Dan

 Is it possible, from Apache 1.3 and Tomcat 4.1.10
 (tied together w/ mod_jk)
 to make a webapp the top-level (DocumentRoot) ?? 
 For instance: 
 /usr/local/tomcat/webapps/MYAPP 
 
 I want MYAPP to be my document root and start serving
 JSPs immediately, only using Apache if a HTML file is
 requested and for htaccess (using mod_auth_db). 
 I don't want to have to type into the browser: 
 http://this.that.com/MYAPP 
 
 I would like: http://this.that.com 
 and have it simply use the MYAPP from this point on 
 This doesn't work, b/c if I try to access a file: 
 /usr/local/tomcat/webapps/MYAPP/jsp/myfile.jsp 
 using the following URL: 
 http://this.that.com/jsp/myfile.jsp 
 I get a 404 error, thrown from Tomcat, b/c the server
 is apparently looking for that file somewhere else. 
 Thoughts/help? 
 Thanks, 
 Paul



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




Re: Making a webapp the document root, help?

2002-09-25 Thread Srinadh Karumuri

You can try defining an Alias in httpd.conf file of Apache. I am not sure 
your JSP code will work but you can try.

Alias / /dir1/dir2/dir2/../webapps/MYAPP

On the other hand you can have an 'index.html' filein the root directory 
and let users chose to get to your MYAPP.

-Sri

At 01:21 PM 9/25/2002 -0700, Dan Lipofsky wrote:
The webapp called ROOT has the behavior you desire.
Is it possible for you to just use that one?
I am afraid I don't know how to make something else
behave like ROOT or even if it is possible.
- Dan

  Is it possible, from Apache 1.3 and Tomcat 4.1.10
  (tied together w/ mod_jk)
  to make a webapp the top-level (DocumentRoot) ??
  For instance:
  /usr/local/tomcat/webapps/MYAPP
 
  I want MYAPP to be my document root and start serving
  JSPs immediately, only using Apache if a HTML file is
  requested and for htaccess (using mod_auth_db).
  I don't want to have to type into the browser:
  http://this.that.com/MYAPP
 
  I would like: http://this.that.com
  and have it simply use the MYAPP from this point on
  This doesn't work, b/c if I try to access a file:
  /usr/local/tomcat/webapps/MYAPP/jsp/myfile.jsp
  using the following URL:
  http://this.that.com/jsp/myfile.jsp
  I get a 404 error, thrown from Tomcat, b/c the server
  is apparently looking for that file somewhere else.
  Thoughts/help?
  Thanks,
  Paul



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



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




Re: So what database and script language do you use?

2002-09-25 Thread Rick Fincher

Hi Felipe,

This is kind of diverging from Tomcat, so further exchanges should probably
be offline.

I'm not sure what an FK is but I presume SP is stored procedure.  Yes it has
all of it, subqueries, views, domains, SPs, triggers, full transaction
support, SQL92 conformance, etc.  The JDBC driver does not support some
features like two-way traversing of result sets, but you can usually work
around that stuff with stored procedures if necessary.

I suspect that in a Tomcat/JDBC environment the bottleneck in speed is
rarely going to be the database.  That would seem to suggest that, unless
it's a real dog, any decent SQL database is going to work OK for you.

Search speed on a large database and other factors such as maximum DB size
will be more of a factor.

All I can say from personal experience is that I was using a Java based SQL
database and switched to Firebird to speed things up, and got about a 10X
speed increase.

As for speed and loading capability, Firebird was originally designed as a
mini-computer database supporting lots of simultaneous users.  I've heard
that MySQL is a little faster but it doesn't handle heavy loads as well, and
it's not as safe because the designers cut corners for speed.  Others
dispute that.  The MySQL web site shows MySQL killing Postgres, but that's
to be expected.  Any clever programmer can make an SQL benchmark that they
know will smoke the competition.

My databases are all small, a few thousand records at most, and searches are
instantaneous.  I don't know what Firebird's performance is for DB's with
lots of records, but because of its mini-computer roots, I suspect it is
fast.  I saw a post by one guy who was searching 50,000 records per second
with a Java app, don't know the specs on his server or DB, though.

One thing I've noticed about MySQL is that many of the administration tools
seem to be PHP based.  I'm running Tomcat so I don't have to have CGI and
PHP on the server, so they aren't attractive to me at all.

There are also tons of Perl based tools for MySQL and there is a DBI Perl
driver for Interbase/Firebird.  So Perl based tools should work on most
platforms.  Most of the non-Perl non-PHP tools for Firebird are Windows
based, but they let you connect directly to the DB over the net without an
intervening web server.

The speed results I've seen are JDBC based and are affected somewhat by
which JDBC driver you use.  But since we are talking about using these
databases with Tomcat, that's OK I guess.

On an 800 MHz Duron running Linux and using Java and a JDBC driver about
1,000 records per second could be inserted, and about 1,300 records per
second could be read.  That was with the Java program on the server machine
which is reasonable in a Tomcat environment.  Speeds were between 2/3 and
1/2 when the Java code was executed on a remote machine over the net which
would be analogous to Tomcat and the database running on different servers.
I have no idea how that compares to any other database under the same
conditions.

As I understand the saga, Interbase (Firebird's origin) started life as a
mini-computer version of DBase II.  Ashton-Tate (DBase owners) liked it and
bought the company.  Borland liked Ashton-Tate and bought the company.
Borland used (and still uses)  Interbase as the database engine behind
Delphi.  Borland sold (and still sells) Interbase as a standalone product
too, but during one of their down swings, they decided that they didn't want
to be in the database business.  So what the heck, they open sourced it and
the programmers went out on their own and started IBPhoenix (InterBase
rising from the ashes, get it?).

Then Borland decided that they didn't want to let Interbase go after all,
but the horse was already out of the barn.  So they could only make new
stuff proprietary.  Voila- Interbase 6.5.  Since Borland owned the Interbase
brand name, IBPhoenix changed their database's name to Firebird.  They have
released Firebird versions 0.9.4 and 1.0 and are close to releasing 1.5.

 Here are a few links you might find helpful.

Simple Firebird docs:

http://www.xlprueba.com.ar/ib/firebirddoco.pdf

Features and benefits (Interbase 6.0, essentially the same as Firebird 1.0):
http://www.borland.com/interbase/pdf/ib6_feaben.pdf

IBPhoenix page:

www.ibphoenix.com

Rick


- Original Message -

   I'm using postgresql and I'm happy with it. Feature-wise, how firebird
 stands? Got FKs, SPs, subqueries, all of it? It's fast? I'm pretty
 curious about it :-)

 On Tue, 2002-09-24 at 19:35, Rick Fincher wrote:
  Hi Keith,
 
  I've been using Firebird and the JayBird JCA-JDBC driver and JSP.
Firebird
  is open source and a complete SQL 92 DB.  It was spawned from Borland's
  Interbase 6.0 when it went open source, so it's commercial quality.
  Interbase has been around for nearly 20 years as a commercial product,
so it
  is rock solid.
 
  Firebird is on SourceForge.  The web site for the outfit that does most
of
  the Firebird development 

Re: password storage on Tomcat 4.1.12

2002-09-25 Thread Rick Fincher

Hi Randy,

It depends on what type of security realm you set up.  If you use memory
realm it is in the file CATALINA-HOME/conf/tomcat-users.xml.  If you use
JDBC realm it is in whatever data table you specify in
CATALINA-HOME/conf/server.xml.  If you use JNDI realm its in your LDAP
database.

This is all in the docs.

Rick
- Original Message -
From: Kemp Randy-W18971 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 2:05 PM
Subject: password storage on Tomcat 4.1.12


 Does anyone know which file and directory the password is stored on Tomcat
4.1.12 for the admin server?




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




RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread BERNARDO ANTONIO BUFFA

It's a very simple task.
Install linux. Be happy.

Bernardo



 Hi all,

 We would like to start the TOMCAT server without opening a new DOS
 prompt.  How should we do this?

 Thanks in anticipation.

 With Regards
 K.RajeshKannan



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


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

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




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




  1   2   >