Re: WebApps and Aliases

2002-04-16 Thread Hayato Iriumi

Try this. I just posted this solution last night.




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




RE: iis 5.0/tomcat 4.0.3 Please Help me!!!

2002-04-16 Thread Chakradhar Tallam

hi jc,

did u follow the steps properly as mentioned in
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html!

ct.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 4:18 PM
To: Tomcat Users List
Subject: iis 5.0/tomcat 4.0.3 Please Help me!!!


Hi,
I'm trying to run .jsp with IIS 5.0 and an isapi redirector for tomcat
4.0.3 .
Tomcat can run jsp pages correctly, the green arrow of isapi filter is
good. When i run a jsp from iis, only the html content was printed in IE (
for example with date.jsp). I've followed howTo, but in my
uriworkermap.properties i haven't the line /*.jsp=ajp13. How can i put
this?  I can't write it because this file is generated when tomcat start.

here is a copy of my iis_redirect.log :

[Tue Apr 16 08:03:32 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
[Tue Apr 16 08:03:32 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of /localhost/
[Tue Apr 16 08:03:32 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Apr 16 08:03:32 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/localhost/'
[Tue Apr 16 08:03:33 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Apr 16 08:03:33 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
test Default redirection of /
[Tue Apr 16 08:03:33 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Apr 16 08:03:33 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/'
[Tue Apr 16 08:03:33 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Apr 16 08:03:33 2002]  [jk_isapi_plugin.c (638)]: HttpFilterProc [/]
is not a servlet url
[Tue Apr 16 08:03:33 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc check
if [/] is points to the web-inf directory
[Tue Apr 16 08:03:42 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
[Tue Apr 16 08:03:42 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of /localhost/date.jsp
[Tue Apr 16 08:03:42 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Apr 16 08:03:42 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/localhost/date.jsp'
[Tue Apr 16 08:03:42 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Apr 16 08:03:42 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
test Default redirection of /date.jsp
[Tue Apr 16 08:03:42 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Apr 16 08:03:42 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/date.jsp'
[Tue Apr 16 08:03:42 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Apr 16 08:03:42 2002]  [jk_isapi_plugin.c (638)]: HttpFilterProc
[/date.jsp] is not a servlet url
[Tue Apr 16 08:03:42 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc check
if [/date.jsp] is points to the web-inf directory

If you have an idea, please answer me, i was trying it for 4 days.
Thanks
Jc


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



PLEASE HELP!!!Authentication with Tomcat4 and Apache 1.3: getRemoteUser()==NULL

2002-04-16 Thread Skladov, Victor

Hello to all!

Could you please help with this problem: basic authentication with
Apache  and Tomcat. The method getRemoteUser() returns NULL.
I know this problem isn't new, I have searched the Net and mail-archives
but haven't found a suitable solution.

I kindly please those who has expierenced this problem to share they
solutions.

Thanks in advance

Regards,
Viktor Skladovs 


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




My Exceptions not caught anymore, why ?

2002-04-16 Thread Raphael Di Cicco

I don't know if I have done something wrong or not...
Let's see an example :


<%@ include file="head-jsp-dec.jsp" %>
<%@ include file="head-jsp.jsp" %>
<%@ include file="head.jsp" %>
<%@ page errorPage="error.jsp" %>
<%@ page import="java.util.*, Myrdv.*" %>
<%
cStatic.toInt("hy");
%>

cStatic.toInt throws a NumberFormatException. However the JSP never goes to 
error.jsp (I have tracked it).
Instead I have this message :

org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown 
Source)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown 
Source)
at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown 
Source)
at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown 
Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at org.apache.jsp.connect$jsp._jspService(connect$jsp.java:430)

If I go to line 430 in the jsp.class this points to : if (pageContext != null) 
pageContext.handlePageException(t);

I'm lost because it used to work well, must have done something wrong...(note 
that if I delete the line where the exception occurs the application works 
well).

If anyone got any clue, I would appreciate sharing with me.
Thanks
Raphael

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




AW: My Exceptions not caught anymore, why ?

2002-04-16 Thread Ralph Einfeldt

Looks like error happens in your error page and not in connect.jsp.

I think your error page has a syntactical error and can't be compiled.

> -Ursprüngliche Nachricht-
> Von: Raphael Di Cicco [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 10:14
> An: Tomcat Users List
> Betreff: My Exceptions not caught anymore, why ?
> 

> org.apache.jsp.connect$jsp._jspService(connect$jsp.java:430)
> 
> If I go to line 430 in the jsp.class this points to : if 
> (pageContext != null) 
> pageContext.handlePageException(t);
> 
> I'm lost because it used to work well, must have done 
> something wrong...(note 
> that if I delete the line where the exception occurs the 
> application works 
> well).
> 
> If anyone got any clue, I would appreciate sharing with me.
> Thanks
> Raphael
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

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




PEM TO DER

2002-04-16 Thread Mehmet Ugur Kuzu (LinkPlus)

Is anyone have experience on converting pem to der format,
i have a pem file like above format

-BEGIN RSA PRIVATE KEY-
BLA BLA BLA
-END RSA PRIVATE KEY-
-BEGIN CERTIFICATE-
BLA BLA BLA
-END CERTIFICATE-

how can i convert this to two der formatted files one for private key and
one for certification.



--
Bir de Türk dostlarim araniza garanti bankasiyla java kullanarak sanal pos
hizmeti almis olan varmi acaba ?
Ugur



JDBC Drivers

2002-04-16 Thread Richard Johnstone

I don't know if I should post this here or not but here goes
I am trying to connect to an oracle DB using a thin connection.
I have downloaded the classes12.zip  file and put it in
$TOMCAT_HOME/common/lib but I am getting a 
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Do I need to put the class file elsewhere?



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



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


RE: JDBC Drivers

2002-04-16 Thread Reynir Hübner

rename the zip to .jar


-Original Message-
From: Richard Johnstone
[mailto:[EMAIL PROTECTED]]
Sent: 16. apríl 2002 09:34
To: [EMAIL PROTECTED]
Subject: JDBC Drivers


I don't know if I should post this here or not but here goes
I am trying to connect to an oracle DB using a thin connection.
I have downloaded the classes12.zip  file and put it in
$TOMCAT_HOME/common/lib but I am getting a 
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Do I need to put the class file elsewhere?


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




RE: JDBC Drivers

2002-04-16 Thread Teemu Keiski

I suppose you have to change the name of 'classes12.zip' file to
'classes12.jar'.

Teemu Keiski

-Original Message-
From: Richard Johnstone
[mailto:[EMAIL PROTECTED]]
Sent: 16. huhtikuuta 2002 12:34
To: [EMAIL PROTECTED]
Subject: JDBC Drivers


I don't know if I should post this here or not but here goes
I am trying to connect to an oracle DB using a thin connection.
I have downloaded the classes12.zip  file and put it in
$TOMCAT_HOME/common/lib but I am getting a
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Do I need to put the class file elsewhere?



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




RE: JDBC Drivers

2002-04-16 Thread Stuart Stephen

You need to set your classpath up to the file, not just the directory. It is
a bit picky.

eg, set classpath=%classpath%;c:\javastuff\oracle\classes12.jar

That should then work.

Stuart Stephen

-Original Message-
From: Teemu Keiski [mailto:[EMAIL PROTECTED]]
Sent: 16 April 2002 10:38
To: Tomcat Users List
Subject: RE: JDBC Drivers


I suppose you have to change the name of 'classes12.zip' file to
'classes12.jar'.

Teemu Keiski

-Original Message-
From: Richard Johnstone
[mailto:[EMAIL PROTECTED]]
Sent: 16. huhtikuuta 2002 12:34
To: [EMAIL PROTECTED]
Subject: JDBC Drivers


I don't know if I should post this here or not but here goes
I am trying to connect to an oracle DB using a thin connection.
I have downloaded the classes12.zip  file and put it in
$TOMCAT_HOME/common/lib but I am getting a
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Do I need to put the class file elsewhere?



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



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




Re: Mysql pooling datasource in tomcat 4

2002-04-16 Thread Steven Elliott

 original message
> From: Daryn Nakhuda <[EMAIL PROTECTED]>
> Date: Mon, 15 Apr 2002 11:43:57 -0700 (PDT)
> To: [EMAIL PROTECTED]
> Subject: Mysql pooling datasource in tomcat 4
> 
> 
> Has any one had success creating a pooling datasource for mysql in tomcat
> 4? 
> 
> I was able to successfully create a functional datasource jdni resource
> based on the instructions in the jndi resources HOW-TO

Unfortunately by using the Tomcat (4.0.x) default JNDI datasource factory
(aka Tyrex) you not only do not have a pool manager interface but you don't
have a pool.  The Tyrex factory only sets up one physical connection and one
pool instance AFAIK.

In order to create a pool you either can use the jakarta-commons DBCP
factory or write your own implementation.  Craig McClanahan recently posted
this DBCP implementation which works with TC 4.0.x.

 Craig's post
> It should be possible to use the DBCP based pool even with Tomcat 4.0.x by
> overriding the default JNDI factory for javax.sql.DataSource objects (I
> haven't tested this, but in theory it should all work).
> This requires the following steps:
> 
> * Download recent nightly builds of the Collections, Pool, and DBCP
> packages from Jakarta Commons
> (http://jakarta.apache.org/builds/jakarta-commons/nightly/) and put
> the JAR files into $CATALINA_HOME/common/lib along with your JDBC
> driver.
> 
> * Configure the "factory" parameter in the  element
> to set the JNDI ObjectFactory class for this resource:
> 
>   
> 
>   factory
>   org.apache.commons.dbcp.BasicDataSourceFactory
> 
> ... other configuration parameters ...
>   
> 
> * Configure the other parameter values of the  element
> from the list of supported properties below:
> - driverClassName - Fully qualified Java class name of the JDBC driver
> - maxActive   - Maximum number of active connections at one time
> - maxIdle - Maximum number of idle connections at one time
> (if more are returned to the pool, they will be
> closed to release database resources)
> - maxWait - Number of milliseconds the pool will wait when there
> are no available connections before causing
> getConnection() to throw an exception
> - password- Database password
> - url - Connection URL (also accepts "driverName" for
> backwards compatibility)
> - user- Database username
> - validationQuery - Optional SQL SELECT statement used to validate a
> connection before returning it to the application
> (must return at least one row).  This is helpful
> in catching stale connections because of timeouts
> or recycling of the database without stopping
> Tomcat.
> 
> Alternatively, you can use any other connection pool you like, if you
> create your own javax.naming.spi.ObjectFactory implementation class (the
> JNDI object factory interface) and registering its name with the "factory"
> parameter.  Documentation is in the JNDI Specification and the
> corresponding Service Provider Interface document, at:
> 
> http://java.sun.com/products/jndi/docs.html

As I said this implementation works fine for TC 4.0.x. and as Craig mentions
the DBCP BasicDataSourceFactory class is a good model for writing your own
implementation.

HTH

Steven

//* 
* VTV Learning Corporation
*Los Angeles  -  Boston  -  Lisbon
*   (http://www.vtvLearning.com/)
*/


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




mod_jk & tomcat error pages (bug in tomcat error pages?)

2002-04-16 Thread rob

When tomcat displays error messages after an exception in the underlying 
application typically does some formatting on the error produced (ie 
adding styles).

I use mod_jk to run my application where the jsp/servlets function fine 
over the connector to tomcat.  However if an error occurs resulting in 
an exception the error message from tomcat is not formatted properly.  I 
end up seeing all the html and style elements in plain text which makes 
reading the error message quite annoying.

This does not however happen when exceptions occur and running tomcat in 
standalone mode.

Now one might think the connector is not working but unless an exception 
occurs the jsp and servlets work fine.

I believe when tomcat displays error messages that go over the connector 
the Content-Type header is being incorrectly specified to plain/text 
instead of text/html?

Can anyone comment on this?

Also, this may not be reproducable in internet explorer I've noticed IE 
sometimes ignores Content-Type headers and does what it wants.  You may
have to use Netscape or Mozilla to reproduce.


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




RE: JDBC Drivers

2002-04-16 Thread Richard Johnstone

Thats fixed it.
Cheers Matey

>>> [EMAIL PROTECTED] 04/16/02 10:27am >>>
rename the zip to .jar


-Original Message-
From: Richard Johnstone
[mailto:[EMAIL PROTECTED]] 
Sent: 16. apríl 2002 09:34
To: [EMAIL PROTECTED] 
Subject: JDBC Drivers


I don't know if I should post this here or not but here goes
I am trying to connect to an oracle DB using a thin connection.
I have downloaded the classes12.zip  file and put it in
$TOMCAT_HOME/common/lib but I am getting a 
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Do I need to put the class file elsewhere?


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



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



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


Re: AW: PLEASE HELP ME: JNDI ERROR 1

2002-04-16 Thread [EMAIL PROTECTED]

Hi all,

tomorrow I'll try all your suggestions (today in Italy is the day of 
the big the strike for the defence of the workers ): I'll put the new 
version of classes12.jar and then I'll see the log of oracle server.

But I have a question: Hemant said "Which may mean JNDI related classes 
too. I dont know if this would work but, change the time stamp's of all 
tomcat related .xml files by making a small change like adding a space, 
pressing enter etc and see if it makes any difference".

I don't understand: I 'm using Tomcat 4.0.2. Should I upgrade to Tomcat 
4.0.3? Tomcat's JNDI is old? Why should I change all .xml Tomcat files?

Thanks

Laura


> Thats a very good point.
> 
> Also, look for any other old set of classes which Tomcat is picking up
.
> Which may mean JNDI related classes too. I dont know if this would wor
k but,
> change the time stamp's of all tomcat related .xml files by making a s
mall
> change like adding a space, pressing enter etc and see if it makes any
> difference.
> 
> 
> regards
> hemant
> 
> - Original Message -
> From: "Angel Municio" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, April 15, 2002 1:00 PM
> Subject: RE: AW: PLEASE HELP ME: JNDI ERROR 1
> 
> 
> If the Oracle database that you are trying to connect to is a differen
t
> version than the old one, check for updated Oracle jdbc drivers
> (classes12.zip). I have found that there are many releases of this fil
e, and
> newer releases are not always backwards compatible. For instance,
> classes12.zip that work well with 8i do not work well with 9i.
> 
> angel
> 
> -Original Message-
> From: peter lin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 12:48 PM
> To: Tomcat Users List
> Subject: Re: AW: PLEASE HELP ME: JNDI ERROR 1
> 
> 
> 
> look in the tnslistener network log to see if tomcat is getting to the
> machine correctly. If not, it's most likely a typo someplace. If it is
,
> the log will give you more data to debug the problem.
> 
> peter lin
> 
> 
> Laura wrote:
> >
> > But I have controlled all.
> >
> > If I try to connect with sql plus, I connect to the db.
> >
> > Any suggestions?
> >
> > Laura
> >
> > Alle 18:30, lunedì 15 aprile 2002, hai scritto:
> > > You said that you changed user, password, and url.
> > >
> > > I would suspect, that you mistyped either the name
> > > of the server or the port or that your new database
> > > is using different parameters than your old one.
> > >
> > > > -Ursprüngliche Nachricht-
> > > > Von: Laura [mailto:[EMAIL PROTECTED]]
> > > > Gesendet: Montag, 15. April 2002 18:26
> > > > An: Tomcat Users List
> > > > Betreff: PLEASE HELP ME: JNDI ERROR 1
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


Re: My Exceptions not caught anymore, why ?

2002-04-16 Thread Todd Kaplinger

This is a compilation failure not a runtime failure. How will it know to use 
the error page defined inside the jsp page if it never compiled.


>From: Raphael Di Cicco <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: My Exceptions not caught anymore, why ?
>Date: Tue, 16 Apr 2002 10:13:47 +0200
>
>I don't know if I have done something wrong or not...
>Let's see an example :
>
>
><%@ include file="head-jsp-dec.jsp" %>
><%@ include file="head-jsp.jsp" %>
><%@ include file="head.jsp" %>
><%@ page errorPage="error.jsp" %>
><%@ page import="java.util.*, Myrdv.*" %>
><%
>cStatic.toInt("hy");
>%>
>
>cStatic.toInt throws a NumberFormatException. However the JSP never goes to
>error.jsp (I have tracked it).
>Instead I have this message :
>
>org.apache.jasper.JasperException: Unable to compile class for JSP
> at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
> at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown
>Source)
> at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
>Source)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown 
>Source)
> at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown
>Source)
> at 
>org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown
>Source)
> at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown
>Source)
> at org.apache.jasper.runtime.PageContextImpl.forward(Unknown 
>Source)
> at
>org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown 
>Source)
> at org.apache.jsp.connect$jsp._jspService(connect$jsp.java:430)
>
>If I go to line 430 in the jsp.class this points to : if (pageContext != 
>null)
>pageContext.handlePageException(t);
>
>I'm lost because it used to work well, must have done something 
>wrong...(note
>that if I delete the line where the exception occurs the application works
>well).
>
>If anyone got any clue, I would appreciate sharing with me.
>Thanks
>Raphael
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




---
Todd Kaplinger
mailTo:[EMAIL PROTECTED]


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


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




Tomcat 4 + PHP + CGI

2002-04-16 Thread Stefan Schwarzer

Hi all,

before I installed recently Tomcat 4, I was running my GIS, CGI and PHP 
applications simply with the Apache Server. Now, running Tomcat, I have no 
idea how to get my cgi exe-files and PHP (as a module) running again. As 
far as I understand it is not anymore the httpd.conf file of Apache which 
is 'responsible' but the Tomcats server.xml file. So do I have to add 
something to it and if so what?
I tried to find an answer on how to configure Tomcat on its home page, in 
different FAQs, on the web - but I did not spot the right site. Anyone who 
could point me out a site or manual where I can get this information, so I 
can get my beloved PHP pages and my GIS-CGI running again?

Specs:
Windows NT, Apache 1.3, Tomcat 4

Thanks a lot,

Stefan



=
Stefan Schwarzer, Consultant on GEO-3
UNEP/DEWA/GRID-Geneva
Chemin des Anemones 11
CH - 1219 Chatelaine - Switzerland
Tel: (+41) 22.917.83.49 - Fax: (+41) 22.917.80.29
eMail: [EMAIL PROTECTED]
Internet: http://geo3.grid.unep.ch/
=



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




RE: Tomcat 4 + PHP + CGI

2002-04-16 Thread Chris Pheby

Keep Apache set up with CGIs and Modules as before, you need to integrate
Tomcat with Apache,

so here goes


Chris.



Setting up Tomcat, J2EE and Web Services with Apache on Windows

Install Java 2 Standard Edition 1.4

Run the J2SE installer, and choose to install to c:\Program Files\Java\J2SE.
Install all components and set it as a plugin for all browsers

Add the following to the PATH variable:

c:\Progra~1\J2SE\bin.
Install Tomcat 4.0.4 beta 1 LE
Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take
care to install Tomcat as a Service when offered the option by the
installer.

Set the following environment variables:

JAVA_HOME - c:\Progra~1\Java\J2SE
CATALINA_HOME - c:\Progra~1\Java\Tomcat
Integrate Tomcat and Apache
Stop the Tomcat and Apache services. Then download mod_webapp from
jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract
libapr.dll and mod_webapp.so to c:\server\apache\modules.

Add the following lines to httpd.conf:

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
You need to configure a connector in httpd.conf (examples shown for the
modules you can export initially - remove the comments to enable them):


WebAppConnection warpConnection warp localhost:8008
WebAppInfo /webapp-info
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy webdav warpConnection /webdav

Before restarting Apache download Service+ from ActivePlus and use it to set
Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
automatically).

If you want Tomcat to automatically reload classes when they change, you
must edit the server.xml file in c:\program files\tomcat\conf.

To do so, add a default context to the main service element. To do so, find
the comment that read:


and insert the following line just below it:


Then restart Tomcat.

Install JDBC Driver for MySQL
Download the MySQL JDBC driver.

Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and extract
mm.mysql-2.0.11-bin.jar and place it in c:\program
files\java\j2se\jre\lib\ext. It will now be automatically available to Java
programs, without needing to add it to the classpath.

Install Mozilla Plugin
Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
Files\Mozilla\Plugins.

Restart Mozilla

Install NetBeans
Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
automatically detect the JDK.

Netbeans can debug Tomcat, if you want to enable this first remove the
existing Tomcat Service:

net stop "Apache Tomcat"
c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall "Apache Tomcat"
Next install the modified Tomcat service which is enabled for debugging:

Tomcat.exe -install "Apache Tomcat"
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_
socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom
cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out
c:\progra~1\java\tomcat\logs\stdout.log -err
c:\progra~1\java\tomcat\logs\stderr.log
Make the service depend on MySQL as before

Once Tomcat has been restarted go to Netbeans, and select the Debug / Attach
menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of the
machine Tomcat is on, and 12999 as the port. It is now possible to debug the
running Tomcat server.

To assist debugging mount the Tomcat Sources in the Netbeans explorer:

C:\Program Files\Java\J2SE\src
C:\Program Files\Java\Tomcat\src\catalina\src\share
C:\Program Files\Java\Tomcat\src\catalina\src\test
C:\Program Files\Java\Tomcat\src\jasper\src\share




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Stefan Schwarzer
Sent: 16 April 2002 12:15
To: [EMAIL PROTECTED]
Subject: Tomcat 4 + PHP + CGI


Hi all,

before I installed recently Tomcat 4, I was running my GIS, CGI and PHP
applications simply with the Apache Server. Now, running Tomcat, I have no
idea how to get my cgi exe-files and PHP (as a module) running again. As
far as I understand it is not anymore the httpd.conf file of Apache which
is 'responsible' but the Tomcats server.xml file. So do I have to add
something to it and if so what?
I tried to find an answer on how to configure Tomcat on its home page, in
different FAQs, on the web - but I did not spot the right site. Anyone who
could point me out a site or manual where I can get this information, so I
can get my beloved PHP pages and my GIS-CGI running again?

Specs:
Windows NT, Apache 1.3, Tomcat 4

Thanks a lot,

Stefan



=
Stefan Schwarzer, Consultant on GEO-3
UNEP/DEWA/GRID-Geneva
Chemin des Anemones 11
CH - 1219 Chatelaine - Switzerland
Tel: (+41) 22.917.83.49 - Fax: (+41) 22.917.80.29
eMail: [EMAIL PROTECTED]
Internet: http:/

AW: Tomcat 4 + PHP + CGI

2002-04-16 Thread Ralph Einfeldt

If you are using apache in front of tomcat you can keep your 
old configuration for PHP and CGI. It's all still defined in 
httpd.conf. server.xml just contains the informations that
are needed to run tomcat.

It's also possible to use CGI and PHP through tomcat.
(Haven't heard about the last option for a while, several 
month ago I've seen a servlet on the PHP site that implemets
PHP as a servlet)
CGI is part of the standard distribution of tomcat.
(Have look at conf/web.xml)

Which option is better for you depends on many things, but
I guess the first solution is better for you.

> -Ursprüngliche Nachricht-
> Von: Stefan Schwarzer [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 13:15
> An: [EMAIL PROTECTED]
> Betreff: Tomcat 4 + PHP + CGI
> 
> 
> Anyone who could point me out a site or manual where I can 
> get this information, so I can get my beloved PHP pages and 
> my GIS-CGI running again?

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




The requested resource /dossier/fichier.jsp is not available

2002-04-16 Thread tomcat-user

I use Tomcat4.0.3 and i have this error
The requested resource (/dossier/fichier.jsp) is not available
I need help.
I don't know if something must be configure to resolve this. 
--
Posted via jApache.org

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




RE: keystore not found in tomcat-3.3.1-dev

2002-04-16 Thread IS400 ABB

Hi
Thanks for the input, but it didn't help! I've tried many different ways, 
but the thing it comes down to, in my opinion, is that it was a bug in 
tomcat 3.3.1-dev (nightly build downloaded Jan 14, 2002), which caused the 
error whenever the keystore was specified. As I said before, it works fine 
whenever I don't specify the keystore attribute in server.xml. It also works 
on a Win2000 server, but not on True64 Unix4F.

Although, I'm happy now, because I downloaded tomcat 3.3.1-final and it 
works fine on this version.
/Per

>Try:
>
> keystore="/usr/cert/.keystore"
>
>and see if that works.  Its hard to tell from the error output
>if this is the only problem.  Hopefully, it is.
>
>Cheers,
>Larry

_
MSN Photos är det enklaste sättet att dela ut och skriva ut foton: 
http://photos.msn.se/Support/WorldWide.aspx


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




FW: integration with Apache 2.0.35

2002-04-16 Thread D'Elia, Kevin

> Helllo,
> 
>   Has anyone attempted this?  I have used 1.3.x and TCat 3.x both in
> conjunction many times in the past, but am not sure what needs to be done
> in order to have the same combination for the new releases.
> 
>   Thanks in advance to all who respond.
> 
>   Kevin D'Elia

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




FW: Problem with running security application

2002-04-16 Thread D'Elia, Kevin

> Hello,
> 
>   I have recently downloaded 4.03 and am having a problem with the
> ./examples/jsp/security/protected webapp.  When I login (using either a
> MemoryRealm or a JNDIRealm with LDAP), I get the following url
> http://localhost:2002/examples/jsp/security/protected/j_security_check and
> the following error page
> 
> Apache Tomcat/4.0.3 - HTTP Status 400 -
> Invalid direct reference to form login page
> 
> 
> 
> type Status report
> 
> message Invalid direct reference to form login page
> 
> description The request sent by the client was syntactically incorrect
> (Invalid direct reference to form
> login page).
> 
>   I have run this application many times before on Tomcat 3.x without
> any problems, and am wondering why this is happening under 4.0x.
> 
>   Thanks in advance to all who respond.
> 
>   Kevin D'Elia

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




RE: Initialization in Tomcat 4.0.3

2002-04-16 Thread Larry Isaacs

In Tomcat 4.x, this is accomplished by adding a LifecycleListener
to the appropriate container, Engine, Host, etc.  An example of
how something like this is done may be found at:



In this case, the Listener is added to the Host container.  It
adds user home directories as contexts when the Lifecyle.START_EVENT
occurs.  See the org.apache.catalina.startup.UserConfig source
for implementation details.  Hopefully, this will get you started.

Cheers,
Larry

> -Original Message-
> From: Subir Sengupta [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 15, 2002 6:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: Initialization in Tomcat 4.0.3
> 
> 
> Hi,
> 
> In Tomcat 3 we initialized stuff with the RequestInterceptor 
> element in
> web.xml like this:
> 
>debug="0"
>   className="org.apache.tomcat.init.Init" />
> 
> Init has a engineInit method that looks like this:
> public final class Init extends BaseInterceptor
> .
> .
> .
> public void engineInit(ContextManager cm) throws TomcatException {
>   CategoryNames.init();
> 
> etc
> 
> How do I the same thing in Tomcat 4.0.3 ?
> 
> Thanks from a Tomcat newbie,
> Subir
> 
> 
> 
> 
> 
> 
>  <> 
> 

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




TC + JDO

2002-04-16 Thread RAYMOND Romain


Hello,

is someone using JDO (Castor implementation) within Tomcat.
I am looking a the Castor framework but i do not find examples about
using it with TC ... Docs or links will be appreciated.

Thanks.

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




Re: My Exceptions not caught anymore, why ?

2002-04-16 Thread Raphael Di Cicco

Yes you were right, but the error message is not very explicit...

On Tuesday 16 April 2002 12:31, Todd Kaplinger wrote:
> This is a compilation failure not a runtime failure. How will it know to
> use the error page defined inside the jsp page if it never compiled.
>
>
> From: Raphael Di Cicco <[EMAIL PROTECTED]>
>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: My Exceptions not caught anymore, why ?
> >Date: Tue, 16 Apr 2002 10:13:47 +0200
> >
> >I don't know if I have done something wrong or not...
> >Let's see an example :
> >
> >
> ><%@ include file="head-jsp-dec.jsp" %>
> ><%@ include file="head-jsp.jsp" %>
> ><%@ include file="head.jsp" %>
> ><%@ page errorPage="error.jsp" %>
> ><%@ page import="java.util.*, Myrdv.*" %>
> ><%
> >cStatic.toInt("hy");
> >%>
> >
> >cStatic.toInt throws a NumberFormatException. However the JSP never goes
> > to error.jsp (I have tracked it).
> >Instead I have this message :
> >
> >org.apache.jasper.JasperException: Unable to compile class for JSP
> > at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
> > at
> >org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unk
> >nown Source)
> > at
> >org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
> >Source)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
> >Source)
> > at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown
> >Source)
> > at
> >org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown
> >Source)
> > at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown
> >Source)
> > at org.apache.jasper.runtime.PageContextImpl.forward(Unknown
> >Source)
> > at
> >org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
> >Source)
> > at org.apache.jsp.connect$jsp._jspService(connect$jsp.java:430)
> >
> >If I go to line 430 in the jsp.class this points to : if (pageContext !=
> >null)
> >pageContext.handlePageException(t);
> >
> >I'm lost because it used to work well, must have done something
> >wrong...(note
> >that if I delete the line where the exception occurs the application works
> >well).
> >
> >If anyone got any clue, I would appreciate sharing with me.
> >Thanks
> >Raphael
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
>
> ---
> Todd Kaplinger
> mailTo:[EMAIL PROTECTED]
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Tomcat 4 + PHP + CGI

2002-04-16 Thread James Williamson

Chris,

That won't work, the mod_webapp connector doesn't work on Windows platforms.

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Chris Pheby <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:24 PM
Subject: RE: Tomcat 4 + PHP + CGI


> Keep Apache set up with CGIs and Modules as before, you need to integrate
> Tomcat with Apache,
>
> so here goes
>
>
> Chris.
>
>
>
> Setting up Tomcat, J2EE and Web Services with Apache on Windows
>
> Install Java 2 Standard Edition 1.4
>
> Run the J2SE installer, and choose to install to c:\Program
Files\Java\J2SE.
> Install all components and set it as a plugin for all browsers
>
> Add the following to the PATH variable:
>
> c:\Progra~1\J2SE\bin.
> Install Tomcat 4.0.4 beta 1 LE
> Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take
> care to install Tomcat as a Service when offered the option by the
> installer.
>
> Set the following environment variables:
>
> JAVA_HOME - c:\Progra~1\Java\J2SE
> CATALINA_HOME - c:\Progra~1\Java\Tomcat
> Integrate Tomcat and Apache
> Stop the Tomcat and Apache services. Then download mod_webapp from
> jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract
> libapr.dll and mod_webapp.so to c:\server\apache\modules.
>
> Add the following lines to httpd.conf:
>
> LoadModule webapp_module modules/mod_webapp.so
> AddModule mod_webapp.c
> You need to configure a connector in httpd.conf (examples shown for the
> modules you can export initially - remove the comments to enable them):
>
> 
> WebAppConnection warpConnection warp localhost:8008
> WebAppInfo /webapp-info
> #WebAppDeploy examples warpConnection /examples
> #WebAppDeploy webdav warpConnection /webdav
> 
> Before restarting Apache download Service+ from ActivePlus and use it to
set
> Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
> automatically).
>
> If you want Tomcat to automatically reload classes when they change, you
> must edit the server.xml file in c:\program files\tomcat\conf.
>
> To do so, add a default context to the main service element. To do so,
find
> the comment that read:
>
> 
> and insert the following line just below it:
>
> 
> Then restart Tomcat.
>
> Install JDBC Driver for MySQL
> Download the MySQL JDBC driver.
>
> Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and
extract
> mm.mysql-2.0.11-bin.jar and place it in c:\program
> files\java\j2se\jre\lib\ext. It will now be automatically available to
Java
> programs, without needing to add it to the classpath.
>
> Install Mozilla Plugin
> Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
> Files\Mozilla\Plugins.
>
> Restart Mozilla
>
> Install NetBeans
> Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
> automatically detect the JDK.
>
> Netbeans can debug Tomcat, if you want to enable this first remove the
> existing Tomcat Service:
>
> net stop "Apache Tomcat"
> c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall "Apache Tomcat"
> Next install the modified Tomcat service which is enabled for debugging:
>
> Tomcat.exe -install "Apache Tomcat"
>
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
>
ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
>
ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_
>
socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom
> cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop
> org.apache.catalina.startup.Bootstrap -params stop -out
> c:\progra~1\java\tomcat\logs\stdout.log -err
> c:\progra~1\java\tomcat\logs\stderr.log
> Make the service depend on MySQL as before
>
> Once Tomcat has been restarted go to Netbeans, and select the Debug /
Attach
> menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of
the
> machine Tomcat is on, and 12999 as the port. It is now possible to debug
the
> running Tomcat server.
>
> To assist debugging mount the Tomcat Sources in the Netbeans explorer:
>
> C:\Program Files\Java\J2SE\src
> C:\Program Files\Java\Tomcat\src\catalina\src\share
> C:\Program Files\Java\Tomcat\src\catalina\src\test
> C:\Program Files\Java\Tomcat\src\jasper\src\share
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of Stefan Schwarzer
> Sent: 16 April 2002 12:15
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4 + PHP + CGI
>
>
> Hi all,
>
> before I installed recently Tomcat 4, I was running my GIS, CGI and PHP
> applications simply with the Apache Server. Now, running Tomcat, I have no
> idea how to get my cgi exe-files and PHP (as a module) running again. As
> far as I understand it is not anymore the httpd.conf file of Apache which
> is 'responsible' but the Tomcats server.xml file. So do I have to add
> something to it and if so what?
> I tried to find an answer on how to configure Tomcat o

Turning off CGI in Tomcat

2002-04-16 Thread D Henton

Just read a thread on this list about CGI through tomcat. How can I make
certain that this doesn't happen? How can I turn cgi off under tomcat? Is
there a server.xml config that I need to delete. My money says its on by
default...oops.. not a microsoft product;->


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




AW: My Exceptions not caught anymore, why ?

2002-04-16 Thread Ralph Einfeldt

Have a look at the log files or request error.jsp from the browser.

Repost from my answer this morning:

Looks like the error happens in your error page and not in connect.jsp.

I think your error page has a syntactical error and can't be compiled.


> -Ursprüngliche Nachricht-
> Von: Raphael Di Cicco [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 14:33
> An: Tomcat Users List
> Betreff: Re: My Exceptions not caught anymore, why ?
> 
> 
> Yes you were right, but the error message is not very explicit...
> 

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




AW: Turning off CGI in Tomcat

2002-04-16 Thread Ralph Einfeldt

It's turned of by default. 
Have a look at conf/web.xml.

> -Ursprüngliche Nachricht-
> Von: D Henton [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 14:32
> An: Tomcat Users List
> Betreff: Turning off CGI in Tomcat
> 
> How can I turn cgi off under tomcat? Is
> there a server.xml config that I need to delete.

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




RE: Tomcat 4 + PHP + CGI

2002-04-16 Thread Chris Pheby

Hi James, you can get a working binary with mod_webapp in the Tomcat 4.0.1
distribution. This works with release 4.0.4 beta 1 onwards, but was broken
in 4.0.3.

This is a documented and tested installation that I have carried out here,
at home, and on a production server.


Regards,



Chris.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of James Williamson
Sent: 16 April 2002 13:30
To: Tomcat Users List
Subject: Re: Tomcat 4 + PHP + CGI


Chris,

That won't work, the mod_webapp connector doesn't work on Windows platforms.

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Chris Pheby <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:24 PM
Subject: RE: Tomcat 4 + PHP + CGI


> Keep Apache set up with CGIs and Modules as before, you need to integrate
> Tomcat with Apache,
>
> so here goes
>
>
> Chris.
>
>
>
> Setting up Tomcat, J2EE and Web Services with Apache on Windows
>
> Install Java 2 Standard Edition 1.4
>
> Run the J2SE installer, and choose to install to c:\Program
Files\Java\J2SE.
> Install all components and set it as a plugin for all browsers
>
> Add the following to the PATH variable:
>
> c:\Progra~1\J2SE\bin.
> Install Tomcat 4.0.4 beta 1 LE
> Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take
> care to install Tomcat as a Service when offered the option by the
> installer.
>
> Set the following environment variables:
>
> JAVA_HOME - c:\Progra~1\Java\J2SE
> CATALINA_HOME - c:\Progra~1\Java\Tomcat
> Integrate Tomcat and Apache
> Stop the Tomcat and Apache services. Then download mod_webapp from
> jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract
> libapr.dll and mod_webapp.so to c:\server\apache\modules.
>
> Add the following lines to httpd.conf:
>
> LoadModule webapp_module modules/mod_webapp.so
> AddModule mod_webapp.c
> You need to configure a connector in httpd.conf (examples shown for the
> modules you can export initially - remove the comments to enable them):
>
> 
> WebAppConnection warpConnection warp localhost:8008
> WebAppInfo /webapp-info
> #WebAppDeploy examples warpConnection /examples
> #WebAppDeploy webdav warpConnection /webdav
> 
> Before restarting Apache download Service+ from ActivePlus and use it to
set
> Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
> automatically).
>
> If you want Tomcat to automatically reload classes when they change, you
> must edit the server.xml file in c:\program files\tomcat\conf.
>
> To do so, add a default context to the main service element. To do so,
find
> the comment that read:
>
> 
> and insert the following line just below it:
>
> 
> Then restart Tomcat.
>
> Install JDBC Driver for MySQL
> Download the MySQL JDBC driver.
>
> Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and
extract
> mm.mysql-2.0.11-bin.jar and place it in c:\program
> files\java\j2se\jre\lib\ext. It will now be automatically available to
Java
> programs, without needing to add it to the classpath.
>
> Install Mozilla Plugin
> Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
> Files\Mozilla\Plugins.
>
> Restart Mozilla
>
> Install NetBeans
> Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
> automatically detect the JDK.
>
> Netbeans can debug Tomcat, if you want to enable this first remove the
> existing Tomcat Service:
>
> net stop "Apache Tomcat"
> c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall "Apache Tomcat"
> Next install the modified Tomcat service which is enabled for debugging:
>
> Tomcat.exe -install "Apache Tomcat"
>
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
>
ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
>
ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_
>
socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom
> cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop
> org.apache.catalina.startup.Bootstrap -params stop -out
> c:\progra~1\java\tomcat\logs\stdout.log -err
> c:\progra~1\java\tomcat\logs\stderr.log
> Make the service depend on MySQL as before
>
> Once Tomcat has been restarted go to Netbeans, and select the Debug /
Attach
> menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of
the
> machine Tomcat is on, and 12999 as the port. It is now possible to debug
the
> running Tomcat server.
>
> To assist debugging mount the Tomcat Sources in the Netbeans explorer:
>
> C:\Program Files\Java\J2SE\src
> C:\Program Files\Java\Tomcat\src\catalina\src\share
> C:\Program Files\Java\Tomcat\src\catalina\src\test
> C:\Program Files\Java\Tomcat\src\jasper\src\share
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of Stefan Schwarzer
> Sent: 16 April 2002 12:15
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4 + P

Re: Tomcat 4 + PHP + CGI

2002-04-16 Thread James Williamson

Thanks Chris,

We attempted this but this fairly recent e-mail from mod_webapp's author
(attached) stopped us in
our tracks. If you view the code you'll see it's not re-entrant, which with
Windows threaded
environment means you'll get race conditions under load (although it may
appear to function OK).

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Chris Pheby <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 1:50 PM
Subject: RE: Tomcat 4 + PHP + CGI


> Hi James, you can get a working binary with mod_webapp in the Tomcat 4.0.1
> distribution. This works with release 4.0.4 beta 1 onwards, but was broken
> in 4.0.3.
>
> This is a documented and tested installation that I have carried out here,
> at home, and on a production server.
>
>
> Regards,
>
>
>
> Chris.
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of James Williamson
> Sent: 16 April 2002 13:30
> To: Tomcat Users List
> Subject: Re: Tomcat 4 + PHP + CGI
>
>
> Chris,
>
> That won't work, the mod_webapp connector doesn't work on Windows
platforms.
>
> Regards,
>
> James Williamson
> www.nameonthe.net
>
> - Original Message -
> From: Chris Pheby <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Sent: Tuesday, April 16, 2002 12:24 PM
> Subject: RE: Tomcat 4 + PHP + CGI
>
>
> > Keep Apache set up with CGIs and Modules as before, you need to
integrate
> > Tomcat with Apache,
> >
> > so here goes
> >
> >
> > Chris.
> >
> >
> >
> > Setting up Tomcat, J2EE and Web Services with Apache on Windows
> >
> > Install Java 2 Standard Edition 1.4
> >
> > Run the J2SE installer, and choose to install to c:\Program
> Files\Java\J2SE.
> > Install all components and set it as a plugin for all browsers
> >
> > Add the following to the PATH variable:
> >
> > c:\Progra~1\J2SE\bin.
> > Install Tomcat 4.0.4 beta 1 LE
> > Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer.
Take
> > care to install Tomcat as a Service when offered the option by the
> > installer.
> >
> > Set the following environment variables:
> >
> > JAVA_HOME - c:\Progra~1\Java\J2SE
> > CATALINA_HOME - c:\Progra~1\Java\Tomcat
> > Integrate Tomcat and Apache
> > Stop the Tomcat and Apache services. Then download mod_webapp from
> > jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also
extract
> > libapr.dll and mod_webapp.so to c:\server\apache\modules.
> >
> > Add the following lines to httpd.conf:
> >
> > LoadModule webapp_module modules/mod_webapp.so
> > AddModule mod_webapp.c
> > You need to configure a connector in httpd.conf (examples shown for the
> > modules you can export initially - remove the comments to enable them):
> >
> > 
> > WebAppConnection warpConnection warp localhost:8008
> > WebAppInfo /webapp-info
> > #WebAppDeploy examples warpConnection /examples
> > #WebAppDeploy webdav warpConnection /webdav
> > 
> > Before restarting Apache download Service+ from ActivePlus and use it to
> set
> > Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
> > automatically).
> >
> > If you want Tomcat to automatically reload classes when they change, you
> > must edit the server.xml file in c:\program files\tomcat\conf.
> >
> > To do so, add a default context to the main service element. To do so,
> find
> > the comment that read:
> >
> > 
> > and insert the following line just below it:
> >
> > 
> > Then restart Tomcat.
> >
> > Install JDBC Driver for MySQL
> > Download the MySQL JDBC driver.
> >
> > Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and
> extract
> > mm.mysql-2.0.11-bin.jar and place it in c:\program
> > files\java\j2se\jre\lib\ext. It will now be automatically available to
> Java
> > programs, without needing to add it to the classpath.
> >
> > Install Mozilla Plugin
> > Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
> > Files\Mozilla\Plugins.
> >
> > Restart Mozilla
> >
> > Install NetBeans
> > Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
> > automatically detect the JDK.
> >
> > Netbeans can debug Tomcat, if you want to enable this first remove the
> > existing Tomcat Service:
> >
> > net stop "Apache Tomcat"
> > c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall "Apache Tomcat"
> > Next install the modified Tomcat service which is enabled for debugging:
> >
> > Tomcat.exe -install "Apache Tomcat"
> >
>
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
> >
>
ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
> >
>
ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_
> >
>
socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom
> > cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop
> > org.apache.catalina.startup.Bootstrap -params stop -out
> > c:\progra~1\java\tomcat\logs\stdout.log -err
> > c:\pro

RE: Tomcat 4 + PHP + CGI

2002-04-16 Thread Chris Pheby

Hi James, thanks for the response. I was not aware of the issue, and
certainly have had no issues of it. Potential of a race condition is serious
enough to give me pause though.

Regards again,



Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of James Williamson
Sent: 16 April 2002 13:52
To: Tomcat Users List
Subject: Re: Tomcat 4 + PHP + CGI


Thanks Chris,

We attempted this but this fairly recent e-mail from mod_webapp's author
(attached) stopped us in
our tracks. If you view the code you'll see it's not re-entrant, which with
Windows threaded
environment means you'll get race conditions under load (although it may
appear to function OK).

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Chris Pheby <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 1:50 PM
Subject: RE: Tomcat 4 + PHP + CGI


> Hi James, you can get a working binary with mod_webapp in the Tomcat 4.0.1
> distribution. This works with release 4.0.4 beta 1 onwards, but was broken
> in 4.0.3.
>
> This is a documented and tested installation that I have carried out here,
> at home, and on a production server.
>
>
> Regards,
>
>
>
> Chris.
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of James Williamson
> Sent: 16 April 2002 13:30
> To: Tomcat Users List
> Subject: Re: Tomcat 4 + PHP + CGI
>
>
> Chris,
>
> That won't work, the mod_webapp connector doesn't work on Windows
platforms.
>
> Regards,
>
> James Williamson
> www.nameonthe.net
>
> - Original Message -
> From: Chris Pheby <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Sent: Tuesday, April 16, 2002 12:24 PM
> Subject: RE: Tomcat 4 + PHP + CGI
>
>
> > Keep Apache set up with CGIs and Modules as before, you need to
integrate
> > Tomcat with Apache,
> >
> > so here goes
> >
> >
> > Chris.
> >
> >
> >
> > Setting up Tomcat, J2EE and Web Services with Apache on Windows
> >
> > Install Java 2 Standard Edition 1.4
> >
> > Run the J2SE installer, and choose to install to c:\Program
> Files\Java\J2SE.
> > Install all components and set it as a plugin for all browsers
> >
> > Add the following to the PATH variable:
> >
> > c:\Progra~1\J2SE\bin.
> > Install Tomcat 4.0.4 beta 1 LE
> > Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer.
Take
> > care to install Tomcat as a Service when offered the option by the
> > installer.
> >
> > Set the following environment variables:
> >
> > JAVA_HOME - c:\Progra~1\Java\J2SE
> > CATALINA_HOME - c:\Progra~1\Java\Tomcat
> > Integrate Tomcat and Apache
> > Stop the Tomcat and Apache services. Then download mod_webapp from
> > jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also
extract
> > libapr.dll and mod_webapp.so to c:\server\apache\modules.
> >
> > Add the following lines to httpd.conf:
> >
> > LoadModule webapp_module modules/mod_webapp.so
> > AddModule mod_webapp.c
> > You need to configure a connector in httpd.conf (examples shown for the
> > modules you can export initially - remove the comments to enable them):
> >
> > 
> > WebAppConnection warpConnection warp localhost:8008
> > WebAppInfo /webapp-info
> > #WebAppDeploy examples warpConnection /examples
> > #WebAppDeploy webdav warpConnection /webdav
> > 
> > Before restarting Apache download Service+ from ActivePlus and use it to
> set
> > Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
> > automatically).
> >
> > If you want Tomcat to automatically reload classes when they change, you
> > must edit the server.xml file in c:\program files\tomcat\conf.
> >
> > To do so, add a default context to the main service element. To do so,
> find
> > the comment that read:
> >
> > 
> > and insert the following line just below it:
> >
> > 
> > Then restart Tomcat.
> >
> > Install JDBC Driver for MySQL
> > Download the MySQL JDBC driver.
> >
> > Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and
> extract
> > mm.mysql-2.0.11-bin.jar and place it in c:\program
> > files\java\j2se\jre\lib\ext. It will now be automatically available to
> Java
> > programs, without needing to add it to the classpath.
> >
> > Install Mozilla Plugin
> > Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
> > Files\Mozilla\Plugins.
> >
> > Restart Mozilla
> >
> > Install NetBeans
> > Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
> > automatically detect the JDK.
> >
> > Netbeans can debug Tomcat, if you want to enable this first remove the
> > existing Tomcat Service:
> >
> > net stop "Apache Tomcat"
> > c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall "Apache Tomcat"
> > Next install the modified Tomcat service which is enabled for debugging:
> >
> > Tomcat.exe -install "Apache Tomcat"
> >
>
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
> >
>
ava\tomcat\bin\bootstrap.jar;c:\progra~

Problems with Oracle/JNDI/ConnectionPoolDataSource

2002-04-16 Thread Eichfelder, Frank

Hi,

I finally managed to get the JNDI-DataSource to work with Tomcat 4.0.3.
Here the setting of server.xml:


  

factoryoracle.jdbc.pool.OracleDataSourceFactory
userxxx
passwordxxx
driverTypethin
serverNameserver
portNumberport
databaseNamedbName  
  
  

Now, I added the following in my web.xml:


description
jdbc/BuergerPortalDb
oracle.jdbc.pool.OracleConnectionPoolDataSource
Container
Shareable
  

And finally, in the Java-File I added:

Context initCtx = new InitialContext();

  Context envCtx = (Context) initCtx.lookup("java:comp/env");
  ConnectionPoolDataSource cpds = (ConnectionPoolDataSource) 
envCtx.lookup("jdbc/BuergerPortalDb");

  PooledConnection pconn = cpds.getPooledConnection("xxx", "xxx");

  Connection conn = pconn.getConnection();

And, you won't believe it, it really works!!!

But there's one odd point I want to correct:
The User/Password-Setting in the server.xml file is always ignored - I have always to 
pass these two parameters when calling
getPooledConnection("name", "password");

If I call getPooledConnection() without these two parameters, I get some nice 
exceptions.

Now it is quite tedious to store the user/password-combination in the source-code, if 
you could store it in the server.xml...

Has anybody an idea how to make it work via server.xml only?

Frank

mailto:[EMAIL PROTECTED]

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




Re: jk_nt_service fails (error 1067)

2002-04-16 Thread Alexander Höglind

Hi,

I'm sorry if my English isn't the best but it isn't my native language and I wrote 
this little tutorial on working time ;-)
Also, if there is something that isn't right in this tutorial, please feel free to 
ask. 
You can also access this tutorial via my website 
http://www.hoglind.com/tomcat4/index.html.
 I will try to expand the tutorial in the future.

There are some additional settings left that I have left out and some that I havn't 
figured out yet and some . I still don't understand how to make sure that Servlets are 
reloaded when I'm putting up new ones, and some other things. But atleast you should 
have the server up and running.

Hope this help,
Alexander Höglind
[EMAIL PROTECTED]

1. Stop Apache Tomcat  in NT Services (if it is installed).
2. Unistalled previous versions of Tomcat (if it is installed).
3. Install j2sdk-1_4_0-win.exe, restart, (if it isn't already installed).
4. Install jakarta-tomcat-4.0.3.exe 
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin), with NT 
service selected, into a path without any spaces (C:\Tomcat4, I don't know if it's 
nescessary!).
5. Create JAVA_HOME as  a System Variable with the path to where you installed j2sdk.
6. Create CATALINA_HOME as a System Variable with the path to where you installed 
Tomcat.
7. Start Tomcat via the Start menu.
8. Try localhost:8080 and you should see Tomcat Startpage.
9. Stop Tomcat via the Start menu!
10. Create a file called iis_redirect.log and put it into %CATALINA_HOME%\logs.
11. Create a folder in %CATALINA_HOME%\bin called native and put the latest 
isapi_redirector.dll downloaded from apache.org 
(http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/win32/) into 
that folder.
12. Create a folder in %CATALINA_HOME%\conf called jk and put the 
jk_nt_service.exe(http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/)
 into that folder.
13 Download a file called wrapper.properties from 
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/ found in 
jakarta-tomcat-3.3.1.zip , put it into %CATALINA_HOME%\conf\jk and and change 
following values:
wrapper.tomcat_home= the path where you installed Tomcat (the same as CATALINA_HOME)
wrapper.java_home=the path where you installed j2sdk(the same as JAVA_HOME)
and wrapper.cmd_line found in the bottom of that file,
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Djava.security.policy=="$(wrapper.tomcat_policy)" 
-Dtomcat.home="$(wrapper.tomcat_home)" -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) start
14. Open the command prompt and type %CATALINA_HOME%\conf\jk\jk_nt_service -i 
TomcatNTService -a wrapper.properties
15. Open NT Services and start TomcatNTService (NOT Apache Tomcat, only the 
TomcatNTService just installed!!)
16. Restart

Now both Apache Tomcat and TomcatNTService should be installed and running!
17.Create a folder in %CATALINA_HOME%\conf called ntiis
18. Put uriworkers.properties found in jakarta-tomcat-3-3.1.zip into ntiis. Comment 
/examples (#/examples) if you don't want anyone to access thoose files. Uncomment 
#/*jsp=ajp13 (/*jsp=ajp13) and  #/servlet/*=ajp13 (/servlet/*=ajp13). With this 
configuration IIS will only forward jsp files and servlets put into the "clasess" 
folder.
19.Create a file called iis_redirect.reg into ntiis. 
Type this:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirector.dll"
"log_file"="C:\\The Path Where You Installed Tomcat\\logs\\iis_redirector.log"
"log_level"="emerg"
"worker_file"="C:\\The Path Where You Installed 
Tomcat\\conf\\ntiis\\workers.properties"
"worker_mount_file"="C:\\The Path Where You Installed 
Tomcat\\conf\\ntiis\\uriworkermap.properties"

Save the file and run it.

20. Start the Internet Services Manager.
21. Create a virtual catalog in you website calle Jakarta and point it to the native 
folder (C:\Tomcat4\bin\native)
22. Choose Properties on your server (not your website) and choose Edit on Master 
Properties. Chosse ISAPI Filters and choose Add. In the Filename type: Jakarta 
Redirector. Choose browse and click your way to isapi_redirector.dll installed in the 
native folder. Now there would be a red arrow showing that the service is not runnig. 
Restart World Wide Web Publishing Service in the NT Services. Make sure that the arrow 
is green.

23. Open server.xml installed in the conf folder. Look for  ). After that tag,  define your own host:

This is a copy of my host tag:


hoglind.com






24. Restart Apache Tomcat andWorld Wide Web Publishing Service in the NT Services in 
that order.
25. Create a folder called WEB-INF in your root catalog. Create a folder called 
classes and one called lib into WEB-INF. Put a copy of web.xml found in 
%CATALINA_HOME%\webapps\root\WEB-INF into the newly created WEB-INF folder.
26. Put your jsp files anywhere on your server and put your servlets into classes and 

[Fwd: tomcat 4.0.3 shares the sessions between the same app on ahttp and https instance]

2002-04-16 Thread Ismael Blesa Part



 Original Message 
Subject: tomcat 4.0.3 shares the sessions between the same app on a http
and https instance
Date: Wed, 10 Apr 2002 18:22:18 +0200
From: Ismael <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]



I have tested my webapp with last tomcat 4.0.3. I have uncommented the
ssl section and I have installed my webapp putting the app.war file on
the webapps folder.

My apps has a load-on-startup section that initializes the db connection
and shows the progress on the console, before tomcat 4.0.3 I got an
initialization per server (one for http and another one for https), but
with tomcat 4.0.3 I only gets one for the two connectors (http & https)

I think the servlet context is shared between http and https. I thought
that only orionserver supported this.
Is this a bug ?
Is there a way to make 4.0.3 work as the previous versions (that is
without sharing the webcontext) ?
Is this behavious defined on the standard ?






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




AUTHORIZATION HEADER MISSING

2002-04-16 Thread Skladov, Victor

Hi!

In my request header there's no Authorization header, although the
authorization mechanism itself works ( a pop-up login dialog is being
shown and after login I receive the access to my pages).
Can anybody tell me why? Have I forgotten some settings in my config
files?

Thanks for any help!

Regards,
Viktor

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




RE: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Robert Priest

Viktor,

Are you using the ISAPI Filter?



-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: AUTHORIZATION HEADER MISSING


Hi!

In my request header there's no Authorization header, although the
authorization mechanism itself works ( a pop-up login dialog is being
shown and after login I receive the access to my pages).
Can anybody tell me why? Have I forgotten some settings in my config
files?

Thanks for any help!

Regards,
Viktor

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

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




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Skladov, Victor

No, I don't! 

-Ursprüngliche Nachricht-
Von: Robert Priest [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 15:33
An: 'Tomcat Users List'
Betreff: RE: AUTHORIZATION HEADER MISSING


Viktor,

Are you using the ISAPI Filter?



-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: AUTHORIZATION HEADER MISSING


Hi!

In my request header there's no Authorization header, although the
authorization mechanism itself works ( a pop-up login dialog is being
shown and after login I receive the access to my pages).
Can anybody tell me why? Have I forgotten some settings in my config
files?

Thanks for any help!

Regards,
Viktor

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

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

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




RE: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Robert Priest

Just wondering. 
There are issues with the isapi filter that are similar to yours.

-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:47 AM
To: Tomcat Users List
Subject: AW: AUTHORIZATION HEADER MISSING


No, I don't! 

-Ursprüngliche Nachricht-
Von: Robert Priest [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 15:33
An: 'Tomcat Users List'
Betreff: RE: AUTHORIZATION HEADER MISSING


Viktor,

Are you using the ISAPI Filter?



-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: AUTHORIZATION HEADER MISSING


Hi!

In my request header there's no Authorization header, although the
authorization mechanism itself works ( a pop-up login dialog is being
shown and after login I receive the access to my pages).
Can anybody tell me why? Have I forgotten some settings in my config
files?

Thanks for any help!

Regards,
Viktor

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

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

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

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




Apache, Tomcat and Jboss

2002-04-16 Thread Sefton, Adam

Hi,

Has anyone managed to configure the above to work in tandem (apache serving static 
content, tomcat serving jsp/servlets and JBoss for EJBs)? Could you give me some 
pointers as to how on earth this is done?

we're running on Win2k and have a version of JBoss with tomcat already embedded (so 
JBoss starts with Tomcat automatically)

Any help out there? Or pointers to docs that might help (sorry, but I've been trawling 
the web for info for a while now ... I can no longer see the wood for the trees ...)

Thanks

Adam


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Skladov, Victor

I have checked all conf files, haven't even found this word "ISAPI".

-Ursprüngliche Nachricht-
Von: Robert Priest [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 15:50
An: 'Tomcat Users List'
Betreff: RE: AUTHORIZATION HEADER MISSING


Just wondering. 
There are issues with the isapi filter that are similar to yours.

-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:47 AM
To: Tomcat Users List
Subject: AW: AUTHORIZATION HEADER MISSING


No, I don't! 

-Ursprüngliche Nachricht-
Von: Robert Priest [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 15:33
An: 'Tomcat Users List'
Betreff: RE: AUTHORIZATION HEADER MISSING


Viktor,

Are you using the ISAPI Filter?



-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: AUTHORIZATION HEADER MISSING


Hi!

In my request header there's no Authorization header, although the
authorization mechanism itself works ( a pop-up login dialog is being
shown and after login I receive the access to my pages).
Can anybody tell me why? Have I forgotten some settings in my config
files?

Thanks for any help!

Regards,
Viktor

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

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

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

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

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




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Ralph Einfeldt

Not surprising, as you work with apache on linux 
(At least your first post said so).

isapi is for microsofts IIS.

Which connector do you use? (mod_webapp or mod_jk)

> -Ursprüngliche Nachricht-
> Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 15:57
> An: Tomcat Users List
> Betreff: AW: AUTHORIZATION HEADER MISSING
 
> I have checked all conf files, haven't even found this word "ISAPI".
 

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




Applet AWT Question...?

2002-04-16 Thread Stuart Stephen

This is a bit off topic, sorry guys

I'm writing an applet that needs to have images on some components, to do
this though I need to override the paint method and make Button a subclass.

When it comes to the ImageObserver bit I don't know what to put there? Does
anyone know what should go in here to enable this method to work? The code
is below my signature.

Thanks,
Stuart Stephen


public class drawButton extends Button {

...

  public void paint(Graphics g) {
// call super's paint method
super.paint(g);

g.drawImage(image, 0, 0, SOMETHING);
  }

...

}


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




Re: PEM TO DER

2002-04-16 Thread John Brayton

To convert a PEM file to a DER file, use the following command (with OpenSSL):

openssl x509 -in [PEM_FILE] -inform PEM -out [DER_FILE] -outform DER

To split the key and certificate into two separate files, I think 
your best bet is to do this manually with a text editor, before doing 
the conversion.  I don't know of a "command" that will do that for 
you.

John

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




RE: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Robert Priest



this is the first post I read, and seems to be the beginning of the thread.
It does not mention
anything about which OS he is running on.


-Original Message-
From: Skladov, Victor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: AUTHORIZATION HEADER MISSING


Hi!

In my request header there's no Authorization header, although the
authorization mechanism itself works ( a pop-up login dialog is being
shown and after login I receive the access to my pages).
Can anybody tell me why? Have I forgotten some settings in my config
files?

Thanks for any help!

Regards,
Viktor

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

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 10:21 AM
To: Tomcat Users List
Subject: AW: AUTHORIZATION HEADER MISSING


Not surprising, as you work with apache on linux 
(At least your first post said so).

isapi is for microsofts IIS.

Which connector do you use? (mod_webapp or mod_jk)

> -Ursprüngliche Nachricht-
> Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 15:57
> An: Tomcat Users List
> Betreff: AW: AUTHORIZATION HEADER MISSING
 
> I have checked all conf files, haven't even found this word "ISAPI".
 

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

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




integration with Apache 2.0.35

2002-04-16 Thread D'Elia, Kevin

Helllo,

Has anyone attempted this?  I have used 1.3.x and TCat 3.x both in
conjunction many times in the past, but am not sure what needs to be done in
order to have the same combination for the new releases.

Thanks in advance to all who respond.

Kevin D'Elia

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




Apache 2.0.25 & Tomcat 4.0.3

2002-04-16 Thread Christian Heindl

Hello everybody!

I try to integrate Tomcat 4.0.3 into Apache 2.0.25, but I do not success!
mod_jk is successfully loaded and my tomcat-contexts are well! But when I
try to access a context via my browser I get this error:

handler "jakarta-servlet" not found for: login.jsp

How can i get it work? I have tried to fix the problem with

AddHandler jakarta-servlet .jsp

in httpd.conf, but this does not take effect. Any hints?

Or otherwise: Has anybody of you detailed information about the
webapp-module? The jakarta.apache.org-site is not very good at all. :-(

Thank you for spending time on my problem!
Christian

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




Serving images with Apache

2002-04-16 Thread Gabriel Maffia

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

I think I´ve sent this question before, but I´m not sure if it got to
the list.

I´m actually using Tomcat 4.0.1 and Apache 1.3.23, connecting them
through webapp + warp.

We are serving a really heavy application, and I was wondering if
there was a way to make apache serve all the images (.jpg, etc) and
make Tomcat only serve the applications. Should I switch to Mod-Jk?


Thanks in Advance


Gabriel Maffia
Technisys S.R.L.
The first digital e-nabler of Latinamerica

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use 

iQA/AwUBPJdNT70dmyI+ZWfLEQJybACgwGMcSbTBQymm+TroqshGYBfaB+8Ani3A
ye8jvKMUoOyZgJ+6C3N85a6X
=lkJ3
-END PGP SIGNATURE-




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Skladov, Victor

Yes, I'm working with apache on Linux and use teh Basic authentication
with .htpasswd programm.

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 16:21
An: Tomcat Users List
Betreff: AW: AUTHORIZATION HEADER MISSING


Not surprising, as you work with apache on linux 
(At least your first post said so).

isapi is for microsofts IIS.

Which connector do you use? (mod_webapp or mod_jk)

> -Ursprüngliche Nachricht-
> Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 15:57
> An: Tomcat Users List
> Betreff: AW: AUTHORIZATION HEADER MISSING
 
> I have checked all conf files, haven't even found this word "ISAPI".
 

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

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




setting up a new context in tomcat 4.0.3

2002-04-16 Thread Diego, Emil

I am running redhat linux 7.2 with tomcat 4.0.3.  I setup the warp
connection to integrate tomcat and apache and It works when I test the
examples directory.  I use http://localhost/examples/jsp/ and have no
problems running the examples.

I am trying to setup a new context for a seperate director on my web site.
I have added the content entry and everything starts uyp ok.  But when I try
to browse any of the jsp pages in the /sba directory.  They do not get
processed by the server.  I get the contents of the files displayed in the
browser window.  Anyone have any ideas what I am doing wrong.  I have
included the server.xml file that I am currently using.










  
  

  
  






  
  

  
  

  





















  





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




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Skladov, Victor

It seems like I use neither mod_webapp nor mod_jk, but WarpConnector
instead.
What does it mean? What's the difference?

Viktor

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 16:21
An: Tomcat Users List
Betreff: AW: AUTHORIZATION HEADER MISSING


Not surprising, as you work with apache on linux 
(At least your first post said so).

isapi is for microsofts IIS.

Which connector do you use? (mod_webapp or mod_jk)

> -Ursprüngliche Nachricht-
> Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 15:57
> An: Tomcat Users List
> Betreff: AW: AUTHORIZATION HEADER MISSING
 
> I have checked all conf files, haven't even found this word "ISAPI".
 

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

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




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Ralph Einfeldt

WarpConnector = mod_webapp.

Although mod_webapp intends to be the connector of the 
future, a great part of the group members thinks that 
mod_jk is more reliable.

> -Ursprüngliche Nachricht-
> Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 17:13
> An: Tomcat Users List
> Betreff: AW: AUTHORIZATION HEADER MISSING
> 
> 
> It seems like I use neither mod_webapp nor mod_jk, but WarpConnector
> instead.
> What does it mean? What's the difference?
> 
> Viktor
> 

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




mod_webapp, tomcat 4.0.3, apache 2.0.35 question

2002-04-16 Thread Georg Huettenegger

hi,

i have installed the named versions von solaris 2.6 and it does run
successfully. but there are major problems i am having:

o) the application i am trying to execute calls all servlets with
/servlet/login for example. therefore i have set up the following line in
my httpd.conf:
 WebAppDeploy servlet warpConnection /servlet
i have a corresponding servlet directory in the webapps directory of
tomcat and in principal the setup works. BUT i have to use
http://localhost/servlet/servlet/login to get my servlet executed.

can somebody tell me what i need to change so that
http://localhost/servlet/login itself will work (but still having the
possibility that apache is serving http://localhost/images/x.gif by
itself)?

o) more a tomcat setup question: i have a lot of java servlets as .class
files. how do i instruct tomcat to execute these servlets without
explicitly naming them in a web.xml file?

i am not sure whether the following did achieve it in tomcat 3 and whether
it still does work in tomcat 4 (would be part of server.xml):



o) mod_jk allows to have *.jsp files being served by tomcat and *.html
files being served by apache in one and the same directory. i have read
that with mod_webapp i would need a filtering functionality of tomcat to
achieve the same behavour. is that correct and what would i need to do?

hope you can help me with my pressing problems.

bye,
 georg


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




Re: Tomcat 4.0.3 + Apache 2.0.32

2002-04-16 Thread Pascal Forget

Bhide, Atul wrote:

>
>The problem is solved. I compiled the latest version 4.0.4.b1 version of the
>tomcat-connectors and it works now.
>
You did succeed, that's fantastic!  

My name is Pascal Forget and I wrote a little howto on how to setup
Apache 1.3.23 + mod_jk + tomcat + load balancer a while ago.
www.ubeans.com/tomcat

I want to update my howto for Apache 2.0, and the only thing I could
not get to work is the compilation step for mod_jk.

Would you please be kind enough to either provide me with a detailed 
explanation on
how to compile mod_jk, or provide binaries?  I tried to compile mod_jk 
for several
hours yesterday on a Red Hat Linux 7.2 i686 box with the latest patches 
and I always
got error messages about dl_open() and other missing functions.

Ideally, I would like to produce binaries of mod_jk for Linux, FreeBSD, 
Solaris, Windows
and a few other platforms and offer links to these on my web page.

Any help would be greatly appreciated!

Thanks,

Pascal
 


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




RE: Problems with Oracle/JNDI/ConnectionPoolDataSource

2002-04-16 Thread Bryan Austad

I tried the configuration that you are using and could not get it to work.
Is the databaseName in server.xml the service name (SID)?  I tried using the
SID and the tns name there and still got a null when calling to retrieve the
datasource or PooledConnectionDataSource.  Tyrex is working just fine, I
just can't get Oracle pooled connections.  Is there anything else needed
besides what you added in this email?

tks
Bryan

-Original Message-
From: Eichfelder, Frank [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 7:12 AM
To: [EMAIL PROTECTED]
Subject: Problems with Oracle/JNDI/ConnectionPoolDataSource


Hi,

I finally managed to get the JNDI-DataSource to work with Tomcat 4.0.3.
Here the setting of server.xml:


  

factoryoracle.jdbc.pool.OracleDataSourceFacto
ry
userxxx
passwordxxx

driverTypethin

serverNameserver

portNumberport

databaseNamedbName
  

Now, I added the following in my web.xml:


description
jdbc/BuergerPortalDb
oracle.jdbc.pool.OracleConnectionPoolDataSource
Container
Shareable
  

And finally, in the Java-File I added:

Context initCtx = new InitialContext();

  Context envCtx = (Context) initCtx.lookup("java:comp/env");
  ConnectionPoolDataSource cpds = (ConnectionPoolDataSource)
envCtx.lookup("jdbc/BuergerPortalDb");

  PooledConnection pconn = cpds.getPooledConnection("xxx", "xxx");

  Connection conn = pconn.getConnection();

And, you won't believe it, it really works!!!

But there's one odd point I want to correct:
The User/Password-Setting in the server.xml file is always ignored - I have
always to pass these two parameters when calling
getPooledConnection("name", "password");

If I call getPooledConnection() without these two parameters, I get some
nice exceptions.

Now it is quite tedious to store the user/password-combination in the
source-code, if you could store it in the server.xml...

Has anybody an idea how to make it work via server.xml only?

Frank

mailto:[EMAIL PROTECTED]

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


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




Tomcat, IIS and JavaService Problem

2002-04-16 Thread Daniel Tamborelli Alvarenga

Hi,

I am using Tomcat 3.2.3 as service (JavaService) with IIS 5.0/Win2k.
Sometimes Tomcat just stop responding and we must restart it.

Anybody knows what may be causing this problem?

PS: JavaService is configured with HotSpot.

Thank you.


Daniel Tamborelli Alvarenga
Open Dimensions - Internet Commerce Solutions
55 11 5505 1144
[EMAIL PROTECTED]



How do i setup a webdirectory to process jsp files

2002-04-16 Thread Diego, Emil

I am runnign redhat 7.2 with apache 1.3 and tomcat 4.0.3.

I configured tomcat and apache to use the mod_webapp and testes the examples
directory and it worked ok.
How do I setup my directory /sba on my mebsite to parse the jsp files I want
to place in them.


Emil Diego
Web Coordinator
University of Miami School of Business
[EMAIL PROTECTED]
ph: 305.284.5449
fx: 305.284.3404

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




AW: AUTHORIZATION HEADER MISSING

2002-04-16 Thread Skladov, Victor

Ralph!

One more question: it seems like my Tomcat runs as Stand Alone service
at the moment.The Module mod_webapp is not implemented.
Do I have to implement mod_webapp so that Tomcat could work with Apache
directly?

-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 17:19
An: Tomcat Users List
Betreff: AW: AUTHORIZATION HEADER MISSING


WarpConnector = mod_webapp.

Although mod_webapp intends to be the connector of the 
future, a great part of the group members thinks that 
mod_jk is more reliable.

> -Ursprüngliche Nachricht-
> Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. April 2002 17:13
> An: Tomcat Users List
> Betreff: AW: AUTHORIZATION HEADER MISSING
> 
> 
> It seems like I use neither mod_webapp nor mod_jk, but WarpConnector
> instead.
> What does it mean? What's the difference?
> 
> Viktor
> 

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

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




RE: Mysql pooling datasource in tomcat 4

2002-04-16 Thread daryn nakhuda

Excellent, thanks a lot!

I ended up using Protomatter's jdbc pooling (
http://protomatter.sourceforge.net ) and it seems to be doing the trick.



-Original Message-
From: Steven Elliott [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 2:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Mysql pooling datasource in tomcat 4


 original message
> From: Daryn Nakhuda <[EMAIL PROTECTED]>
> Date: Mon, 15 Apr 2002 11:43:57 -0700 (PDT)
> To: [EMAIL PROTECTED]
> Subject: Mysql pooling datasource in tomcat 4
>
>
> Has any one had success creating a pooling datasource for mysql in tomcat
> 4?
>
> I was able to successfully create a functional datasource jdni resource
> based on the instructions in the jndi resources HOW-TO

Unfortunately by using the Tomcat (4.0.x) default JNDI datasource factory
(aka Tyrex) you not only do not have a pool manager interface but you don't
have a pool.  The Tyrex factory only sets up one physical connection and one
pool instance AFAIK.

In order to create a pool you either can use the jakarta-commons DBCP
factory or write your own implementation.  Craig McClanahan recently posted
this DBCP implementation which works with TC 4.0.x.

 Craig's post
> It should be possible to use the DBCP based pool even with Tomcat 4.0.x by
> overriding the default JNDI factory for javax.sql.DataSource objects (I
> haven't tested this, but in theory it should all work).
> This requires the following steps:
>
> * Download recent nightly builds of the Collections, Pool, and DBCP
> packages from Jakarta Commons
> (http://jakarta.apache.org/builds/jakarta-commons/nightly/) and put
> the JAR files into $CATALINA_HOME/common/lib along with your JDBC
> driver.
>
> * Configure the "factory" parameter in the  element
> to set the JNDI ObjectFactory class for this resource:
>
>   
> 
>   factory
>   org.apache.commons.dbcp.BasicDataSourceFactory
> 
> ... other configuration parameters ...
>   
>
> * Configure the other parameter values of the  element
> from the list of supported properties below:
> - driverClassName - Fully qualified Java class name of the JDBC driver
> - maxActive   - Maximum number of active connections at one time
> - maxIdle - Maximum number of idle connections at one time
> (if more are returned to the pool, they will be
> closed to release database resources)
> - maxWait - Number of milliseconds the pool will wait when there
> are no available connections before causing
> getConnection() to throw an exception
> - password- Database password
> - url - Connection URL (also accepts "driverName" for
> backwards compatibility)
> - user- Database username
> - validationQuery - Optional SQL SELECT statement used to validate a
> connection before returning it to the application
> (must return at least one row).  This is helpful
> in catching stale connections because of timeouts
> or recycling of the database without stopping
> Tomcat.
>
> Alternatively, you can use any other connection pool you like, if you
> create your own javax.naming.spi.ObjectFactory implementation class (the
> JNDI object factory interface) and registering its name with the "factory"
> parameter.  Documentation is in the JNDI Specification and the
> corresponding Service Provider Interface document, at:
>
> http://java.sun.com/products/jndi/docs.html

As I said this implementation works fine for TC 4.0.x. and as Craig mentions
the DBCP BasicDataSourceFactory class is a good model for writing your own
implementation.

HTH

Steven

//*
* VTV Learning Corporation
*Los Angeles  -  Boston  -  Lisbon
*   (http://www.vtvLearning.com/)
*/


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


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




Apache serving static content

2002-04-16 Thread Gabriel Maffia

Hello Again:

I know I can be kinda annoying, but I really need to know if someone could make 
mod_webapp + warp configuration to serve only dynamic content, and apache serve only 
the static content.
 If not, does anyone know where can I find a reference for mod_webapp? Because it 
seems like there is no detailed documentation on how to use it.


Thanks a LOT!


Gabriel Maffia




Re: Apache serving static content

2002-04-16 Thread James Williamson

Gabriel,

I wrote a quick patch a while ago for mod_webapp that lets you
specify patterns to ignore (i.e. the request never sees Tomcat).
 So apply the patch and recompile, and  in your httpd.conf file use
WebAppIgnore directives to tell mod_webapp which patterns to ignore.

i.e.
WebAppIgnore *.html
WebAppIgnore /cgi-bin/*

I haven't thoroughly tested it so would be pleased to know
how you get on. Please find the patch attached. I would submit
to the developers except I need to fix a few problems with it
(You must put the WebAppIgnore's after you've declared your application).

Regards,

James Williamson

www.nameonthe.net
UK Tomcat Hosting

- Original Message -
From: Gabriel Maffia <[EMAIL PROTECTED]>
To: Tomcat Users List Service <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 5:07 PM
Subject: Apache serving static content


Hello Again:

I know I can be kinda annoying, but I really need to know if someone could
make mod_webapp + warp configuration to serve only dynamic content, and
apache serve only the static content.
 If not, does anyone know where can I find a reference for mod_webapp?
Because it seems like there is no detailed documentation on how to use it.


Thanks a LOT!


Gabriel Maffia





mod_webapp.patch
Description: Binary data

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


AW: mod_webapp, tomcat 4.0.3, apache 2.0.35 question

2002-04-16 Thread O. Gross - Principio

hi,

instead of WebAppDeploy servlet warpConnection /servlet try WebAppDeploy
servlet warpConnection /
best within the configuration of the virtual host (if any).

greetings
olaf



-Ursprungliche Nachricht-
Von: Georg Huettenegger [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. April 2002 17:31
An: [EMAIL PROTECTED]
Betreff: mod_webapp, tomcat 4.0.3, apache 2.0.35 question


hi,

i have installed the named versions von solaris 2.6 and it does run
successfully. but there are major problems i am having:

o) the application i am trying to execute calls all servlets with
/servlet/login for example. therefore i have set up the following line in
my httpd.conf:
 WebAppDeploy servlet warpConnection /servlet
i have a corresponding servlet directory in the webapps directory of
tomcat and in principal the setup works. BUT i have to use
http://localhost/servlet/servlet/login to get my servlet executed.

can somebody tell me what i need to change so that
http://localhost/servlet/login itself will work (but still having the
possibility that apache is serving http://localhost/images/x.gif by
itself)?

o) more a tomcat setup question: i have a lot of java servlets as .class
files. how do i instruct tomcat to execute these servlets without
explicitly naming them in a web.xml file?

i am not sure whether the following did achieve it in tomcat 3 and whether
it still does work in tomcat 4 (would be part of server.xml):



o) mod_jk allows to have *.jsp files being served by tomcat and *.html
files being served by apache in one and the same directory. i have read
that with mod_webapp i would need a filtering functionality of tomcat to
achieve the same behavour. is that correct and what would i need to do?

hope you can help me with my pressing problems.

bye,
 georg


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


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




How to install Tomcat on network -- is there any network version of Tomcat

2002-04-16 Thread Uma Munugala

Hi All
Iam working on Tomcat 4.0.3 standalone. It works well. I want to install
tomcat 4.0.3 on network so that other developers can access.
How do I do that. Do I need to configure in some different way or is there
any different copy of Tomcat 4.0.3 for network.

Can any body help me.


Thanks
Uma

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




Re: Apache serving static content

2002-04-16 Thread Ken Anderson

mod_webapp already works this way. That's the whole point of using it 
with Apache, right?
See http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
Ken

> Hello Again:
> 
> I know I can be kinda annoying, but I really need to know if someone could
> make mod_webapp + warp configuration to serve only dynamic content, and
> apache serve only the static content.
>  If not, does anyone know where can I find a reference for mod_webapp?
> Because it seems like there is no detailed documentation on how to use it.
> 
> 
> Thanks a LOT!
> 
> 
> Gabriel Maffia
> 
> 
> 


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




Re: Apache serving static content

2002-04-16 Thread Gabriel Maffia

Do you mean, that you don´t need no additional configuration to make this
work?

- Original Message -
From: "Ken Anderson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 1:37 PM
Subject: Re: Apache serving static content


> mod_webapp already works this way. That's the whole point of using it
> with Apache, right?
> See http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
> Ken
>
> > Hello Again:
> >
> > I know I can be kinda annoying, but I really need to know if someone
could
> > make mod_webapp + warp configuration to serve only dynamic content, and
> > apache serve only the static content.
> >  If not, does anyone know where can I find a reference for mod_webapp?
> > Because it seems like there is no detailed documentation on how to use
it.
> >
> >
> > Thanks a LOT!
> >
> >
> > Gabriel Maffia
> >
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




Tomcat 3.2.4 and Apache 2.0.35 question

2002-04-16 Thread Stuart Morse

Hi All,

I have successfully had Apache and Tomcat working together on Windows 98
and FreeBSD using mod_jserv. I'm trying to do the same thing on NT 4.0
Workstation using mod_jk. I have added the line:

  Include c:/Program Files/Tomcat/conf/mod_jk.conf-auto

at the end of my httpd.conf file and have placed the mod_jk.dll file from
the Apache site in the modules directory under the Apache home directory.
I have defined the environment variables JAVA_HOME and TOMCAT_HOME.
Both Apache and Tomcat operate fine in stand-alone mode, but when I include
the line above in httpd.conf a dialog is displayed when I try and start 
Apache saying:

  The requested operation has failed!

I can't find an error message anywhere that would give me a clue about 
what went wrong. Even when I provide an empty mod_jk.conf-auto file I get
the same message.

Any ideas?

Regards,

Stuart


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




Re: Tomcat, IIS and JavaService Problem

2002-04-16 Thread Daniel Tamborelli Alvarenga

Does anybody knows any kind of bug in Tomcat or JavaService
that can be the reason of this problem?

Thanks

- Original Message - 
From: "Daniel Tamborelli Alvarenga" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:53 PM
Subject: Tomcat, IIS and JavaService Problem


Hi,

I am using Tomcat 3.2.3 as service (JavaService) with IIS 5.0/Win2k.
Sometimes Tomcat just stop responding and we must restart it.

Anybody knows what may be causing this problem?

PS: JavaService is configured with HotSpot.

Thank you.



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




RE: Tomcat, IIS and JavaService Problem

2002-04-16 Thread Barney Hamish

What driver are you using for your database connections. The most common
cause of Tomcat crashes like you describe is the use of the JDBC-ODBC
bridge.

-Original Message-
From: Daniel Tamborelli Alvarenga [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 6:55 PM
To: Tomcat Users List
Subject: Re: Tomcat, IIS and JavaService Problem


Does anybody knows any kind of bug in Tomcat or JavaService
that can be the reason of this problem?

Thanks

- Original Message - 
From: "Daniel Tamborelli Alvarenga" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:53 PM
Subject: Tomcat, IIS and JavaService Problem


Hi,

I am using Tomcat 3.2.3 as service (JavaService) with IIS 5.0/Win2k.
Sometimes Tomcat just stop responding and we must restart it.

Anybody knows what may be causing this problem?

PS: JavaService is configured with HotSpot.

Thank you.



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

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




Re: autoDeploy scan timer setting?

2002-04-16 Thread Aditya

Remy,


On Sat, Apr 06, 2002 at 05:22:17PM -0800, Remy Maucherat wrote:
> > In org.apache.catalina.startup.HostConfig I see a variable that sets the
> "scan
> > timer" to deploy new contexts:
> >
> >/**
> >  * The number of seconds between checks for web app deployment.
> >  */
> > private int checkInterval = 15;
> >
> > is there a server.xml config file setting to alter this? 15 seconds is a
> bit
> > too fast...
> >
> > I've noticed that if you happen to hit the URL for the context while it's
> > being deployed then the deployment aborts and you have to restart tomcat
> to be
> > able to start that context. Is this a known bug?
> 
> I've been doing this, and this does not happen.

I tracked down the behaviour to the fact that the appBase directory was on a
loaded down NFS server so even though the directory existed, WEB-INF/web.xml
was unavailable.

In any case, I put it on a better NFS server and it worked fine under 4.0.2 --
I upgraded to 4.0.3 running the security manager and left autoDeploy="true" in
server.xml but now apps added to the appBase directory don't get autoDeploy'd
at all, even after checkInterval seconds:

  

Is there something additional I have to configure in 4.0.3 that wasn't in
4.0.2? BugID 3724 which is listed as resolved as of 4.0.1-B1 describes
something similar but under Windows -- I'm running this on FreeBSD.

Any hints?

Thanks,
Adi

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




Re: Tomcat, IIS and JavaService Problem

2002-04-16 Thread Daniel Tamborelli Alvarenga

I'm using "com.thinweb.tds.Driver".

- Original Message - 
From: "Barney Hamish" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 1:56 PM
Subject: RE: Tomcat, IIS and JavaService Problem


> What driver are you using for your database connections. The most common
> cause of Tomcat crashes like you describe is the use of the JDBC-ODBC
> bridge.
> 
> -Original Message-
> From: Daniel Tamborelli Alvarenga [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 6:55 PM
> To: Tomcat Users List
> Subject: Re: Tomcat, IIS and JavaService Problem
> 
> 
> Does anybody knows any kind of bug in Tomcat or JavaService
> that can be the reason of this problem?
> 
> Thanks
> 
> - Original Message - 
> From: "Daniel Tamborelli Alvarenga" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 16, 2002 12:53 PM
> Subject: Tomcat, IIS and JavaService Problem
> 
> 
> Hi,
> 
> I am using Tomcat 3.2.3 as service (JavaService) with IIS 5.0/Win2k.
> Sometimes Tomcat just stop responding and we must restart it.
> 
> Anybody knows what may be causing this problem?
> 
> PS: JavaService is configured with HotSpot.
> 
> Thank you.
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




Upgrading from Tomcat 3.2.1 to tomcat 3.3.1

2002-04-16 Thread Michel COTE

Hello,

I'm using Jakarta Tomcat 3.2.1since one year.
As i had to install a new machine, i decided to use instead Tomcat 3.3.1

My JSP files use the classes of a package on my server (by importing them). 
With 3.3.1 i am unable to use the classes of this package in my JSP 
classes. Looks like the CLASSPATH is no more use !?

With 3.2.1 i used to put the classpath in a 
TOMCAT_HOME\conf\wrapper.properties files. This file as moved or disappear, 
where can i define the classpath of Tomcat 3.3.1.

Thanks for any precious help and sorry for my bad english !

Michel COTE.


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




Re: mod_jk & tomcat error pages (bug in tomcat error pages?)

2002-04-16 Thread Pascal Forget

In Apache's httpd.conf, replace:

DefaultType text/plain

with:

DefaultType text/html



rob wrote:

> When tomcat displays error messages after an exception in the 
> underlying application typically does some formatting on the error 
> produced (ie adding styles).
>
> I use mod_jk to run my application where the jsp/servlets function 
> fine over the connector to tomcat.  However if an error occurs 
> resulting in an exception the error message from tomcat is not 
> formatted properly.  I end up seeing all the html and style elements 
> in plain text which makes reading the error message quite annoying.
>
> This does not however happen when exceptions occur and running tomcat 
> in standalone mode.
>
> Now one might think the connector is not working but unless an 
> exception occurs the jsp and servlets work fine.
>
> I believe when tomcat displays error messages that go over the 
> connector the Content-Type header is being incorrectly specified to 
> plain/text instead of text/html?
>
> Can anyone comment on this?
>
> Also, this may not be reproducable in internet explorer I've noticed 
> IE sometimes ignores Content-Type headers and does what it wants.  You 
> may
> have to use Netscape or Mozilla to reproduce.
>
>
> -- 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>




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




Re: Serving images with Apache

2002-04-16 Thread Pascal Forget

The answer is in www.ubeans.com/tomcat


Gabriel Maffia wrote:

>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>Hi.
>
>I think I´ve sent this question before, but I´m not sure if it got to
>the list.
>
>I´m actually using Tomcat 4.0.1 and Apache 1.3.23, connecting them
>through webapp + warp.
>
>We are serving a really heavy application, and I was wondering if
>there was a way to make apache serve all the images (.jpg, etc) and
>make Tomcat only serve the applications. Should I switch to Mod-Jk?
>
>
>Thanks in Advance
>
>
>Gabriel Maffia
>Technisys S.R.L.
>The first digital e-nabler of Latinamerica
>
>-BEGIN PGP SIGNATURE-
>Version: PGPfreeware 7.0.3 for non-commercial use 
>
>iQA/AwUBPJdNT70dmyI+ZWfLEQJybACgwGMcSbTBQymm+TroqshGYBfaB+8Ani3A
>ye8jvKMUoOyZgJ+6C3N85a6X
>=lkJ3
>-END PGP SIGNATURE-
>
>




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




RE: Upgrading from Tomcat 3.2.1 to tomcat 3.3.1

2002-04-16 Thread Larry Isaacs



> -Original Message-
> From: Michel COTE [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 16, 2002 1:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: Upgrading from Tomcat 3.2.1 to tomcat 3.3.1
> 
> 
> Hello,
> 
> I'm using Jakarta Tomcat 3.2.1since one year.
> As i had to install a new machine, i decided to use instead 
> Tomcat 3.3.1
> 
> My JSP files use the classes of a package on my server (by 
> importing them). 
> With 3.3.1 i am unable to use the classes of this package in my JSP 
> classes. Looks like the CLASSPATH is no more use !?

Correct.  See the following for information on configuring classes
in Tomcat 3.3.x:



> 
> With 3.2.1 i used to put the classpath in a 
> TOMCAT_HOME\conf\wrapper.properties files. This file as moved 
> or disappear, 
> where can i define the classpath of Tomcat 3.3.1.

It is now in conf\jk.  Note that this file has an issue in that
it requires an extra modification before use.  For details, see the
note at:



Cheers,
Larry

> 
> Thanks for any precious help and sorry for my bad english !
> 
> Michel COTE.
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: Serving images with Apache

2002-04-16 Thread Ken Anderson

Unless you have WebAppDeploy pointing to the document root of the site, 
you won't have any problems serving static content from Apache.
Ken


Gabriel Maffia wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi.
> 
> I think I´ve sent this question before, but I´m not sure if it got to
> the list.
> 
> I´m actually using Tomcat 4.0.1 and Apache 1.3.23, connecting them
> through webapp + warp.
> 
> We are serving a really heavy application, and I was wondering if
> there was a way to make apache serve all the images (.jpg, etc) and
> make Tomcat only serve the applications. Should I switch to Mod-Jk?
> 
> 
> Thanks in Advance
> 
> 
> Gabriel Maffia
> Technisys S.R.L.
> The first digital e-nabler of Latinamerica
> 
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use 
> 
> iQA/AwUBPJdNT70dmyI+ZWfLEQJybACgwGMcSbTBQymm+TroqshGYBfaB+8Ani3A
> ye8jvKMUoOyZgJ+6C3N85a6X
> =lkJ3
> -END PGP SIGNATURE-
> 
> 



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




Exception when executing JSP

2002-04-16 Thread Darsey, Charlie


I cannot get any jsp pages to execute on my Sun server. SunOS 5.8, jre
1.3.1.
I've tried both  jakarta-tomcat-3.2.2 and jakarta-tomcat-4.0.3 and
I keep ketting the mesage below: What's the scoop? It works fine on my win2k
box.


Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


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




Re: Exception when executing JSP

2002-04-16 Thread Ken Anderson

You need jsdk. jre will not compile anything.
Ken


Darsey, Charlie wrote:
> I cannot get any jsp pages to execute on my Sun server. SunOS 5.8, jre
> 1.3.1.
> I've tried both  jakarta-tomcat-3.2.2 and jakarta-tomcat-4.0.3 and
> I keep ketting the mesage below: What's the scoop? It works fine on my win2k
> box.


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




Question about tomcat

2002-04-16 Thread Diego, Emil

Here is what I want to do.  I need to know if it is possible.

I am currently running apache 1.3 on redhat linux 7.2.  I want to know if it
is possilbe to get apache to process JSP pages.  Is that what mod_jk does?
What version of tomcat will I need?


Emil

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




RE: Exception when executing JSP

2002-04-16 Thread Reynir Hübner

put tools.jar in your classpath (from the jdk. dist.).
hope it helps
-reynir



-Original Message-
From: Darsey, Charlie [mailto:[EMAIL PROTECTED]]
Sent: 16. apríl 2002 17:56
To: '[EMAIL PROTECTED]'
Subject: Exception when executing JSP



I cannot get any jsp pages to execute on my Sun server. SunOS 5.8, jre
1.3.1.
I've tried both  jakarta-tomcat-3.2.2 and jakarta-tomcat-4.0.3 and
I keep ketting the mesage below: What's the scoop? It works fine on my
win2k
box.


Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
at java.lang.Thread.run(Thread.java:484)
Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:
136)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146
)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
at java.lang.Thread.run(Thread.java:484)


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


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




RE: Tomcat 3.2.4 and Apache 2.0.35 question

2002-04-16 Thread Brandon Cruz

Did you compile mod_jk on your own machine, or did you get a binary from
somewhere?  I have had this problem when I don't compile mod_jk on my own.

Good Luck, I know it's frustrating...

Brandon

-Original Message-
From: Stuart Morse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 11:47 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.4 and Apache 2.0.35 question


Hi All,

I have successfully had Apache and Tomcat working together on Windows 98
and FreeBSD using mod_jserv. I'm trying to do the same thing on NT 4.0
Workstation using mod_jk. I have added the line:

  Include c:/Program Files/Tomcat/conf/mod_jk.conf-auto

at the end of my httpd.conf file and have placed the mod_jk.dll file from
the Apache site in the modules directory under the Apache home directory.
I have defined the environment variables JAVA_HOME and TOMCAT_HOME.
Both Apache and Tomcat operate fine in stand-alone mode, but when I include
the line above in httpd.conf a dialog is displayed when I try and start
Apache saying:

  The requested operation has failed!

I can't find an error message anywhere that would give me a clue about
what went wrong. Even when I provide an empty mod_jk.conf-auto file I get
the same message.

Any ideas?

Regards,

Stuart


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



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




RE: Apache serving static content

2002-04-16 Thread Brandon Cruz

I have the same issue with mod_jk.  We deploy all of our web application
within tomcat_home/webapps.  If a webapp is called myWebapp, then a request
to /myWebapp/image.gif will be processed by Tomcat due to the fact that it
matches the /myWebapp/* declaration.  Is there a way to keep images from
being processed by Tomcat if they are inside a webapp?  Something like the
patch that James mentions below would be exactly what I am looking for.

Configuration is Apache/Tomcat 3.2.4 using several different Webapps.


Brandon

P.S.  If anyone has problems with tomcat serving images very slowly, the
JkLogLevel should be set to "error" instead of "warn" inside of httpd.conf.
This is not really documented anywhere for tomcat 3.2.4, but results in HUGE
improvements in speed if you are serving an image-heavy page in a webapp.

-Original Message-
From: James Williamson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 11:19 AM
To: Tomcat Users List
Subject: Re: Apache serving static content


Gabriel,

I wrote a quick patch a while ago for mod_webapp that lets you
specify patterns to ignore (i.e. the request never sees Tomcat).
 So apply the patch and recompile, and  in your httpd.conf file use
WebAppIgnore directives to tell mod_webapp which patterns to ignore.

i.e.
WebAppIgnore *.html
WebAppIgnore /cgi-bin/*

I haven't thoroughly tested it so would be pleased to know
how you get on. Please find the patch attached. I would submit
to the developers except I need to fix a few problems with it
(You must put the WebAppIgnore's after you've declared your application).

Regards,

James Williamson

www.nameonthe.net
UK Tomcat Hosting

- Original Message -
From: Gabriel Maffia <[EMAIL PROTECTED]>
To: Tomcat Users List Service <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 5:07 PM
Subject: Apache serving static content


Hello Again:

I know I can be kinda annoying, but I really need to know if someone could
make mod_webapp + warp configuration to serve only dynamic content, and
apache serve only the static content.
 If not, does anyone know where can I find a reference for mod_webapp?
Because it seems like there is no detailed documentation on how to use it.


Thanks a LOT!


Gabriel Maffia




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




port 8080

2002-04-16 Thread Marquez, Maceo

I am brand new to the Tomcat communicty and recently installed Tomcat
successfully on my win2000 pc.  However, when I restart the pc, Tomcat is no
longer able to start, and gives the error listed below.  
-I restarted the computer, nothing
-I reset the %CATALINA_HOME%/conf/server.xml connector port to 1977, as
suggested in 'troubleshooting' like so:



Still, the error:

Catalina.start: LifecycleException:  Error creating server socket
(java.net.Bind
Exception):  java.net.BindException: Address in use: JVM_Bind
LifecycleException:  Error creating server socket (java.net.BindException):
jav
a.net.BindException: Address in use: JVM_Bind
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:491)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:485)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)




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




Re: Apache serving static content

2002-04-16 Thread Gabriel Maffia

James:

Your patch worked Like a charm!

Thanks a Lot!

Gabriel
- Original Message -
From: "James Williamson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 1:18 PM
Subject: Re: Apache serving static content


> Gabriel,
>
> I wrote a quick patch a while ago for mod_webapp that lets you
> specify patterns to ignore (i.e. the request never sees Tomcat).
>  So apply the patch and recompile, and  in your httpd.conf file use
> WebAppIgnore directives to tell mod_webapp which patterns to ignore.
>
> i.e.
> WebAppIgnore *.html
> WebAppIgnore /cgi-bin/*
>
> I haven't thoroughly tested it so would be pleased to know
> how you get on. Please find the patch attached. I would submit
> to the developers except I need to fix a few problems with it
> (You must put the WebAppIgnore's after you've declared your application).
>
> Regards,
>
> James Williamson
>
> www.nameonthe.net
> UK Tomcat Hosting
>
> - Original Message -
> From: Gabriel Maffia <[EMAIL PROTECTED]>
> To: Tomcat Users List Service <[EMAIL PROTECTED]>
> Sent: Tuesday, March 19, 2002 5:07 PM
> Subject: Apache serving static content
>
>
> Hello Again:
>
> I know I can be kinda annoying, but I really need to know if someone could
> make mod_webapp + warp configuration to serve only dynamic content, and
> apache serve only the static content.
>  If not, does anyone know where can I find a reference for mod_webapp?
> Because it seems like there is no detailed documentation on how to use it.
>
>
> Thanks a LOT!
>
>
> Gabriel Maffia
>
>
>
>






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


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




tomcat 3.3.1 and apache 2.0.35

2002-04-16 Thread Diego Pons

Folks: this question may have been asked already, but I can't find the answer anywhere:

1) which mod_jk to use with Apache 2.0.35? 

With ajp12 and 13 lined to mod_jk.so, "apachectl restart" gives me:

/libexec/mod_jk.so: undefined symbol: ap_table_get. 

With ajp20, linked as mod_jk.so, I get:

httpd: module "mod_jk.c" is not compatible with this version of Apache.

Please contact the vendor for the correct version.

(using the same conf/auto/mod_jk.conf file in both cases)

2) Is there any configuration example for ajp20? Would it work at all
with 3.3.1?

Thanks in advance.

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




RE: Initialization in Tomcat 4.0.3

2002-04-16 Thread Subir Sengupta

Thanks Larry,
Thanks Larry.  I created a Context Listener and it worked great.  However I
have a question.  I experimented with putting my initialization stuff in a
servlet with a load-on-startup element of 0.  This seems to work as well.
All initialization was done when the servlet loaded.  So if both methods of
initialization work, which one is recommended and why?

Thanks again,
Subir


-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 5:15 AM
To: 'Tomcat Users List'
Subject: RE: Initialization in Tomcat 4.0.3


In Tomcat 4.x, this is accomplished by adding a LifecycleListener
to the appropriate container, Engine, Host, etc.  An example of
how something like this is done may be found at:



In this case, the Listener is added to the Host container.  It
adds user home directories as contexts when the Lifecyle.START_EVENT
occurs.  See the org.apache.catalina.startup.UserConfig source
for implementation details.  Hopefully, this will get you started.

Cheers,
Larry

> -Original Message-
> From: Subir Sengupta [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 15, 2002 6:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: Initialization in Tomcat 4.0.3
> 
> 
> Hi,
> 
> In Tomcat 3 we initialized stuff with the RequestInterceptor 
> element in
> web.xml like this:
> 
>debug="0"
>   className="org.apache.tomcat.init.Init" />
> 
> Init has a engineInit method that looks like this:
> public final class Init extends BaseInterceptor
> .
> .
> .
> public void engineInit(ContextManager cm) throws TomcatException {
>   CategoryNames.init();
> 
> etc
> 
> How do I the same thing in Tomcat 4.0.3 ?
> 
> Thanks from a Tomcat newbie,
> Subir
> 
> 
> 
> 
> 
> 
>  <> 
> 

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

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




RE: How to install Tomcat on network -- is there any network version of Tomcat

2002-04-16 Thread Uma Munugala


Hi All
Iam working on Tomcat 4.0.3 standalone. It works well. I want to install
tomcat 4.0.3 on network so that other developers can access.
How do I do that. Do I need to configure in some different way or is there
any different copy of Tomcat 4.0.3 for network.

Can any body help me.


Thanks
Uma

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

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




Question about internal server error

2002-04-16 Thread Diego, Emil

Here is the error i am getting.  Do i need to spcify a classpath to the
umJavaLib package that I wrote.  I current;y have the class files places in
$CATALINA_HOME/webapps/sba/WEB-INF/classes/

Any ideas what I am doing wrong.





Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


An error occurred at line: 7 in the jsp file: /jsp/manage/login.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.0.3/work/dev_new2.bus.miami.edu/sba/jsp/manage/l
ogin$jsp.java:74: Class umJavaLib.umDBConnection not found.
umJavaLib.umDBConnection dbConn = null;
 ^


An error occurred at line: 7 in the jsp file: /jsp/manage/login.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.0.3/work/dev_new2.bus.miami.edu/sba/jsp/manage/l
ogin$jsp.java:77: Class umJavaLib.umDBConnection not found.
dbConn= (umJavaLib.umDBConnection)
  ^


An error occurred at line: 7 in the jsp file: /jsp/manage/login.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.0.3/work/dev_new2.bus.miami.edu/sba/jsp/manage/l
ogin$jsp.java:82: Class umJavaLib.umDBConnection not found.
dbConn = (umJavaLib.umDBConnection)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"umJavaLib.umDBConnection");
   ^


An error occurred at line: 8 in the jsp file: /jsp/manage/login.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.0.3/work/dev_new2.bus.miami.edu/sba/jsp/manage/l
ogin$jsp.java:101: Class umJavaLib.sbaLogin not found.
umJavaLib.sbaLogin xLogin = null;
 ^


An error occurred at line: 8 in the jsp file: /jsp/manage/login.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.0.3/work/dev_new2.bus.miami.edu/sba/jsp/manage/l
ogin$jsp.java:104: Class umJavaLib.sbaLogin not found.
xLogin= (umJavaLib.sbaLogin)
  ^


An error occurred at line: 8 in the jsp file: /jsp/manage/login.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.0.3/work/dev_new2.bus.miami.edu/sba/jsp/manage/l
ogin$jsp.java:109: Class umJavaLib.sbaLogin not found.
xLogin = (umJavaLib.sbaLogin)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"umJavaLib.sbaLogin");
   ^
6 errors, 1 warning

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apac

request.getPort() returns wrong port after redirect

2002-04-16 Thread Mullen-Schultz, Gary

I am running on Tomcat 4.0.3, using the standalone server.

We do multiple redirects in our server, across Tomcat instances.  We are
encountering failure in the following scenario.

Let's say we have two Tomcat instances: A on port 81, and B on port 82.  A
contains one JSP in the root webapp: SendRedirect.jsp.  B contains two JSPs
in the root webapp: ReceiveAndSendRedirect.jsp and ReceiveRedirect.jsp.  The
source is as follows:

SendRedirect.jsp:
<%
response.sendRedirect("http://127.0.0.1:82//ReceiveAndSendRedirect.jsp";);
%>


ReceiveAndSendRedirect.jsp:
<%
response.sendRedirect("ReceiveRedirect.jsp");
%>

ReceiveRedirect.jsp:

This is ReceiveRedirect!


What ends up happening is that the sendRedirect method inside
ReceiveAndSendRedirect.jsp builds a URL that looks like this:
http://127.0.0.1:81//ReceiveRedirect.jsp

There *is* no ReceiveRedirect.jsp on instance A (port 81), and a 404
results.

In debug mode, a call to request.getPort() inside ReceiveAndSendRedirect.jsp
returns 81; given that it's a redirect (not a forward), I would have thought
it would return 82 (the port of the "current" server).

Any ideas?  Am I just confused?  If so, how can I easily do this multiple
redirection (it gets invoked when our security code kicks in).

Thanks, Gary Mullen-Schultz, Kingland Systems





Gary Mullen-Schultz (E-mail).vcf
Description: Binary data

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


Problem loading MySQL drivers.

2002-04-16 Thread Panos Konstantinidis

  Hello there, I am running Tomcat 3.3.1 and JDK1.4
under Mandrake Linux 8.1 and I have a problem finding
the MySQL drivers. I have looked on the Tomcat
archives and could not find any similar questions, so
I thought I am going ot try the mailing list.

  I have created my own web app space and I have
managed to run Servlets and JSP pages successfuly but
when I am trying to load the MySQL drivers it fails
with the "java.sql.SQLException: No suitable driver"
error message. I have put the mm.mysql-2.4.0-bin.jar
file under my webapp's WEB-INF/lib folder
(WEB-INF/lib/mm.mysql-2.4.0-bin.jar) but it does not
seem to work. I thought Tomcat was going to pick it up
automatically but obviously this is not the case. I
have set up the CLASSPATH to point to the .jar file
but still no luck. I have to tell you here that I can
load it from a Java application but not from a JSP
page.

  Any help is greatly appreciated.

  Kind regards

Panos

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




RE: Problem loading MySQL drivers.

2002-04-16 Thread Diego, Emil


Where did you set the classpath ?


-Original Message-
From: Panos Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: Problem loading MySQL drivers.


  Hello there, I am running Tomcat 3.3.1 and JDK1.4
under Mandrake Linux 8.1 and I have a problem finding
the MySQL drivers. I have looked on the Tomcat
archives and could not find any similar questions, so
I thought I am going ot try the mailing list.

  I have created my own web app space and I have
managed to run Servlets and JSP pages successfuly but
when I am trying to load the MySQL drivers it fails
with the "java.sql.SQLException: No suitable driver"
error message. I have put the mm.mysql-2.4.0-bin.jar
file under my webapp's WEB-INF/lib folder
(WEB-INF/lib/mm.mysql-2.4.0-bin.jar) but it does not
seem to work. I thought Tomcat was going to pick it up
automatically but obviously this is not the case. I
have set up the CLASSPATH to point to the .jar file
but still no luck. I have to tell you here that I can
load it from a Java application but not from a JSP
page.

  Any help is greatly appreciated.

  Kind regards

Panos

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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

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




RE: Problem loading MySQL drivers.

2002-04-16 Thread Panos Konstantinidis

  Emil thnak you for your quick reply. My classpath is
set to point to the mm.mysql-2.4.0-bin.jar file
itself. I can see it because when I am doing a "echo
$CLASSPATH" it show the .jar file (alongside with the
rest of the Java classes).

  I guess the classpath is right, because the exact
same code (from the JSP page) is working as a stand
alone Java application.

  Any more thoughts?

  Thank you.


--- "Diego, Emil" <[EMAIL PROTECTED]>
wrote:
> 
> Where did you set the classpath ?
> 
> 
> -Original Message-
> From: Panos Konstantinidis
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: Problem loading MySQL drivers.
> 
> 
>   Hello there, I am running Tomcat 3.3.1 and JDK1.4
> under Mandrake Linux 8.1 and I have a problem
> finding
> the MySQL drivers. I have looked on the Tomcat
> archives and could not find any similar questions,
> so
> I thought I am going ot try the mailing list.
> 
>   I have created my own web app space and I have
> managed to run Servlets and JSP pages successfuly
> but
> when I am trying to load the MySQL drivers it fails
> with the "java.sql.SQLException: No suitable driver"
> error message. I have put the mm.mysql-2.4.0-bin.jar
> file under my webapp's WEB-INF/lib folder
> (WEB-INF/lib/mm.mysql-2.4.0-bin.jar) but it does not
> seem to work. I thought Tomcat was going to pick it
> up
> automatically but obviously this is not the case. I
> have set up the CLASSPATH to point to the .jar file
> but still no luck. I have to tell you here that I
> can
> load it from a Java application but not from a JSP
> page.
> 
>   Any help is greatly appreciated.
> 
>   Kind regards
> 
> Panos
> 
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: Problem loading MySQL drivers.

2002-04-16 Thread Bruce Carson

You must edit the conf\jk\wrapper.properties file and modify
the wrapper.classs_path setting !

- Original Message - 
From: "Panos Konstantinidis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 3:44 PM
Subject: Problem loading MySQL drivers.


>   Hello there, I am running Tomcat 3.3.1 and JDK1.4
> under Mandrake Linux 8.1 and I have a problem finding
> the MySQL drivers. I have looked on the Tomcat
> archives and could not find any similar questions, so
> I thought I am going ot try the mailing list.
> 
>   I have created my own web app space and I have
> managed to run Servlets and JSP pages successfuly but
> when I am trying to load the MySQL drivers it fails
> with the "java.sql.SQLException: No suitable driver"
> error message. I have put the mm.mysql-2.4.0-bin.jar
> file under my webapp's WEB-INF/lib folder
> (WEB-INF/lib/mm.mysql-2.4.0-bin.jar) but it does not
> seem to work. I thought Tomcat was going to pick it up
> automatically but obviously this is not the case. I
> have set up the CLASSPATH to point to the .jar file
> but still no luck. I have to tell you here that I can
> load it from a Java application but not from a JSP
> page.
> 
>   Any help is greatly appreciated.
> 
>   Kind regards
> 
> Panos
> 
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




RE: Problem loading MySQL drivers.

2002-04-16 Thread Diego, Emil

yes but where are you setting the classpath.

you should probably add the following line to the script used to start the
tomcat server.
export CLASSPATH=xxx

this will ensure that when the server starts up the tomcat server the proper
classpath is set.





-Original Message-
From: Panos Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 3:50 PM
To: Tomcat Users List
Subject: RE: Problem loading MySQL drivers.


  Emil thnak you for your quick reply. My classpath is
set to point to the mm.mysql-2.4.0-bin.jar file
itself. I can see it because when I am doing a "echo
$CLASSPATH" it show the .jar file (alongside with the
rest of the Java classes).

  I guess the classpath is right, because the exact
same code (from the JSP page) is working as a stand
alone Java application.

  Any more thoughts?

  Thank you.


--- "Diego, Emil" <[EMAIL PROTECTED]>
wrote:
> 
> Where did you set the classpath ?
> 
> 
> -Original Message-
> From: Panos Konstantinidis
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: Problem loading MySQL drivers.
> 
> 
>   Hello there, I am running Tomcat 3.3.1 and JDK1.4
> under Mandrake Linux 8.1 and I have a problem
> finding
> the MySQL drivers. I have looked on the Tomcat
> archives and could not find any similar questions,
> so
> I thought I am going ot try the mailing list.
> 
>   I have created my own web app space and I have
> managed to run Servlets and JSP pages successfuly
> but
> when I am trying to load the MySQL drivers it fails
> with the "java.sql.SQLException: No suitable driver"
> error message. I have put the mm.mysql-2.4.0-bin.jar
> file under my webapp's WEB-INF/lib folder
> (WEB-INF/lib/mm.mysql-2.4.0-bin.jar) but it does not
> seem to work. I thought Tomcat was going to pick it
> up
> automatically but obviously this is not the case. I
> have set up the CLASSPATH to point to the .jar file
> but still no luck. I have to tell you here that I
> can
> load it from a Java application but not from a JSP
> page.
> 
>   Any help is greatly appreciated.
> 
>   Kind regards
> 
> Panos
> 
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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

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




Installation Issue

2002-04-16 Thread Philip I Juels

Hi,

  I'm having trouble getting tomcat to work on my system.  System info as
  follows:

  1)  Sun Solaris 8 on a Sun Fire V880 (sparc)
  2)  apache-1.3.12 (part of Solaris default installation)
  3)  jakarta-tomcat-4.0-200020415 build installed in
  /usr/local/jakarta-tomcat-4.0

  I have $CATALINA_HOME=/usr/local/jakarta-tomcat-4.0
  and $JAVA_HOME=/usr/java...which is a link to /usr/java1.2 (again part
  of Solaris 8 installation).

  When I run bin/statup.sh, I get...

  Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.0/temp
  Using JAVA_HOME:   /usr/java

  But, when I go to http://localhost:8080 or
  http://localhost:8080/index.jsp, I get a "Unable to locate" error from
  Netscape.

  When I execute bin/shutdown.sh, I get a rather long message...

  Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.0/temp
  Using JAVA_HOME:   /usr/java
  java.lang.NoClassDefFoundError: javax/naming/NamingException
  at org.apache.catalina.core.StandardServer.(Unknown Source)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance0(Compiled Code)
  at java.lang.Class.newInstance(Compiled Code)
  at
 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
  at org.apache.commons.digester.Digester.startElement(Compiled Code)
  at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
  at
  org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
  at
 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Comp
  iled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
  at org.apache.commons.digester.Digester.parse(Digester.java:1263)
  at org.apache.catalina.startup.Catalina.stop(Compiled Code)
  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
  at org.apache.catalina.startup.Catalina.process(Unknown Source)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Compiled Code)
  at org.apache.catalina.startup.Bootstrap.main(Compiled Code)
  [ERROR] Digester - -Begin event threw error
  
  Exception during startup processing
  java.lang.reflect.InvocationTargetException:
  java.lang.NoClassDefFoundError: javax/naming/NamingException
  at org.apache.catalina.core.StandardServer.(Unknown Source)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance0(Compiled Code)
  at java.lang.Class.newInstance(Compiled Code)
  at
 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
  at org.apache.commons.digester.Digester.startElement(Compiled Code)
  at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
  at
  org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
  at
 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Comp
  iled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
  at org.apache.commons.digester.Digester.parse(Digester.java:1263)
  at org.apache.catalina.startup.Catalina.stop(Compiled Code)
  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
  at org.apache.catalina.startup.Catalina.process(Unknown Source)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Compiled Code)
  at org.apache.catalina.startup.Bootstrap.main(Compiled Code)


  I did a similar installation on a linux box and had no problems.

  Any help?

  Thanks,

  Philip Juels
  [EMAIL PROTECTED]



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




Re: How to install Tomcat on network -- is there any network version of Tomcat

2002-04-16 Thread Marc Chamberlin

Uma -

Having just gone through setting up my own LAN, with a Tomcat server on it, I can give 
you a bit of guidance...

Tomcat is simply a server and thus you treat it like any other server, i.e. an email 
server or an ftp server tex... There is no
special configuration or special version of the Tomcat server which is dependent upon 
whether you are running it stand-alone or
within a network. What you need to assure is that your DHCP/NAT server or network 
routers are configured so as to route your web
traffic to the computer which is running your Tomcat server.Configuring your network 
is dependent upon how your network has been
designed, which is beyond the scope of this group... ;-)  You may also need to be 
concerned about configuring any firewalls you have
running so they will pass traffic from your network to the computer running the Tomcat 
server, if you are using any firewalls.

Hope this helps get you pointed in the right directionMarc...


- Original Message -
From: "Uma Munugala" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:34 PM
Subject: RE: How to install Tomcat on network -- is there any network version of Tomcat


>
> Hi All
> Iam working on Tomcat 4.0.3 standalone. It works well. I want to install
> tomcat 4.0.3 on network so that other developers can access.
> How do I do that. Do I need to configure in some different way or is there
> any different copy of Tomcat 4.0.3 for network.
>
> Can any body help me.
>
>
> Thanks
> Uma
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



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




RE: Installation Issue

2002-04-16 Thread Ricky Leung

check your logs under $CATALINA_HOME/logs and what errors you get there?  I
think the requirement for Tomcat4 is java1.3 also.


-Original Message-
From: Philip I Juels [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: Installation Issue


Hi,

  I'm having trouble getting tomcat to work on my system.  System info as
  follows:

  1)  Sun Solaris 8 on a Sun Fire V880 (sparc)
  2)  apache-1.3.12 (part of Solaris default installation)
  3)  jakarta-tomcat-4.0-200020415 build installed in
  /usr/local/jakarta-tomcat-4.0

  I have $CATALINA_HOME=/usr/local/jakarta-tomcat-4.0
  and $JAVA_HOME=/usr/java...which is a link to /usr/java1.2 (again part
  of Solaris 8 installation).

  When I run bin/statup.sh, I get...

  Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.0/temp
  Using JAVA_HOME:   /usr/java

  But, when I go to http://localhost:8080 or
  http://localhost:8080/index.jsp, I get a "Unable to locate" error from
  Netscape.

  When I execute bin/shutdown.sh, I get a rather long message...

  Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.0
  Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.0/temp
  Using JAVA_HOME:   /usr/java
  java.lang.NoClassDefFoundError: javax/naming/NamingException
  at org.apache.catalina.core.StandardServer.(Unknown Source)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance0(Compiled Code)
  at java.lang.Class.newInstance(Compiled Code)
  at

org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253
)
  at org.apache.commons.digester.Digester.startElement(Compiled Code)
  at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
  at
  org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
  at

org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co
mp
  iled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
  at org.apache.commons.digester.Digester.parse(Digester.java:1263)
  at org.apache.catalina.startup.Catalina.stop(Compiled Code)
  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
  at org.apache.catalina.startup.Catalina.process(Unknown Source)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Compiled Code)
  at org.apache.catalina.startup.Bootstrap.main(Compiled Code)
  [ERROR] Digester - -Begin event threw error
  
  Exception during startup processing
  java.lang.reflect.InvocationTargetException:
  java.lang.NoClassDefFoundError: javax/naming/NamingException
  at org.apache.catalina.core.StandardServer.(Unknown Source)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance0(Compiled Code)
  at java.lang.Class.newInstance(Compiled Code)
  at

org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253
)
  at org.apache.commons.digester.Digester.startElement(Compiled Code)
  at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
  at
  org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
  at

org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co
mp
  iled
  Code)
  at
  org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled Code)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
  at org.apache.commons.digester.Digester.parse(Digester.java:1263)
  at org.apache.catalina.startup.Catalina.stop(Compiled Code)
  at org.apache.catalina.startup.Catalina.execute(Unknown Source)
  at org.apache.catalina.startup.Catalina.process(Unknown Source)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Compiled Code)
  at org.apache.catalina.startup.Bootstrap.main(Compiled Code)


  I did a similar installation on a linux box and had no problems.

  Any help?

  Thanks,

  Philip Juels
  [EMAIL PROTECTED]



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



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




Re: Question about tomcat

2002-04-16 Thread rob

Yes, mod_jk is used to connect tomcat <-> apache httpd.

I've used mod_jk on both tomcat 3.2.x -> 4.0.3 successfully.

There is a cvs module dedicated to the connectors now though I still 
find the old mod_jk connector packaged in the tomcat 3.3 binary tarball 
to be the easiest to build.  The cvs version of the connectors have too 
many build scripts and dependencies that fry when you try to build them.

Rob

Diego, Emil wrote:
> Here is what I want to do.  I need to know if it is possible.
> 
> I am currently running apache 1.3 on redhat linux 7.2.  I want to know if it
> is possilbe to get apache to process JSP pages.  Is that what mod_jk does?
> What version of tomcat will I need?
> 
> 
> Emil
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 




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




RE: How to install Tomcat on network -- is there any network version of Tomcat

2002-04-16 Thread Uma Munugala

Thanks marc
This helps me a lot.


Uma

-Original Message-
From: Marc Chamberlin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 12:54 PM
To: Tomcat Users List
Subject: Re: How to install Tomcat on network -- is there any network
version of Tomcat


Uma -

Having just gone through setting up my own LAN, with a Tomcat server on it,
I can give you a bit of guidance...

Tomcat is simply a server and thus you treat it like any other server, i.e.
an email server or an ftp server tex... There is no
special configuration or special version of the Tomcat server which is
dependent upon whether you are running it stand-alone or
within a network. What you need to assure is that your DHCP/NAT server or
network routers are configured so as to route your web
traffic to the computer which is running your Tomcat server.Configuring your
network is dependent upon how your network has been
designed, which is beyond the scope of this group... ;-)  You may also need
to be concerned about configuring any firewalls you have
running so they will pass traffic from your network to the computer running
the Tomcat server, if you are using any firewalls.

Hope this helps get you pointed in the right directionMarc...


- Original Message -
From: "Uma Munugala" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:34 PM
Subject: RE: How to install Tomcat on network -- is there any network
version of Tomcat


>
> Hi All
> Iam working on Tomcat 4.0.3 standalone. It works well. I want to
install
> tomcat 4.0.3 on network so that other developers can access.
> How do I do that. Do I need to configure in some different way or is there
> any different copy of Tomcat 4.0.3 for network.
>
> Can any body help me.
>
>
> Thanks
> Uma
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



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

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




Question about "Tomcat-Apache HOWTO"

2002-04-16 Thread Cheng Yan

According to an article "Tomcat-Apache HOWTO" on
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html :

QUOT.
==
When Tomcat starts up it will automatically generate a configuration file
for Apache in TOMCAT_HOME/conf/jserv/tomcat-apache.conf. Most of the time
you don't need to do anything but include this file (appending "Include
TOMCAT_HOME/conf/jserv/tomcat-apache.conf") in your httpd.conf.

UNQUOT.

However, when I start tomcat on my machine, everything seems fine except
that I do not see file "tomcat-apache.conf". I assume that TOMCAT_HOME is
the same as CATALINA_HOME, right? I don't even see a subdir call jserv. Is
this normal?

BYW, my machine is ultra-sparc 1 running Solaris 8. I can visit
http://localhost:8080, though. And there are only following files under my
$CATALINA_HOME/conf:

% cd $CATALINA_HOME/conf
% ls
catalina.policy
server.xml
tomcat-users.xml
web.xml

Could someone explain it to me? Thanks.


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




RE: Question about "Tomcat-Apache HOWTO"

2002-04-16 Thread Animesh Chaturvedi - US

Well
the document you are pointing to, is for old version of Tomcat. Which
version of Tomcat are you using?? 

Animesh

-Original Message-
From: Cheng Yan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 1:05 PM
To: Tomcat Users List
Subject: Question about "Tomcat-Apache HOWTO"


According to an article "Tomcat-Apache HOWTO" on
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html :

QUOT.
==
When Tomcat starts up it will automatically generate a configuration file
for Apache in TOMCAT_HOME/conf/jserv/tomcat-apache.conf. Most of the time
you don't need to do anything but include this file (appending "Include
TOMCAT_HOME/conf/jserv/tomcat-apache.conf") in your httpd.conf.

UNQUOT.

However, when I start tomcat on my machine, everything seems fine except
that I do not see file "tomcat-apache.conf". I assume that TOMCAT_HOME is
the same as CATALINA_HOME, right? I don't even see a subdir call jserv. Is
this normal?

BYW, my machine is ultra-sparc 1 running Solaris 8. I can visit
http://localhost:8080, though. And there are only following files under my
$CATALINA_HOME/conf:

% cd $CATALINA_HOME/conf
% ls
catalina.policy
server.xml
tomcat-users.xml
web.xml

Could someone explain it to me? Thanks.


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

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




  1   2   >