Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread Ian Hunter
I have a number of applications running under Tomcat root contexts, on 
various different servers/ports.  Under Apache, I can use the 

JkMount /* workername

directive under a virtual directory to allow me to do virtual hosting, under 
Apache, which allows me to specify that a particular hostname be handled by 
a particular worker, on a particular host and port.  Quite clean, I like it.

However, I find myself with the need to use IIS to front end the sites now, 
and the redirector DLL doesn't seem to account for this type of 
configuration.  

What this comes down to is having multiple instances of the redirector that 
refer to different workers2.properties files.  Way back when, someone 
mentioned an enhancement that was planned whereby the redirector DLL would 
check for a file called dllname.properties somewhere, and if present, use 
it, otherwise, check the registry for the location of the config file.

I blindly tried that, and it doesn't seem to work.

Did this enhancement ever happen?  Is there some secret incantation I have 
to do to make it work?

Is there a way to do what I'm trying to accomplish?  I've already suggested 
that we go with Apache instead and proxy any sites that require IIS, but I'm 
guessing that won't be an option.

---
beati pacifici quoniam filii Dei vocabuntur


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



Re: Ugh. IIS + Tomcat + multiple virtual hosts

2005-01-05 Thread Ian Hunter
On Wed, 05 Jan 2005 11:24:21 -0600, David Boyer wrote
 Resend correcting a typo:
 
 [channel.socket:web1:8010] 
 port=8010 
 host=web1.bvu.edu
 
 [ajp13:web1:8010] 
 channel=channel.socket:web1:8010
 
 [uri:web1.bvu.edu/servlet/*] 
 worker=ajp13:web1:8010
 
 [channel.socket:web2:8009] 
 port=8009 
 host=web2.bvu.edu
 
 [ajp13:web2:8009] 
 channel=channel.socket:web2:8009
 
 [uri:web2.bvu.edu/servlet/*] 
 worker=ajp13:web2:8009
 

Hey, cool, that worked great.  Is there actually any documentation for the 
workers2.properties file?  I looked around and couldn't find anything really 
useful...


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



Re: JVM paramaters with Tomcat Windows service

2003-11-11 Thread Ian Hunter
Along these lines, what parameters would be recommend to increase the amount
of RAM taken by the JVM?

- Original Message - 
From: Asif Chowdhary [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 9:15 AM
Subject: RE: JVM paramaters with Tomcat Windows service


For the tomcat service, select the properties option. At the bottom
of the General Tab Window you will see a place to specify'
start parameters. You can specify the parmaters there.

-Original Message-
From: Marcel Stor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 2:37 AM
To: [EMAIL PROTECTED]
Subject: JVM paramaters with Tomcat Windows service


Hi,

How do I define JVM parameters when Tomcat is brought up by an existing!
Windows service?

Regards,
Marcel


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


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


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



Re: Tomcat ver 4.1.27

2003-10-24 Thread Ian Hunter
Do you get Tomcat errors or browser errors?

- Original Message - 
From: Hardee, Brenda G NAVSAFECEN [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 10:56 AM
Subject: Tomcat ver 4.1.27




 I have Tomcat ver 4.1.27 running as a service on a win2000 platform.  I
cannot connect to the service with my browser (i.e.).  If a run Tomcat in
the startup script I can connect with my browser.  Can anyone give me some
help?

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


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



Windows service crashing

2003-10-21 Thread Ian Hunter
For some reason, a couple times a day, the Apache Tomcat 4.1 service
crashes under Windows 2000 with no message at all.  We have [EMAIL PROTECTED] 
configured
to restart after 1 minutes, but I'd still like to know why this happens.
Seems to only happen on our production box, not our test server.

Ian


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



Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Ian Hunter
I've got a database resource declared as part of Tomcat's resource pool
(JNDI?) -- I need a standalone Java app to access it.  How do I declare such
a thing in a standalone app?

I realize this is slightly off topic but I figured someone else out there
might try to do the same thing.

Literally, what I'm doing is creating an alert subsystem that at certain
times, the OS schedules a batch run, and it queries for certain conditions
occurring in database tables, and emails people alerts.

Thanks all!

Ian


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



Re: Windows service crashing

2003-10-21 Thread Ian Hunter
Absolutely nothing -- you only see the new instance starting.  That's the
odd thing about it.  The only evidence whatsoever that it went down is in
the Windows Event Viewer -- it says The Apache Tomcat 4.1 service
terminated unexpectedly.  It has done this 1 time(so).  The following
corrective action will be taken in 6 milliseconds: Restart the service.

Weird...

- Original Message - 
From: Robert Priest [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:55 AM
Subject: RE: Windows service crashing


 What is being written to the log file?

 -Original Message-
 From: Ian Hunter [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: Windows service crashing


 For some reason, a couple times a day, the Apache Tomcat 4.1 service
 crashes under Windows 2000 with no message at all.  We have [EMAIL PROTECTED]
configured
 to restart after 1 minutes, but I'd still like to know why this happens.
 Seems to only happen on our production box, not our test server.

 Ian


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

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



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



Re: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Ian Hunter
I don't follow you -- shouldn't I be able to create an instance of a naming
context and populate it from within my App, then refer back to it?  For this
app, I don't mind hard coding the parameters, it's just that I have a class
called DataStore that contains all the access points to the persistence
layer of my web app.  The DataStore class knows nothing about Tomcat.

Surely I can use some other JNDI provider and fool the DataStore class
into talking to it... In fact, here is the single point of reference to the
database resource:

// Return DataSource via JNDI with object named in
Constants.DATABASE_KEY
public static javax.sql.DataSource getDs() throws java.sql.SQLException
{
javax.sql.DataSource ds = null;

try {
// Obtain our environment naming context
javax.naming.Context initCtx = new
javax.naming.InitialContext();
javax.naming.Context envCtx = (javax.naming.Context)
initCtx.lookup(java:comp/env);

// Look up our data source
String check = Constants.DATABASE_KEY;
ds = (javax.sql.DataSource)
envCtx.lookup(Constants.DATABASE_KEY);
} catch (javax.naming.NamingException e) {
e.printStackTrace();
return null;
}
return ds;
}

What else can I use as a JNDI provider?
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 11:01 AM
Subject: RE: Access Tomcat-declared Resource from outside Tomcat



Howdy,
Currently tomcat doesn't have an external JNDI provider, so you can't
really do what you're looking for.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:50 AM
To: [EMAIL PROTECTED]
Subject: Access Tomcat-declared Resource from outside Tomcat

I've got a database resource declared as part of Tomcat's resource pool
(JNDI?) -- I need a standalone Java app to access it.  How do I declare
such
a thing in a standalone app?

I realize this is slightly off topic but I figured someone else out
there
might try to do the same thing.

Literally, what I'm doing is creating an alert subsystem that at
certain
times, the OS schedules a batch run, and it queries for certain
conditions
occurring in database tables, and emails people alerts.

Thanks all!

Ian


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Ian Hunter
Also note that you have to adjust the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters\JVM Library -- you have to make sure that's pointing to a
real copy of jvm.dll -- the default is c:\program
files\Java\j2rex.x.x\bin\client\jvm.dll and if that's not where you have
Java installed, all kinds of weird things will happen.


- Original Message - 
From: Goehring, Chuck Mr., RCI - San Diego
[EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:37 PM
Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() )
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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


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

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


-
To unsubscribe, 

Re: JDBC Realm MS SQL 2000

2003-02-25 Thread Ian Hunter
What Exception do you get?

- Original Message -
From: Søren Blidorf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 7:51 AM
Subject: VS: JDBC Realm  MS SQL 2000


This is how I set it up for Access.

When I change the driver settings to Oracle or MySQL it works just fine.

The connection to the SQL server works just fine. It is only the realm
that does not work.

I am not sure what else to send!!!

Context path=/web docBase=c:/projects/web/web
 debug=0 reloadable=true
  Realm className=org.apache.catalina.realm.JDBCRealm
debug=0
  connectionName=username connectionPassword=password
driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:web userTable=users
  userNameCol=username userCredCol=password
  userRoleTable=user_roles roleNameCol=rolename /
/Context

-Oprindelig meddelelse-
Fra: Xavier Prélat [mailto:[EMAIL PROTECTED]
Sendt: 25. februar 2003 13:44
Til: Tomcat Users List
Emne: Re: JDBC Realm  MS SQL 2000

Søren Blidorf wrote:

Hi.
I am trying to create a realm login.

When I use a mysql, MS Access or Oracle DB it works just fine. But when
I try with MS SQL 2000 server it just does not work.

Can anybody tell me why?

Søren Blidorf

Nolas Consulting
Gustav Wiedsvej 9
DK-2860 Søborg


Telefon: +45 39676513
Direkte:  +45 61676513
Web:  www.nolas.dk




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






Can you tell us more about  it just does not work...

what is your conf, properties...etc...

Xavier



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



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


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



Re: How to verify SSL/HTTPS behind Tomcat via AJP13

2003-02-25 Thread Ian Hunter
I've fallen back to seeing if
getRequestURL().toString().startsWith(https) -- that seems pretty kludgy.
Any other ideas?

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:41 AM
Subject: RE: How to verify SSL/HTTPS behind Tomcat via AJP13



 The return from getProtocol() is correct, AFAIK.  I don't believe there is
a
 HTTPS/1.1 or similar, but I could be wrong.

 By check protocol type in the docs (agreed, it is unclear), I believe it
 means to do one (or all) of the following:

 - check the URL for https
 - check the port number for the request
 - use HttpServletRequest.isSecure(), though I think that will return
false
 when you use Tomcat via a connector with ApacheI've never tried it to
be
 sure.

 John

  -Original Message-
  From: Ian Hunter [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 24, 2003 9:26 PM
  To: Tomcat Users List
  Subject: How to verify SSL/HTTPS behind Tomcat via AJP13
 
 
  From
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html -- Any
  pages which absolutely require a secure connection should
  check the protocol
  type associated with the page request and take the
  appropriate action of
  https is not specified.
 
  Also, When running Tomcat primarily as a Servlet/JSP container behind
  another web server, such as Apache or Microsoft IIS, it is
  usually necessary
  to configure the primary web server to handle the SSL connections from
  users. Typically, this server will negotiate all SSL-related
  functionality,
  then pass on any requests destined for the Tomcat container only after
  decrypting those requests. Likewise, Tomcat will return
  cleartext responses,
  that will be encrypted before being returned to the user's
  browser. In this
  environment, Tomcat knows that communications between the
  primary web server
  and the client are taking place over a secure connection (because your
  application needs to be able to ask about this), but it does
  not participate
  in the encryption or decryption itself.
 
  However, when I check request.getProtocol() I get
  HTTP/.1.1 even when
  I'm connecting via SSL (url shows https: and browser shows lock and
  confirms 128 bit SSL) -- what gives?
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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



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



Re: How to verify SSL/HTTPS behind Tomcat via AJP13

2003-02-25 Thread Ian Hunter
So if I ditched ajp and went with a ModProxy directive or something, might
that work?  I wouldn't think so, because the protocol in use between Apache
and Tomcat would then be http, not https.  Maybe they ought to fix that page
I quoted originally to give a more realistic understanding of SSL front
ends...

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:37 AM
Subject: RE: How to verify SSL/HTTPS behind Tomcat via AJP13



 Nope.  I think there are some SSL-specific Request variables that are sent
 along with a SSL request, you could always Enum through the list and look
 for them, but that is just as kludgy.

 The problem is that behind a connector like JK or JK2, there is no HTTP,
and
 there is no HTTPS.  The protocol being used is JK/JK2 (AJP13/14), so the
 only resources available to a developer at that point are the things that
 get sent along with typical requests.

 John


  -Original Message-
  From: Ian Hunter [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 9:31 AM
  To: Tomcat Users List
  Subject: Re: How to verify SSL/HTTPS behind Tomcat via AJP13
 
 
  I've fallen back to seeing if
  getRequestURL().toString().startsWith(https) -- that seems
  pretty kludgy.
  Any other ideas?
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 8:41 AM
  Subject: RE: How to verify SSL/HTTPS behind Tomcat via AJP13
 
 
  
   The return from getProtocol() is correct, AFAIK.  I don't
  believe there is
  a
   HTTPS/1.1 or similar, but I could be wrong.
  
   By check protocol type in the docs (agreed, it is
  unclear), I believe it
   means to do one (or all) of the following:
  
   - check the URL for https
   - check the port number for the request
   - use HttpServletRequest.isSecure(), though I think that will return
  false
   when you use Tomcat via a connector with ApacheI've
  never tried it to
  be
   sure.
  
   John
  
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:26 PM
To: Tomcat Users List
Subject: How to verify SSL/HTTPS behind Tomcat via AJP13
   
   
From
   
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html -- Any
   pages which absolutely require a secure connection should
   check the protocol
   type associated with the page request and take the
   appropriate action of
   https is not specified.
  
   Also, When running Tomcat primarily as a Servlet/JSP container behind
   another web server, such as Apache or Microsoft IIS, it is
   usually necessary
   to configure the primary web server to handle the SSL connections from
   users. Typically, this server will negotiate all SSL-related
   functionality,
   then pass on any requests destined for the Tomcat container only after
   decrypting those requests. Likewise, Tomcat will return
   cleartext responses,
   that will be encrypted before being returned to the user's
   browser. In this
   environment, Tomcat knows that communications between the
   primary web server
   and the client are taking place over a secure connection (because your
   application needs to be able to ask about this), but it does
   not participate
   in the encryption or decryption itself.
  
   However, when I check request.getProtocol() I get
   HTTP/.1.1 even when
   I'm connecting via SSL (url shows https: and browser shows lock and
   confirms 128 bit SSL) -- what gives?
  


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



Re: Tomcat doesn't throw exception if client application closses the socket.

2003-02-25 Thread Ian Hunter
Hmm.  What are you trying to do where that matters?  Sounds like there might
be a better way...

- Original Message -
From: Niketan Mourya [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:53 AM
Subject: Tomcat doesn't throw exception if client application closses the
socket.


 Hi All,
 I am facing a problem because tomcat doesn't throw exception if
 client closes the socket  connection. Do any body have a
 workaround/solution to know about the socket connection status with the
 client application. I am using tomcat alone.

 Many thanks,
 -Niketan


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



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



Re: How to verify SSL/HTTPS behind Tomcat via AJP13

2003-02-25 Thread Ian Hunter
Thanks, I'll try to check that out.

Does Apache add those variables to the request header?

- Original Message -
From: Eduardo Jaunez S. [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:53 AM
Subject: RE: How to verify SSL/HTTPS behind Tomcat via AJP13


 Dear Ian,

 I have the same problem, but I'm trying to pass the SSL_* vars generated
by
 mod_ssl in Apache into the Tomcat side. I think this aproach could resolve
 your problem (there are a lot of vars generated only when a SSL session is
 open).

 Unfortunately I can't do it yet, so the JkEnvVar doesn't work for my
tests,
 and I don't know what is wrong. I send to you some hints (I receive from
 Tomcat Developer's list):

 httpd.conf:
 ...
 SSLOptions +StdEnvVars +ExportCertData
 ...
 JkEnvVar SSL_CLIENT_CERT SSL_CLIENT_CERT
 ...


 MyTest.jsp
 ...
 HttpServletRequest req  ; //from the post ...

 // Gets the X.509 PEM Certificate
 String SSL_Client =  req.getAttribute(SSL_CLIENT_CERT) ;
 ...


 If you are lucky than me, please let me know !!.

 Eduardo.


  -Mensaje original-
  De: Ian Hunter [mailto:[EMAIL PROTECTED]
  Enviado el: Martes, 25 de Febrero de 2003 11:31
  Para: Tomcat Users List
  Asunto: Re: How to verify SSL/HTTPS behind Tomcat via AJP13
 
 
  I've fallen back to seeing if
  getRequestURL().toString().startsWith(https) -- that seems
  pretty kludgy.
  Any other ideas?
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 8:41 AM
  Subject: RE: How to verify SSL/HTTPS behind Tomcat via AJP13
 
 
  
   The return from getProtocol() is correct, AFAIK.  I don't
  believe there is
  a
   HTTPS/1.1 or similar, but I could be wrong.
  
   By check protocol type in the docs (agreed, it is
  unclear), I believe it
   means to do one (or all) of the following:
  
   - check the URL for https
   - check the port number for the request
   - use HttpServletRequest.isSecure(), though I think that will return
  false
   when you use Tomcat via a connector with ApacheI've
  never tried it to
  be
   sure.
  
   John
  
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:26 PM
To: Tomcat Users List
Subject: How to verify SSL/HTTPS behind Tomcat via AJP13
   
   
From
   
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html -- Any
pages which absolutely require a secure connection should
check the protocol
type associated with the page request and take the
appropriate action of
https is not specified.
   
Also, When running Tomcat primarily as a Servlet/JSP
  container behind
another web server, such as Apache or Microsoft IIS, it is
usually necessary
to configure the primary web server to handle the SSL
  connections from
users. Typically, this server will negotiate all SSL-related
functionality,
then pass on any requests destined for the Tomcat
  container only after
decrypting those requests. Likewise, Tomcat will return
cleartext responses,
that will be encrypted before being returned to the user's
browser. In this
environment, Tomcat knows that communications between the
primary web server
and the client are taking place over a secure connection
  (because your
application needs to be able to ask about this), but it does
not participate
in the encryption or decryption itself.
   
However, when I check request.getProtocol() I get
HTTP/.1.1 even when
I'm connecting via SSL (url shows https: and browser
  shows lock and
confirms 128 bit SSL) -- what gives?
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



Re: Tomcat doesn't throw exception if client application closses the socket.

2003-02-25 Thread Ian Hunter
The default session timeout is 30 minutes; maybe you'd want to consider
lowering that.

Keep in mind that if a client browser is using HTTP/1.0, there are no open
connections ever; once they hit your site and get a page, the connection is
immediately broken -- that's how http is supposed to work.  Cookies and URL
rewriting are solutions that people came up with to get around this.

- Original Message -
From: Niketan Mourya [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:25 AM
Subject: Re: Tomcat doesn't throw exception if client application closses
the socket.


 I am making a connection to a application( my server running on some
 other machine with limited number of threads). In the absence of
 exception I not able to close the connection to my server application
 (here some other complexity involves). And all the threads of my server
 application exhausted.
 The weblogic throws the connection when ever client application closes
 the connection. But it is not happening with tomcat.

 - Niketan.


 Ian Hunter wrote:

 Hmm.  What are you trying to do where that matters?  Sounds like there
might
 be a better way...
 
 - Original Message -
 From: Niketan Mourya [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 9:53 AM
 Subject: Tomcat doesn't throw exception if client application closses the
 socket.
 
 
 
 
 Hi All,
 I am facing a problem because tomcat doesn't throw exception if
 client closes the socket  connection. Do any body have a
 workaround/solution to know about the socket connection status with the
 client application. I am using tomcat alone.
 
 Many thanks,
 -Niketan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/



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



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



Re: tcp/ip stack issues

2003-02-25 Thread Ian Hunter
If you don't have a NIC or an Ethernet connection, what's the point?

In my experience, Win95 will still allow you to connect to 127.0.0.1, but in
Win2K you can't even reach yourself without a network connection.  My
solution was to create an Ethernet loopback plug that I stick in my NIC port
and a short time later I can at least access 127.0.0.1.


- Original Message -
From: Shital Joshi [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 11:10 AM
Subject: tcp/ip stack issues



 hi there,

 we are using tomcat for our application. the application should work on
all
 the windows platforms. now, if the tcp/ip stack is not initialized on
 windows 95 (if network card is not present or if the ithernet connection
is
 not available)
 then tomcat fails to start. any solutions?
 your help is highly appreciated.

 -shital



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



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



How to verify SSL/HTTPS behind Tomcat via AJP13

2003-02-24 Thread Ian Hunter
From http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html -- Any
pages which absolutely require a secure connection should check the protocol
type associated with the page request and take the appropriate action of
https is not specified.

Also, When running Tomcat primarily as a Servlet/JSP container behind
another web server, such as Apache or Microsoft IIS, it is usually necessary
to configure the primary web server to handle the SSL connections from
users. Typically, this server will negotiate all SSL-related functionality,
then pass on any requests destined for the Tomcat container only after
decrypting those requests. Likewise, Tomcat will return cleartext responses,
that will be encrypted before being returned to the user's browser. In this
environment, Tomcat knows that communications between the primary web server
and the client are taking place over a secure connection (because your
application needs to be able to ask about this), but it does not participate
in the encryption or decryption itself.

However, when I check request.getProtocol() I get HTTP/.1.1 even when
I'm connecting via SSL (url shows https: and browser shows lock and
confirms 128 bit SSL) -- what gives?


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



Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Ian Hunter
Put msutil.jar, mssqlserver.jar, and msbase.jar in WEB-INF/lib and all will
be happy.

- Original Message -
From: Michael Ni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:32 PM
Subject: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue


 My goal is to use JSP to query from my Microsoft SQL Server 2000.

 I have successfully created my environments and installed the drivers for
 the Microsoft SQL Server 2000 JDBC.

 However when i run my script i get the following error

 Driver not found:java.lang.ClassNotFoundException:

com.microsoft.jdbc.sqlserver.SQLServerDrivercom.microsoft.jdbc.sqlserver.SQL
ServerDriver
 exception: java.sql.SQLException: No suitable driverNo suitable driver

 you can see for yourself at the following url

 http://128.91.107.144:8080/test/home.jsp

 I attached my home.jsp page.  Does tomcat need to have the microsoft
drivers
 physically in the folder or subfolders of c:\Tomcat 4.1?  All i did was
 create the CLASSPATH which assigned CLASSPATH to the 3 jar driver files.
 I've been stuck on this issue for 3 days.  Can anyone help me?





 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus








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


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



Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Ian Hunter
Mine works fine.  The only place I have the ms*.jar files on my system is
webapps\appname\WEB-INF\lib  -- I have a Win2K Dell laptop running
jdk1.4.0 and Tomcat 4.1.18, connecting to SQL2K through a firewall -- the
same box running SQL2K also hosts a duplicate application, and I've even had
a Sun SPARCserver 20 running SuSE Linux 7.3, blackdown jdk1.3.1 and tomcat
4.1.12 connecting to the SQL server just fine.

Maybe delete your C:\Tomcat 4.1\work\* directories to force Tomcat to
recompile your JSPs. I've had it go squirrelly on me in the past when making
lots of changes.

I can't imagine why you're having this problem.

- Original Message -
From: Michael Ni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:19 PM
Subject: RE: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue



 ive copied to my
 C:\Tomcat 4.1\webapps\ROOT\WEB-INF\lib
 C:\Tomcat 4.1\common\lib
 and it still doesn't work.

 has anyone actually got their scripts to query from SQL Server 2000 using
 the Microsoft SQL Server 2000 JDBC Driver?  seems like sun products never
 work with microsofts

 michael ni



 From: Galbayar Dorjgotov [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue
 Date: Tue, 25 Feb 2003 11:15:44 +0800
 
 copy common\lib directory
 
 -Original Message-
 From: Michael Ni [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue
 
 
 My goal is to use JSP to query from my Microsoft SQL Server 2000.
 
 I have successfully created my environments and installed the drivers for
 the Microsoft SQL Server 2000 JDBC.
 
 However when i run my script i get the following error
 
 Driver not found:java.lang.ClassNotFoundException:

com.microsoft.jdbc.sqlserver.SQLServerDrivercom.microsoft.jdbc.sqlserver.SQ
L
 ServerDriver
 exception: java.sql.SQLException: No suitable driverNo suitable driver
 
 you can see for yourself at the following url
 
 http://128.91.107.144:8080/test/home.jsp
 
 I attached my home.jsp page.  Does tomcat need to have the microsoft
 drivers
 physically in the folder or subfolders of c:\Tomcat 4.1?  All i did was
 create the CLASSPATH which assigned CLASSPATH to the 3 jar driver files.
 I've been stuck on this issue for 3 days.  Can anyone help me?
 
 
 
 
 
 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus


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



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



Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Ian Hunter
I see you just got it working:

exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]Login failed for user 'sa'.[Microsoft][SQLServer 2000 Driver
for JDBC][SQLServer]Login failed for user 'sa'.

- Original Message -
From: Ian Hunter [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:26 PM
Subject: Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue


 Mine works fine.  The only place I have the ms*.jar files on my system is
 webapps\appname\WEB-INF\lib  -- I have a Win2K Dell laptop running
 jdk1.4.0 and Tomcat 4.1.18, connecting to SQL2K through a firewall -- the
 same box running SQL2K also hosts a duplicate application, and I've even
had
 a Sun SPARCserver 20 running SuSE Linux 7.3, blackdown jdk1.3.1 and tomcat
 4.1.12 connecting to the SQL server just fine.

 Maybe delete your C:\Tomcat 4.1\work\* directories to force Tomcat to
 recompile your JSPs. I've had it go squirrelly on me in the past when
making
 lots of changes.

 I can't imagine why you're having this problem.


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



Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Ian Hunter
One reason to use WEB-INF\lib is if you plan on distributing your app or
deploying it to a different system, it's easier to move \webapps\app\*
than to worry about lots of little jars in common...

- Original Message -
From: Peng Tuck Kwok [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:31 PM
Subject: Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue


 Uhm michael, you need to decide where you want to put the jars in the
 first place, if you want the driver available to all webapps then you
 put it there. If you just want it for your webapp then you can put it
 into the lib directory. I'm not sure if it will cause major problems but
 it's best to put it in one place at one time first.
 Also please check your spelling for your driver in the jsp code, you may
 have mispelled it and caused it to look for something else.




 Michael Ni wrote:
 
  ive copied to my
  C:\Tomcat 4.1\webapps\ROOT\WEB-INF\lib
  C:\Tomcat 4.1\common\lib
  and it still doesn't work.
 
  has anyone actually got their scripts to query from SQL Server 2000
  using the Microsoft SQL Server 2000 JDBC Driver?  seems like sun
  products never work with microsofts
 
  michael ni
 
 
 
  From: Galbayar Dorjgotov [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue
  Date: Tue, 25 Feb 2003 11:15:44 +0800
 
  copy common\lib directory
 
  -Original Message-
  From: Michael Ni [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 25, 2003 10:32 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue
 
 
  My goal is to use JSP to query from my Microsoft SQL Server 2000.
 
  I have successfully created my environments and installed the drivers
for
  the Microsoft SQL Server 2000 JDBC.
 
  However when i run my script i get the following error
 
  Driver not found:java.lang.ClassNotFoundException:
 
com.microsoft.jdbc.sqlserver.SQLServerDrivercom.microsoft.jdbc.sqlserver.SQL
 
  ServerDriver
  exception: java.sql.SQLException: No suitable driverNo suitable driver
 
  you can see for yourself at the following url
 
  http://128.91.107.144:8080/test/home.jsp
 
  I attached my home.jsp page.  Does tomcat need to have the microsoft
  drivers
  physically in the folder or subfolders of c:\Tomcat 4.1?  All i did was
  create the CLASSPATH which assigned CLASSPATH to the 3 jar driver
files.
  I've been stuck on this issue for 3 days.  Can anyone help me?
 
 
 
 
 
  _
  MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
  http://join.msn.com/?page=features/virus
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  _
  MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
  http://join.msn.com/?page=features/virus
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



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



Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue

2003-02-24 Thread Ian Hunter
You're welcome -- this is one of the great things about the Jakarta project
and open source software in general -- a great user community.

- Original Message -
From: Michael Ni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:49 PM
Subject: Re: Tomcat and Microsoft SQL Server 2000 JDBC Driver issue


 Thank you Ian Hunter and the rest of the tomcat crew!!!

 Just got it to work!!!  I'm a grateful student from University of
 Pennsylvania trying to make a web application but new to java.  I'm
spoiled
 by asp and IIS but I figure its time to move on to more powerful software.
 Thanks Everyone you guys are awesome.

 Mike Ni


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



Re: Tomcat and Apache

2003-02-21 Thread Ian Hunter
Well said.  One reason I front end with Apache is that I have to run other
applications (IIS/ASP based, pppht!) and have several virtual hosts.  Apache
gives me the flexibility to handle literally anything thrown my way so far.
I also feel like Apache is probably more secure to have exposed to the
outside world.  I don't feel that way about Tomcat.  In fact, I'll only
expose Tomcat apps via a connector, rather than HTTP.

- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 7:13 AM
Subject: Re: Tomcat and Apache


 Apache is better at doing some things than Tomcat.  For instance one I
know
 of is serving static pages.  Apache does that much better.  Also if you
use
 apache you get the benefit of things such as URL Rewriting and you get
 better Virtual host support than with Tomcat acting alone.

 I am sure there is a document somewhere on the web explaining all the
 benefits.

 I would recommend you do put Apache as your live interface to the world.
 Tomcat was designed as an application server not a web server and so if
you
 are being pure about using the correct tool for every job then go with
 Apache  Tomcat instead of just tomcat.

 Recently I will admit, later versions of Tomcat seem to be able to do a
lot
 of what only apache used to be able to do but when you have your system up
 and running you'll find that it is then that you need something (at the
most
 awkward time) that only apache can provide.

 Andoni.

 - Original Message -
 From: Etienne [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, February 21, 2003 12:01 PM
 Subject: Tomcat and Apache


  Hi, I have a simple question to ask. Why most of the people use Apache
  like the web server running in front of Tomcat? Would it be better to
  map tomcat on port 80? What is the plus value of having the apache web
  server in front?
  Is it only to have access to perl or php?
 
  Thanks
 
  Etienne.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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




Re: Servlets and classpath problem

2003-02-21 Thread Ian Hunter
I've had similar problems and I could have sworn I saw someone give the
advice that it's best to give each webapp it's own copy of the shared jars.
I did that and the problems went away.  I hate having duplicate files, but I
guess if proper application segmentation is going on it's probably safer
anyway.  Just my two cents.

- Original Message -
From: John Rishea [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 8:49 AM
Subject: Servlets and classpath problem


 Hi,

 I'm having a classpath problem with Tomcat 4.0.x on a Unix platform and
was
 hoping someone could point me in the right direction.

 A servlet in one of my webapps uses external classes located outside
 common/lib or webapp/WEB-INF/classes.  So I added the external class'
 location to the classpath in my .profile, assuming this would be all I
 needed to do.  When I compile the servlet in my development directory, it
 compiles just fine.  But when I place the servlet class in WEB-INF/classes
 directory and restart Tomcat, a ClassDefNotFound furball gets spit back at
 me for those external classes that (I thought) would be accessible via my
 classpath.

 I have root permissions so I know that isn't the issue.  Is there
something
 else I'm missing here?  An entry in server.xml or something similar?  I
 would really rather not copy those external classes into WEB-INF/classes
(I
 have tried that, and then the servlet works just fine) but I don't know
what
 to try next.

 Thanks for your help!

 __
 John Rishea


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



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




Re: Tomcat 3.3.1a Install Windows 2000 Service

2003-02-21 Thread Ian Hunter
The newer ones install that way by themselves.  4.1.18 is the latest
released build.

- Original Message -
From: Kathleen Long kathleen.long@
To: tomcat-user@xx
Sent: Friday, February 21, 2003 3:08 PM
Subject: Tomcat 3.3.1a Install Windows 2000 Service



Is there a way to install Tomcat as a Windows Service?  I downloded a zip
file and there was no install program.  How can I make Tomcat a windows
service?


-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx


-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx



Re: JSP examples not running on new Installation of Tomcat

2003-02-21 Thread Ian Hunter
What is JAVA_HOME set to?  You might be pointing to a JRE rather than a JDK.
See the root cause?  It's looking for a class numguess$jsp which ought to be
compiled when you hit it the first time.

- Original Message -
From: Appel, Jeremy D jeremy.appel@x
To: tomcat-user@xx
Sent: Friday, February 21, 2003 3:37 PM
Subject: JSP examples not running on new Installation of Tomcat


 I have just recently installed Apache Tomcat 4.0.4 running on a DEC Alpha
 cluster using OpenVMS 7.3.1 (I know unusual installation).

 I have been able to get the servlets to work but whenever I trying running
a
 JSP page, I get the following error:
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP
[snip]
 root cause
 java.lang.ClassNotFoundException: org.apache.jsp.numguess$jsp
 at
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java)

 I have checked my classpath and associated CATALINA_HOME logicals and
 everything looks fine to me.  Here they are:

 JAVA$CLASSPATH = SYS$COMMON:[JAVA$140.LIB]TOOLS.JAR (LNM$PROCESS_TABLE)
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.bin]bootstrap.jar
 = []
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.lib]jasper-compiler.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.lib]jasper-runtime.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.lib]naming-factory.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]activation.jar
 =
$2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]jdbc2_0-stdext.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]jndi.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]jta-spec1_0_1.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]mail.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]naming-common.jar
 =
 $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]naming-resources.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]servlet.jar
 =
 $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]tyrex-0^.9^.7^.0.jar
 = $2$DUA1009:[APACHE.JAKARTA.TOMCAT.common.lib]xerces.jar

 CATALINA_HOME = DISK$APACHE:[APACHE.JAKARTA.TOMCAT]


 BTW, I am using Java 1.4.0.

 Thanks for the help in advance,
 Jeremy Appel



 -
 To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
 For additional commands, e-mail: tomcat-user-help@xx



-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx



Re: AJP13 encryption

2003-02-21 Thread Ian Hunter
Handle the encryption via SSL at the IIS/iPlanet point, then go unencrypted
to Tomcat...? That's what I do with Apache.
- Original Message -
From: Jean [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 7:16 PM
Subject: AJP13 encryption


 Hi,
 I am looking for a solution to use IIS and/or iPlanet as
 reverse proxy connecting to Tomcat (and/or Jetty).

 AJP seems the most common solution but it does not seem
 to support any encryption between the webserver and Tomcat.

 I am looking for pointers on secure alternatives to AJP13.

 Thanks

 jean



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



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



Re: AJP13 encryption

2003-02-21 Thread Ian Hunter
I'm not aware of any way to do that.  You could ditch the ajp connector and
go straight from IIS/iPlanet to port 443/8443 and let Tomcat serve SSL...?

Sounds like an interesting network environment if your Tomcat server isn't
in a DMZ of some sort hiding behind firewall.

- Original Message -
From: Jean [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 9:11 PM
Subject: Re: AJP13 encryption


 Ian

  Handle the encryption via SSL at the IIS/iPlanet point, then go
unencrypted
  to Tomcat...? That's what I do with Apache.

 Sorry if my message was unclear: i do need encryption between the web
server
 and Tomcat.

 jean

  - Original Message -
  From: Jean [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Friday, February 21, 2003 7:16 PM
  Subject: AJP13 encryption
 
 
 
 Hi,
 I am looking for a solution to use IIS and/or iPlanet as
 reverse proxy connecting to Tomcat (and/or Jetty).
 
 AJP seems the most common solution but it does not seem
 to support any encryption between the webserver and Tomcat.
 
 I am looking for pointers on secure alternatives to AJP13.
 
 Thanks
 
 jean
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



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



Re: Help! Anyone successfully install a purchased certificate?

2003-02-20 Thread Ian Hunter
From what I understand, some different certificate vendors require different
installation methods... Did they include instructions for IIS or Apache, for
instance?

Worst possible case you could front-end your site(s) with Apache and use
connectors to get to Tomcat.

- Original Message -
From: Matt Fury [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 3:58 PM
Subject: Help! Anyone successfully install a purchased certificate?


 Has anyone successfully installed a purchase root
 certificate? I've purchased a cert from installssl.com
 and they haven't been much help.

 I've done everything I am supposed to but it just
 won't get recognized when I hit the page. I know the
 Tomcat SSL is working because a self-generated one
 works fine but when I try to import the purchased
 cert, when a user hits the page it just thinks its
 still a self-generated one.

 Any ideas? I've started with a clean keystore and no
 luck.

 -Matt

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



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




Re: Can't use alternate root context with Tomcat 4.1.12

2002-11-05 Thread Ian Hunter
Martin solved my weird index.jsp problem -- I had to shut tomcat down and
manually clear out the $CATALINA_HOME\work directory, and start tomcat back
up.


--

From: Martin Algesten [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 10:37 AM
Subject: RE: Tomcat 4.1.12 root context index.jsp bug


Did you make sure that the work director has been cleaned out? The
compiled JSP will otherwise still sit around in there. Delete everything
you find under CATALINA_BASE/work (or CATALINA_HOME/work).

Martin

- Original Message -
From: Ian Hunter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 12:03 PM
Subject: Can't use alternate root context with Tomcat 4.1.12


 It seems like either I'm missing something drastic or that me and at least
 one other person on the list have found a bug wherein the ROOT context of
 Tomcat 4.1.12 cannot be reliably changed.

 Has anyone successfully done this?


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: server.xml won't change

2002-11-04 Thread Ian Hunter
I'm having the same problem.  If you request a file OTHER than index.jsp,
you'll get the correct file, but http://servername/index.jsp is ALWAYS the
same file, even if you delete the webapps/ROOT directory.

Can anyone help?  This is really weird!!!

- Original Message -
From: yoom nguyen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 4:55 AM
Subject: server.xml won't change


 I had put a info.war file under tomcat-home/webapps/ directory.
 After stop and restart tomcat.  A directory info was created
 tomcat-home/webapps/info This is where I would like
 tomcat to direct all (traffic) requested information coming from apache.

 However, no matter what I defined in server.xml file.
 Tomcat continue to use the index.jsp under this path
 tomcat-home/webapps/ROOT

 this is a portion of what I defined for server.xml, everything else
 are similar to Umberto's document

 Host name=www.gratiot.com debug=0 appBase=/tomcat-home/webapps/
unpackWARs=true autoDeploy=true

 Context path=info docBase=info debug=1/


 Do I have to get rid of some default path somewhere
 or define a new default path somewhere.

 Thanks much

 Yoom







 - Original Message -
 From: Umberto Nicoletti [EMAIL PROTECTED]
 Date: Tuesday, October 22, 2002 10:07 am
 Subject: [HOWTO] VIRTUAL HOSTING, APACHE 2.0.43, JK2, TOMCAT 4.1.12

  I posted to this mailing list before with the subject: JK2
  connector and
  virtual hosting,
  but got no answer.
 
  After some more reading through the ML archives and the documentation
  I eventually came up with a solution.
  Just to annoy some more people I wrote a little HOWTO ;-).
 
  Hope it will be useful to somebody.
 
  Umberto
  --
  Umberto Nicoletti - [EMAIL PROTECTED] |
  [EMAIL PROTECTED] 049-8239380 (assistenza)
 
  We'll try to make different mistakes this time. - Larry Wall







 -
 Apache 2.0.43 - Tomcat 4.1.12 - jk2 - virtual host HOWTO
 -

 Tue 22 Oct 2002 11:58:28 AM GMT-5
 Umberto Nicoletti [unicoletti at prometeo.it]

 DISCLAIMER

 Insert usual disclaimer here.

 unusual disclaimer
 Please forget:
 1) my English
 2) typos
 3) names of hosts and installation directories

 Also be warned that this is a beta version I just wrote as a reminder. if
you
 encounter errors or discrepancies between what it is written here and what
happens to
 you following this howto (or just want to point out something more
clearly) please
 email me a corrected version of this HOWTO.

 /unusual disclaimer

 SCENARIO

 RedHat Linux 7.2
 Latest 1.4.x Sun JDK:
 #java -version
 java version 1.4.1_01
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
 Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
 Tomcat 4.1.12 binary
 Apache 2.0.43 built from source

[./configure -prefix=/usr/local/apache2.0.43 --sysconfdir=/etc/apache --loca
lstatedir=/var --disable-dav --enable-so --enable-proxy --enable-proxy-conne
ct --enable-proxy-http]
 jk2 connector binary from jakarta.apache.org

 REQUIREMENTS

 Deploy three (in my case) web applications under three different virtual
hosts, making the default vhost
 respond to any name and to the bare IP address.

 GETTING STARTED

 Download all the packages listed above, get a mug of hot coffee (or beer
if you're German),
 do what I say here and you'll be just fine.

 INSTALLING JDK

 Note: download the jdk, not just the jre!
 Uncompress the jdk somewhere in the filesystem:
 I chose /usr/local/:

 [root@ARLIN72AGE279 apache]# ll /usr/local/
 total 48
 lrwxrwxrwx1 root root   13 Oct 18 17:20 apache -
apache2.0.43/
 drwxr-xr-x   15 root root 4096 Oct 21 16:40 apache2.0.43
 drwxr-xr-x2 root root 4096 Feb  6  1996 bin
 drwxr-xr-x2 root root 4096 Feb  6  1996 doc
 drwxr-xr-x2 root root 4096 Feb  6  1996 etc
 drwxr-xr-x2 root root 4096 Feb  6  1996 games
 drwxr-xr-x2 root root 4096 Jun 22  2001 include
 drwxr-xr-x9 root root 4096 Oct 18 16:37 j2sdk1.4.1_01
 lrwxrwxrwx1 root root   14 Oct 18 16:38 java -
j2sdk1.4.1_01/
 drwxr-xr-x2 root root 4096 Feb  6  1996 lib
 drwxr-xr-x2 root root 4096 Jun 22  2001 libexec
 drwxr-xr-x2 root root 4096 Feb  6  1996 sbin
 drwxr-xr-x4 root root 4096 Oct 18 13:07 share
 drwxr-xr-x2 root root 4096 Feb  6  1996 src

 make a symlink named java to  j2sdk1.4.1_01/ so that you can easily switch
back and forth
 between different jvms. We will use the same trick for apache and tomcat
afterwards.

 Now tell your bash shell where to find java binaries: create a file named
java.sh in
 /etc/profile.d with the following content:

Can't use alternate root context with Tomcat 4.1.12

2002-11-04 Thread Ian Hunter
It seems like either I'm missing something drastic or that me and at least
one other person on the list have found a bug wherein the ROOT context of
Tomcat 4.1.12 cannot be reliably changed.

Has anyone successfully done this?


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat 4.1.12 can't replace root context index.jsp

2002-11-01 Thread Ian Hunter
For some reason, if I change the root context to point elsewhere
(specifically c:/work/cvs/parkweb), tomcat 4.1.12 is still supplying the
default index.jsp even though I have removed the webapps/ROOT directory
completely.  OTHER files (index.html, main.jsp) get served correctly out of
the new root but no matter what I do, it intercepts the request for
/index.jsp and supplies it's own you've successfully configured TOMCAT
page, without the graphics.

?!?!?!

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Fw: tomcat 4.1.12 can't replace root context index.jsp

2002-11-01 Thread Ian Hunter
For some reason, if I change the root context to point elsewhere
(specifically c:/work/cvs/parkweb), tomcat 4.1.12 is still supplying the
default index.jsp even though I have removed the webapps/ROOT directory
completely.  OTHER files (index.html, main.jsp) get served correctly out of
the new root but no matter what I do, it intercepts the request for
/index.jsp and supplies it's own you've successfully configured TOMCAT
page, without the graphics.

?!?!?!

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org