RE: JDBC connection persistence

2002-09-06 Thread Andrew Conrad

No, because DBCP doesn't actually close connections, it returns them to
the connection pool for reuse.


- Andrew

> -Original Message-
> From: William Wragg [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, September 06, 2002 12:33 PM
> To: Tomcat Users List
> Subject: RE: JDBC connection persistence
> 
> 
> Hi,
> 
> Thanks for the input. I have tried making sure all resources 
> are closed by 
> closing them myself with xxx.close() but I still get 
> connections hanging 
> around. I will look into the DBCP, but if manually closing all the 
> resources does not solve the problem, will DBCP?
> 
> Regards,
> 
> Wm.
> 
> At 16:08 05/09/2002, you wrote:
> 
> >Your best bet is to use a database connection pool.  Look into DBCP. 
> >You can set the max number of connections and all your apps 
> can share 
> >these connections.
> >
> >
> >As for your issues, it sounds like the JDBC driver is not closing
> >everything when you call connection.close().   There has been some
> >discussion on how this is suppose to operate on this list, but in 
> >general everyone reccomends that you close your recordsets and your 
> >statements individually, so your resources are cleaned up 
> immediately, 
> >not by garbage collection.
> >
> >- Andrew
> >
> > > -Original Message-
> > > From: William Wragg [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, September 05, 2002 9:42 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: JDBC connection persistence
> > >
> > >
> > > Hi,
> > >
> > > I have developed a webapp which connects to a database 
> and retrieves 
> > > data for display via JDBC. There are only a few pages and each
> > > page opens and
> > > then closes the connection to the database. The problem 
> is that our
> > > database has only a set number of licensed concurrent
> > > connections, and
> > > although the connections have been closed they hang around,
> > > using up the
> > > licensed connections. At what appear to be random times the
> > > old closed
> > > connections get cleared up which frees up some more licensed
> > > connections.
> > >
> > > I have tried writing the database retrieval in both jsp tags (sql 
> > > taglibs) and in pure java and get the same problem. The 
> connections
> > > are definitely
> > > closed as I have checked if the connection is null after I
> > > have closed the
> > > connection. Also the database confirms that there are no external
> > > connections to it.
> > >
> > > I am running Tomcat 4.0.4, java sdk 1.3_02, on Caldera OpenLinux 
> > > 3.1.1 (kernal 2.4.13) and SCO OpenServer 5.0.5a
> > >
> > > Have I missed something about the setup of JDBC 
> connections. Do they 
> > > persist by default, until something triggers a cleanup?
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Regards,
> > >
> > > Wm.
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> >For 
> additional commands, 
> e-mail: 
> >
> >
> >
> >---
> >Incoming mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/2002
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Bringing up DBCP pooling again

2002-09-06 Thread Andrew Conrad

You might get more responses if you post it to
[EMAIL PROTECTED]

- Andrew

> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 05, 2002 4:38 PM
> To: Tomcat Users List
> Subject: Bringing up DBCP pooling again
> 
> 
> Just bringing up a question I had a while ago since I know 
> how lists go and it's easy to miss/delete messages over time 
> (especially as busy a list as this is:)
> 
> Anyway...
> 
> Was wondering if anyone had any further input in the apparent 
> problem using DBCP pooling with Tomcat. If for some reason 
> the connections are killed (whether on purpose or if a DB 
> goes down and comes back up), any applications that use the 
> DBCP pool break and give the error:
> java.sql.SQLException: ORA-01012: not logged on
> I even made sure to provide a validation query in my ResourceParams.
> 
> Has anyone else encountered this? Is there a work around or 
> some other pool that this will not happen with?
> 
> Thanks for any help.
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Object pooling

2002-09-05 Thread Andrew Conrad

You might post this on [EMAIL PROTECTED] instead

- Andrew

> -Original Message-
> From: John Walstra [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 05, 2002 1:23 AM
> To: Tomcat Mailing List
> Subject: Object pooling
> 
> 
> Hi ya,
> 
> I'm trying to pool some objects. The objects consist of a 
> hash filled in from 
> XML files. I don't really want to reload the objects for each 
> page hit and 
> it's used by an object that can't be scoped for the 
> application. I've grabbed 
> commons-pool and incorporated it into my code. I have no 
> errors, but my debug 
> messages indicate that it's not grabbing the object from the 
> pool, but is 
> reloading them each time.
> 
> I've concluded that I've I'm not using commons-pool correct 
> with Tomcat. Do I 
> need to set it up as a resource? Documentation is kind of 
> spare right now. 
> 
> Thanks,
> John
> 
> -- 
> John Walstra
> [EMAIL PROTECTED]
> 
> The world is no nursery.
> - Sigmund Freud
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: redirect bug?

2002-09-05 Thread Andrew Conrad

Can you make this feature work from other JSP/Servlet containers or
other languages (ASP, PHP)?

It just seems like this would be an issue of the browser.  Have you
tried other browsers to see if they react differently?

- Andrew

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Leos Literak
> Sent: Thursday, September 05, 2002 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: redirect bug?
> 
> 
> Hi,
> 
> I try to increase protection of my users
> with such servlet:
> 
>   String url = "mailto:"+user.getEmail();
>   response.sendRedirect(url);
> 
> e.g. on normal site there is no email, just
> link to servlet which redirects to email.
> 
> Well, it partially works. It really
> opens email client. Unfortunatelly
> TO field is not filled.
> 
> After some debugging I realized, that
> tomcat somewhere cuts off email address
> from url. String url is OK, but final
> URL is not:
> 
> HTTP/1.1 302 Moved Temporarily
> Content-Type: text/html
> Connection: close
> Date: Thu, 05 Sep 2002 12:58:38 GMT
> Location: mailto:
> Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
> 
> 
> Any idea, why it doesn't work? Or other
> solution for this task?
> 
> Thanks!
> 
>   Leos
> 
> -- 
> Leos Literak
> http://AbcLinuxu.cz - tady je tucnakum hej!
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC connection persistence

2002-09-05 Thread Andrew Conrad

Your best bet is to use a database connection pool.  Look into DBCP.
You can set the max number of connections and all your apps can share
these connections.


As for your issues, it sounds like the JDBC driver is not closing
everything when you call connection.close().   There has been some
discussion on how this is suppose to operate on this list, but in
general everyone reccomends that you close your recordsets and your
statements individually, so your resources are cleaned up immediately,
not by garbage collection.

- Andrew

> -Original Message-
> From: William Wragg [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, September 05, 2002 9:42 AM
> To: [EMAIL PROTECTED]
> Subject: JDBC connection persistence
> 
> 
> Hi,
> 
> I have developed a webapp which connects to a database and 
> retrieves data 
> for display via JDBC. There are only a few pages and each 
> page opens and 
> then closes the connection to the database. The problem is that our 
> database has only a set number of licensed concurrent 
> connections, and 
> although the connections have been closed they hang around, 
> using up the 
> licensed connections. At what appear to be random times the 
> old closed 
> connections get cleared up which frees up some more licensed 
> connections.
> 
> I have tried writing the database retrieval in both jsp tags 
> (sql taglibs) 
> and in pure java and get the same problem. The connections 
> are definitely 
> closed as I have checked if the connection is null after I 
> have closed the 
> connection. Also the database confirms that there are no external 
> connections to it.
> 
> I am running Tomcat 4.0.4, java sdk 1.3_02, on Caldera 
> OpenLinux 3.1.1 
> (kernal 2.4.13) and SCO OpenServer 5.0.5a
> 
> Have I missed something about the setup of JDBC connections. Do they 
> persist by default, until something triggers a cleanup?
> 
> Any help would be greatly appreciated.
> 
> Regards,
> 
> Wm.
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: NullPointerException in JDBCStore

2002-09-03 Thread Andrew Conrad

Your best bet is to create a bug report, and post the patch.

- Andrew

> -Original Message-
> From: Ronald Klop [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 03, 2002 8:26 PM
> To: [EMAIL PROTECTED]
> Subject: NullPointerException in JDBCStore
> 
> 
> Hello,
> 
> I get a NullPointerException in 
> org.apache.catalina.session.JDBCStore. 
> (Tomcat 4.0.4 and 4.1.9)
> I think it can be solved with the following patch.
> Is there a possibility for this to be committed?
> 
> 
> --- JDBCStore-old.java  Wed Sep  4 02:13:53 2002
> +++ JDBCStore.java  Wed Sep  4 02:18:12 2002
> @@ -759,37 +759,43 @@
>   }
> 
>   try {
> -preparedSizeSql.close();
> +if (preparedSizeSql != null)
> +preparedSizeSql.close();
>   } catch (SQLException e) {
>   ;
>   }
> 
>   try {
> -preparedKeysSql.close();
> +if (preparedKeysSql != null)
> +preparedKeysSql.close();
>   } catch (SQLException e) {
>   ;
>   }
> 
>   try {
> -preparedSaveSql.close();
> +if (preparedSaveSql != null)
> +preparedSaveSql.close();
>   } catch (SQLException e) {
>   ;
>   }
> 
>   try {
> -preparedClearSql.close();
> +if (preparedClearSql != null)
> +preparedClearSql.close();
>   } catch (SQLException e) {
>   ;
>   }
> 
>   try {
> -preparedRemoveSql.close();
> +if (preparedRemoveSql != null)
> +preparedRemoveSql.close();
>   } catch (SQLException e) {
>   ;
>   }
> 
>   try {
> -preparedLoadSql.close();
> +if (preparedLoadSql != null)
> +preparedLoadSql.close();
>   } catch (SQLException e) {
>   ;
>   }
> 
> 
> -- 
>   Ronald Klop
>   Amsterdam, The Netherlands
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: admin page - username and password?

2002-08-31 Thread Andrew Conrad

Actually, for the admin page, you need to add admin to the roles.

ie:




> -Original Message-
> From: Steven Van Loon [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 7:45 AM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: admin page - username and password? 
> 
> 
> 
> Hugo,
> 
> There are nog default user/pass for the admin pages because 
> of security reasons. You'll have to adjust your 
> conf/tomcat-users.xml file and add a line for the admin pages:
> 
> 
>   
>   ...
> 
> 
> Steven.
> 
> > -Original Message-
> > From: hugo [mailto:[EMAIL PROTECTED]]
> > Sent: vrijdag 30 augustus 2002 10:09
> > To: [EMAIL PROTECTED]
> > Subject: admin page - username and password?
> >
> >
> > Hi
> >
> > Perhaps the problem that I cannot execute any jsp files from a 
> > projects directory (see previous email) I made under 
> webapps in tomcat 
> > stems from the fact that I have to add a new context for 
> the projects 
> > directory?
> >
> > But when I go to webapps/admin, I am asked for a administrator 
> > username and password. This is rather frustrating as I was 
> never asked 
> > to supply one in the first place!
> >
> > Does anyone know the "default username and password for the 
> > administrator at the /webapps/admin pages?
> >
> > Help
> >
> > Thanks
> >
> > Hugo
> >
> > --
> > Dr Hugo Bouckaert
> > Systems and Programming Engineer
> >
> > GeoInformatics Exploration Australia P/L
> > 57 Havelock St
> > West Perth, WA 6005
> > PO Box 1675, West Perth 6872
> >
> > Ph:   61 08 9420 7400
> > Fax:  61 08 9226 1299
> >
> > www.geoinformex.com
> >
> > 
> --
> > --
> > This email and any attachments may be confidential or legally
> > privileged. If you received this message in error or are not the
> > intended recipient, you should destroy the e-mail message and any
> > attachments or copies, and you are prohibited from retaining,
> > distributing, disclosing or using any information contained herein.
> > Please inform us of the erroneous delivery by return 
> e-mail. Thank you
> > for your cooperation.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail: 
> 
> 
> 
> 
> 
> --
> To 
> unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Setting up connection pooling via JNDI

2002-08-28 Thread Andrew Conrad

Just drop the pool, dbcp, and commons into common/lib like you
mentioned.  Then follow the guide.  In Tomcat 4.1 you don't have to put
the factory parameter in your JNDI setup, but it will be required for
4.0.x.  

4.0.x comes with Tyrex, but it has had problems and they are dropping
it.  You would be better off working with DBCP, IMO.


- Andrew

> -Original Message-
> From: micael [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, August 29, 2002 1:16 AM
> To: Tomcat Users List
> Subject: RE: Setting up connection pooling via JNDI
> 
> 
> How can you know about the directory and not have looked in 
> there?  Weren't 
> you remotely curious before putting out all these emails?  I 
> usually have 
> patience, but scheeeszzche!
> 
> At 10:02 PM 8/28/2002 -0700, you wrote:
> >Nope.
> >
> >I read somewhere that its bundled with v4.1.  I'm using 
> 4.0.4.   So, I guess
> >I have to download DBCP, collections, and pool and place 
> them into my 
> >common/lib dir (???).
> >
> >Neal
> >
> >
> >-Original Message-
> >From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, August 28, 2002 9:19 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Setting up connection pooling via JNDI
> >
> >
> >It is, check out the common lib in your tomcat install 
> you will see 
> >the libraries in there.
> >
> >| -Original Message-
> >| From: neal [mailto:[EMAIL PROTECTED]]
> >| Sent: Wednesday, August 28, 2002 11:00 PM
> >| To: Tomcat Users List
> >| Subject: Setting up connection pooling via JNDI
> >|
> >| I did a search on the Apache site and finally found reference to
> >"commons"
> >| ... a subproject that has a bunch of the code referred to in the
> >how-to
> >| for
> >| JDNI setup, including collections, DBCP, and pool.
> >|
> >| Do I really have to setup all this junk?  For crying out 
> loud ... why
> >is
> >| this not bundled (or is it) with Tomcat4??!?!?!
> >|
> >| Thanks.
> >| Neal
> >|
> >|
> >| --
> >| To unsubscribe, e-mail:    >| [EMAIL PROTECTED]>
> >| For additional commands, e-mail:  >| [EMAIL PROTECTED]>
> >|
> >| ---
> >| Incoming mail is certified Virus Free.
> >| Checked by AVG anti-virus system (http://www.grisoft.com).
> >| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> >|
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> >
> >
> >
> >--
> >To unsubscribe, e-mail: 
> >
> >For additional commands, e-mail: 
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> >For 
> additional commands, 
> e-mail: 
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat conn pooling question

2002-08-28 Thread Andrew Conrad

That's going to make it more difficult to fix, since handling of blank
strings is not consistent.  For instance the password field should be
able to have a blank string.

- Andrew

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 2:14 PM
> To: Tomcat Users List
> Subject: RE: tomcat conn pooling question
> 
> 
> 
> 
> On Wed, 28 Aug 2002, Andrew Conrad wrote:
> 
> > Date: Wed, 28 Aug 2002 13:10:30 -0400
> > From: Andrew Conrad <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > Subject: RE: tomcat conn pooling question
> >
> > Thx.
> >
> > A validationQuery is not required by DBCP, but if you pass an empty 
> > string it throws an exception.
> >
> > Tomcat's admin app for JNDI DataSources creates a Validation Query 
> > with an empty string if no query is supplied, causing DBCP 
> to throw an 
> > exception when invoked.  In your opinion, is this a mistake by the 
> > Admin app for creating a empty string parameter, or a 
> mistake by DBCP 
> > in handling an empty string?
> >
> 
> IMHO that's an admin app bug.
> 
> > - Andrew
> 
> Craig
> 
> 
> >
> >
> > > -Original Message-
> > > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 28, 2002 12:48 PM
> > > To: Tomcat Users List
> > > Subject: RE: tomcat conn pooling question
> > >
> > >
> > >
> > >
> > > On Wed, 28 Aug 2002, Andrew Conrad wrote:
> > >
> > > > Date: Wed, 28 Aug 2002 12:34:03 -0400
> > > > From: Andrew Conrad <[EMAIL PROTECTED]>
> > > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > > > Subject: RE: tomcat conn pooling question
> > > >
> > > > Craig,
> > > >
> > > > I'm troubleshooting a ValidationQuery issue, and I can't
> > > seem to find
> > > > where this query executes.
> > > >
> > > > Does DBCP handle the ValidationQuery, or does Tomcat run the 
> > > > ValidationQuery when the first connection is requested?
> > > >
> > >
> > > It's inside commons-dbcp.  Tomcat doesn't "run" anything 
> -- it just 
> > > passes the configuration properties on to 
> BasicDataSourceFactory and 
> > > lets commons-dbcp do its thing.
> > >
> > > Craig
> > >
> > > >
> > > >
> > > > - Andrew
> > > >
> > > > > -Original Message-
> > > > > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, August 28, 2002 12:25 PM
> > > > > To: Tomcat Users List
> > > > > Subject: RE: tomcat conn pooling question
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Wed, 28 Aug 2002, Turner, John wrote:
> > > > >
> > > > > > Date: Wed, 28 Aug 2002 09:51:29 -0400
> > > > > > From: "Turner, John" <[EMAIL PROTECTED]>
> > > > > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > > > > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > > > > > Subject: RE: tomcat conn pooling question
> > > > > >
> > > > > >
> > > > > > When you say "Tomcat's connection pooling" what do you mean 
> > > > > > exactly?
> > > > > >
> > > > > > As far as I know, there is no connection pooling 
> built-in to 
> > > > > > tomcat that actually works.
> > > > >
> > > > > It does (at least in 4.1) if you set it up correctly :-).
> > > The Tyrex
> > > > > stuff in 4.0 is problematic, which is one of the 
> reasons it got 
> > > > > abandoned in 4.1.
> > > > >
> > > > > >  The traffic I have seen on this list has people 
> rolling their 
> > > > > > own, using open source pooling solutions like 
> poolman or DBCP,
> > > > > or using the
> > > > > > pooling that comes from third-party driver vendors.  Which
> > > > > one are you
> > > > > > using?  That mi

RE: XML parsing error on file /WEB-INF/web.xml

2002-08-28 Thread Andrew Conrad

Those don't SEEM related, because one is an AJP13Connector issue and the
other is a web.xml parsing issue.  

- Andrew

> -Original Message-
> From: Jill Veronda [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 12:49 PM
> To: Tomcat Users List
> Subject: RE: XML parsing error on file /WEB-INF/web.xml
> 
> 
> I replaced my server.xml and web.xml with the originals and 
> the problem does not go away.
> 
> Jill Veronda
> Decision Design Corporation
> [EMAIL PROTECTED]
> 925-847-9600 x18
> 
> -Original Message-
> From: Jill Veronda 
> Sent: Wednesday, August 28, 2002 9:39 AM
> To: Tomcat Users List
> Subject: RE: XML parsing error on file /WEB-INF/web.xml
> 
> 
> Do you think that web.xml problem is the reason for my 
> ultimate problem, which is that accessing a jsp page causes a 
> java.lang.NoSuchMethodError on the invoke?  see below:
> 
> 
> 
> 2002-08-28 09:35:23 Ajp13Connector[8009] Opening server 
> socket on all host IP addresses 2002-08-28 09:35:23 
> Ajp13Connector[8009] Starting background thread 2002-08-28 
> 09:35:23 Ajp13Processor[8009][0] Starting background thread 
> 2002-08-28 09:35:23 Ajp13Processor[8009][1] Starting 
> background thread 2002-08-28 09:35:23 Ajp13Processor[8009][2] 
> Starting background thread 2002-08-28 09:35:23 
> Ajp13Processor[8009][3] Starting background thread 2002-08-28 
> 09:35:23 Ajp13Processor[8009][4] Starting background thread 
> 2002-08-28 09:36:10 Ajp13Processor[8009][4] process: invoke 
> java.lang.NoSuchMethodError
>   at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> henticatorBase.java:436)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2347)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:174)
>   at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
>   at 
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>   at java.lang.Thread.run(Thread.java:479)
> 
> 
> -Jill
> 
> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 9:31 AM
> To: 'Tomcat Users List'
> Subject: RE: XML parsing error on file /WEB-INF/web.xml
> 
> 
> Hey Jill, it doesn't look like anything is wrong with the 
> manager web.xml, but I might be missing something.
> 
> It seems that every Context is generating this error, and at 
> the same location (line 7, col 10).  Maybe it's the global 
> web.xml file.  Or you could have a bad server.xml file too.  
> At this point, I would put in a copy of the original web.xml 
> and server.xml and see if your errors still occur.
> 
> 
> - Andrew
> 
> > -Original Message-
> > From: Jill Veronda [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 28, 2002 11:31 AM
> > To: Tomcat Users List
> > Subject: 

RE: tomcat conn pooling question

2002-08-28 Thread Andrew Conrad

Thx.

A validationQuery is not required by DBCP, but if you pass an empty
string it throws an exception.

Tomcat's admin app for JNDI DataSources creates a Validation Query with
an empty string if no query is supplied, causing DBCP to throw an
exception when invoked.  In your opinion, is this a mistake by the Admin
app for creating a empty string parameter, or a mistake by DBCP in
handling an empty string?

- Andrew


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 12:48 PM
> To: Tomcat Users List
> Subject: RE: tomcat conn pooling question
> 
> 
> 
> 
> On Wed, 28 Aug 2002, Andrew Conrad wrote:
> 
> > Date: Wed, 28 Aug 2002 12:34:03 -0400
> > From: Andrew Conrad <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > Subject: RE: tomcat conn pooling question
> >
> > Craig,
> >
> > I'm troubleshooting a ValidationQuery issue, and I can't 
> seem to find 
> > where this query executes.
> >
> > Does DBCP handle the ValidationQuery, or does Tomcat run the 
> > ValidationQuery when the first connection is requested?
> >
> 
> It's inside commons-dbcp.  Tomcat doesn't "run" anything -- 
> it just passes the configuration properties on to 
> BasicDataSourceFactory and lets commons-dbcp do its thing.
> 
> Craig
> 
> >
> >
> > - Andrew
> >
> > > -Original Message-
> > > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 28, 2002 12:25 PM
> > > To: Tomcat Users List
> > > Subject: RE: tomcat conn pooling question
> > >
> > >
> > >
> > >
> > > On Wed, 28 Aug 2002, Turner, John wrote:
> > >
> > > > Date: Wed, 28 Aug 2002 09:51:29 -0400
> > > > From: "Turner, John" <[EMAIL PROTECTED]>
> > > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > > > Subject: RE: tomcat conn pooling question
> > > >
> > > >
> > > > When you say "Tomcat's connection pooling" what do you mean 
> > > > exactly?
> > > >
> > > > As far as I know, there is no connection pooling built-in to 
> > > > tomcat that actually works.
> > >
> > > It does (at least in 4.1) if you set it up correctly :-). 
> The Tyrex 
> > > stuff in 4.0 is problematic, which is one of the reasons it got 
> > > abandoned in 4.1.
> > >
> > > >  The traffic I have seen on this list has people rolling their 
> > > > own, using open source pooling solutions like poolman or DBCP,
> > > or using the
> > > > pooling that comes from third-party driver vendors.  Which
> > > one are you
> > > > using?  That might give the list a better indicator of what's 
> > > > wrong.
> > > >
> > >
> > > Note that Tomcat 4.1 uses commons-dbcp for its pooling.
> > >
> > > In answer to Rick's original question, the standard 
> connection pool 
> > > includes a "validationQuery" configuration property.  
> This is an SQL 
> > > query that the pool will execute before it hands you back a 
> > > requested connection (so it should be something that 
> executes very 
> > > quickly).  If the connection was closed externally (your 
> scenario), 
> > > this query will fail and the pool will throw that connection away 
> > > and give you another one instead.
> > >
> > > > John Turner
> > > > [EMAIL PROTECTED]
> > >
> > > Craig
> > >
> > >
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, August 28, 2002 9:37 AM
> > > > > To: Tomcat Users List
> > > > > Subject: tomcat conn pooling question
> > > > >
> > > > >
> > > > > Sorry if this is a repeat post. (I'm not sure if I 
> posted this 
> > > > > question here or not as I was trying to switch from
> > > digest mode to
> > > > > regular list mode on this list and I ended up
> > > unsubscribing from the
> > > > > list so didn't get messages for a while).
> > > > >
> > >

RE: Tomcat 4 nightly build doesn't starts

2002-08-28 Thread Andrew Conrad

Reading the catalina\build.xml, mbeans is excluded UNLESS compile.jmx.
Compile.jmx is true if jmx.jar is present.  If you download a jmx
implementation, and update your build.properties, it should allow you to
build and start Tomcat.

But I do see the issue you are pointing out.  You might try pulling the
admin webapp from your Tomcat build and see if Tomcat starts without it.
(maybe webdav and manager too.  Those may be reliant on JMX).  There
does seem to be a bug in the build process concerning JMX and the
services that use it.  I would post a bug report concerning this issue,
but unless you include a patch it probably won't get fixed quickly.


Also, if you don't have all the optional libraries, you are not building
a full version of Tomcat.  

- Andrew

> -Original Message-
> From: Dev Zero G Ltd team [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat 4 nightly build doesn't starts
> 
> 
> The problem is that Tomcat build finishes successfully.
> 
> The procedure how I built is following:
> 
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic 
> checkout jakarta-tomcat-4.0 install via ports: 
> /usr/ports/devel/jakarta-ant/
> 
> checkout then build (may need to copy build.properties.sample to
> build.properties):
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic 
> checkout -r tomcat_4_branch jakarta-tomcat-jasper cvs -d 
> :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
> jakarta-tomcat-connectors cvs -d 
> :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout 
> jakarta-servletapi-4
> 
> fetch and unzip: 
> http://jakarta.apache.org/builds/jakarta-commons/release/commo
> ns-beanutils/v
> 1.4/commons-beanutils-1.4.tar.gz 
> http://jakarta.apache.org/builds/jakarta-commons/release/commo
> ns-collections
> /v2.0/commons-collections-2.0.tar.gz
> http://jakarta.apache.org/builds/jakarta-commons/release/commo
> ns-digester/v1
> .2/commons-digester-1.2.tar.gz 
> http://jakarta.apache.org/builds/jakarta-commons/release/commo
> ns-logging/v1.
> 0.1/commons-logging-1.0.1.tar.gz
> http://jakarta.apache.org/builds/jakarta-regexp/release/v1.2/j
akarta-regexp-
> 1.2.tar.gz
> 
> fetch, unzip, then copy xalan.jar to 
> /usr/local/jakarta-ant-1.5.0/lib/ 
> http://xml.apache.org/dist/xalan-j/xalan-j_2_4_D1-bin.tar.gz
> 
> Then I ran ant dist. The build completed successfully. But I 
> had the mentioned exception when I was trying to run Tomcat 
> from dist folder. I found that in catalina/build.xml package 
> mbeans is exluded. But the exception says that 
> org.apache.catalina.mbeans.ServerLifecycleListener
> not fould during the start Tomcat.
> 
> 
> 
> 
> 
> >How are you trying to build tomcat?
> >
> >You should be building using 'ant dist'.  Also, did you 
> include all the 
> >optional libraries.  Not having an implementation of JMX 1.0 may be 
> >causing this problem, although I don't know for sure.  See 
> step 14 of 
> >Building.txt for options.  I use mx4j myself
> >
> >Andrew Conrad
> >
> >> -Original Message-
> >> From: Dev Zero G Ltd team [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, August 28, 2002 10:19 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: Tomcat 4 nightly build doesn't starts
> >>
> >>
> >> I have built Tomcat from jakarta-tomcat-4.0 cvs module and all 
> >> necessary subprojects.
> >>
> >> When I am trying to start it raises an exception:
> >
> > Catalina.start: java.lang.ClassNotFoundException: 
> > org.apache.catalina.mbeans.ServerLifecycleListener
> > java.lang.ClassNotFoundException: 
> > org.apache.catalina.mbeans.ServerLifecycleListener
> >
> > And I really can't find it in catalina.jar
> >
> >
> > --
> > Best regards,
> > Dev Zero G Ltd team http://devzerog.com 
> > mailto:[EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > --
> > To unsubscribe,
> > e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For 
> additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 


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




RE: Removing files from /lib

2002-08-28 Thread Andrew Conrad

Where are you keeping log4j?  Is it in common/lib or some place such as
that or is it stored in you WEB-INF/lib folder?

>From my understanding if it's in common or shared, then unloading the
webapp won't release the files, since webapps inherit common and shared
classloaders, they don't actually create them.

- Andrew

> -Original Message-
> From: Shawn Wilson [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 12:05 PM
> To: tomcat
> Subject: Removing files from /lib
> 
> 
> I must not be understanding completely the way the 
> classloaders work under Tomcat. I thought that if I stop a 
> webapp through the manager application that should unload its 
> jar files. However, even after it's stopped, I find that 
> log4j jar file is locked so I can't remove it.
> 
> Why would that one file be locked but the others not?
> 
> -shawn
> 
> 
> Shawn Wilson [[EMAIL PROTECTED]]
> Software Developer, ATMReports.com
> PH: 877-327-0873, FAX: 406-294-5806 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat conn pooling question

2002-08-28 Thread Andrew Conrad

Craig, 

I'm troubleshooting a ValidationQuery issue, and I can't seem to find
where this query executes.

Does DBCP handle the ValidationQuery, or does Tomcat run the
ValidationQuery when the first connection is requested?



- Andrew

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 12:25 PM
> To: Tomcat Users List
> Subject: RE: tomcat conn pooling question
> 
> 
> 
> 
> On Wed, 28 Aug 2002, Turner, John wrote:
> 
> > Date: Wed, 28 Aug 2002 09:51:29 -0400
> > From: "Turner, John" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > Subject: RE: tomcat conn pooling question
> >
> >
> > When you say "Tomcat's connection pooling" what do you mean exactly?
> >
> > As far as I know, there is no connection pooling built-in to tomcat 
> > that actually works.
> 
> It does (at least in 4.1) if you set it up correctly :-).  
> The Tyrex stuff in 4.0 is problematic, which is one of the 
> reasons it got abandoned in 4.1.
> 
> >  The traffic I have seen on this list has people rolling their own, 
> > using open source pooling solutions like poolman or DBCP, 
> or using the 
> > pooling that comes from third-party driver vendors.  Which 
> one are you 
> > using?  That might give the list a better indicator of what's wrong.
> >
> 
> Note that Tomcat 4.1 uses commons-dbcp for its pooling.
> 
> In answer to Rick's original question, the standard 
> connection pool includes a "validationQuery" configuration 
> property.  This is an SQL query that the pool will execute 
> before it hands you back a requested connection (so it should 
> be something that executes very quickly).  If the connection 
> was closed externally (your scenario), this query will fail 
> and the pool will throw that connection away and give you 
> another one instead.
> 
> > John Turner
> > [EMAIL PROTECTED]
> 
> Craig
> 
> 
> >
> >
> > > -Original Message-
> > > From: Rick Reumann [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 28, 2002 9:37 AM
> > > To: Tomcat Users List
> > > Subject: tomcat conn pooling question
> > >
> > >
> > > Sorry if this is a repeat post. (I'm not sure if I posted this 
> > > question here or not as I was trying to switch from 
> digest mode to 
> > > regular list mode on this list and I ended up 
> unsubscribing from the 
> > > list so didn't get messages for a while).
> > >
> > > QUESTION:
> > >
> > > I've configured Tomcat's connection pooling according to Tomcat's 
> > > docs 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources

> > -howto.html
> > any everything seems to work fine unless someone manually kills the 
> > open connections (or something else causes the connections to go 
> > down). When the connections are manually killed the connection 
> > pooling ceases to work and the application breaks since it gets sql 
> > errors from the conn pool of
> > java.sql.SQLException: ORA-01012: not logged on
> >
> > Is there a way to make sure the connection pooling goes back to 
> > working if the app somehow has it's open connections killed? I 
> > thought adding  the validationQuery to the ResourceParams configured

> > in the server.xml file would help, but it doesn't.
> >
> > 
> >   validationQuery
> >SELECT 'CRAP' FROM DUAL
> > 
> >
> > Thanks for any help.
> >
> > --
> >
> > Rick
> > mailto:[EMAIL PROTECTED]
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail: 
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XML parsing error on file /WEB-INF/web.xml

2002-08-28 Thread Andrew Conrad

Hey Jill, it doesn't look like anything is wrong with the manager
web.xml, but I might be missing something.

It seems that every Context is generating this error, and at the same
location (line 7, col 10).  Maybe it's the global web.xml file.  Or you
could have a bad server.xml file too.  At this point, I would put in a
copy of the original web.xml and server.xml and see if your errors still
occur.


- Andrew

> -Original Message-
> From: Jill Veronda [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 11:31 AM
> To: Tomcat Users List
> Subject: RE: XML parsing error on file /WEB-INF/web.xml
> 
> 
> web.xml for webapps/manager/WEB-INF below:
> 
> 
> Thanks for the help in advance!
> 
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
>   
>   
> Manager
> 
> org.apache.catalina.servlets.ManagerServlet
> 
>   debug
>   2
> 
>   
> 
>   
>   
> Manager
> /*
>   
> 
>   
>   
> 
>   Entire Application
>   /*
> 
> 
>
>manager
> 
>   
> 
>   
>   
> BASIC
> Tomcat Manager Application
>   
> 
> 
> 
> 
> -Original Message-
> From: Ben Walding [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 27, 2002 6:41 PM
> To: Tomcat Users List
> Subject: Re: XML parsing error on file /WEB-INF/web.xml
> 
> 
> Posting your web.xml would make it easier!
> 
> Jill Veronda wrote:
> 
> >On starting tomcat 4.0.4 I get the error:
> >
> >2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML 
> >parsing error on file /WEB-INF/web.xml: (line 7, col 10):
> >Document root element "web-app", must match DOCTYPE root "web-app".
> >
> >Can anyone tell me what two places the error is referring to?  I am 
> >using Tomcat 4.0.4, Apache 1.3.12 connected using mod_jk, 
> JDK 1.3.1 on 
> >Windows 2000 Server.
> >
> >
> >Full log file below:
> >
> >
> >
> >2002-08-27 18:10:54 WebappLoader[/manager]: Deploying class 
> >repositories to work directory 
> C:\tomcat\work\Standalone\rack2\manager
> >2002-08-27 18:10:54 StandardManager[/manager]: Seeding 
> random number generator class java.security.SecureRandom
> >2002-08-27 18:10:54 StandardManager[/manager]: Seeding of 
> random number generator has been completed
> >2002-08-27 18:10:54 ContextConfig[/manager]: Added 
> certificates -> request attribute Valve
> >2002-08-27 18:10:54 ContextConfig[/manager]: Configured an 
> authenticator for method BASIC
> >2002-08-27 18:10:54 StandardWrapper[/manager:default]: 
> Loading container servlet default
> >2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
> >2002-08-27 18:10:54 StandardWrapper[/manager:invoker]: 
> Loading container servlet invoker
> >2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
> >2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
> >2002-08-27 18:10:54 Exception initializing 
> TldLocationsCache: XML parsing error on file 
> /WEB-INF/web.xml: (line 7, col 10): Document root element 
> "web-app", must match DOCTYPE root "web-app".
> >2002-08-27 18:10:54 StandardHost[rack2]: Installing web 
> application at context path  from URL file:C:\tomcat\webapps\ROOT
> >2002-08-27 18:10:54 WebappLoader[]: Deploying class 
> repositories to work directory C:\tomcat\work\Standalone\rack2\_
> >2002-08-27 18:10:54 StandardManager[]: Seeding random number 
> generator class java.security.SecureRandom
> >2002-08-27 18:10:54 StandardManager[]: Seeding of random 
> number generator has been completed
> >2002-08-27 18:10:54 ContextConfig[]: Added certificates -> 
> request attribute Valve
> >2002-08-27 18:10:54 StandardWrapper[:default]: Loading 
> container servlet default
> >2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
> >2002-08-27 18:10:54 StandardWrapper[:invoker]: Loading 
> container servlet invoker
> >2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
> >2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
> >2002-08-27 18:10:54 Exception initializing 
> TldLocationsCache: XML parsing error on file 
> /WEB-INF/web.xml: (line 7, col 10): Document root element 
> "web-app", must match DOCTYPE root "web-app".
> >2002-08-27 18:10:54 StandardHost[rack2]: Installing web 
> application at context path /tomcat-docs from URL 
> file:C:\tomcat\webapps\tomcat-docs
> >2002-08-27 18:10:54 WebappLoader[/tomcat-docs]: Deploying 
> class repositories to work directory 
> C:\tomcat\work\Standalone\rack2\tomcat-docs
> >2002-08-27 18:10:54 StandardManager[/tomcat-docs]: Seeding 
> random number generator class java.security.SecureRandom
> >2002-08-27 18:10:54 StandardManager[/tomcat-docs]: Seeding 
> of random number generator has been completed
> >2002-08-27 18:10:54 ContextConfig[/tomcat-docs]: Added 
> certificates -> request attribute Valve
> >2002-08-27 18:10:54 StandardWrapper[/tomcat-docs:default]: 
> Loading container servlet default
> >2002-08-27

RE: Tomcat 4 nightly build doesn't starts

2002-08-28 Thread Andrew Conrad

How are you trying to build tomcat? (what ant command?)

You should be building using 'ant dist'.  Also, did you include all the
optional libraries.  Not having an implementation of JMX 1.0 may be
causing this problem, although I don't know for sure.  See step 14 of
Building.txt for options.  I use mx4j myself.

Finally, verify the file exists at
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerL
ifecycleListener.java

Andrew Conrad

> -Original Message-
> From: Dev Zero G Ltd team [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 11:48 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4 nightly build doesn't starts
> 
> 
> I have built Tomcat from jakarta-tomcat-4.0 cvs module and 
> all necessary subprojects.
> 
> When I am trying to start it raises an exception:
> 
> Catalina.start: java.lang.ClassNotFoundException: 
> org.apache.catalina.mbeans.ServerLifecycleListener
> java.lang.ClassNotFoundException: 
> org.apache.catalina.mbeans.ServerLifecycleListener
> 
> And I really can't find it in catalina.jar
> 
> 
> --
> Best regards,
> Dev Zero G Ltd team http://devzerog.com 
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe, 
> e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 


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




Tomcat 4 nightly build doesn't starts

2002-08-28 Thread Andrew Conrad

How are you trying to build tomcat?

You should be building using 'ant dist'.  Also, did you include all the
optional libraries.  Not having an implementation of JMX 1.0 may be
causing this problem, although I don't know for sure.  See step 14 of
Building.txt for options.  I use mx4j myself

Andrew Conrad

> -Original Message-
> From: Dev Zero G Ltd team [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 28, 2002 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4 nightly build doesn't starts
> 
> 
> I have built Tomcat from jakarta-tomcat-4.0 cvs module and 
> all necessary subprojects.
> 
> When I am trying to start it raises an exception:
> 
> Catalina.start: java.lang.ClassNotFoundException: 
> org.apache.catalina.mbeans.ServerLifecycleListener
> java.lang.ClassNotFoundException: 
> org.apache.catalina.mbeans.ServerLifecycleListener
> 
> And I really can't find it in catalina.jar
> 
> 
> --
> Best regards,
> Dev Zero G Ltd team http://devzerog.com 
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> 
> 
> --
> To unsubscribe, 
> e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 


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




RE: mod_jk

2002-08-27 Thread Andrew Conrad

Along with the connector source, you need the apache source, because
mod_jk compiles to the specific version of apache for which you have the
source.  (you will see all those files in the apache source).  That
said, I've still had some problems with compiling it.  I'm not sure what
I'm doing wrong, but I ended up and just use the binary mod_jk.dll from
here:  http://www.acg-gmbh.de/mod_jk/  of course it's not official, but
it works.



- Andrew

> -Original Message-
> From: Short, Dave [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 6:58 PM
> To: 'Tomcat Users List'
> Subject: RE: mod_jk
> 
> 
> Here a list of .h files called from the jk_apache2.h, which 
> is called from mod_jk2.c.  I found the jk_*.h files but not 
> the others.  
> 
> #include "apu_compat.h"
> #include "ap_config.h"
> #include "apr_lib.h"
> #include "apr_date.h"
> #include "apr_strings.h"
> #include "apr_pools.h"
> #include "apr_tables.h"
> #include "apr_hash.h"
> 
> #include "httpd.h"
> #include "http_config.h"
> #include "http_request.h"
> #include "http_core.h"
> #include "http_protocol.h"
> #include "http_main.h"
> #include "http_log.h"
> 
> #include "jk_global.h"
> #include "jk_map.h"
> #include "jk_pool.h"
> #include "jk_env.h"
> #include "jk_service.h"
> #include "jk_worker.h"
> #include "jk_workerEnv.h"
> #include "jk_uriMap.h"
> #include "jk_requtil.h"
> 
> Also, mod_jk2.c calls two additional .h files (scoreboard.h, 
> util_script.h) that I can't seem to find...
> 
> Is all this stuff bundled somewhere?  Am I looking in the 
> right place?  
> 
> Here's where I'm looking: 
> http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/nat
> ive2/server/ap
> ache2/
> 
> -Original Message-
> From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]]
> Sent: August 27, 2002 3:33 PM
> To: 'Tomcat Users List'
> Subject: Re: mod_jk
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Tue, Aug 27, 2002 at 06:17:40PM -0400, Short, Dave wrote:
> > Not asking for every OS under the sun, just Win32 - which 
> is a fairly
> common
> > OS...  I would gladly download, compile and post the source 
> for Win32
> 
> well for you win32 is not every os under the sun because that 
> is what you choose to use.  others might have a different 
> point of view.  plus if we wanted the developers to compile 
> the code for every os that anyone on the list uses, well, 
> that could be a big job.
> 
> > mod_k2.  Last time I tried, my compiler complained about missing .h 
> > files. If you wouldn't mind telling me where ALL required files 
> > reside, I would
> be
> > happy to help out.
> 
> which .h files did the compiler complain about?
> 
> - -- 
> Peter Abplanalp
> 
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE9a/42ggA8sH0iRXQRAvNeAJ9GW43lwZNIaFPyhNuUkPmYrm4QAgCgt1t+
> 56p/HxP6GPtp68DvhdaIrCk=
> =M6d+
> -END PGP SIGNATURE-
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jar_cache files on AIX

2002-08-27 Thread Andrew Conrad

I can't speak for AIX, but with the windows ver of JDK 1.4.0, you can
disable the JAR cache.

So, atleast there is hope.  

- Andrew

> -Original Message-
> From: Holmes, Jason [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 5:15 PM
> To: Tomcat User Mailing List (E-mail)
> Subject: jar_cache files on AIX
> 
> 
> I have read all of the postings (all that I could find 
> anyway) about the jar_cache files that are generated in /tmp 
> on AIX when using tomcat 4.  I have a fairly good 
> understanding of where they come from, but I have thus far 
> been unable to find a way to make the JDK stop generating 
> them, or generate them in an alternate location.  I have been 
> unsuccessful in finding any documentation on this with regard 
> to the JDK.
> 
> Has anyone found a way to clobber these?
> Is upgrading the JDK (from 1.3.0 to 1.3.1) a fix that anyone 
> has tried and verified to work?
> 
> Thank you for the assistance.
> Jason Holmes
> Cessna Aircraft Company
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Finding my classes

2002-08-27 Thread Andrew Conrad

Tomcat ignores Classpath

Read the ClassLoader howto and make sure your classes are in packages.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html


- Andrew

> -Original Message-
> From: Wilson, William N [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 3:37 PM
> To: Tomcat Users List
> Subject: Finding my classes
> 
> 
> How do you get Tomcat to find your classes.  
> 
> I have the Classpath set to "C:\Apache Tomcat 
> 4.0\webapps\myapp\WEB-INF\classes"
> 
> All of the server.xml stuff has been changed to make myapp be 
> the ROOT context.
> 
> The only place I can get the classes to be found is in the 
> "C:\Apache Tomcat 4.0\classes" directory.  
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: build-main fails for tomcat 4.1 (XSLP problem?)

2002-08-27 Thread Andrew Conrad

I still think it's a xalan issue.  How did you solve the problem?  Copy
xalan.jar into ant/lib or are you using jdk1.4 (if 1.4, which build? )

Xalan has a known issue with converting style sheets that Xalan 2.4.D1
resolves.

Check these for more info
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6750
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6156

- Andrew

> -Original Message-
> From: Dev Zero G Ltd [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 4:14 PM
> To: Tomcat Developers List
> Subject: Re: build-main fails for tomcat 4.1 (XSLP problem?)
> 
> 
> FANTASTIC! That worked a treat :)
> 
> New problem :(
> 
> (THANKS VERY MUCH FOR GETTING ME THIS FAR!)
> 
> 
> build-main:
>  [style] Transforming into 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/build/tomcat-docs
>  [style] Processing 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs/clas
> s-loader-howto.xml 
> to 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/build/tomcat-doc
> s/class-loader-howto.html
>  [style] Loading stylesheet 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs/tomc
> at-docs.xsl
>  [style] Processing 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs/inde
> x.xml to 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/build/tomcat-doc
> s/index.html
>  [style] Processing 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs/intr
> oduction.xml 
> to 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/build/tomcat-doc
> s/introduction.html
>  [style] Processing 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs/jndi
> -datasource-examples-howto.xml 
> to 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/build/tomcat-doc
> s/jndi-datasource-examples-howto.html
>  [style] : Fatal Error! java.lang.NullPointerException:  Cause: 
> java.lang.NullPointerException:
>  [style] Failed to process 
> /usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs/jndi
> -datasource-examples-howto.xml
> 
> BUILD FAILED
> file:/usr/home/d3wh3m1c/jakarta-tomcat-4.0/webapps/tomcat-docs
> /build.xml:80: 
> Fatal error during transformation


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Velocity / Avalon

2002-08-27 Thread Andrew Conrad

Have you asked this question to the avalon or velocity mailing lists?

- Andrew

> -Original Message-
> From: Carsten Burstedde [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 1:14 PM
> To: tomcat-user
> Subject: Velocity / Avalon
> 
> 
> Hi,
> 
> I am repeating a question I posted several days ago, any 
> answers welcome...
> 
> I am using velocity 1.2 with tomcat 4.0.4 on SuSE Linux 8.0 
> and Sun's JDK 1.4. How do I activate log file rotation for 
> the avalon log system used by velocity? And what to write 
> into the velocity.properties file?
> 
> Currently, it simply looks
> ...
> runtime.log.logsystem.class = 
> org.apache.velocity.runtime.log.AvalonLogSystem
> runtime.log = compapps/cbapp/log/velocity.log
> ...
> 
> Thanks again,
> 
> Carsten
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat Realms with Digested Passwords -Urgent- ( A little longish...)

2002-08-27 Thread Andrew Conrad

I have no problems using SHA-1.  I also use FORM based authentication.
You might try those, just to see if anything's different.

> -Original Message-
> From: ahmet dalli [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 3:15 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Realms with Digested Passwords -Urgent- ( A 
> little longish...)
> 
> 
> Hi all,
> 
> I am trying to use JDBCRealm to store user login
> information in an oracle database. I am working on a 
> Windows2000 machine, using jdk1.4, and Tomcat4.0.4.
> 
> In server.xml, i have this configuration: 
> ^^
>  className="org.apache.catalina.realm.JDBCRealm"
>   debug="99"
>   driverName="oracle.jdbc.driver.OracleDriver" 
> connectionURL="jdbc:oracle:thin:usr/pass@host:1521:ORCL"
>   userTable="users" userNameCol="user_name"
>   userCredCol="user_pass" userRoleTable="user_roles"
>   roleNameCol="role_name" digest="MD5" /> 
> ^^
> 
> In an Oracle8i database, i have a table called "users"
> which has two columns named "user_name" and
> "user_pass" ; and yet another one called 
> "user_roles" with to columns named "user_name" and
> "user_role". 
> 
> When i store user passwords in cleartext, everything
> works fine.
> 
> I want to store passwords in a digested form. So, i
> have used the following code to store a user_name :
> baris, user_pass : aksu and user_role : director.
> 
> ^^^
> import org.apache.catalina.realm.RealmBase;
> import java.io.*;
> import java.sql.*;
> 
> public class DigestDene {
>   public static void main(String[] args) {
>try {
> String username = args[0];
> String password = args[1];
> String role = args[2];
> String digested = 
> RealmBase.Digest(password, "MD5");
>  //Here, code that connects to the database
>   /* .. */
> stmt.executeUpdate("insert into users values('" +
>  username + "', '" + digested + "')");
> stmt.executeUpdate("insert into user_roles values
>('" + username + "', '" + role + "')");
>}
>catch(Exception ex) {}
>}
> } 
> 
> Then, i have inserted my user's info from the
> command-line with :
> ^^
> java DigestDene baris aksu director
> ^^^
> After this, I have these values in the database :
> (in table users)
>  USER_NAMEUSER_PASS
> --- 
> baris394e654ca65973f232653fb0008c603d
> 
> (in table user_roles)
> USER_NAME   USER_ROLE
> --- -
> baris   director
> 
> Lastly, in web.xml i have these lines : 
> ^^^
> 
> 
>  Protected Basla Servlet
>  
>  /servlet/IlkGirisServlet
>  
> 
> 
>  director
> 
> 
>  NONE
>   
>  
>  
>   BASIC
>   
> ^
> When i try to acces my protected resource, i am
> presented with the classic login screen for BASIC 
> authentication, and after i type "baris" for username and 
> "aksu" for password, Tomcat doesn't simply let me in.
> 
> Any suggestions or comments will be greatly
> appreciated. 
> 
> Baris.
> 
> __
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Does closing a Connection variable and setting it to null close all of the ResultSet and Statements?

2002-08-27 Thread Andrew Conrad

No, you should invoke .close() on your resultset and statement object.
Setting to null is also a good idea, but not as important as closing the
objects.

- Andrew

> -Original Message-
> From: Short, Dave [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 12:09 PM
> To: 'Tomcat Users List'
> Subject: RE: Does closing a Connection variable and setting 
> it to null close all of the ResultSet and Statements?
> 
> 
> By closing you mean set the ResultSet and Statement objects 
> to null - correct?
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: August 27, 2002 9:06 AM
> To: Tomcat Users List
> Subject: Re: Does closing a Connection variable and setting 
> it to null close all of the ResultSet and Statements?
> 
> 
> 
> 
> On Tue, 27 Aug 2002, Tim Funk wrote:
> 
> > Date: Tue, 27 Aug 2002 12:03:18 -0400
> > From: Tim Funk <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re: Does closing a Connection variable and setting 
> it to null
> > close all of the ResultSet and Statements?
> >
> > It is not requried to close ResultSets, Statements, etc if 
> you close 
> > the connection. (I think) The spec says if you close a connection - 
> > all associated resources for that connection will also be closed.
> >
> 
> That's what the spec says, but relying on it is being awfully 
> trusting of JDBC driver developers to do the right thing.  A 
> little paranoia here (i.e.  close the result sets and 
> statements yourself) goes a long way towards making your apps 
> more reliable.
> 
> Craig
> 
> 
> > If you are using a pool - the pool manager *should* be obeying this 
> > principal too.
> >
> > Michael Nicholson wrote:
> > > Well, I guess the subject line says it all.  I'm having memory 
> > > issues,
> and having read the OOM error messages on the list, I've 
> checked and found some open and not being closed connections, 
> so I'm going back and closing them all.  The question is do I 
> need to explicitly close/dereference (set to
> null) all statements and recordsets too?  Right now the 
> system takes about 4% of my available memory just for the 
> beans in question, so I'm trying to minimize what I store so 
> that I could conceptually have more than one user.
> > >
> > > Thanks in advance,
> > > Mike Nicholson
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Does closing a Connection variable and setting it to null close all of the ResultSet and Statements?

2002-08-27 Thread Andrew Conrad

Michael, 
As per the Java documentation, resultsets are closed when the statement
is closed, and Statement's are closed during garbage collection.  But in
my own opinion, it's better to close them individually and explicitly,
so you the programmer know it is done, and someone reading your code
knows it is done without knowledge of the close hierarchy.

- Andrew

> -Original Message-
> From: Michael Nicholson [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 11:53 AM
> To: Tomcat Users List
> Subject: Does closing a Connection variable and setting it to 
> null close all of the ResultSet and Statements?
> 
> 
> Well, I guess the subject line says it all.  I'm having 
> memory issues, and having read the OOM error messages on the 
> list, I've checked and found some open and not being closed 
> connections, so I'm going back and closing them all.  The 
> question is do I need to explicitly close/dereference (set to 
> null) all statements and recordsets too?  Right now the 
> system takes about 4% of my available memory just for the 
> beans in question, so I'm trying to minimize what I store so 
> that I could conceptually have more than one user.  
> 
> Thanks in advance,
> Mike Nicholson
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using a Webapp on a network share

2002-08-27 Thread Andrew Conrad

I'm not sure if this relates to samba, but most issues with mapped
drives is with the service account, if you are running Tomcat as a
service.

Try creating an account specifically for Tomcat, then log on as Tomcat
and map the drive ( check reconnect at logon ).  Make sure you can read
a file while accessing the drive.  Then add the account to the service
and restart Tomcat.

Another way to test to see if it's a permissions issue, is to stop your
tomcat service, and start Tomcat using the batch file, assumming you
have permission to the mapped drive.


- Andrew

> -Original Message-
> From: Marc-Henri PAMISEUX [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 27, 2002 11:17 AM
> To: Tomcat Users List
> Subject: Re: Using a Webapp on a network share
> 
> 
> Tim Funk wrote:
> > Instead of:
> > docBase="N:\intranet\sites\ROOT"
> > 
> > try:
> >docBase="N:\\intranet\\sites\\ROOT"
> > OR
> >docBase="N:/intranet/sites/ROOT"
> > 
> > 
> 
> And i've try also file:///N:/intranet/sites/ROOT but nothing works.
> 
> Now, to simplify, i've changed the value to 
> appBase="N:/intranet/sites", 
> and  for trying 
> relative path to appBase. But it is the same problem !
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RE : Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Andrew Conrad

I haven't submitted a bug, but new bugs are appearing.  Example ->
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12046

The date is 2002-08-26 17:06

- Andrew

> -Original Message-
> From: Michael [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 12:09 PM
> To: 'Tomcat Users List'
> Subject: RE : Bugzilla down, can't submit tomcat bug
> 
> 
> Did you actually submit a bug?  I tried several times on 
> Friday, Saturday, and again today and each time it takes 
> about 5 minutes to time out.
> 
> The bug I want to submit is for the CATALINA_BASE variable.. 
> When I use it my web app is not accessible.  I've posted a 
> few messages about it but haven't gotten much of a response, 
> I don't think many people have tried using it.
> 
> http://marc.theaimsgroup.com/?l=tomcat-user&m=103000367314894&w=2
> 
> 
> > -Original Message-
> > From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 5:26 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Bugzilla down, can't submit tomcat bug
> > 
> > 
> > Bugzilla seems to be working for me.
> > 
> > I read your msg concerning differentiation between
> > SQLException's and user login failure.  I don't think it's 
> > possible, and I don't think it's a bug.  Mainly because not 
> > all Realm's use SQLExceptions.  I think you would have to 
> > modify the Realm interface and the BaseRealm class to add 
> > this functionality.
> > 
> > If you are just trying to request an enhancement, that would
> > be the place too.  
> > 
> > - Andrew
> > 
> > > -Original Message-
> > > From: Michael [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, August 26, 2002 11:10 AM
> > > To: Tomcat Users List
> > > Subject: Bugzilla down, can't submit tomcat bug
> > > 
> > > 
> > > I've emailed the contact listed on the error page but the email 
> > > bounces back.  I'm not sure what I can do to report a tomcat bug.
> > > 
> > > --
> > > 
> > > 
> > http://issues.apache.org/bugzilla/post_bug.cgi
> > 
> > Internal Server Error
> > The server encountered an internal error or misconfiguration
> > and was unable to complete your request.
> > 
> > Please contact the server administrator, [EMAIL PROTECTED] and
> > inform them of the time the error occurred, and anything you 
> > might have done that may have caused the error.
> > 
> > More information about this error may be available in the
> > server error log.
> > 
> > Additionally, a 400 Bad Request error was encountered while 
> trying to
> > use an ErrorDocument to handle the request. 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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




[TC 4.1] Defining jsp reloading using conf/web.xml

2002-08-26 Thread Andrew Conrad

The conf/web.xml seems to define two parameters ( development, reloading
) for the JSP page compiler that do not seem to work.  Can anyone
confirm that these work for them, or has the   replaced this type of configuration? 

Example:




jsp
 
org.apache.jasper.servlet.JspServlet

logVerbosityLevel
WARNING


development
true


reloading
true

3




Andrew Conrad
617.470.8045
[EMAIL PROTECTED] 


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




RE: Context management and virtual host

2002-08-26 Thread Andrew Conrad

Use the Remote Address Valve





More info is here ->
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html

- Andrew

> -Original Message-
> From: Q. Werty [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 11:48 AM
> To: tomcat-user
> Subject: Re: Context management and virtual host
> 
> 
> I agree there's no problem with installing the manager 
> application in each virtual host. I just don't want to do this  
> because I don't want to publish this context to anyone, even 
> with credentials.
> I would be ready to this on our production server if I could 
> restrict manager context access to some IP adresses (127.0.0.1 
> for exemple).
> ==> Is it possible? (if not, what about thinking of this in 
> future release?)
> 
> 
> 
> > There is no current support for a manager webapp that works
> cross-host.
> > The people I know using multiple virtual hosts haven't had
> any problems
> > with the notion of installing manager in each host (usually
> with a unique
> > username/password if you allow the virtual host users to
> manage their own
> > webapps).
> > 
> > Admin webapp support for contexts is primarily for tweaking
> existing
> > config properties.  I view manager as the standard mechanism
> for dynamic
> > starting and stopping of webapps, in addition to deploying,
> undeploying,
> > and reloading.  Although the "user interface" of manager is
> quite limited,
> > it is expressly designed to be used by tools -- such as the
> Ant custom
> > tasks included in Tomcat 4.1, and the version of deploytool
> shipped with
> > the JWSDP .
> > 
> > People building plugins for IDEs should really be integrating
> support for
> > manager commands instead of trying to embed Tomcat inside
> their
> > environments.  They'd find it a lot easier.
> > 
> > Craig
> > 
> > 
> > On Mon, 26 Aug 2002, Q. Werty wrote:
> > 
> > > Date: Mon, 26 Aug 2002 16:42:32 +0200
> > > From: Q. Werty <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: "[utf-8] tomcat-user" <[EMAIL PROTECTED]>
> > > Subject: Context management and virtual host
> > >
> > > I'am looking for a way to manage all contexts installed on
> my
> > > server.
> > > I've got numerous virtual hosts and I'like NOT to install manager 
> > > context in all virtual hosts. How can I do?
> > > - Is it possible to install a "cross-host" context in
> Tomcat?
> > > - I saw the administration interface in Tomcat 4.1 beta.
> It's a
> > > very great work, this interface enable to see/add/remove all 
> > > contexts accross all virtual hosts. I thought it was what I
> was
> > > looking for but apparently there's nothing to
> start/stop/reload
> > > context. Is it planned for final version?
> > >
> > > Thanks in advance for any response
> > >
> > > Accédez au courrier électronique de La Poste :
> www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 
> 13 50 (0,34€/mn)"
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > > For additional commands, e-mail:  [EMAIL PROTECTED]>
> > >
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> > 
> > 
> 
> Accédez au courrier électronique de La Poste : 
> www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) > ; tél : 08 92 
> 68 13 50 (0,34€/mn)"
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Bugzilla down, can't submit tomcat bug

2002-08-26 Thread Andrew Conrad

Bugzilla seems to be working for me.

I read your msg concerning differentiation between SQLException's and
user login failure.  I don't think it's possible, and I don't think it's
a bug.  Mainly because not all Realm's use SQLExceptions.  I think you
would have to modify the Realm interface and the BaseRealm class to add
this functionality.

If you are just trying to request an enhancement, that would be the
place too.  

- Andrew

> -Original Message-
> From: Michael [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 11:10 AM
> To: Tomcat Users List
> Subject: Bugzilla down, can't submit tomcat bug
> 
> 
> I've emailed the contact listed on the error page but the 
> email bounces back.  I'm not sure what I can do to report a 
> tomcat bug.
> 
> --
> 
> 
http://issues.apache.org/bugzilla/post_bug.cgi

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error
log.

Additionally, a 400 Bad Request error was encountered while trying to
use an ErrorDocument to handle the request. 



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jndi jdbc driver location

2002-08-25 Thread Andrew Conrad

Relating to tomcat 4.0.x:

%CATALINA%/lib  is for webapps only.  The Tomcat Server does not see it.

In Tomcat 4.1.x, the %CATALINA%/lib folder has been renamed to
%CATALINA%/shared/lib, which should help prevent this confusion.

- Andrew

> -Original Message-
> From: adam kramer [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, August 25, 2002 2:22 PM
> To: Tomcat Users List
> Subject: jndi jdbc driver location 
> 
> 
> 
> At 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources
> -howto.html
> "1. Install Your JDBC Driver
> Use of the JDBC Data Sources JNDI Resource Factory requires 
> that you make an appropriate JDBC driver available to both 
> Tomcat internal classes and to your web application. This is 
> most easily accomplished by installing the driver's JAR 
> file(s) into the $CATALINA_HOME/common/lib directory, which 
> makes the driver available both to the resource factory and 
> to your application."
> 
> can the jdbc .jar driver file be in $CATALINA_HOME/lib or 
> does it have to be in common/lib to be available to the 
> resource factory in Tomcat 4.0.4?
> 
> thanks,
> Adam K
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Where to locate class files

2002-08-21 Thread Andrew Conrad

Whoops..   Type.


> -Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 21, 2002 8:51 PM
> To: Tomcat Users List
> Subject: RE: Where to locate class files
> 
> 
> almoststart your package in "classes" directory
> 
> -----Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 7:43 PM
> To: 'Tomcat Users List'; [EMAIL PROTECTED]
> Subject: RE: Where to locate class files
> 
> 
> Here is your problem
> 
> Make your class part of a package, then reproduce the package 
> in the WEB-INF
> 
> For instance, if you call your package  com.MyFiles   put the 
> Java file
> in WEB-INF/com/MyFiles
> 
> Then in you jsp, do an import  com.MyFiles.Spud
> 
> - Andrew
> 
> > -Original Message-
> > From: Barry Martin [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 21, 2002 7:20 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Where to locate class files
> >
> >
> > Sure Peter,
> >
> > Here you go. Here is the html,jsp and java code.
> >
> > Thanks, Barry
> >
> > -Original Message-
> > From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 21, 2002 5:04 PM
> > To: 'Tomcat Users List'
> > Subject: Re: Where to locate class files
> >
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > > Thanks Peter,
> >
> > welcome.
> >
> > > The WEB-INF directory is in uppercase. I have tried
> > restarting tomcat.
> > This
> > > is in a testing environment with tomcat running standalone
> > on a win2k
> > > box. The version of tomcat is 4.0.1. For the class file in
> > question I
> > > simply typed the java code in notepad and saved the .java
> > to \classes
> > > and then compiled from the command prompt which saved the
> > .class file
> > > in the same directory. It compiled fine.
> >
> > well, it seems you've done everything according to the law. 
> forgive me 
> > for asking but you did name the class Spud and put it in Spud.java, 
> > right?  can you post the code that calls Spud and the code for Spud?
> >
> > - --
> > Peter Abplanalp
> >
> > Email:   [EMAIL PROTECTED]
> > PGP: pgp.mit.edu
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.0.7 (GNU/Linux)
> >
> > iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> > 2n4EbkNtX6LmI6HtMKFy5Ws=
> > =eWDw
> > -END PGP SIGNATURE-
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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




RE: Where to locate class files

2002-08-21 Thread Andrew Conrad

Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -Original Message-
> From: Barry Martin [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
> 
> 
> Sure Peter,
> 
> Here you go. Here is the html,jsp and java code.
> 
> Thanks, Barry
> 
> -Original Message-
> From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
> 
> welcome.
> 
> > The WEB-INF directory is in uppercase. I have tried 
> restarting tomcat.
> This
> > is in a testing environment with tomcat running standalone 
> on a win2k 
> > box. The version of tomcat is 4.0.1. For the class file in 
> question I 
> > simply typed the java code in notepad and saved the .java 
> to \classes 
> > and then compiled from the command prompt which saved the 
> .class file 
> > in the same directory. It compiled fine.
> 
> well, it seems you've done everything according to the law.  
> forgive me for asking but you did name the class Spud and put 
> it in Spud.java, right?  can you post the code that calls 
> Spud and the code for Spud?
> 
> - --
> Peter Abplanalp
> 
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -END PGP SIGNATURE-
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Realm Security Implementation Question [OT]

2002-08-21 Thread Andrew Conrad

Your users and roles are in a DB?  It's almost JDBCRealm, except you
have a table of roles for each application.  

Take a look at the JDBCRealm and I bet you could make your own Realm
based loosely on that.

- Andrew

> -Original Message-
> From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 21, 2002 4:20 PM
> To: [EMAIL PROTECTED]
> Subject: Realm Security Implementation Question [OT]
> 
> 
> We are trying to figure out a way to handle realm-based 
> security in a multi-application environement where users and 
> their roles are specified in a DB.  Users are stored in one 
> table with password and there is a table for each application 
> definining permissions for the user.
>  
> I have been looking at the new JAASRealm the Craig put 
> together, but I'm not sure if it's exactly what we need or if 
> it's going overboard.  Otherwise we have to represent roles 
> in this manner: [applicationName]:[applicationId]:[role] and 
> have a specialized realm do string parsing to validate roles 
> within an application.  Our applications are deployed under a 
> single war to take advantage of a pseudo single sign-on.
>  
> Any suggestions would be apprechiated,
>  
> Jacob
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat and connection pooling

2002-08-21 Thread Andrew Conrad

You can use JNDI to allow for sharing of connections across servlets
using either the built in pool (dbcp) or your own pool.


For Tomcat 4.0.x, you can look here (about half way down)

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.htm
l


- Andrew

> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 21, 2002 5:22 PM
> To: Tomcat Users List
> Subject: Tomcat and connection pooling
> 
> 
> Hi,
> I am using tomcat 4.0.4 and developing a web
> application for as400 database, now IBM has provided
> with a set of libraries to connect with AS400
> database, there is a class called
> AS400JDBCConnectionPool which creates a connection
> pool, there are methods to get the connection and
> return the connection back to pool
> So the question is, if i create say 30 connections and
> keep them in the pool in a servlet which is called
> when i start the application, 
> how can i get access to this pool (handle of the
> object created in the first servlet) in other servlets
> running in the application..
> I dont want to keep it in session, or should i keep
> the scope of the object at application level??
> is there any connection pooling example available
> Ashish
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Servlet jsp is currently unavailable

2002-08-20 Thread Andrew Conrad

It seems that you are erroring on your webdav directory included with
Tomcat.  Try removing that directory and see if your program loads a
little further.


- Andrew

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 20, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: Servlet jsp is currently unavailable
> 
> 
> Hello,
> I am having some difficulty in debugging this problem.  I am 
> using the Forte for Java 4 (Community Edition) IDE, and I 
> have finally begun figuring out that the error that I have 
> been receiving appears to be a configuration problem and not 
> necessarily a coding problem.
> 
> When I access my JSP I am receiving the following error in 
> the browser:
> 
> 
> 
> type Status report
> 
> 
> message Servlet jsp is currently unavailable
> 
> 
> description The requested service (Servlet jsp is currently 
> unavailable) is not currently available.
> 
> 
> 
> 
> 
> Using some of the debugging tools within Forte I have now 
> discovered that Tomcat is throwing an error on startup.  The 
> following  (sorry about the
> length) is what I clipped out of the localhost_log file:
> 
> 
> 
> 2002-08-20 10:58:56 StandardHost[localhost]: Installing web 
> application at context path /webdav from URL file:C:\Program 
> Files\Apache Tomcat 4.0\webapps\webdav 2002-08-20 10:58:56 
> WebappLoader[/webdav]: Deploying class repositories to work 
> directory C:\Program Files\Apache Tomcat 
> 4.0\work\Standalone\localhost\webdav
> 2002-08-20 10:58:56 StandardManager[/webdav]: Seeding random 
> number generator class java.security.SecureRandom 2002-08-20 
> 10:58:56 StandardManager[/webdav]: Seeding of random number 
> generator has been completed 2002-08-20 10:58:56 
> ContextConfig[/webdav]: Added certificates -> request 
> attribute Valve 2002-08-20 10:58:56 
> StandardWrapper[/webdav:default]: Loading container servlet 
> default 2002-08-20 10:58:56 default: init 2002-08-20 10:58:56 
> StandardWrapper[/webdav:invoker]: Loading container servlet 
> invoker 2002-08-20 10:58:56 invoker: init 2002-08-20 10:58:56 
> StandardWrapper[/webdav:jsp]: Marking servlet jsp as 
> unavailable 2002-08-20 10:58:56 StandardContext[/webdav]: 
> Servlet /webdav threw load() exception
> javax.servlet.ServletException: Error instantiating servlet 
> class org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:895)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:810)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.java:3279)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3421)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:785)
>  at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
>  at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
>  at 
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
>  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:232)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:155)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
>  at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>  at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:388)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>  at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>  at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
>  at java.lang.Class.getDeclaredConstructors0(Native Method)
>  at 
> java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
>  at java.lang.Class.getConstructor0(Class.java:1748)
>  at java.lang.Class.newInstance0(Class.java:266)
>  at java.lang.Class.newInstance(Class.java:249)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:886)
>  at
> org.

RE: authentication

2002-08-19 Thread Andrew Conrad

A JAASRealm allows you to take advantage of JAAS.  I'm not sure if
anyone has it working with NT yet.

-  Andrew

> -Original Message-
> From: Herbert Chau [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 19, 2002 11:10 PM
> To: Tomcat Users List
> Subject: authentication
> 
> 
> Dear all, 
>  
> Is that away in tomcat that I can authenticate people against 
> the NT domain without using Apache?
>  
> Best regards,
> Herbert Chau
> Analyst
> SAS Institute Ltd 
> [EMAIL PROTECTED]
> TEL:  852-2105-3512
> FAX:  852-2568-7218
> www.sas.com/hongkong
> SAS... The Power to Know
> The information contained in this e-mail is for the intended 
> recipient only. If you have received this e-mail in error, 
> please contact the sender immediately.  All material is to be 
> treated as strictly confidential. The contents of this e-mail 
> may not represent the views of SAS Hong Kong.
>  
>  
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Craig, PoolMan, latest version WAS the problem.

2002-08-19 Thread Andrew Conrad

Instead of using poolman, you could use dbcp.  It's the default
connection pool for TC 4.1.x

http://jakarta.apache.org/commons/dbcp.html

- Andrew

> -Original Message-
> From: Luminous Heart [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 19, 2002 12:54 PM
> To: Tomcat Users List
> Subject: Craig, PoolMan, latest version WAS the problem.
> 
> 
> Ok. I reverted to an older version of PoolMan, where
> we use pool.prop instead of pool.xml. That version
> works fine. I have not hit the exception although I
> tested it for sometime. 
> 
> Does that mean am stuck to the older poolman? Is there
> a better solution to handle database pooling?
> 
> Thank you.
> 
> --- Luminous Heart <[EMAIL PROTECTED]> wrote:
> > I am sorry, but I did not get what you mean with
> > connection limit to be a hard limit, which one is
> > that?
> > 
> > I am including a copy of my pool.xml if you care do
> > point out what should be changed.
> > 
> > Thank you in advance.
> > 
> >  Pool.xml =
> > 
> > 
> > 
> > 
> >   local
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > webdev
> > webdev
> > org.postgresql.Driver
> >
> > jdbc:postgresql://localhost:6093/webdev
> > 
> > JustAUserName
> > JustAUserNamePassword
> > 
> > 
> > true
> > 
> > 1
> > 10
> > 600
> > 12
> > 10
> > 
> >
> >
> /usr/local/tomcat/logs/poolman.log
> > false
> > 
> > 
> > 
> > false
> > 20
> > 120
> > 
> >   
> > 
> > 
> > 
> >  End Pool.xml =
> > --- Mike Jackson <[EMAIL PROTECTED]> wrote:
> > > Actually now that I think about it more that might
> > > be the cause of the null
> > > pointer (but
> > > probably not).  In your poolman.xml file have you
> > > set the connection limit
> > > to be a hard
> > > limit?  If you timeout on connections (user
> > timeout)
> > > is fairly high you
> > > could run out of
> > > connections, and it might return a "null" instead
> > of
> > > a connection.
> > > 
> > > But that's just a guess.  Also, you might was to
> > > also turn on logging (debug
> > > level) in
> > > poolman as well so that you can watch the
> > > connections getting checked out
> > > and in.
> > > 
> > > --mikej
> > > -=-
> > > mike jackson
> > > [EMAIL PROTECTED]
> > > 
> > > > -Original Message-
> > > > From: Luminous Heart
> > > [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, August 19, 2002 8:36 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: It would be great IF somebody
> > > answered me, ONCE, for change
> > > > :(
> > > >
> > > >
> > > > Hi Graig,
> > > > Here is my jsp file. I am not sure what might be
> > > > wrong. Although the same error happens in a
> > bigger
> > > > application in a tc cluster of 3 tomcats. Two of
> > > these
> > > > tcs fail while one does not get any forwards
> > after
> > > > that.
> > > >
> > > > Please take a look at my code, if you do not
> > mind.
> > > >
> > > > Best regards.
> > > >
> > > > = JSP =
> > > > <%@ page import="java.io.*" %>
> > > > <%@ page import="java.util.*" %>
> > > > <%@ page import="java.text.*" %>
> > > >
> > > > <%@ page import="java.util.Properties" %>
> > > > <%@ page import="java.util.Date" %>
> > > >
> > > > <%@ page contentType="text/html"%>
> > > >
> > > > <%@ page import="com.codestudio.util.*"%>
> > > > <%@ page import="java.sql.*"%>
> > > >
> > > > 
> > > >
> > > > 
> > > >   
> > > >   
> > > >   
> > >  > > > size=5>User Access
> > > >
> > > >  
> > > >  
> > > >  
> > > >   
> > > >   
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>User Access by userid
> > > > 
> > > >User Name
> > > >  > > name="byusername"
> > > > size=25 value=""  maxlength=25>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>User Access by Date > > size=1>
> > > > 
> > > > 
> > > >Date
> > > >  > > > value="" size=25  maxlength=125>
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >> > border=0>
> > > > 
> >  > > > size=5>USER Access by IP Address
> > > > 
> > > > 
> > > >IP
> > > Address
> > > >  > > name="byipaddress"
> > > > value="" size=25  maxlength=125>
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > >   
> > > >   
> > > >  
> > > > 
> > > >> > > name="submit">
> > > > 
> > 
> === message truncated ===
> 
> 
> __
> Do You Yahoo!?
> HotJobs - Search Thousands of New

RE: Tomcat - IP binding for multiple web apps

2002-08-18 Thread Andrew Conrad

I can't tell you exactly, because I didn't write it, but here is what I
have conferred from watching this list.

A connector binds directly to your TCP/IP stack, and allows access via
those addresses and ports.  Tomcat then reads the Request information
and determines the host and context.  http://www.server1.com/myApp


If you want a compare it to IIS, think this

Engine is IIS
Host is WebSite
Context is VirtualDirectory.

The reason why you would want more than one context is because you may
want more than one webapp per host

If you have two webapps called DestroyWorld and SaveWorld, you could put
those webapps anywhere on the machine and not necessarily together.  Say
c:\goodprograms\SaveWorld and c:\badprograms\DestroyWorld.  Using
contexts, you could define access to both of those webapps.

So you could type  http://www.site.com/DestroyWorld and
http://www.site.com/SaveWorld


As far as the documentation goes, It's not perfect, but it's not too bad
once you start reading it.  Just jump in, and hopefully you will be
swimming soon.


- Andrew

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, August 18, 2002 5:24 PM
> To: Tomcat Users List
> Subject: RE: Tomcat - IP binding for multiple web apps
> 
> 
> Thanks.
> 
> You point out two things: (1) how to specify which IPs to 
> listen on, and (2) how to associate a context with a host, 
> where the host name is the URI pointing to the webapp.
> 
> In Microsoft IIS, you bind an IP to each virtual host, and 
> its the DNS servers job to point you to the right IP, based 
> upon the URL lookup.  In your suggestion with Tomcat I see 
> how you are suggesting to bind IPs to Tomcat, but how does 
> Tomcat then make the leap to binding those Ips to the correct 
> virtual Host?
> 
> Also, I read in the provided link (thanks for that, btw) that 
> you can assign multiple contexts to each host, and multiple 
> hosts to an enginer.  I presume Tomcat is the engine, and 
> that a host is essentially a Virtual Host, correct?  How/why 
> would one then have multiple contexts per a single host?
> 
> Is it just me or is the Tomcat documentation a little lacking 
> in this area?
> 
> Thanks for your help!  :)
> 
> Neal
> 
> 
> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 18, 2002 12:43 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat - IP binding for multiple web apps
> 
> 
> Modify your Http/1.1 Connector and add an address attribute 
> to specify which IP address to listen on.  By default, the 
> Connector listens on ALL IP addresses.
> 
> 
>  address="127.0.0.1" />
> 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html
> 
> From what I can tell, you can't define a webapp (defined as a 
> Context in the server.xml) as running on a specific address.  
> What you can do is use multiple Host entries to define Hosts 
> that pick up different DNS Names.
> 
> 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
> 
> - Andrew
> 
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, August 18, 2002 3:19 PM
> > To: Tomcat Users List
> > Subject: Tomcat - IP binding for multiple web apps
> >
> >
> > I would like to run multiple web applications from the same 
> instance 
> > of tomcat.  I have set this up in my dev environment, no problem.
> >
> > The problem is this:
> >
> > I can not figure out how to bind an IP address (one seperate IP per 
> > web app) to each of these web apps.  Actually, I haven't 
> even seen in 
> > the docs how to bing a single IP to Tomcat either  DO I need to 
> > usa Appche (via Warp) to do this or something?
> >
> > Note:
> >
> > I am currently running standalone Tomcat 4.0.3, on Win2k, 
> > profesisonal.
> >
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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




RE: Tomcat - IP binding for multiple web apps

2002-08-18 Thread Andrew Conrad

Modify your Http/1.1 Connector and add an address attribute to specify
which IP address to listen on.  By default, the Connector listens on ALL
IP addresses.




http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

>From what I can tell, you can't define a webapp (defined as a Context in
the server.xml) as running on a specific address.  What you can do is
use multiple Host entries to define Hosts that pick up different DNS
Names.


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html












- Andrew

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, August 18, 2002 3:19 PM
> To: Tomcat Users List
> Subject: Tomcat - IP binding for multiple web apps
> 
> 
> I would like to run multiple web applications from the same 
> instance of tomcat.  I have set this up in my dev 
> environment, no problem.
> 
> The problem is this:
> 
> I can not figure out how to bind an IP address (one seperate 
> IP per web app) to each of these web apps.  Actually, I 
> haven't even seen in the docs how to bing a single IP to 
> Tomcat either  DO I need to usa Appche (via Warp) to do 
> this or something?
> 
> Note:
> 
> I am currently running standalone Tomcat 4.0.3, on Win2k, 
> profesisonal.
> 
> 
> Thanks.
> Neal
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: anyone recieve this email?

2002-08-18 Thread Andrew Conrad

recieved

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, August 18, 2002 3:09 PM
> To: Tomcat Users List
> Subject: anyone recieve this email?
> 
> 
> Can anyone hear me?  Is anyone recieving this email?  Please respond.
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: buffer error with tomcat 4.1.9-LE

2002-08-18 Thread Andrew Conrad

I was under the impression the buffer should be in 'kb'

ie
<%@ page buffer="50kb" %>

- Andrew

> -Original Message-
> From: capr1ce [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, January 13, 2002 7:24 AM
> To: [EMAIL PROTECTED]
> Subject: buffer error with tomcat 4.1.9-LE
> 
> 
> Hi all.
> 
> I've just upgraded to Tomcat 4.1.9-LE.
> 
> I have a buffer page directive at the top of each of my JSP 
> pages: <%@ page buffer="50k" %>
> 
> With the new version on tomcat, i'm getting this error:
> org.apache.jasper.JasperException: /jsp/logon.jsp(2,0) 
> jsp.error.buffer.invalid
> 
> It works fine if I take the buffer page directive out.
>  From the error message, I assume that the syntax has 
> changed, but I cant 
> seem to find out how.
> Any ideas?
> 
> Cheers,
> Mel.
> 
> PS. I need the directive, other wise I have problems with the 
> error page 
> due to the fact that I have  statements in my code.
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk2.so needed

2002-08-17 Thread Andrew Conrad

The mod_jk2.dll file can be found here

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/w
in32/


- Andrew



> -Original Message-
> From: Niket Anand [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, August 17, 2002 3:30 AM
> To: [EMAIL PROTECTED]
> Subject: mod_jk2.so needed
> 
> 
> Hi all,
> Can anybody send me a link from where I can download 
> mod_jk2.so? I am unable to build this file. I am using 
> Apache2.0.4, Tomcat4.0.3 in windows2000 Or please send it 
> with attachment.
> 
> I am following the instructions given in this link to run 
> apache with Tomcat http://www.pubbitch.org/jboss/mod_jk2.html
> but unable to build .so file
> 
> Thanks in advance
> Niket
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Persistent Connection

2002-08-17 Thread Andrew Conrad

It's a operating system issue. 


NOTE: It is normal to have a socket in the TIME_WAIT state for a long
period of time. The time is specified in RFC793 as twice the Maximum
Segment Lifetime (MSL). MSL is specified to be 2 minutes. So, a socket
could be in a TIME_WAIT state for as long as 4 minutes. Some systems
implement different values (less than 2 minutes) for the MSL.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q137984


But if you really want to change the TIME_WAIT, look here
http://support.microsoft.com/default.aspx?scid=kb;en-us;q314053


To test your MSL (maximum segment lifetime), you can use this tool
http://polygraph.ircache.net/doc/msl_test.html

- Andrew

> -Original Message-
> From: Taral Shah [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, August 17, 2002 2:16 AM
> To: Tomcat Users List
> Subject: Re: Persistent Connection
> 
> 
> Hi,
> Thanks for reply,
> 
> But I am only using tomcat. I dont want to use apache just 
> for this reason.Can any one guide me what should i do to 
> close this connection in tomcat or to ask tcp/ip stack to 
> close connection. Its not at all affecting the performance of 
> application but when i see at netstat statstics it sometimes 
> shows me thousands of connections open.
> 
> Any idea?
> Thanks
> Taral Shah
> 
> Experience is what you get when you were expecting something else.
> 
> - Original Message -
> From: "Mike Jackson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; 
> "Taral Shah" <[EMAIL PROTECTED]>
> Sent: Friday, August 16, 2002 10:53 PM
> Subject: RE: Persistent Connection
> 
> 
> "TIME_WAIT" is something the tcp/ip stack does; it doesn't 
> have anything to do with Tomcat per say.  What happens (as I 
> understand it) is that once your app has closed the 
> connection (page is done or whatever), the stack will hold 
> the connection in a "TIME_WAIT" state to prevent the other 
> end, the client, from reconnecting to the same port.
> 
> So the problem isn't really tomcat, its the TCP/IP stack.  
> However I've also found that under unix if you're using 
> apache+tomcat you don't have a ton of TIME_WAIT sockets on 
> the webserver.  Apache apparently sets a parameter to 
> eliminate the TIME_WAIT sockets, either on close or on open 
> of the socket (I don't know which).  So what you might want 
> to do is run IIS or Apache in front of tomcat.  I don't know 
> that IIS does the same thing as Apache in regards to the 
> sockets, but if it does then it'll work nearly as well in 
> front of tomcat.  But there is a slight problem here as well, 
> you need to be sure that you're using APJ13 not APJ12 as 
> APJ12 will open a new connection for each web access that 
> tomcat handles.  And in that casey you'd get more TIME_WAIT 
> sockets.  APJ13 multiplexes the requests over one persistent 
> socket, so you don't have the extra overhead of opening the 
> socket on each request, or the TIME_WAIT socket lingering 
> there for some time period.
> 
> Also, just as a FYI, under unix you can change the TIME_WAIT 
> time period but it's not recommended that you do so.  The 
> default time period is about 4 minutes as I recall.  You can 
> probably also change it under windows, but I wouldn't have a 
> clue how to do that.
> 
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Taral Shah [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 16, 2002 2:40 AM
> > To: Tomcat Users List
> > Subject: Persistent Connection
> >
> >
> > I am using tomcat 3.3
> >
> > Now I am calling one jsp which loads an applet, internally 
> that applet 
> > uses url connection to fetch data.
> > Now problem is that when i check with netstat application(its
> > inbuilt in win
> > nt, run through netstat -n)
> > I came to know tomcat opens no of connections and keep them 
> in TIME_WAIT
> > mode.
> >
> > This is happening with simple jsps as well as with servlet. 
> For each 
> > request it opens around 2/3(depending on the no of jsps included) 
> > connection with :8080 port. These all are of tcp type 
> > connections. I read in some of materials that in Http 1.1, as 
> > persistent connection is used so it keeps the connection 
> open unless I 
> > specify them to close.
> >
> > I wrote in my code as response.setHeader("Connection", 
> "close"); but 
> > still the no of open connection increases. In my 
> application if hits 
> > are many then it reaches to thousands.
> >
> > Has any one seen this before(I think this is for all tomcat-You can 
> > check with netstat). Has any one explicitly closed the connection 
> > through header or is there any
> > way to specify in tocat configuration so it does not keep 
> the connection
> > open.
> >
> > Thanks
> >
> > Taral Shah
> > Experience is what you get when you were expecting something else.
> >
> >
> > --
> > To unsubscribe, e-mail: 
> > 
> > For additional commands, e-mail: 
> > 
> >
> >
> 
> 

RE: Apache 2.0.40

2002-08-16 Thread Andrew Conrad

I believe there is a 'magic number' issue with mod_jk and mod_jk2
modules.  Meaning you need to compile a new mod_jk2 for use with 2.0.40


- Andrew

> -Original Message-
> From: Short, Dave [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 16, 2002 3:09 PM
> To: 'Tomcat Users List'
> Subject: Apache 2.0.40
> 
> 
> Apache 2.0.40 solves the problem of HTML documents getting 
> truncated at 8192 bytes.  However, when using with mod_jk2, 
> which worked with Apache 2.0.39, the following message is 
> issues to the W2K Event Viewer and Apache fails to
> start:
> 
> 
> The Apache service named  reported the following error:
> >>> Apache.exe: module
> "E:\tomcat\jakarta-tomcat-connectors\jk\native2\server\apache2
> \mod_jk2.c" is
> not compatible with this version of Apache. . 
> 
> 
> Any help would be appreciated.
> 
> Dave
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Add arbitrary path to classpath?

2002-07-31 Thread Andrew Conrad

Paul,

All the class loading information you want can be found here

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

Basically, inside your WEB-INF folders you have a classes and lib folder
to place classes and libraries (jar's).

- Andrew Conrad

> -Original Message-
> From: Paul Brinkley [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 30, 2002 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: Add arbitrary path to classpath?
> 
> 
> 
> (Newbie alert: I've been playing with Tomcat for a couple 
> weeks, and once made a servlet or two a couple of years ago.  
> Please be gentle.)
> 
> Is it possible to give a servlet access to custom class 
> files, if those custom classes don't want to live under 
> WEB-INF, CATALINA_HOME, etc.?
> 
> So far as I can tell after reading
> 
>tomcat-docs/class-loader-howto.html
> 
> four times, as well as rampant websearching, there's no way 
> to do this in a reasonably portable way.
> 
> According to
> 
   http://www.jguru.com/faq/view.jsp?EID=141

for Tomcat, I have to set it "in a config file".  Which config file, and
how??  I saw nothing helpful in conf/server.xml or the web.xml template.

I would also prefer not to have to change the Tomcat startup scripts.
This wouldn't be portable to another web server, and it would also add
complexity to the installation instructions that I'd rather avoid.
Plus, it would expose our code to other servlets.  If I can control
visibility of this custom code to other servlets possibly running on a
given engine, great.

I'm probably looking for a solution along the lines of "add
such-and-such line to your servlet's web.xml file".

Sundry details:

Tomcat 4.0.4 (but I'd prefer a solution that's portable to other engines
if
   possible)
OS: Win2000, but again, the more portable, the better
Servlet is unpacked (not in a war file)


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

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




RE: tomcat 4.0.4 and j2sdk1.4.0_01 ?

2002-07-31 Thread Andrew Conrad

4.0.4 is the most current production build.  I wouldn't use the LE
version because it doesn't come with everything, specifically the
commons-DBCP package (I _think_ it's missing) which should come in handy
if you would like to pool your SQL Server connections.


I have not run into any _bugs_ as Jacob has mentioned, but I did get
tripped up by a few _features_.  Make sure you add a
"SelectMethod=cursor" to your connection string, and read the SQL Server
JDBC docs on SelectMethod and autocommit.

- Andrew Conrad


> -Original Message-
> From: Matt Brennan [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 30, 2002 11:02 PM
> To: Tomcat Users List
> Subject: tomcat 4.0.4 and j2sdk1.4.0_01 ?
> 
> 
> looking through the list archives, there seem to be a number 
> of questions and concerns about deploying tomcat with java 
> 1.4 (mostly compilation issues it seems). could someone 
> please provide a quick one line insight:
> 
> is tomcat 4.0.3, the 1.4.0_01 sdk, IIS and JDBC access to SQL 
> server on windows 2000 a known and good mix? would a more 
> conservative SDK choice be better?
> 
> another newbie qn: the list archives on
> 
   http://mikal.org/interests/java/tomcat/

run only to march this year. i have crawled around trying to find
another easiy usable archive - is there a more current one?

thanks and regards,

   matt


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


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




RE: Suppression of directory listing in Tomcat

2002-07-31 Thread Andrew Conrad

%CATALINA%\conf\web.xml



listings
false



- Andrew Conrad

> -Original Message-
> From: Nikolas A. Rathert [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, July 31, 2002 6:25 AM
> To: [EMAIL PROTECTED]
> Subject: Suppression of directory listing in Tomcat
> 
> 
> Hi - I just posted some hours ago.
> Could anybody give me a hint for my problem please: how do I 
> have to configure server.xml or whatever to tell Tomcat that 
> it should not show the complete directory to the user in case 
> there is no index.html or something like that in the 
> directory? I know how to handle that with Apache but the 
> htdocs directory has nothing to do with Tomcats webapps. 
> Therefore, there has to be another solution.
> 
> Cheers,
> 
> Nick
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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




RE: How to enable Tomcat's Apache Auto-config

2002-07-30 Thread Andrew Conrad

I'm not sure exactly what you mean by 

If you want to generate a config file automatically, you will need to
add this into your server.xml file nested within either your Engine or
Host attribute (different level of detail depending on where you nest
it).




The info came from the manual:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

- Andrew

> -Original Message-
> From: JY - June Young [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 30, 2002 11:49 AM
> To: [EMAIL PROTECTED]
> Subject: How to enable Tomcat's Apache Auto-config
> 
> 
> I am using Apache 1.3 and Apache Tomcat 4.0.
> 
> I downloaded the binary mod_jk.dll from 
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/b
> in/win32/i
> 386/.
> 
> The doc says to configure Tomcat to generate the Apache 
> auto-configuration add the following block to your 
> TOMCAT_HOME/conf/server.xml file after   
> 
> 
> I can't find  in server.xml of my Tomcat 4.0, 
> and I am not quite clear what block to add.
> 
> Can anyone tell me how to config server.xml to generate the 
> Apache auto-configuration?
> 
> Thanks,
> 
> June Young
> 
> 
> June Young, Software Development   bus: (902)422-1973
> x144
> Dymaxion Research Ltd., 5515 Cogswell St.,  fax: (902)421-1267
> Halifax, Nova Scotia, B3J 1R2 Canada   mailto:
> [EMAIL PROTECTED]
> http://www.dymaxion.ca
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC Pool Manager

2002-07-29 Thread Andrew Conrad

Commons-DBCP

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

- Andrew

> -Original Message-
> From: Roger Maltby [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 29, 2002 11:58 AM
> To: Tomcat User (E-mail)
> Subject: JDBC Pool Manager
> 
> 
> 
> > I need to have a connection pool for my JDBC connections.  I have 
> > tried BitMechanics but it is not JDBC 2.0 compliant.  My DB vendor 
> > recommends a 2.0 compliant pool manager.  Any recommendations?
> >
> > Thanks
> >
> > Roger Maltby, Developer
> > Realm Business Solutions (Canada), Inc.
> > 302 Town Centre Boulevard, Suite 200
> > Markham, Ontario, L3R 0E8 Canada
> > Toll Free: 1 888 723-
> > Main: 905 475-2209 ext 2055
> >
> > [EMAIL PROTECTED]
> >
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat virtualhost 404 error

2002-07-29 Thread Andrew Conrad

Are you closing your  tage
""

Also, can you get to the page from a remote machine at
http://www.vhost.xx:8080/ ???  If that works, then you should know it's
a Apache mod_jk issue.

- Andrew

> -Original Message-
> From: Albert Csaba [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 29, 2002 7:24 AM
> To: Tomcat Users List
> Subject: tomcat virtualhost 404 error
> 
> 
> I have Tomcat4.0.4 with mod_jk running. I'm not sure if it's 
> setup correctly. I'm trying to test it with an example found 
> on the net, 
> uploaded to a virtualhost, but I'm getting a Apache Tomcat 404 error.
> 
> What else do I have to set for the test.jsp to be found there?
> 
> Thank you,
> Csaba
> 
> 
> 
> 
> This is in my server.xml file for that virtualhost:
> 
> 
>debug="0"/>
>   docBase="/home/sites/www.vhost.xx/web/examples" 
>debug="0" 
>  reloadable="true" />
>docBase="/home/sites/www.vhost.xx/web/test" debug="0"
>reloadable="true" />
> 
>   
>className="org.apache.catalina.logger.FileLogger"
>prefix="jsoft_examples_log." suffix=".txt"
>  timestamp="true"/>
> home="com.wombat.empl.EmployeeRecordHome"
>  remote="com.wombat.empl.EmployeeRecord"/> 
>  type="java.lang.Integer"
> value="15"/>
>  value="context.param.value"
>override="false"/>
>   
>type="javax.sql.DataSource"/>
>   
>  
>   useruser
>  
>   passwordpw
>   
> driverClassNameorg.gjt.mm.mysql
> .Driver
>   
> driverNamejdbc:mysql://localhos
> t/
>   
>   
>  type="javax.mail.Session"/>
> 
>   
> mail.smtp.host
> localhost
>   
> 
>   
>   className="org.apache.catalina.logger.FileLogger"
>prefix="jsoft_examples_log." suffix=".txt"
>  timestamp="true"/>
> home="com.wombat.empl.EmployeeRecordHome"
>  remote="com.wombat.empl.EmployeeRecord"/> 
>  type="java.lang.Integer"
> value="15"/>
>  value="context.param.value"
>override="false"/> 
>   type="javax.sql.DataSource"/>
>   
>   
>  
>   useruser
>  
>   passwordpw
> 
>   
> driverClassNameorg.gjt.mm.mysql
> .Driver
> 
>   
> driverNamejdbc:mysql://localhos
> t/
>
>   
>   
>type="javax.mail.Session"/>
> 
>   
> mail.smtp.host
> localhost
>   
> 
>   
> 
>   
> 
> 
> And that's in my httpd.conf:
> 
> LoadModule jk_module  /usr/lib/apache/mod_jk.so
> 
> AddModule mod_jk.c
> 
> # Configure mod_jk
> #
> JkWorkersFile "/home/jakarta-tomcat-4.0.4/conf/jk/workers.properties"
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLeveldebug
> 
> 
> JkMount /examples ajp13
> JkMount /examples/* ajp13
> 
> JkMount /jk ajp13
> JkMount /jk/* ajp13
> 
> JkMount /cocoon ajp13
> JkMount /cocoon/* ajp13
> 
> 
> 
> 
> ServerName www.vhost.xx
> ServerAdmin admin
> DocumentRoot /home/sites/site4/web
> ServerAlias vhost.xx
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> 
> JkMount /examples ajp13
> JkMount /examples/* ajp13
> 
> JkMount /jk ajp13
> JkMount /jk/* ajp13
> 
> JkMount /cocoon ajp13
> JkMount /cocoon/* ajp13
> 
> 
> RewriteEngine on
> RewriteCond %{HTTP_HOST}!^212.67.192.29(:80)?$
> RewriteCond %{HTTP_HOST}!^www.vhost.xx(:80)?$
> RewriteOptions inherit
> AliasMatch ^/~([^/]+)(/(.*))? 
> /home/sites/site4/users/$1/web/$3 AliasMatch 
> ^/users/([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3 
> AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to migrate for Tomcat 3.3.1 to Tomcat 4.x?

2002-07-29 Thread Andrew Conrad

Nathan,

The 4.x spec says it will support Servlet 2.2, JSP 1.1 w/o modification.
Work with a Tomcat 4.x test page to make sure everything works before
trying to debug your app.  Also, can you turn off HTML in your emails. 

Thx,

Andrew




-Original Message-
From: Nathan Smith [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 28, 2002 11:47 PM
To: Tomcat Users List
Subject: How to migrate for Tomcat 3.3.1 to Tomcat 4.x?


Have I been living under a rock or something? 

Does anybody know of information for migrating a Tomcat 3.3.1 web
application to Tomcat 4.x and up. I have had Tomcat 4.0 able to start in
the past and had the logon screen loaded but after logging in an
exception is thrown for the next page. Both pages are jsp's. 

What is needed to have the web application working under Tomcat 4.x and
if anything what needs to be changed. I know that the Servlet and JSP
specifications have changed regarding the web.xml, which has to have all
elements in the correct order and the most of the elements for taglib
tld files now have '-' in them.

Is their something quite important I have missed or forgotten about,
it's sure not a simple task of copying the web application from one
tomcat to another.

Nathan.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Little trouble with IIS 5 and Tomacat 4.0.4

2002-07-27 Thread Andrew Conrad

Can't help you with an application mapping (TC 4.x does not have an
in-process server at this time), but you can configure Tomcat to only
handle *.jsp files, and use the same directory.  I have it working
myself.  Very simply, configure uwm.p file as Ignacio suggested, point
your Host appBase attribute to c:\Inetpub\www and add a  to your Host element.


Hey, if you find a _good_ in-process JSP/Servlet app for IIS, let me/us
know.

- Andrew

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED]] On Behalf Of George Hester
> Sent: Saturday, July 27, 2002 8:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Little trouble with IIS 5 and Tomacat 4.0.4
> 
> 
> I did that Ignacio.  Yes I did do that.  Tomcat whined and 
> was boken for 12 hours.  Not a pretty picture.  Of course I 
> am sure I exacerbated the problem but in any case it didn't 
> work for http://localhost/mypage.jsp and still broke my IIS 
> Server's capabilities of serving ASP.
> 
> You know what I need?  Other then a kick in the butt?
> 
> I need a well behaved Application Mapping for Tomcat on a par 
> with the Application Mappings provided in Perl, PHP, and Python.
> 
> That's what I need.
> 
> --
> George Hester
> _
> "Ignacio J. Ortega" <[EMAIL PROTECTED]> wrote in message 
> 80F5674514B4D311BAFC0040F6A45EEE2EB828@ntserver">news:80F5674514B4D311BAFC0040F6A45EEE2EB828@ntserver...
> > sop you  only needs to map jsp files? all other content 
> goes to iis ?
> >
> > try
> >
> > /*.jsp=$(default.worker)
> >
> > Saludos ,
> > Ignacio J. Ortega
> >

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Mod_jk2 and j_security_check

2002-07-27 Thread Andrew Conrad

Eddie, how are redirecting your requests from Apache to Tomcat?

Are you using directory redirects or extension redirects?

Do you mind posting your workers2.properties file so I can look at it?

- Andrew

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, July 28, 2002 1:10 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk2 and j_security_check
> 
> 
> I haven't tried j_security_check outside the root context 
> (ie. I've not 
> run an app in a context /context/ but /), but I've never had 
> to specify 
> anything in my forms other than action="j_security_check" - and it 
> always hits it.  I ... don't think you need to map it.  I could, of 
> course, be totally wrong :-)
> 
> Andrew Conrad wrote:
> 
> >When configuring TC 4.1.8 to work with mod_jk2.dll (jul-19 
> nightly), I 
> >ran into an odd configuration issue with j_security_check.
> >
> >When using extension mapping, the only way to get 
> j_security_check to 
> >be sent to Tomcat was to make a directory redirect for it.
> >
> >
> >
> >[uri:/TimeOff/*.jsp]
> >alias=localhost
> >info=default context
> >context=/TimeOff/*.jsp
> >debug=10
> >
> >[uri:/TimeOff/j_security_check/*]
> >alias=localhost
> >info=default context
> >context=/TimeOff/j_security_check
> >debug=10
> >
> >
> >
> >Does anyone know if this is how it's supposed to work?  I tried a 
> >couple different scenario's that didn't work.
> >
> >[uri:/TimeOff/j_security_check]  // This did nothing whatsoever from 
> >what I can tell
> >
> >[uri:/TimeOff/j_security_check.do] //with a servlet-mapping in my 
> >web-app, but that didn't work because j_security_check isn't 
> a servlet 
> >in my web-app.  It must get peeled off before the request 
> makes it into 
> >the servlet container.
> >
> >
> >If anyone know's a better way of handling this, please let me know. 
> >This redirect actually works for servlets too, if you wanted 
> to specify 
> >each servlet individually.
> >
> >
> >
> >- Andrew
> >
> >--
> >To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> >For 
> additional commands, 
> e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 

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




Mod_jk2 and j_security_check

2002-07-26 Thread Andrew Conrad

When configuring TC 4.1.8 to work with mod_jk2.dll (jul-19 nightly), I
ran into an odd configuration issue with j_security_check.

When using extension mapping, the only way to get j_security_check to be
sent to Tomcat was to make a directory redirect for it.



[uri:/TimeOff/*.jsp]
alias=localhost
info=default context
context=/TimeOff/*.jsp
debug=10

[uri:/TimeOff/j_security_check/*]
alias=localhost
info=default context
context=/TimeOff/j_security_check
debug=10



Does anyone know if this is how it's supposed to work?  I tried a couple
different scenario's that didn't work. 

[uri:/TimeOff/j_security_check]  // This did nothing whatsoever from
what I can tell

[uri:/TimeOff/j_security_check.do] //with a servlet-mapping in my
web-app, but that didn't work because j_security_check isn't a servlet
in my web-app.  It must get peeled off before the request makes it into
the servlet container.  


If anyone know's a better way of handling this, please let me know.
This redirect actually works for servlets too, if you wanted to specify
each servlet individually.



- Andrew

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Help, Can I Use JAAS in the Tomcat 3.3 /4.0 enviorment

2002-07-26 Thread Andrew Conrad

I'm not positive if you can make an NT Login, but TC 4.1.x has a
JAASRealm class which extends the Realm class.

I didn't see any docs except the source.  You probably want to get
familiar with Realms first, then tackle JAASRealm.  As a side not, if
you are using Active Directory, you could use JNDIRealm and connect to
through LDAP to AD.


If you get JAAS to work, post it so we all can learn.


- Andrew

> -Original Message-
> From: John Gentilin [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 26, 2002 5:15 PM
> To: Apache TomCat Project
> Subject: Help, Can I Use JAAS in the Tomcat 3.3 /4.0 enviorment
> 
> 
> In a Servlet design I am working on, I want to implement a 
> security policy where the Servlet mechanisms knows if the 
> user is allowed and what roles they are allowed to operate 
> in, but falls back to the native O/S to validate the users 
> password. The JAAS interface seems like the perfect mechanism 
> using the NT Login mechanism along with a Login manager that 
> I would implement.
> 
> The question I have is, can JAAS be implemented in a Servlet 
> environment. It appears that the classes need to be present 
> at JVM boot time and not in the WEB-INF/lib directory (an 
> issue with 1.3 JVM's) and an apparent platform issue with 
> providing policy files. i.e. The need to load the 
> .java2.policy from the user home directory which has little 
> context in a servlet environment. It seems like I can get it 
> to work but it would require a lot of tweaking with the 
> System JVM and Tomcat installation and not something that is 
> generically available at an ISP.
> 
> Any suggestions would be greatly appreciated.
> 
> Thanks in advance
> John G
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 4, mod_jk, Apache 1.3.20

2002-07-26 Thread Andrew Conrad

Hmm, I see a few problems below

> -Original Message-
> From: Michele Neylon -Blacknight Solutions 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 26, 2002 1:11 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4, mod_jk, Apache 1.3.20
> 
> 
> At 10.47 26/07/2002 -0400, you wrote:
> >Where are you storing your test.jsp?
> 
> It's in /home/sites/www.blacknightsolutions.com/web/test.jsp
> 
> As defined in the current configuration of my server.xml : 
> 
>
>acceptCount="10"
>  minProcessors="5"
>  maxProcessors="75"
>  port="8009"
>  className="org.apache.ajp.tomcat4.Ajp13Connector"/>
> 
Did you delete your HTTP Connector on purpose ?  You should eventually
do that, but while your setting it up, I would keep it for testing
purposes.


>name="Apache"
>  defaultHost="ns.blacknightsolutions.com"
>  debug="0"
>  appBase="webapps">

Your Engine setup looks all wrong.  You probably shouldn't specify the
className, that way it will use the default className.  The WARPEngine
(bad name in my opinion) is a connector to Apache, not an Engine class.
If you were going to specify the className  it should be
"org.apache.catalina.core.StandardEngine".  Your defaultHost MUST point
to an existing nested host element.  I don't see
ns.blacknightsolutions.com.

I got all the info here ->
http://localhost:8080/tomcat-docs/config/engine.html

When configuring Tomcat, always make sure you can access your files on
the 8080 port

> 
>
>prefix="apache-" suffix=".log"
>timestamp="true"/>
> 
>  
>
> docBase="/home/sites/www.blacknightsolutions.com/web"
>   crossContext="true"
>   debug="0"
>   reloadable="false"
>   trusted="false" >
> 
>  
>  
>
> docBase="/home/sites/www.david.blacknightsolutions.com/web"
>   crossContext="true"
>   debug="0"
>   reloadable="false"
>   trusted="false" >
> 
>  
>  
>docBase="/home/sites/www.b2btechniques.net/web"
>   crossContext="true"
>   debug="0"
>   reloadable="false"
>   trusted="false" >
> 
>  
> 
>  
>
> 
> 
> 
> 
> >Is it in your %CATALINA%/webapps/ROOT directory, or the directory 
> >defined as your default context?
> 
> This is part of my problem! It's not in the ROOT directory, 
> but in a virtual host.
> 
> 
> >Can you get to it by typing 
> >http://www.blacknightsolutions:8080/test.jsp
> >?
> 
> No. With a previous configuration I could get to the Tomcat 
> welcome page at: http://www.blacknightsolutions.com:8080
> I have since tried a different configuration, but although a 
> copy of the JSP examples (copied from the 
> Tomcat/webapps/examples directory) is accessible at: 
> http://www.blacknightsolutions.com/examples/jsp/
> nothing else involving Java is viewable and some of the 
> examples aren't working either :-(
> 
> Tomcat seems to be intercepting requests for all .jsp pages, 
> but doesn't seem to be mapping them correctly..
> 
> 
> 
> >(I couldn't get to any blacknight site)
> >
> >As to your question about a searchable archive,
> >
> >There is:
> >
> >http://www.mail-archive.com/tomcat-user@jakarta.apache.org/
> >
> >And
> >
> >http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/
> >
> >- Andrew
> 
> I'll try them - thanks!
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Setting up a servlet

2002-07-26 Thread Andrew Conrad

With 4.x you can add a  element nested
inside your Context.  The default checkInterval is 15

See docs for other Loader options.

- Andrew

> -Original Message-
> From: Diego, Emil [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, July 24, 2002 9:52 AM
> To: '[EMAIL PROTECTED]'
> Subject: Setting up a servlet
> 
> 
> I am running apache 1.23 with tomcat 3.2.3 on Redhat Linux 
> 7.2.  My problem is that I am trying to setup a server for a 
> web app i am working on.  I have reated the servelt class and 
> have it on the server, the problem is that everythime I 
> submit the form that uses the servlet i get an error telling 
> me that the URL can not be found.
> 
> I have tomcat and apache working together to serv pages.  I 
> setup a seperate context for this web application.  Here is 
> the entry from the server.xml
> file:
> 
> docBase="/var/www/html/dev_new"
>  crossContext="false"
>  debug="0"
>  reloadable="true" >
> 
> 
> 
> What do i need to do now to get the server to recognize the servlet?
> 
> 
> 
> Emil
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_webapp vs Coyote JK 2

2002-07-25 Thread Andrew Conrad

Look here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

- Andrew

> -Original Message-
> From: Jakarta Tomcat Newsgroup 
> [mailto:@[EMAIL PROTECTED]] 
> Sent: Thursday, July 25, 2002 12:25 PM
> To: [EMAIL PROTECTED]
> Subject: mod_webapp vs Coyote JK 2
> 
> 
> Subject: mod_webapp vs Coyote JK 2
> From: "Ove" <[EMAIL PROTECTED]>
>  ===
> What is recommended to use on a  Tomcat 4.x install with 
> Apache. (Solaris)
> 
> And what is the most important differences?
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Inquiry on JSP Loading

2002-07-24 Thread Andrew Conrad

I meant, look here:  

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

- Andrew

> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, July 24, 2002 7:32 PM
> To: 'Tomcat Users List'
> Subject: RE: Inquiry on JSP Loading
> 
> 
> You have multiple choices of where to put your classes so 
> that Your apps can read them.  I would put them in your 
> %CATALINA%/common/lib directory, leaving them in the jar.
> 
> Otherwise, read here for more about class loading.
> 
> http://msdn.microsoft.com/downloads/default.asp?URL=/downloads
> /sample.as
> p?url=/MSDN-FILES/027/001/779/msdncompositedoc.xml
> 
> - Andrew
> 
> 
> > -Original Message-
> > From: Daniel Beng Lee Yap [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 23, 2002 4:42 AM
> > To: [EMAIL PROTECTED]
> > Subject: Inquiry on JSP Loading
> >
> >
> > ** High Priority **
> >
> > Hi,
> >
> >   I'm from an audit department working for a local bank in 
> Singapore. 
> > I am currently researching on the benefits of using JSP for 
> developing 
> > my department website but encounters several problems.
> >
> >   I've been following very closely on every documentations 
> in regards 
> > to the setting up of Tomcat server as well as JSDK and JRE. I've 
> > managed to get the Apache Tomcat server up and running at the 
> > localhost port 8080 after modifying catalina.sh. However, 
> when I try 
> > to connect my sample JSP page to mySQL database to retrieve data, 
> > there is always a connection timeout error.
> >
> >   I thought that it might be some class loading error and I 
> downloaded 
> > mm.mysql driver and unjar it to /usr/local/jsdk1.4.4/lib 
> and declare 
> > the class path in setclasspath.sh under the Catalina home directory.
> >
> > Are you able to advise me on how to properly configure the 
> class path 
> > and advise on the timeout error ?
> >
> > Thanks a million !!
> >
> > Daniel Yap
> >
> > Regards,
> > Daniel
> >
> >
> >
> > CONFIDENTIAL NOTE: The information contained in this email 
> is intended 
> > only for the use of the individual or entity named above and may 
> > contain information that is privileged, confidential and 
> exempt from 
> > disclosure under applicable law. If the reader of this 
> message is not 
> > the intended recipient, you are hereby notified that any 
> > dissemination, distribution or copying of this communication is 
> > strictly prohibited. If you have received this message in error, 
> > please immediately notify the sender and delete the mail. Thank you.
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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




RE: Inquiry on JSP Loading

2002-07-24 Thread Andrew Conrad

You have multiple choices of where to put your classes so that Your apps
can read them.  I would put them in your %CATALINA%/common/lib
directory, leaving them in the jar.

Otherwise, read here for more about class loading.

http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.as
p?url=/MSDN-FILES/027/001/779/msdncompositedoc.xml

- Andrew


> -Original Message-
> From: Daniel Beng Lee Yap [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 23, 2002 4:42 AM
> To: [EMAIL PROTECTED]
> Subject: Inquiry on JSP Loading
> 
> 
> ** High Priority **
> 
> Hi,
> 
>   I'm from an audit department working for a local bank in 
> Singapore. I am currently researching on the benefits of 
> using JSP for developing my department website but encounters 
> several problems. 
> 
>   I've been following very closely on every documentations in 
> regards to the setting up of Tomcat server as well as JSDK 
> and JRE. I've managed to get the Apache Tomcat server up and 
> running at the localhost port 8080 after modifying 
> catalina.sh. However, when I try to connect my sample JSP 
> page to mySQL database to retrieve data, there is always a 
> connection timeout error.
> 
>   I thought that it might be some class loading error and I 
> downloaded mm.mysql driver and unjar it to 
> /usr/local/jsdk1.4.4/lib and declare the class path in 
> setclasspath.sh under the Catalina home directory. 
> 
> Are you able to advise me on how to properly configure the 
> class path and advise on the timeout error ?
> 
> Thanks a million !!
> 
> Daniel Yap
> 
> Regards,
> Daniel
> 
> 
> 
> CONFIDENTIAL NOTE: The information contained in this email is 
> intended only for the use of the individual or entity named 
> above and may contain information that is privileged, 
> confidential and exempt from disclosure under applicable law. 
> If the reader of this message is not the intended recipient, 
> you are hereby notified that any dissemination, distribution 
> or copying of this communication is strictly prohibited. If 
> you have received this message in error, please immediately 
> notify the sender and delete the mail. Thank you.
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JNDI Setup Question: Cannot create resource instance

2002-07-24 Thread Andrew Conrad

You have some spaces in your parameters that I would remove.
Specifically, your url value, username value, and password value.  

I'm not familiar with the TdsDriver, but shouldn't you be specifying the
port to connect to (port 1433 typically).


I used the Microsoft JDBC Driver, (available here:
http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.as
p?url=/MSDN-FILES/027/001/779/msdncompositedoc.xml )

 and my resource looks like this: 

(NOTE: you may need a factory parameter.  In 4.1.x, the default is the
DBCP package.  I don't know about your version)






 
  url
  jdbc:microsoft:sqlserver://localhost:1433
 
 
   validationQuery
   select * from organizations
 
 
   maxIdle
   2
 
 
   maxActive
   10
 
 
   driverClassName
   com.microsoft.jdbc.sqlserver.SQLServerDriver
 
 
   maxWait
   5000
 
 
   username
   xxx
 
 
   password
   xxx
 




> -Original Message-
> From: Chaughtai, Atif (NHLBI) [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, July 24, 2002 2:12 PM
> To: '[EMAIL PROTECTED]'
> Subject: JNDI Setup Question: Cannot create resource instance
> 
> 
>Hello,
> > I am having problem setting up JNDI resources with 
> Tomcat 4.0.4 . 
> > I am using MS SQL Server.  I have read and followed the 
> howTo tutorial 
> > but i keep on getting this exception:
> >
> > javax.naming.NamingException: Cannot create resource instance
> > at 
> > 
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceF
> > actory.java:167)
> > at 
> > 
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
> > 11)
> > at 
> org.apache.naming.NamingContext.lookup(NamingContext.java:835)
> > at 
> org.apache.naming.NamingContext.lookup(NamingContext.java:181)
> > at 
> org.apache.naming.NamingContext.lookup(NamingContext.java:822)
> > at 
> org.apache.naming.NamingContext.lookup(NamingContext.java:194)
> > at 
> > 
> gov.nih.nhlbi.training.servlet.DisplayMechanism.handleRequest(Display
> > Mechanism.java:44)
> >
> > My server.xml has following entry:
> >  >  reloadable="true" crossContext="true">
> > 
> >
> >  >   type="javax.sql.DataSource"/>
> >
> > 
> >   
> > factory
> > 
> org.apache.commons.dbcp.BasicDataSourceFactory
> >   
> >   
> > driverClassName
> > com.inet.tds.TdsDriver
> >   
> >   
> > url
> > jdbc:inetdae7: testdatabase.somemachine.com 
> > ?database=training
> >   
> >   
> > username
> >   username 
> >   
> >   
> > password
> >   password 
> >   
> >   
> > maxActive
> > 20
> >   
> >   
> > maxIdle
> > 10
> >   
> >   
> > maxWait
> > -1
> >   
> > 
> >
> > 
> >
> >
> > Application web.xml has following entry:
> > 
> >  
> >  SQLServer Datasource example
> >  jdbc/SQLServer
> >  javax.sql.DataSource
> >  Container
> >  
> >
> >
> > And finally this is java code i am using to get the datasource
> >
> > javax.naming.Context initContext = new InitialContext();
> > javax.naming.Context envContext  = 
> > (javax.naming.Context)initContext.lookup("java:comp/env");
> >
> > DataSource ds = 
> > (DataSource)envContext.lookup("jdbc/SQLServer");
> > Connection connection = ds.getConnection();
> >
> > Do you see anything wrong with all this? Any help will be 
> appreciated. 
> > Thanks in advance.
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Adding a new JSP page thru the MANAGER tool

2002-07-23 Thread Andrew Conrad

Is your application set to reload automatically?  (i.e. you have a
 )

If not, you can reload using the manager app


http://localhost:8080/manager/reload?path=/examples

  
- Andrew

> -Original Message-
> From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 23, 2002 3:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: Adding a new JSP page thru the MANAGER tool
> 
> 
> Hello sir,
> 
>   I have configured Tomcat successfully by editing the
>   TOMCAT-users.xml in the CONF directory. Also I have created soft
>   link from the WEBAPPS directory to the my HOME directory. But as
>   as I add new JSP page to my HOME directory and try to INSTALL the
>   application thru the MANAGER tool in the WEBAPPS directory I find
>   just my Static page working and not my JSP pages. I would appreciate
>   very much if can help me find a way out this problem without the
>   need of shutting and restarting my TOMCAT.
> 
>   Thanks,
>   With regards,
>   vikas nagpal.
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Apache 2.0.39 + Tomcat 4.0.4 (mod_jk2.dll) on Windows 2000

2002-07-18 Thread Andrew Conrad

Yea, you don't need JkWorkersFile any longer for mod_jk2, or any of the
other JK* commands.

Check out this link:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg59593.html

- Andrew

> -Original Message-
> From: Kevin Andryc [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, July 18, 2002 12:40 PM
> To: Tomcat Users List
> Subject: Apache 2.0.39 + Tomcat 4.0.4 (mod_jk2.dll) on Windows 2000
> 
> 
> I can't seem to get them to work together. I have read 
> archived posts but no one has been able to answer how to 
> exactly set them up to work properly. I keep getting:
> 
> "Invalid command 'JkWorkersFile', perhaps mis-spelled or 
> defined by a module not included in the server configuration"
> 
> Does anyone have any ideas or have some documentation. The 
> documents on http://www.galatea.com/flashguides/ do not cover 
> the mod_jk2.dll binary with the latest Apache.
> 
> Thanks,
> Kevin
> 
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: IIS and tomcat (was HTTP/1.1 standard/coyote performance)

2002-07-17 Thread Andrew Conrad

Steve, try this link to get mod_jk.dll

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

- Andrew

> -Original Message-
> From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, July 17, 2002 4:15 PM
> To: Tomcat Users List
> Subject: RE: IIS and tomcat (was HTTP/1.1 standard/coyote performance)
> 
> 
> Hi, John, this is steve burrus, and in direct response to 
> your question of me, I am trying to use the 2.0.39 version of 
> Apache, and I am on Win XP.
> --- "Turner, John" <[EMAIL PROTECTED]> wrote:
> > Hello, Steve Burrus, which Apache HTTP Server are you using and on 
> > what platform? John Turner
> >
> > -Original Message-
> > From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 17, 2002 3:52 PM
> > To: Tomcat Users List
> > Subject: Re: HTTP/1.1 standard/coyote performance
> >
> >
> >  Hello, can anyone/anybody tell me what the link is to access the 
> > mod_jdk.dll file that, I have heard, will allow one to sort 
> of connect 
> > the Apache HTTP Server with
> > the well-known Tomcat 4.0.* Web Server???! I have been 
> going quite "crazy"
> > in
> > trying to do this!!Thanks,  Steve Burrus
> >
> >
> > 
> **
> > **
> > ***
> >
> > --- David Butterworth <[EMAIL PROTECTED]> wrote:
> > > Hi again,
> > >
> > > I am currently running tomcat 4.0.4 with sun jdk 1.4 and 
> linux 2.4. 
> > > java options: -server -Xms64m -Xmx512m
> > >
> > > I am currently running the
> > "org.apache.catalina.connector.http.HttpConnector"
> > > with maxProcessors=400.
> > >
> > > This number of connectors is too small for the load placed onto 
> > > tomcat. When I scale up the number of maxProcessors=1000 tomcat 
> > > spits the dummy a
> > boot
> > > time.
> > >
> > > I understand I could also try the coyote connector as an 
> > > alternative.
> > >
> > > Does anyone know what is the maximum no. of threads I can run in 
> > > tomcat (standard or coyote connector) that will allow it 
> to handle 
> > > this load ?
> > >
> > > Thanks
> > > David Butterworth
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com
> >
> > --
> > To unsubscribe, e-mail: 
> > 
> > For additional commands, e-mail: 
> > 
> >
> > --
> > To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> > For 
> additional commands, 
> e-mail: 
> > 
> >
> >
> >
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat 4.0 and IIS - troubleshoot configuration

2002-07-16 Thread Andrew Conrad

Diana,

Your best bet is to delete your log files, set the log_level registry
key to "debug" and restart IIS.  Test one of your directories then post
your log file for the redirector to the mailing list.  At this point,
I'm sure most of us need more info before we can offer any helpful
information.

Also, post the size and date of your redirector, where you got it, your
OS, JDK and any other helpful background info.


- Andrew

> -Original Message-
> From: Diana McLean [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 16, 2002 1:32 PM
> To: Tomcat Users List
> Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> 
> 
> Thanks Andrew.
> 
> Yes, I have set up a virtual directory called jakarta that 
> has the isapi_redirector.dll under it. The file is physically 
> located in the CATALINA_HOME/bin directory.
> 
> Diana
> 
> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 1:24 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> 
> 
> Diana, 
> 
> Do you have a virtual directory in your website pointing to 
> the directory of your isapi_redirector.dll?
> 
> Specifically, if your extension_uri registry entry equals 
> "/jakarta/isapi_redirector.dll", then you need to have a 
> virtual directory called "jakarta" and it should point to the 
> folder that contains isapi_redirector.dll.
> 
> Hope this helps.
> 
> If you need some more pointers, try this step by step web-page
> 
> http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
> 
> - Andrew
> 
> > -Original Message-
> > From: Diana McLean [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 16, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> > 
> > 
> > Yes, I can access both JSP and Servlets using port 8080.
> > 
> > > http://localhost:8080/testfolder/Test.jsp works
> > > http://localhost/testfolder/Test.jsp  works
> > > 
> > > 
> > > http://localhost:8080/testfolder/servlet/TestServlet  
> > does not work
> > > http://localhost/testfolder/servlet/TestServlet   
> > does not work
> > > 
> > > The Green arrow is up.
> > 
> > 
> > This is the uriworkermap.properties file:
> > #
> > # Default worker to be used through our mappings
> > #
> > default.worker=ajp13
> > 
> > /*.jsp=$(default.worker)
> > /servlet/*=$(default.worker)
> > 
> > #
> > # Sites to be redirected to Tomcat
> > #
> > 
> > /testfolder=$(default.worker)
> > /testfolder/*=$(default.worker)
> > 
> > Thanks,
> > Diana
> > -Original Message-
> > From: Sexton, George [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 15, 2002 7:04 PM
> > To: Tomcat Users List
> > Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> > 
> > 
> > Are you running Tomcat as a service? If so, can you connect
> > directly to it through the http connector running on port 8080?
> > 
> > -Original Message-
> > From: Diana McLean [mailto:[EMAIL PROTECTED]]
> > Sent: 15 July, 2002 3:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: tomcat 4.0 and IIS - troubleshoot configuration
> > 
> > 
> > Does anyone have any suggestions as to what to look for to
> > determine why the tomcat 4.0 installation is not working with 
> > IIS 5.0? They work fine separately.
> > 
> > Thanks,
> > 
> > Diana
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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




RE: tomcat 4.0 and IIS - troubleshoot configuration

2002-07-16 Thread Andrew Conrad

Diana, 

Do you have a virtual directory in your website pointing to the
directory of your isapi_redirector.dll?

Specifically, if your extension_uri registry entry equals
"/jakarta/isapi_redirector.dll", then you need to have a virtual
directory called "jakarta" and it should point to the folder that
contains isapi_redirector.dll.

Hope this helps.

If you need some more pointers, try this step by step web-page

http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm

- Andrew

> -Original Message-
> From: Diana McLean [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 16, 2002 12:23 PM
> To: Tomcat Users List
> Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> 
> 
> Yes, I can access both JSP and Servlets using port 8080.
> 
> > http://localhost:8080/testfolder/Test.jsp   works
> > http://localhost/testfolder/Test.jspworks
> > 
> > 
> > http://localhost:8080/testfolder/servlet/TestServlet
> does not work
> > http://localhost/testfolder/servlet/TestServlet 
> does not work
> > 
> > The Green arrow is up.
> 
> 
> This is the uriworkermap.properties file:
> #
> # Default worker to be used through our mappings
> #
> default.worker=ajp13
> 
> /*.jsp=$(default.worker) 
> /servlet/*=$(default.worker)
> 
> #
> # Sites to be redirected to Tomcat
> #
> 
> /testfolder=$(default.worker)
> /testfolder/*=$(default.worker)
> 
> Thanks,
> Diana
> -Original Message-
> From: Sexton, George [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 7:04 PM
> To: Tomcat Users List
> Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> 
> 
> Are you running Tomcat as a service? If so, can you connect 
> directly to it through the http connector running on port 8080?
> 
> -Original Message-
> From: Diana McLean [mailto:[EMAIL PROTECTED]]
> Sent: 15 July, 2002 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat 4.0 and IIS - troubleshoot configuration
> 
> 
> Does anyone have any suggestions as to what to look for to 
> determine why the tomcat 4.0 installation is not working with 
> IIS 5.0? They work fine separately.
> 
> Thanks,
> 
> Diana
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie - finding class files

2002-07-15 Thread Andrew Conrad

Check this link for more info on class loading.  

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

But it was my understanding that only Tomcat loads the classes and jars
located in the /server directory.

If you need access to it in your webapp, you have to either put the jar
in yourwebapp/WEB-INF/lib or in the shared library section.

For 4.0.4, shared libraries go in %CATALINA%\lib.  With 4.1.x, they go
in %CATALINA%\shared\lib.

- Andrew

> -Original Message-
> From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 15, 2002 7:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: newbie - finding class files
> 
> 
> Hi all,
> 
> does Tomcat really look into tomcatdir/server/lib? For me it 
> seems Tomcat doesn't.
> 
> On the one hand the original webapp /webdav runs without 
> errors. On the other hand, when I deploy a class that extends 
> the original webdav-class 
> org.apache.catalina.servlets.WebdavServlet (located in
> catalinahome\server\lib\servlets-webdav.jar) I get an
> java.lang.NoClassDefFoundError: 
> org/apache/catalina/servlets/WebdavServlet.
> 
> When I then copy catalinahome\server\lib\servlets-webdav.jar 
> into catalinahome\webapps\mywebdav\WEB-INF\lib I get a different
> java.lang.NoClassDefFoundError: 
> org/apache/catalina/servlets/DefaultServlet. DefaultServlet 
> is located in catalinahome\server\lib\servlets-default.jar. 
> So it seems Tomcat doesn't look into the 
> catalinahome\server\lib\ directory. But why then runs the 
> original /webdav app?
> 
> What do I do wrong? Do I have to tell Tomcat somehow to look 
> into the catalinahome\server\lib\ directory when running my 
> webapp? Or do I have to copy all needed files from 
> catalinahome\server\lib\ to my webapp's lib-directory? I 
> suppose this shouldn't be the solution.
> 
> By the way: I'm running Tomcat 4.0.4 on Windows 2000.
> 
> Thanks a lot in advance.
> 
> Andreas Probst
> 
> > Brian,
> >
> > Tomcat looks for your classes under 
> > Tomcatdir/webapps/yourapp/WEB-INF/classes and 
> Tomcatdir/common/classes 
> > and looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib , 
> > Tomcatdir/common/lib (and Tomcatdir/server/lib but you 
> shouldn't put 
> > your stuff in here)
> >
> > Andy
> >
> > > -Original Message-
> > > From: Brian Wolf [mailto:[EMAIL PROTECTED]]
> > > Sent: 11 July 2002 22:12
> > > To: Tomcat Users List
> > > Subject: newbie - finding class files
> > >
> > >
> > > Hi
> > >
> > > I am having problems with  servlets finding class files. 
> On Windows 
> > > 98 I have the classpath and path environmental variables set to 
> > > c:\jdk1.4\bin and c:\jdk1.4 respectively. The Servlet works fine 
> > > when converted to a command line application.
> > >
> > > -Brian
> > >
> > > ---
> > >
> > >
> > > Error: 500
> > > Location: /examples/servlet/processOptions
> > > Internal Servlet Error:
> > >
> > > java.lang.NoClassDefFoundError: 
> > > com/sun/java/util/collections/AbstractSequentialList
> > >  at 
> org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java)
> > >  at org.jdom.input.SAXBuilder.build(SAXBuilder.java)
> > >
> > >
> > >
> >
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jdk1.4 vs jdk1.2 ==Here is the error page. MAYBE A DEVELOPER OF THIS THING WOULD KNOW!

2002-07-14 Thread Andrew Conrad

Exception is a Throwable object, but Throwable is not necessarily an
Exception.  Check your inheritance.

If your Throwable Object is an Exception, explicitly cast it as
Exception in your code.


if (pageContext != null) pageContext.handlePageException( (Exception)
t);

-
Andrew

-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 14, 2002 8:52 PM
To: Tomcat Users List
Subject: RE: jdk1.4 vs jdk1.2 ==Here is the error page. MAYBE A
DEVELOPER OF THIS THING WOULD KNOW!


HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to compile
class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:481)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:182)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235
0)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
5)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
8)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:533)
at java.lang.Thread.run(Thread.java:536)

root cause

org.apache.jasper.JasperException: Unable to compile
class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
/usr/local/tomcat/work/Standalone/localhost/_/index$jsp.java:276:
handlePageException(java.lang.Exception) in
javax.servlet.jsp.PageContext cannot be applied to
(java.lang.Throwable)
  if (pageContext != null) pageContext.handlePageException(t);
  ^
1 error


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:120)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:311)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:322)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:478)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:182)
at
org.a

RE: JNDI and/or pooling help (long post)

2002-07-13 Thread Andrew Conrad

Where are you putting your Resource?  Are you putting it inside your
 element, or in the  Element ?

For a simple configuration, nest it inside your .


ie






...




Also, is your try-catch block catching an exception that might help
point to the problem?



- Andrew

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 13, 2002 1:58 PM
To: 'Tomcat Users List'
Subject: RE: JNDI and/or pooling help (long post)



Thanks for the reply.  I've changed my server.xml Resource object to
match yours (aside from things like username, etc) and still no luck.

As far as I can tell, the Context lookup is working, but when I execute
this line of code, I get nothing (null):

DataSource ds = null;
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MyTestDB");

I'm at a loss as to explain what's going on.  There's nothing in any of
the log files, erverything looks great.  I just can't get a valid
DataSource object, which means I can't get a connection.

Does anyone have any thoughts on what might be going on?  This is very
frustrating...I can't even tell if it's a problem with my tomcat
configuration, my servlet code, the driver, whatever...there aren't any
error messages, just null.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 7:15 PM
To: 'Tomcat Users List'
Subject: RE: JNDI and/or pooling help (long post)


Also, check your URL. The syntax is also UserName (case-insensitive)

Here's my working resource:


 
  url
  jdbc:microsoft:sqlserver://localhost:1433
 
 
   validationQuery
   select * from organizations
 
 
   maxIdle
   2
 
 
   maxActive
   10
 
 
   driverClassName
   com.microsoft.jdbc.sqlserver.SQLServerDriver
 
 
   maxWait
   5000
 
 
   username
   Andrew
 
 
   password
   12345
 


Then, once I get the DataSource, then the connection, I do a
setCatalog() to define the correct DB.

- Andrew


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


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




RE: Tomcat 4.1.7b / Apache httpd 2.0.39 connection how-to

2002-07-12 Thread Andrew Conrad

I have this configuration working, but that doesn't mean I did it
correctly.


Here goes:


1) Downloaded the mod_jk2.dll from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/w
in32/ and placed it in  ${APACHE2_HOME}/modules 

2) Added 1 line to my httpd.conf file.

LoadModule jk2_module modules/mod_jk2.dll

3) Downloaded the workers2.properties from
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/conf/ and
placed it in ${APACHE2_HOME}/conf<---  stumbled a lot trying to
place it anywhere else.  The logs kept looking for it in this location,
and I couldn't use JkWorkersFile in my httpd.conf file to load it
anywhere else.

4) commented out a lot of lines in the workers2.properties file until it
loaded smoothly  ( very scientific aproach ) Particulary, I commented
out jni and unix sockets info.  Didn't know what to do with it anyways.

5) commented out the entire ${CATALINA_HOME}\conf\jk2.properties file


That's it.  It seems to work.  I'm waiting for an authoratative doc to
see if I configured it correctly.

I used the archives a bit, and this one I found helpful

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg57438.html


Also, as long as you don't comment out the [uri:/jkstatus/*] section,
you can go here and get some helpful info

http://localhost/jkstatus


- Andrew




-Original Message-
From: Paul landolt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 2:04 PM
To: Tomcat Users List
Subject: Tomcat 4.1.7b / Apache httpd 2.0.39 connection how-to


Like several other people, I am trying to Connect Tomcat 4.1.7b with
Apache v2.0.39 using the Coyote JK2 connector (because the site said, in
big friendly letters, "IMPORTANT NOTE: The JK connector is now
deprecated. Use the Coyote JK 2 connector instead")

I am going though the motions of following the directions, and I appear
to have made _some_ headway, but I cannot be sure since httpd does not
appear to be configured correctly.

Rather than a long bout of "This is what I'm doing" and "are you doing
this as well?", I would like to know if anyone has successfully
configured the two applications using JK2, and if they'd be willing to
supply a simple "How-to" in order for the rest of us to get farther
along in the game.

In my particular case, I'm running Tomcat 4.1.7b and Apache v2.0.39 on a
Win2K box (for proof of concept), but I would like to know how to
configure same on a linux box.

I'm sure that any help in this matter would be of tremendous value to
many of us newbies

...Paul



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JNDI and/or pooling help (long post)

2002-07-12 Thread Andrew Conrad

Also, check your URL. The syntax is also UserName (case-insensitive) 

Here's my working resource:


 
  url
  jdbc:microsoft:sqlserver://localhost:1433
 
 
   validationQuery
   select * from organizations
 
 
   maxIdle
   2
 
 
   maxActive
   10
 
 
   driverClassName
   com.microsoft.jdbc.sqlserver.SQLServerDriver
 
 
   maxWait
   5000
 
 
   username
   Andrew
 
 
   password
   12345
 


Then, once I get the DataSource, then the connection, I do a
setCatalog() to define the correct DB.

- Andrew

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: JNDI and/or pooling help (long post)



Hello -

I'm having problems getting a connection to my database using JNDI and
various pooling mechanisms. I'm using tomcat 4.0.3 standalone on Win2K.
First, let me say that I can access my database (SQL Server 2000) using
the Microsoft JDBC Type 4 driver without any problems if I put the
connection code right in my servlet (Class.forName, etc.).  If I do
that, no problems. It's only when I try and move the database connection
code up to an application scope or use pooling that I run into problems.
I've setup JNDI according to the Jakarta-Tomcat HOW-TO.

I've tried DBCP/pool according to this link:
http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2

I also tried the solution from here:
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBo
ok/c
onpool.html

And I also tried the DBConnectionBroker from javaexchange.com, as well
as the DataSourceWrapper/ConnectionPool classes from the O'Reilly JSP
book.

I've even tried setting up DriverName, URL, username, and password as
servlet parameters in web.xml and writing an "init" servlet that would
read them in, create the datasource, and then push the datasource into
the application scope with getServletContext().setAttribute().  That
didn't work, either.

I would definitely appreciate any help or suggestions, I'm going crazy
trying to figure out what is wrong.  I don't really even need the
pooling, but what I want to do is get the specific database parameters
(username, password, host, etc.) OUT of the servlets (and beans).  I
want other developers to just be able to grab a handle to the
datasource, open a connection, and use it without having to know any
specific information about the database and the parameters.

Here's my server.xml (with the DBCP/pool) setup:

 

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory

maxActive100
maxIdle3
maxWait100

  user
  some_user


  password
  some_password


  databasename
  some_db


  driverClassName
  com.microsoft.jdbc.sqlserver.SQLServerDriver


  url
 
jdbc:microsoft:sqlserver://SOMEHOST:1433;User=some_user;Password=
some
_password;DatabaseName=some_db -->



Here is my web.xml:

  
DB Connection
jdbc/MyTestDB
javax.sql.DataSource
Container
  

In every case above, regardless of the pooling mechanism, or even just
trying to setup a datasource as an application scope object, I get
either an error message, or null.  In the config above, I get null.  The
code I use with the config above looks like this:

As a test, I wrote a little JNDI reader servlet that just enumerates
over the JNDI space and lists out the objects:

try {
Context initCtx = new InitialContext();
NamingEnumeration enum = initCtx.listBindings("java:comp/env/jdbc");

while (enum.hasMore()) {
Binding binding = (Binding) enum.next();
out.println("Name: " + binding.getName() + "");
out.println("Type: " + binding.getClassName() + "");
out.println("Value: " + binding.getObject() + "");
out.println();
out.println();
}
} catch (NamingException e) {
out.println("Naming Exception: " + e.getMessage());
}

When I run this servlet, I get output that says:

Name: MyTestDB
Type: org.apache.naming.ResourceRef
Value: Reference Class Name: javax.sql.DataSource Type: description
Content: DB Connection Type: scope Content: Shareable Type: auth
Content: Container 

Now, I'm no expert by any means, but it seems to me that things are
setup correctly, though I realize my JNDI reader servlet is just reading
web.xml. JNDI knows what's up, or seems to, but for some reason I can't
get a valid DataSource to my database.

Any thoughts?  Suggestions?  I can't switch databases, and I can't buy
another Type 4 driver (the Microsoft driver is free), nor can I use the
JDBC-ODBC bridge.  Any help is appreciated!!

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


- John


John Turner
[EMAIL PROTECTE

RE: JNDI and/or pooling help (long post)

2002-07-12 Thread Andrew Conrad

Dfor my Resource Object, I was only ever able to use the param
"username", not "user".


- Andrew

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: JNDI and/or pooling help (long post)



Hello -

I'm having problems getting a connection to my database using JNDI and
various pooling mechanisms. I'm using tomcat 4.0.3 standalone on Win2K.
First, let me say that I can access my database (SQL Server 2000) using
the Microsoft JDBC Type 4 driver without any problems if I put the
connection code right in my servlet (Class.forName, etc.).  If I do
that, no problems. It's only when I try and move the database connection
code up to an application scope or use pooling that I run into problems.
I've setup JNDI according to the Jakarta-Tomcat HOW-TO.

I've tried DBCP/pool according to this link:
http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2

I also tried the solution from here:
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBo
ok/c
onpool.html

And I also tried the DBConnectionBroker from javaexchange.com, as well
as the DataSourceWrapper/ConnectionPool classes from the O'Reilly JSP
book.

I've even tried setting up DriverName, URL, username, and password as
servlet parameters in web.xml and writing an "init" servlet that would
read them in, create the datasource, and then push the datasource into
the application scope with getServletContext().setAttribute().  That
didn't work, either.

I would definitely appreciate any help or suggestions, I'm going crazy
trying to figure out what is wrong.  I don't really even need the
pooling, but what I want to do is get the specific database parameters
(username, password, host, etc.) OUT of the servlets (and beans).  I
want other developers to just be able to grab a handle to the
datasource, open a connection, and use it without having to know any
specific information about the database and the parameters.

Here's my server.xml (with the DBCP/pool) setup:

 

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory

maxActive100
maxIdle3
maxWait100

  user
  some_user


  password
  some_password


  databasename
  some_db


  driverClassName
  com.microsoft.jdbc.sqlserver.SQLServerDriver


  url
 
jdbc:microsoft:sqlserver://SOMEHOST:1433;User=some_user;Password=
some
_password;DatabaseName=some_db -->



Here is my web.xml:

  
DB Connection
jdbc/MyTestDB
javax.sql.DataSource
Container
  

In every case above, regardless of the pooling mechanism, or even just
trying to setup a datasource as an application scope object, I get
either an error message, or null.  In the config above, I get null.  The
code I use with the config above looks like this:

As a test, I wrote a little JNDI reader servlet that just enumerates
over the JNDI space and lists out the objects:

try {
Context initCtx = new InitialContext();
NamingEnumeration enum = initCtx.listBindings("java:comp/env/jdbc");

while (enum.hasMore()) {
Binding binding = (Binding) enum.next();
out.println("Name: " + binding.getName() + "");
out.println("Type: " + binding.getClassName() + "");
out.println("Value: " + binding.getObject() + "");
out.println();
out.println();
}
} catch (NamingException e) {
out.println("Naming Exception: " + e.getMessage());
}

When I run this servlet, I get output that says:

Name: MyTestDB
Type: org.apache.naming.ResourceRef
Value: Reference Class Name: javax.sql.DataSource Type: description
Content: DB Connection Type: scope Content: Shareable Type: auth
Content: Container 

Now, I'm no expert by any means, but it seems to me that things are
setup correctly, though I realize my JNDI reader servlet is just reading
web.xml. JNDI knows what's up, or seems to, but for some reason I can't
get a valid DataSource to my database.

Any thoughts?  Suggestions?  I can't switch databases, and I can't buy
another Type 4 driver (the Microsoft driver is free), nor can I use the
JDBC-ODBC bridge.  Any help is appreciated!!

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: help with apache tomcat webserver

2002-07-12 Thread Andrew Conrad

A 404 is a good response, kinda.  It means your server responded and
couldn't find the file.

The link you gave out seems to be bad.

I found it here  (with .htm not .html)

http://64.161.27.180:8080/index.htm

BTW, just give out http://64.161.27.180:8080/  that way the server will
return the appropriate file.

- Andrew


-Original Message-
From: Martin Jacobson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 6:04 AM
To: Tomcat Users List
Subject: Re: help with apache tomcat webserver


Jonathan Zhang wrote:

> Everything is in default condition as provided by apache tomcat 4.0.  
> People in foreign countries such as hk and china can not view it while

> people in US can.  if it helps here's my ip addr: 
> http://64.161.27.180:8080/index.html
> thanks for the help
> 
> -jonathan


I tried your link, and it returned me a 404 :-(
Ping succeeds.

I notice you said you're connected via DSL - are you sitting behind a 
DSL router that provides firewall facilities? Do you have a dynamic IP 
address (I guess not)?
You *might* have problems if your firewall blocks certain ports from 
certain ip ranges.

I am doing this from Italy.

best of luck,
Martin



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: BasicDataSourceFactory (dbcp)

2002-07-12 Thread Andrew Conrad

I can't tell you why it works this way, but with the MS JDBC driver, the
param name has to be username.  It doesn't work otherwise.


- Andrew

-Original Message-
From: Martin Jacobson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 7:39 AM
To: Tomcat Users List
Subject: Re: BasicDataSourceFactory (dbcp)


Marc Logemann wrote:

> Hi,
>
>
>>I have posted several times regarding this! In answer to your 
>>question,
>>
>
> sorry to bother you :)
>

I wasn't complaining - it was merely an observation; I 'discovered' this
a month back, and have posted several replies to people in difficulty.

>
>>it ought to be, but because there is no standard DTD for servlet 
>>containers, or EJB containers, everybody can do his own thing! :-(
>>
>
> i dont know if a DTD would help out, i mean we cant define bean 
> properties for a custom datasource in advance in an DTD or?
>
>
>>I still think that there ought to be an DTD for server.xml, and maybe 
>>a way to map 'tomcat standard' parameter names to individual 
>>DataSource implementations. IMO, such a DTD (if documented!) would cut

>>out a large proportion of the posts on this list!
>>
>
> THe point is, SUN defined at least some property names in 
> http://java.sun.com/products/jdbc/jdbc20.stdext.pdf Paragraph: 5.3.1 
> it would be nice if at least the common ones would be uniform.
>


Having read the doc (thanks for the link), I think you ought to post a
bug report to the DBCP project for an incorrect property name... come to
think of it, I might try to do that myself!

But, if there is a 'standard' set of properties for a DataSource, why
can't they be expressed in a formal way - i.e. currently we write:


   
 factory
 org.apache.commons.dbcp.BasicDataSourceFactory
   
   ...

which means that an XML parser can only check that it is well-formed.

Instead, it would be nice to be able to write:


   
 org.apache.commons.dbcp.BasicDataSourceFactory
   
   ...

with  reserved for vendor-specific extensions. This would
allow a validating parser to barf at most errors, instead of us all
having to rely on examining the log files and interpreting stack traces!

Getting off soap-box, now!

cheers,
Martin.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Two Questions about Tomcat

2002-07-12 Thread Andrew Conrad

To accept requests on a different port for the same Tomcat instance,
you need to define another port.

I haven't seen in the documentation how to handle your issue, but you
could try creating another  element with the name "localhost:85"
and the approprate  elements.  Let us know what you find.



You can also install another instance of Tomcat with the appropriate
connector for port 85.


- Andrew

-Original Message-
From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 9:46 AM
To: Tomcat Users List
Subject: Re: Two Questions about Tomcat


thanks but when i add another http  connector how will the context
elements know to use the correct connector.

for instance there are two ports (connectors) 80 and 85
and in server.xml
two contexts

   
and
   

and which page will be shown when I call
http://localhost
and http://localhost:85
thanks..
serdar
- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 4:22 PM
Subject: AW: Two Questions about Tomcat


See below:

> -Ursprüngliche Nachricht-
> Von: Serdar BOZDAG [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 12. Juli 2002 15:18
> An: tomcatGroup
> Betreff: Two Questions about Tomcat
>
> 1. Can I access from browser to a folder under the WEB-INF folder.

No.

> 2. How can I add another server (on port 85 for instance) in Tomcat

If you use tomcat standlone, define a second http connector with this
port.

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: classpath problem

2002-07-12 Thread Andrew Conrad

Are these classes apart of a package?  Did you build the package
directory structure to match in the %CATALINA$\common\classes?  


Have you tried the $CATALINA$\shared\classes folder?  How about a
webapp's  WEB-INF\classes folder?  Testing these to see if you can get
any of them to work might help you solve your problem.


- Andrew 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 12:36 PM
To: [EMAIL PROTECTED]
Subject: classpath problem


All,

I have installed Tomcat 4.0.2.  All examples work fine, jsp's and 
servlets.

when i removed my old version of Tomcat / apache, i obviously saved all
of 
my existing apps.  I have now pointed Tomcat to these by specifying new 
Contexts in my server.xml.  All is fine... nearly.

My problem is that my classpath is not being picked up.  Reading the
docs, 
i found that $CATALINA_HOME/common/classes is where i should put my non 
application specific, common classes.  I have done this but to no avail,

these classes which should be visible to my apps according to the 
documentation are not found and a NoClassDefFound error results.

I have tried putting my "common" classes in the following directories :

$CATALINA_HOME/common/classes
$CATALINA_HOME/classes

They are not picked up.  Needless to say i have restarted the service, 
rebooted and hit my computer many times.

Any help would be appreciated

Thanks

Mehdi

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Why doesn't my classes see the oracle driver?

2002-07-11 Thread Andrew Conrad

Check the archives, but I seem to remember that some people had to
delete the javax.sql.* files from the oracle jar.  Do they exist in your
jar?


- Andrew



-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Why doesn't my classes see the oracle driver?


Yes I did... but that's not the point... I've even tried unpacking it...
it doesn't work... 
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

>>> [EMAIL PROTECTED] 11/07/02 12:33 >>>
Did you rename the file to classes12.jar from the original 
classes12.zip? 

I know there were some issues with that some time ago... 

>>> [EMAIL PROTECTED] 07/11/02 09:10 AM >>>
I had a webapp working ok... 

I had it set like this: 
$TOMCAT_HOME\webapps\fap\WEB-INF\classes\[ all my classes unpackaged 
here] 
$TOMCAT_HOME\webapps\fap\WEB-INF\lib\classes12.jar <-- this is the 
Oracle Driver 

now I want this: 
$TOMCAT_HOME\common\classes\[all my classes unpackaged here] 
$TOMCAT_HOME\common\lib\classes12.jar -OR- 
$TOMCAT_HOME\common\classes\[oracle driver unpackaged] 

why can't this work??? When a JSP accessing one of my classes, the class

is found but it gives me an error saying it didn't find the oracle 
drivers... 


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




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: DataSource Casting Problem

2002-07-11 Thread Andrew Conrad

If the jdbc2_0-stdext.jar is in the common/lib and no where else, and
you can't see it from your JSP code, you have a class loading issue that
probably relates to your problem.  

What version of TC?  JDK?  

With TC 4.1.x (maybe older versions too...) you can see the class
loading structure by turning on debugging for it in your Context.







- Andrew



-Original Message-
From: Meichun Li [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 5:51 PM
To: Tomcat Users List
Subject: DataSource Casting Problem


Hi, 

I have DataSource Casting problem while using DBCP. The server.xml and 
web.xml configuration should be fine.  

The error is:
java.lang.ClassCastException: org.apache.commons.dbcp.BasicDataSource

I searched the archive and it is said that the jar file
jdbc2_0-stdext.jar 
should only be put in $CATALINA_HOME/common/lib. 

But If I don't put it in /WEB-INF/lib directory, there is another error:
javax.sql.* package cant' be found. 

The related codes are:

Context initCtx = new InitialContext();
Context envCtx=(Context)initCtx.lookup("java:comp/env");
DataSource ds =(DataSource)envCtx.lookup("jdbc/ospreyDb");

It works if I use this:
org.apache.commons.dbcp.BasicDataSource ds=
  (org.apache.commons.dbcp.BasicDataSource) 
envCtx.lookup("jdbc/ospreyDb");

Any ideas? Thanks a lot in advance!

-Meichun


-- 
Meichun Li
Ibiblio.org
919-962-5646


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat-iis problem in hosting server

2002-07-11 Thread Andrew Conrad

It sounds like your Test.jsp is not in the directory tomcat sees as your
root.

You need to have your ISP map the root context for your domain to your
www directory.

- Andrew

-Original Message-
From: Moj Vahed [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 7:52 AM
To: [EMAIL PROTECTED]
Subject: tomcat-iis problem in hosting server


Dear

We have an application written by jsp & java languages.
We run it under apache-tomcat in our lan interanet.
Now we get a hosting service for install it on internet. Our hosting
provider installed the Tomcat on IIS and we can see the tomcat 1st page
when we type : http://(IP address):8080 or if we type: http://(our
domain name):8080

we own a WWW directory in our ftp hosting. I put a Test.jsp file in our
www directory and when i type: http://(our domain name):8080/Test.jsp it
display "page not found !"

how can i solve this problem?and how can i define my www directory for
Tomact?

regards
Vahed




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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: PATH issue

2002-07-11 Thread Andrew Conrad

In Windows NT, just go into your environmental settings and add your
path to the PATH statement.

Right-click My Computer->properties->Advanced->Environmental Variables

(Windows XP specific directions, but it's in a similar place on NT)

- Andrew

-Original Message-
From: Pearsall, Kyle [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 1:32 PM
To: Tomcat (E-mail)
Subject: PATH issue


I have set up Tomcat with an addition to the PATH in startup.bat ("set
PATH=..\webapps\TestServlet\dll;%PATH%").  When Tomcat starts from this
batch file, the servlet can access files in this directory.  However,
when Tomcat runs as a service, the servlet can't access the files in
this directory.  Tomcat produces javax.servlet.ServletException and
java.lang.UnsatisfiedLinkError messages.  It seems the NT Tomcat service
bypasses startup.bat.  
How can I set up the NT service to load the PATH statement above?  Is
this possible?  Considering the nature of the product, I can't update
the path manually in the Windows environment variables (although this
does work).  And I would like to keep the files inside the servlet, and
not in the Tomcat\bin directory (I tried this and it works as well).
What can I do? Thank you in advance for your help. Kyle Pearsall

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Class loader problem with Xalan under 4.0.2 and 4.0.3

2002-07-11 Thread Andrew Conrad

This isn't answering your question as you posed it, but aren't
xml-api.jar and XMLParserAPI.jar from different versions of Xerces?
Xalan 2.4.D1 comes with Xerces 2.0.1 (xercesImpl.jar and xml-api.jar).
To use Xerces 2.0.2, aren't you suppose to delete those files and
replace them with those from the Xerces distribution (xercesImpl.jar and
XMLParserAPI.jar)?  

Maybe you are having a class loading issue because you are mixing your
versions.

Just a thought.

- Andrew



-Original Message-
From: stephen chan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 9:05 PM
To: 'Tomcat Users List'
Subject: Class loader problem with Xalan under 4.0.2 and 4.0.3


Class loader problem with Xalan under 4.0.2 and 4.0.3


Hi, I have:

  jakarta-tomcat-4.0.2 / jakarta-tomcat-4.0.3
  Xerces-J-bin.2.0.2
  xalan-j_2_4_D1-bin.tar.gz
  jdom
  sun jdk jdk1.3.1

on a linux box.

According to Tomcat documentation, class loading is
done in the following order:

  /WEB-INF/classes of your web application
  /WEB-INF/lib/*.jar of your web application
  Bootstrap classes of your JVM
  System class loader classses
  $CATALINA_HOME/common/classes
  $CATALINA_HOME/common/lib/*.jar
  $CATALINA_HOME/classes
  $CATALINA_HOME/lib/*.jar

In my /WEB-INF/lib/ directory, I have all the
xerces, xalan and jdom jar files:

  BCEL.jar
  JLex.jar
  bsf.jar
  java_cup.jar
  jdom.jar
  regexp.jar
  runtime.jar
  xalan.jar
  xalansamples.jar
  xalanservlet.jar
  xercesImpl.jar
  xercesSamples.jar
  xml-apis.jar
  xmlParserAPIs.jar
  xsltc.jar

When I run my servlet from /WEB-INF/classes,
I get this:

  root cause

java.lang.NoClassDefFoundError:
javax/xml/transform/TransformerException

This means Tomcat can't find the xalan lib.
*** Tomcat can find xerces and jdom libs ***

At this point, I decided to do some testing on other versions of Tomcat
and here are the results.


  Tomcatxalan lib in /WEB-INF/lib/
  ----
  3.3.1 OK
  4.0.2 NOT OK
  4.0.3 NOT OK
  4.0.4 OK


The only way to make 4.0.2 and 4.0.3 aware of xalan libs is to have the
xalan jar files in "Bootstrap classes of my JVM" which is in
/usr/local/jdk1.3.1_02/jre/lib/ext. But having the libs in this
directory can effect other applications within the same container. How
do I make my Tomcat 4.0.2 and 4.0.3 use the xalan lib in my
/WEB-INF/lib/ directory? Is this a Tomcat config problem or a Xalan
config problem?

Thanks
Stephen




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Windows Explorer Hangs when Tomcat is running

2002-07-11 Thread Andrew Conrad

Hi Sridhar,


Whats your mem usage like?  What sp of NT and what JDK?  These all can
play a role.  You might try using a different JDK and see the effects.  


- Andrew

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 1:52 AM
To: [EMAIL PROTECTED]
Subject: Windows Explorer Hangs when Tomcat is running


Hi Folks,

I am running Tomcat 4.0.1 version on my Windows NT box. I am
experiencing a bizzare problem when i run Tomcat and try to open
Explorer. I have tomcat in my startup, and it starts up properly. When
Tomcat is running, if i try to open Explorer, sometimes the explorer
window doesn't come up. (The same goes with IE too). If i kill tomcat,
explorer props up immediately.

I was wondering if anyone else has faced the problem like this before.
If so, could someone throw some light on this?

TIA
Sridhar Srinivasan,
EMAIL: [EMAIL PROTECTED]




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat & IIS - success

2002-07-11 Thread Andrew Conrad

Hey Anoop,

The log isn't going to be enough for me.  Zip up your
uriworkermap.properties, workers.properties and export a copy of your
Reg file.  Post it so we can all see whats going on.  Also, some info on
your OS, JDK version and locations, and anything else about your machine
that you think might be helpful.

- Andrew



-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 4:46 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat & IIS - success


hi Andrew, (and Tomcat users)

You hv helped me a lot in my previous configuration of IIS with Tomcat.
It is running well on my machine, and now i am trying to run it on
another machine.(reconfiguring), but i am facing a lot of problems here.
pasting the last bit of my isapi.log file..

[Thu Jul 11 13:17:17 2002]  [jk_isapi_plugin.c (860)]: HttpExtensionProc
got a worker for name ajp13 [Thu Jul 11 13:17:17 2002]  [jk_ajp_common.c
(1352)]: Into jk_worker_t::get_endpoint [Thu Jul 11 13:17:17 2002]
[jk_ajp_common.c (1075)]: Into jk_endpoint_t::service [Thu Jul 11
13:17:17 2002]  [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb [Thu
Jul 11 13:17:17 2002]  [jk_ajp_common.c (413)]: ajp_marshal_into_msgb -
Done [Thu Jul 11 13:17:17 2002]  [jk_connect.c (116)]: Into
jk_open_socket [Thu Jul 11 13:17:17 2002]  [jk_connect.c (123)]:
jk_open_socket, try to connect socket = 2596 [Thu Jul 11 13:17:18 2002]
[jk_connect.c (132)]: jk_open_socket, after connect ret = -1 [Thu Jul 11
13:17:18 2002]  [jk_connect.c (151)]: jk_open_socket, connect() failed
errno = 61 [Thu Jul 11 13:17:18 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 [Thu Jul 11
13:17:18 2002]  [jk_ajp_common.c (843)]: Error connecting to the Tomcat
process. [Thu Jul 11 13:17:18 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0 [Thu Jul
11 13:17:18 2002]  [jk_connect.c (116)]: Into jk_open_socket [Thu Jul 11
13:17:18 2002]  [jk_connect.c (123)]: jk_open_socket, try to connect
socket = 2596 [Thu Jul 11 13:17:19 2002]  [jk_connect.c (132)]:
jk_open_socket, after connect ret = -1 [Thu Jul 11 13:17:19 2002]
[jk_connect.c (151)]: jk_open_socket, connect() failed errno = 61 [Thu
Jul 11 13:17:19 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 [Thu Jul 11
13:17:19 2002]  [jk_ajp_common.c (843)]: Error connecting to the Tomcat
process. [Thu Jul 11 13:17:19 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1 [Thu Jul
11 13:17:19 2002]  [jk_connect.c (116)]: Into jk_open_socket [Thu Jul 11
13:17:19 2002]  [jk_connect.c (123)]: jk_open_socket, try to connect
socket = 2596 [Thu Jul 11 13:17:20 2002]  [jk_connect.c (132)]:
jk_open_socket, after connect ret = -1 [Thu Jul 11 13:17:20 2002]
[jk_connect.c (151)]: jk_open_socket, connect() failed errno = 61 [Thu
Jul 11 13:17:20 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 [Thu Jul 11
13:17:20 2002]  [jk_ajp_common.c (843)]: Error connecting to the Tomcat
process. [Thu Jul 11 13:17:20 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Thu Jul
11 13:17:20 2002]  [jk_isapi_plugin.c (875)]: HttpExtensionProc error,
service() failed [Thu Jul 11 13:17:20 2002]  [jk_ajp_common.c (1307)]:
Into jk_endpoint_t::done [Thu Jul 11 13:17:20 2002]  [jk_ajp_common.c
(535)]: In jk_endpoint_t::ajp_close_endpoint

Can you please guide me as to where the problem might be...
why do we get the error connecting to Tomcat process and the service()
failed error.

thanx in advance
-anoop

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 29, 2002 2:42 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat & IIS - success


I think I'm in agreement with Dave here.  While I can't say it took me
quite as long, about 6 hours, it was extremely difficult to find the
documentation on configuring IIS with Tomcat.  Who would have thought
(as a newbe) to look in the AJP configuration documentation?  Along with
the JGuru.com FAQ that leads to a seriously flawed installation guide.

I guess my point is that ripping this poor chap for taking 4 days (which
does seem a little excessive but not unbelievable) is a little
counter-productive.  We should take this endless barrage of IIS
installation problems as a HINT to improve the documentation and
navigation to the documentation.


OK, saying that, my question to anyone reading this thread is:

How do I help with the documentation?

I've written an installation guide that I believe improves on the
current documentation (which might only be my opinion)
(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm) and I've written
a setup program to automate the installation of the redirector
completely. I would like to include them in the documentation and the
distr

RE: Problem with "Jakarta IIS Redirector"

2002-07-11 Thread Andrew Conrad

It looks like your uriworkermap.properteis file is incorrect.  Add these
lines to your uriworkermap.properties and see if you can get to the
Tomcat examples.  Remember to restart your IIS services, so your
redirector loads the new file settings.


/examples=$(default.worker)
/examples/*=$(default.worker)



- Andrew

-Original Message-
From: Sebastian Leppert [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 8:55 AM
To: Tomcat Users List
Subject: AW: Problem with "Jakarta IIS Redirector"


Hi John, 

Yes the filter shows a green arrow! I need the filter only on one
virtual host. SO I've added the filter there. The virtuel directory is
named "jakarta" and has Execute Permissions: "Scripts and Executables".
The local Path is fixed to the position of the filter DLL and got the
permission Read.

Ok?


Mit freundlichem Gruß

S e b a s t i a n L e p p e r t
_
Elements of Arts GmbH & Co. KG  http://www.eoa.de
An der Eickesmuehle 37
41238 Moenchengladbach 
fon: +49 (2166) 91567-89
fax: +49 (2166) 91567-99


-Ursprüngliche Nachricht-
Von: Turner, John [mailto:[EMAIL PROTECTED]] 
Gesendet: Donnerstag, 11. Juli 2002 14:50
An: 'Tomcat Users List'
Betreff: RE: Problem with "Jakarta IIS Redirector"



If you are using virtual hosts, you need a "jakarta" virtual directory
for each virtual host, but you can only have ONE filter...in other
words, do not add the redirector as a filter for each virtual host.  You
only need the filter once.  

What is the status of the filter?  Is it showing a green arrow?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Sebastian Leppert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:42 AM
To: [EMAIL PROTECTED]
Subject: Problem with "Jakarta IIS Redirector"


Hi everybody,

I've just installed a new Webserver with IIS5.0 and now would like to
add support to Servlets and JSP on that Server (all operations should go
through the IIS).

I've followed the HowTo at:
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/

Everything is fine (I can use the JSPs with :8080-extension in the URL,
but when I try to use it with the Redirector over ajp13 there is an HTTP
500 error.

Then I've set the Redirect Loglevel to "debug" und the Request looks
like this:

---

[Thu Jul 11 14:31:36 2002]  [jk_isapi_plugin.c (657)]: HttpFilterProc
started [Thu Jul 11 14:31:36 2002]  [jk_isapi_plugin.c (705)]: In
HttpFilterProc Virtual Host redirection of /193.99.41.111/index.jsp [Thu
Jul 11 14:31:36 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Jul 11 14:31:36 2002]  [jk_uri_worker_map.c (464)]: Attempting to
map URI '/193.99.41.111/index.jsp' [Thu Jul 11 14:31:36 2002]
[jk_uri_worker_map.c (489)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a context match ajp13 -> /193.99.41.111/ [Thu Jul 11 14:31:36
2002]  [jk_isapi_plugin.c (721)]: HttpFilterProc [/index.jsp] is a
servlet url - should redirect to ajp13 [Thu Jul 11 14:31:36 2002]
[jk_isapi_plugin.c (784)]: HttpFilterProc check if [/index.jsp] is
points to the web-inf directory



So, in my opinion the Redirector operates fine! The next question is
about the worker.properties:


#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
# Add 'inprocess' if you want JNI connector 
worker.list=ajp12, ajp13
# , inprocess


#
#-- DEFAULT ajp12 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp12.lbfactor=1

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache. #worker.ajp13.cachesize
-

Seems to me very well, too!

So, habe a look at the uriworkermap.properties:

--
#
# Default worker to be used through our mappings
#
default.worker=ajp13

#
# Sites to be redirected to Tomcat
#
/193.99.41.1=$(default.worker)
/193.99.41.1/*=$(default.worker)
-
IP is not the real one :)

My ROOT-Directory for

RE: Where to place XML Schemas in Tomcat?

2002-07-10 Thread Andrew Conrad

I'm not positive, but I was under the impression that you cannot see
inside the WEB-INF folder.

I would just create a new folder in the root of your app and reference
them absolutely "/Schemas"

- Andrew

-Original Message-
From: Dr. Edward R. Jones [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 10, 2002 4:26 AM
To: [EMAIL PROTECTED]
Subject: Where to place XML Schemas in Tomcat?


Hi,

I need to read .xsd (schemas) for xerces validation under tomcat.  How
do 
I get tomcat to look for them in a directory like WEB-INF/schemas ?  
Currently, tomcat is looking for them in the root of the main drive
(under 
windows 2K professional).

Thanks for your help - edwardJones

-- 


 Edward R. Jones, Ph.D.|  email:   [EMAIL PROTECTED]
 Texas A&M Univ. - Corpus Christi  |  phone:   (361) 825-5840 




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: going crazy with DBCP

2002-07-09 Thread Andrew Conrad

Clay, 

The /DBTest directory isn't really for the pool.  It's for your Context
(Virtual Directory), and the pool is used WITHIN that Context.  Read the
tomcat-docs to better understand the , , and other
server.xml entities.

- Andrew

-Original Message-
From: Clay Graham [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 10:50 PM
To: 'Craig R. McClanahan'; Tomcat Users List
Subject: RE: going crazy with DBCP


Craig,

my reading from that was that it was trying to find the /DBTest
directory 
when the pool failed, like it said "hey your pool doesn't work so now I
am 
going to look for a directory that I might be able to map this context 
into", is this not the case?

the directions at:

http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2

never tell you to create the "/DBTest" directory under webapps, so I
never 
thought it was required, when you created your pool did you do this?

clay


-Original Message-
From:   Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, July 09, 2002 12:51 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject:RE: going crazy with DBCP

Why are you assuming that this is a DBCP problem?  The key issue seems
to be the following line from the log:

> 2002-07-08 16:14:38 StandardContext[/DBTest]: Error initializing
> resources: Document base /home/tomcat/jwsdp-1_/webapps/DBTest does not

> exist or is not a readable directory

which says that the "DBTest" directory doesn't exist or cannot be read
by the operating system username under which Tomcat is running.  Since
you specified a docBase property of "DBTest", Tomcat expects there to be
a directory with this name in it's "webapps" subdirectory.  If your
application is really someplace else, you can specify an absolute
pathname instead -- but you still need to ensure that Tomcat has read
permissions on everything (plus "x" permissions on directories).

You can find out really quickly if this is the important problem by
commenting out the  and  elements and see if
you still get this message.

Craig


On Tue, 9 Jul 2002, Clay Graham wrote:

> Date: Tue, 9 Jul 2002 12:13:23 -0700
> From: Clay Graham <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: going crazy with DBCP
>
> I went to 4.1.7 yesterday, I tjhought hey this will all work because 
> the .tar.gz has the commons jars already wrapped up in it, yay this 
> will all work great just by getting the new stuff. so I downloaded it 
> got it up
and
> running, and then added the new DBTest context as specified to the 
> server.xml
>
> watched the log hopefully, then..
>
> exact same error in the log file, is the some little step that I may 
> have missed?
>
> clay
>
>
>
>
> -Original Message-
> From: Jacob Kjome [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 7:04 PM
> To:   Tomcat Users List
> Subject:  Re: going crazy with DBCP
>
> Try using Tomcat 4.1.3 or 4.1.7 (not anything in between because I 
> think DBCP was broken for a bit there).  Everything should work just 
> great.
>
> Jake
>
>
> At 04:36 PM 7/8/2002 -0700, you wrote:
> >I will pay someone to help me at this point, I am not rich but I know
when
> >to admit when need help. I am basically at the end of my rope trying 
> >to
> get
> >dbcp to work, I have been over
> >
> >http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2
> >
> >about one hundred times, basically it's impossible to get the exact 
> >configuration that he speaks of, like some of the commons stuff I
couldn't
> >find those versions, anyway it would really suprise me if those EXACT

> >versions are the only ones that work.
> >
> >I tried to install the RPM 4.0.4 version of tomcat and the webapps, 
> >but
I
> >could not get the manager to work, so I went back to 4.0.2. Is there
such
> a
> >difference between 4.0.2 and to point versions that it causes this 
> >stuff
> to
> >fail? Is the only way to get DBCP to work is to actually build tomcat
from
> >source? Anyway I have done the best I can and spent two days
configuring,
> >this where I am at:
> >
> >tomcat 4.0.2 full
> >mysql 4.0.1-2
> >
> >mm.mysql-2.0.14-bin.jar in $TOMCAT_HOME/common/lib
> >
> >commons-collections-2.0 - commons-collections.jar in 
> >$TOMCAT_HOME/common/lib commons-dbcp-20020707.tar.gz - 
> >commons-dbcp.jar in
$TOMCAT_HOME/common/lib
> >commons-pool-20020707.tar.gz - commons-pool.jar in
$TOMCAT_HOME/common/lib
> >
> >added to server.xml
> >
> >
> > >crossContext="true">
> >>   prefix="localhost_DBTest_log." suffix=".txt"
> >   timestamp="true"/>
> >>type="javax.sql.DataSource"/>
> >   
> >   
> > factory
> >
org.apache.commons.dbcp.BasicDataSourceFactory
> >   
> >
maxActive100
> >
maxIdle3
> >   maxWait100
> >   
> >usernametomcat
> > 
 
passwordpassword
> >  
> > 
 
driverClassNameorg.gjt.

RE: going crazy with DBCP

2002-07-09 Thread Andrew Conrad

I need to pay more attention to the docs I was reading.  Sorry about the
confusion I may have caused.

Thanks for the catch Jacob.


- Andrew

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 12:53 AM
To: Tomcat Users List
Subject: RE: going crazy with DBCP



At 11:05 PM 7/8/2002 -0400, you wrote:
>Hey Clay, here's something I noticed.  With Tomcat 4.0.x the place to 
>put your jars for server wide access is in %CATALINA%\lib, not 
>%CATALINA%\common\lib.  (the common\lib is the new location for 4.1.x)


This is not at all correct.

%CATALINA%\common\lib existed in Tomcat-4.0 and continues to exist in 
Tomcat-4.1.  It is used for cases where both the server and your webapps

require access to libraries.  This would be the case with your JDBC
driver 
when using DBCP connection pooling.

What changed between 4.0 and 4.1 is that %CATALINA%\lib is now 
%CATALINA%\shared\lib.  Actually, the only thing that changed was the 
name.  There is no functional difference here.  These respective 
directories are be used to store jars that need to be accessed by your 
webapps, but you don't need to have the server itself see them.

We don't need any more confusion about that on this list.

Jake

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: I fail to get green arrow for filter status.. IIS with Tomca t

2002-07-09 Thread Andrew Conrad

The reason is in your wriworkermap.properties.  The tag "/*" means all
files from the root.  If you only wanted to redirect JSP files, you
would change that to "/*.jsp"



-Andrew

-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 5:09 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t


hey Andrew,
i finally cdnt get it to work on TC 3.2.4. so i chucked it and carried
on with 4.0 and it works like clockwork, hardly any reconfiguration
necessary..

thank a lot for all ur help,
but tell me one thing.. if i give http://localhost, wd it stop serving
the IIS files.coz i fail to see the previous IIS pages... (a bit more
tweeking i guess shd help) -anoop

-----Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 9:54 PM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t


Yea, you have a mis-spelling in your uriworkermap.properties file.


BTW, use AJP13, not AJP12.

S, your uriworkermap.properties file should look like this:

-start file -
#
# Simple worker configuration file
#
default.worker=ajp13
# Mount the servlet context to the ajp12 worker
/servlet/*=$(default.worker)

# Mount the examples context to the ajp12 worker
/examples/*=$(default.worker)

# Advanced mount of the examples context
# /examples/*.jsp=$(default.worker)
# /examples/servlet/*=$(default.worker)
/*=$(default.worker)
- end file --


-Andrew


-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 7:44 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t


hi,

i am trying to configure IIS with Tomcat, i also get green arrow in
filter dialog. but in my isapi.log..i get this error message..

[jk_isapi_plugin.c (560)]: HttpExtensionProc error, could not get a
worker for name  apj12 and when i give  a request for
http://localhost/examples/jsp/dates/date.jsp
<http://localhost/examples/jsp/dates/date.jsp>  i get Cannot find server
error.

Can some body tell me where i am going wrong..

anoop

-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 11:21 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t



Hi Andrew,
 Here's the info:--

size of isapi_redirect.dll:   112 KB
exact file name : isapi_redirect.dll
Physical path to isapi_redirect.dll:
E:\jakarta-tomcat-3.2.4\bin\isapi_rediect.dll
Win 2000 Professional
Configuring on Tomcat 3.2.4 (i also hv Tomcat 4.0)

thanks,
-anoop

-Original Message-
From: Andrew Conrad [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Sunday, July 07, 2002 12:03 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomcat


Hey Anoop,

Maybe I can try and help you.  A couple of things we need to check
before we move on.

I need to know the size of your isapi_redirector.dll and the exact file
name (some use isapi_redirect.dll) and the physical path to the file on
your machine.

I also need to know the version of Tomcat and Windows.

Zip up your workers.properties file, uriworkermap.properties file and an
export of your Apache Foudation Registry key.  Attach it to your
response.

If you will post that information, I'll try and step you through it.  I
had a difficult time configuring Tomcat 4.03 with the isapi_redirect.dll
from Tomcat 3.3 and that may be the problem you are expreriencing.  I
had the best luck using the ZIP file included in the zip file located at
( http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
<http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm> ).


-Andrew

-Original Message-
From: Anoop Kumar V [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Saturday, July 06, 2002 11:45 AM
To: 'Tomcat Users List'
Subject: I fail to get green arrow for filter status.. IIS with Tomcat


hi,

i know this issue has been raised many, many times, but i cdnt get
anything from the archives. I am trying to configure IIS with Tomcat,
and am following the very popular link (
http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
<http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm> ).. but try as
many times as i could. i fail to get a green arrow in my filter status
window. I just cannot think abt where i had made a mistake. I hv
rechecked my registry setting many times over, also set the Filter DLLs,
but what cd hv gone wrong..i fail to see. i hv restarted IIS and also
rebooted my comp several times. One thing i did not do is register the
dll. none of the docs suggested that anyway..

Need help pls.

-anoop

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]
<

RE: Tyrex 1.0 and Getting a Connection Pool in 4.1.x

2002-07-08 Thread Andrew Conrad

Download tyrex. It's not included by default in 4.1.x.  Also, add a
factory parameter and reference the DataSource factory of Tyrex, since
it is no longer the default DataSource factory of Tomcat (DBCP is).

- Andrew

-Original Message-
From: Jakarta Tomcat Newsgroup
[mailto:@[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 7:55 PM
To: [EMAIL PROTECTED]
Subject: Tyrex 1.0 and Getting a Connection Pool in 4.1.x


Subject: Tyrex 1.0 and Getting a Connection Pool in 4.1.x
From: "Matt Raible" <[EMAIL PROTECTED]>
 ===
In Tomcat 4.0.x, I am able to get a database connection via JNDI using
the following code:

import tyrex.jdbc.xa.EnabledDataSource;

public Connection getPooledConnection() throws
ServiceLocatorException
{
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
ds = (EnabledDataSource) envCtx.lookup(Constants.JNDI_DB);
} catch (NamingException ex) {
logCat.error("NamingException: " + ex.getMessage());
throw new ServiceLocatorException(ex);
}

try {
con = ds.getConnection();
} catch (SQLException ex) {
logCat.error("SQLException: " + ex.getMessage());
throw new ServiceLocatorException(ex);
}
return con;
}

What do I need to change for this to work in 4.1.x?  Is there any way to
make the changes backward compatible with 4.0.x?

Thanks,

Matt



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: going crazy with DBCP

2002-07-08 Thread Andrew Conrad

Hey Clay, here's something I noticed.  With Tomcat 4.0.x the place to
put your jars for server wide access is in %CATALINA%\lib, not
%CATALINA%\common\lib.  (the common\lib is the new location for 4.1.x)

Also, double-check your URL in your  tag.  I'm not famaliar
with the tag for MySQL, but I thought that there should be a colon
between your Port and your Database.  


Finally, there is an error saying that DBTest
("/home/tomcat/jwsdp-1_/webapps/DBTest" ??) does not exist within your
webapps folder.  Your  tag has a docBase attribute that either
points to a relative path to the webapps folder (by default) or you need
to put in an absolute path.


Good luck.  Also, if you used Tomcat 4.1.x, (4.1.7 hint hint) all the
Commons Jars are included, so all you would have to do is add your MySQL
Jars.  Plus you can configure your Resources through the Admin GUI if
you really wanted too.



- Andrew

-Original Message-
From: Clay Graham [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 7:36 PM
To: '[EMAIL PROTECTED]'
Subject: going crazy with DBCP


I will pay someone to help me at this point, I am not rich but I know
when 
to admit when need help. I am basically at the end of my rope trying to
get 
dbcp to work, I have been over

http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2

about one hundred times, basically it's impossible to get the exact 
configuration that he speaks of, like some of the commons stuff I
couldn't 
find those versions, anyway it would really suprise me if those EXACT 
versions are the only ones that work.

I tried to install the RPM 4.0.4 version of tomcat and the webapps, but
I 
could not get the manager to work, so I went back to 4.0.2. Is there
such a 
difference between 4.0.2 and to point versions that it causes this stuff
to 
fail? Is the only way to get DBCP to work is to actually build tomcat
from 
source? Anyway I have done the best I can and spent two days
configuring, 
this where I am at:

tomcat 4.0.2 full
mysql 4.0.1-2

mm.mysql-2.0.14-bin.jar in $TOMCAT_HOME/common/lib

commons-collections-2.0 - commons-collections.jar in 
$TOMCAT_HOME/common/lib
commons-dbcp-20020707.tar.gz - commons-dbcp.jar in
$TOMCAT_HOME/common/lib commons-pool-20020707.tar.gz - commons-pool.jar
in $TOMCAT_HOME/common/lib

added to server.xml



  
  
  
  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  maxActive100
  maxIdle3
  maxWait100
  usernametomcat
 
passwordpassword 
 
 
driverClassNameorg.gjt.mm.mysql.Driver
 

  urljdbc:mysql://localhost:3306/test

  


when tomcat is started i get the following log errors:

2002-07-08 16:14:38 StandardContext[/DBTest]: Starting 2002-07-08
16:14:38 StandardContext[/DBTest]: Processing start(), current 
available=false
2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring default
Resources 2002-07-08 16:14:38 StandardContext[/DBTest]: Error
initializing resources: 
Document base /home/tomcat/jwsdp-1_/webapps/DBTest does not exist or is
not 
a readable directory
2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring non-privileged

default Loader
2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring default
Manager 2002-07-08 16:14:38 StandardContext[/DBTest]: Processing
standard container 
startup
2002-07-08 16:14:38 StandardContext[/DBTest]: Context startup failed due
to 
previous errors
2002-07-08 16:14:38 StandardContext[/DBTest]: Exception during cleanup 
after start failed
LifecycleException:  Container StandardContext[/DBTest] has not been 
started
at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3521)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3499
)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:739)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardServic

e.java:499)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2187)
at org.apache.catalina.startup.Catalina.start(Catalina.java:504)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav

a:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor

Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl

RE: Failed JDBC connection hangs Tomcat

2002-07-08 Thread Andrew Conrad

You probably did this but I'll ask anyways.

When you put the jars in the WEB-INF\lib folders, did you make sure to
delete the shared versions from
%CATALINA%\lib and %CATALINA%\shared\lib ?

Again it may be a problem with the JDBC Driver.  Check on the Oracle
forums to see if anyone is having similar problems.  Do you have the
same problem with two stand-alone applications?

-Andrew

-Original Message-
From: Bill D [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 4:08 PM
To: Tomcat Users List
Subject: RE: Failed JDBC connection hangs Tomcat


I attempted that, and webapp B still hangs up waiting
on webapp A.


--- Andrew Conrad <[EMAIL PROTECTED]> wrote:
> That sounds like a threading issue for the JDBC
> Driver, if you are using
> the same instance.  You could move the Oracle Driver
> to the WEB-INF\lib
> directory for each webapp.
> 
> - Andrew
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com

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

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




RE: Tomcat 4.0.3 and relative path includes.

2002-07-08 Thread Andrew Conrad

Little background real quick.  Tomcat allows you to define an
application Context in the server.xml

Such that, if you wanted a webapp called MyApp, you would set up a
Context in your server.xml file with the path "/MyApp" and the docBase
attribute pointing to the location of your web app.  In my testing, you
could use relative paths WITHIN your Context.  Meaning

If you had a file
/MyApp/testdir1/getRelative.jsp

You could include these files:

/myApp/inc.jsp (using "../inc.jsp" OR "/inc.jsp" )
/myApp/testdir1/inc.jsp  (using "inc.jsp" or "/testdir1/inc.jsp")
/myApp/testdir2/inc.jsp   (using  "../testdir2/inc.jsp" or
"/testdir2/inc.jsp" )


What you couldn't do was leave your Context and get something else
(like):

/inc.jsp
/YourApp/inc.jsp


According to the Servlet 2.3 specification, I do not believe this is a
bug. (SRV9.5)

"A web application exists as a structured hierarchy of directories. The
root of this
hierarchy serves as the document root for files that are part of the
application."


That seems to say that everything within the "MyApp" webapp should see
the directory as "/"  and you cannot go below root.

This seems to be consistent with the JSP 1.2 Documentation for
 and <%@ include %> tags
(JSP 2.10.3; JSP 4.4)  


-Andrew


-Original Message-
From: Paul landolt [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 1:39 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.3 and relative path includes.


1) I'm not precisely clear on your use of the Context (I am a tad new at
this). I would assume from your question that the proper response is
this: I am tryig to leave my current Context and go to a 'parent'
Context, not nessesarily the base context.

My test structure works out to the following:

docroot/index.html
docroot/testdir/index.jsp
docroot/testdir/inc.jsp
docroot/testdir/test2/index.jsp
docroot/testdir/test2/inc.jsp

The "not found" error occures when I try to include
docroot/testdir/inc.jsp (which is in the parent directory) from the file
docroot/testdir/test2/index.jsp

2) I have tried setting the CrossContext attribute to true as well as
false, both having no affect

3) Although the option still exists to create a subdirectory off of the
base context, I am trying to port an existing web app from Weblogic onto
Tomcat. I would like to avoid moving files around if possible.


What about the use of the  phrase rather than
<@include>? Are there substantial differences?

Andrew Conrad wrote:

> So you are trying to leave your current Context and go into the base 
> context?
>
> Have you set your Context attribute "CrossContext" to true?
>
> Have you tried making a subdirectory in your current Context, place 
> this file with the relative include in it, and tried to request the 
> file from the base of the current context to see if that has any 
> problems?
>
> - Andrew
>
> -Original Message-
> From: Paul landolt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.0.3 and relative path includes.
>
> Hello All. I am a New poster, so I hope I'm following proper protocol.
>
> I am having trouble with relative path @includes in Tomcat 4.0.3.  An 
> include from the same directory is fine, as is an include from a 
> sub-directory, like so:
>
> <%@include file="inc.jsp"%>
> <%@include file="test2/inc.jsp"%>
>
> However, trying to include from a higher directory generates a JSP 
> compile error. The JSP code:
>
> <%@include file="../inc.jsp"%>
>
> generates the following error message:
>
> org.apache.jasper.compiler.CompileException: 
> /testdir/test2/index.jsp(5,0) File "../inc.jsp" not found
>
> (There's lots more to the dump, but I didn't think it was pertinent. 
> And yes, the file IS there)
>
> So, here are my questions:
>
> 1) Is this a known issue? Have other people encountered this?
> 2) Is this a bug or a Spec feature? If a bug is there a bug report 
> pending on this?
> 3) Is there a viable workaround for this?
> 4) Is there a mechanism in JSP to determine the current directory (and

> therefor build up an absolute path)?
>
> Thanks
>
> ...Paul
>
> --
> To unsubscribe, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>


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


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




RE: Failed JDBC connection hangs Tomcat

2002-07-08 Thread Andrew Conrad

That sounds like a threading issue for the JDBC Driver, if you are using
the same instance.  You could move the Oracle Driver to the WEB-INF\lib
directory for each webapp.

- Andrew

-Original Message-
From: Bill D [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 2:05 PM
To: [EMAIL PROTECTED]
Subject: Failed JDBC connection hangs Tomcat


Let me first set up my situation.  On my server, I
have two webapps running, webapp A and webapp B.
Webapp A uses JDBC Thin driver to contact an Oracle
database at remote location 1.  Webapp B uses JDBC
Thin driver to contact an Oracle database at remote
location 2.

If the internet connection at remote location 1 goes
down, the attempt to connect to that database has the
expected result of a connection to that IP in the
SYN_SENT state in the netstat output on the server.

While this connection is in the SYN_SENT state, any
requests to webapp B that need to call the other
database at location 2 which is still up and running
are put on hold.  Visitors to that site are left
staring at a blank screen until the first connection
from webapp A to location 1 times out.

Seeing as how these are 2 seperate webapps connecting
to 2 seperate remote locations, I did not expect the
behavior to occur in a fashion where one will block
the other.  The behavior I expected was that they
would operate independantly of each other, and webapp
B would continue to work at a normal pace no matter
what is occurring with webapp A.  Am I looking at this
wrong?  Any help would be greatly appreciated.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Library problem (and JBuilder/Tomcat issue?)

2002-07-08 Thread Andrew Conrad

It sounds like your legacy application is using JNDI for connection
pooling(not really a legacy model).  I do not believe you are able to
define a JNDI Resource in your server.xml file and not have the file
located in your %CATALINA%\common\lib folder.

It really sounds like you are trying to include duplicate libraries (in
the WEB-INF\lib and %CATALINA%\common\lib) which isn't a good practice.

I think you just have configuration problem in your use of Jbuilder.
Try looking for a CLASSPATH setting in JBuilder, and add your libraries
to this CLASSPATH, so you don't have to include them in the WEB-INF\lib
folder.


- Andrew


-Original Message-
From: Iain Downie [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 12:35 PM
To: Tomcat Users List
Subject: Library problem (and JBuilder/Tomcat issue?)


Dear list,

I have inherited a legacy application, which uses DataSources defined
within the server.xml of Tomcat 4 connecting to a database. To get the
basic system working, I first create a .war in JBuilder6Pro on my PC,
then FTP the .war, and then use manager to deploy correctly on my remote
linux server.

Problem - there seems to be a bug in Tomcat 4 that won't allow any
libraries to be contained in the application WEB-INF when it is
deployed. To compile the application and classes etc. properly in
JBuilder, I need them. JBuilder will not access the database correctly
through Tomcat4 at runtime within JBuilder, but it does compile OK.
However, once deployed I have to manually delete them from WEB-INF
(ensuring they are all still present in the Tomcat/common/lib folder)
and explicitly refer to the datasource in the web.xml with
'java:comp/env/jdbc/myApplication' instead of just 'jdbc/myApplication'
- no other permutation seems to work.

However, given that JBuilder is supposed to be a powerful
testing/development environment, I want to get it set up so that I can
use Datasources to connect to Oracle. I know that there are many other
ways to do this (QuerySets etc. in JBuilder), and the tutorials show you
how, but I need to work around this legacy system which makes these
other ways impossible.

Has anyone ever encountered this similar problem, and might suggest a
good way of configuring the whole process?

Regards
Iain


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat 4.0.3 and relative path includes.

2002-07-08 Thread Andrew Conrad

So you are trying to leave your current Context and go into the base
context?  

Have you set your Context attribute "CrossContext" to true?

Have you tried making a subdirectory in your current Context, place this
file with the relative include in it, and tried to request the file from
the base of the current context to see if that has any problems?

- Andrew



-Original Message-
From: Paul landolt [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.3 and relative path includes.


Hello All. I am a New poster, so I hope I'm following proper protocol.

I am having trouble with relative path @includes in Tomcat 4.0.3.  An
include from the same directory is fine, as is an include from a
sub-directory, like so:

<%@include file="inc.jsp"%>
<%@include file="test2/inc.jsp"%>

However, trying to include from a higher directory generates a JSP
compile error. The JSP code:

<%@include file="../inc.jsp"%>

generates the following error message:

org.apache.jasper.compiler.CompileException:
/testdir/test2/index.jsp(5,0) File "../inc.jsp" not found

(There's lots more to the dump, but I didn't think it was pertinent. And
yes, the file IS there)

So, here are my questions:

1) Is this a known issue? Have other people encountered this?
2) Is this a bug or a Spec feature? If a bug is there a bug report
pending on this?
3) Is there a viable workaround for this?
4) Is there a mechanism in JSP to determine the current directory (and
therefor build up an absolute path)?

Thanks

...Paul



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: I fail to get green arrow for filter status.. IIS with Tomca t

2002-07-08 Thread Andrew Conrad

Yea, you have a mis-spelling in your uriworkermap.properties file.


BTW, use AJP13, not AJP12.

S, your uriworkermap.properties file should look like this:

-start file -
#
# Simple worker configuration file
#
default.worker=ajp13
# Mount the servlet context to the ajp12 worker
/servlet/*=$(default.worker)

# Mount the examples context to the ajp12 worker
/examples/*=$(default.worker)

# Advanced mount of the examples context
# /examples/*.jsp=$(default.worker)
# /examples/servlet/*=$(default.worker)
/*=$(default.worker)
- end file --


-Andrew


-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 7:44 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t


hi,

i am trying to configure IIS with Tomcat, i also get green arrow in
filter dialog. but in my isapi.log..i get this error message..

[jk_isapi_plugin.c (560)]: HttpExtensionProc error, could not get a
worker for name  apj12 and when i give  a request for
http://localhost/examples/jsp/dates/date.jsp
<http://localhost/examples/jsp/dates/date.jsp>  i get Cannot find server
error.

Can some body tell me where i am going wrong..

anoop

-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 11:21 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t



Hi Andrew,
 Here's the info:--

size of isapi_redirect.dll:   112 KB
exact file name : isapi_redirect.dll
Physical path to isapi_redirect.dll:
E:\jakarta-tomcat-3.2.4\bin\isapi_rediect.dll
Win 2000 Professional
Configuring on Tomcat 3.2.4 (i also hv Tomcat 4.0)

thanks,
-anoop

-----Original Message-
From: Andrew Conrad [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Sunday, July 07, 2002 12:03 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomcat


Hey Anoop,

Maybe I can try and help you.  A couple of things we need to check
before we move on.

I need to know the size of your isapi_redirector.dll and the exact file
name (some use isapi_redirect.dll) and the physical path to the file on
your machine.

I also need to know the version of Tomcat and Windows.

Zip up your workers.properties file, uriworkermap.properties file and an
export of your Apache Foudation Registry key.  Attach it to your
response.

If you will post that information, I'll try and step you through it.  I
had a difficult time configuring Tomcat 4.03 with the isapi_redirect.dll
from Tomcat 3.3 and that may be the problem you are expreriencing.  I
had the best luck using the ZIP file included in the zip file located at
( http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
<http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm> ).


-Andrew

-Original Message-
From: Anoop Kumar V [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Saturday, July 06, 2002 11:45 AM
To: 'Tomcat Users List'
Subject: I fail to get green arrow for filter status.. IIS with Tomcat


hi,

i know this issue has been raised many, many times, but i cdnt get
anything from the archives. I am trying to configure IIS with Tomcat,
and am following the very popular link (
http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
<http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm> ).. but try as
many times as i could. i fail to get a green arrow in my filter status
window. I just cannot think abt where i had made a mistake. I hv
rechecked my registry setting many times over, also set the Filter DLLs,
but what cd hv gone wrong..i fail to see. i hv restarted IIS and also
rebooted my comp several times. One thing i did not do is register the
dll. none of the docs suggested that anyway..

Need help pls.

-anoop

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




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




RE: Connection Pooling?

2002-07-08 Thread Andrew Conrad

The error msg makes me unsure of the problem you are having.  You could
either be having a JNDI problem or a DBCP problem.

To identify this, try adding this code
//*
Try {
Context invCtx = new InitialContext();
if(invCtx == null ) throw new Exception("Boom - No Initial
Context");
Context envCtx = (Context) invCtx.lookup("java:comp/env");
if(envCtx == null ) throw new Exception("Boom - No Environmental
Context");
DataSource ds = (DataSource) envCtx.lookup("jdbc/ospreyDb");
}
//*
If you do not get either thrown exception, it is probably a DBCP
problem.


BTW, DBCP is dependent on a few other jars being in place.

Make sure you have these libraries from the Jakarta-Commons project:

commons-pool.jar
commons-collections.jar
commons-logging-api.jar


And get the latest nightly build of commons-dbcp.jar
2002-07-02 or later (there were some recent fixes).


- Andrew

-Original Message-
From: Meichun Li [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 04, 2002 1:40 PM
To: Tomcat Users List
Subject: RE: Connection Pooling?


Thanks for the help!

I followed the steps in the howto page 
http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2  

I compiled my java test file and there is no error message. But when I
run 
it, I run it, I got the error message as below.Could anyone please give
me 
some hints? Thanks a lot!

javax.naming.NoInitialContextException: Need to specify class name in 
environment or system property, or as an applet parameter, or in an 
application resource file:  java.naming.factory.initial
at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:647)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:2
84)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.ibiblio.pool.DataSourceBean.main(DataSourceBean.java:24)

More detail below: 

1. My system already has these installed:
jakarta-tomcat-4.0.1
J2SE 1.3
mysql-3.23.33 
mm.mysql-2.0.7

2. I download Jakarta-Commons projects
DBCP Nightly Build 20020620. (The Nightly Build 20020523  couldn't
be 
found).
collections 2.0
pool1.0

I put the mm.mysql, DBCP, collection and pool jar files into 
CATALINA_HOME/common/lib

3.  I already have a DB called osprey in mySQL.

4. Then I configured the context in the server.xml:



   

   
  


 factory
 
org.apache.commons.dbcp.BasicDataSourceFactory


maxActive100

maxIdle3
 
maxWait100

user
 
password***
driverClassName
  org.gjt.mm.mysql.Driver
driverName
  
jdbc:mysql://trance.metalab.unc.edu:3306/osprey
  



5. I changed my WEB-INF/ web.xml by adding the  stuff.



http://java.sun.com/dtd/web-app_2_3.dtd";>



 
  
   /orataglib
  
  
   /WEB-INF/tlds/orataglib_1_0_3.tld
  
 


  jdbc/ospreyDb
  javax.sql.DataSource
  Container
  Shareable




6. I have a java file in WEB-INF/classes/org/ibiblio/pool call 
DataSourceBean.java

//Testing
package org.ibiblio.pool;

import java.lang.*;
import java.io.*;
import java.sql.*;
import javax.sql.*;
import java.util.*;
import javax.naming.*;
import javax.naming.spi.*;

public class DataSourceBean{
   public static void main (String arg[])
   {
   try{
  Context ctx = new InitialContext();
  if(ctx == null ) throw new Exception("Boom - No Context");
  DataSource ds 
=(DataSource)ctx.lookup("java:comp/env/jdbc/ospreyDb");

} catch(Exception e) {
e.printStackTrace();
}

   }//end of main

} // end of class

The error is from the line 
 DataSource ds =(DataSource)ctx.lookup("java:comp/env/jdbc/ospreyDb");





On Thu, 4 Jul 2002, Les Hughes wrote:

> I think I should set up a cron job to email this link out every 
> day
> 
> http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2
> 
> 
> 
> > -Original Message-
> > From: Meichun Li [mailto:[EMAIL PROTECTED]]
> > Sent: 04 July 2002 13:09
> > To: Tomcat Users List
> > Subject: Connection Pooling?
> > 
> > 
> > Hi,
> > I want to implement my application with Connection Pooling.
> > 
> > Tomcat offers supports of a connection pool for JDBC
> > connection, but there 
> > should be a prerequisite--JDBC driver should provide pooled 
> > datasource 
> > implementation. Is this right?
> > 
> > The JDBC driver for MySQL database I am using is
> > org.gjt.mm.mysql. The 
> > driver has the class MysqlDataSource that is a JNDI DataSource for
> > Mysql JDBC connection-- only the basic
> > implementation of javax.sql.Datasource but not connection pool 
> > implementation.
> > 
> > Is this means that I can't  use connection pool w

RE: I fail to get green arrow for filter status.. IIS with Tomca t

2002-07-08 Thread Andrew Conrad

I have never configured IIS on Tomcat 3.2.4.

If you want to do Tomcat 4.x,

try following this helpfile, and use the files available for download
there.  (isapi_redirector.dll is 239k I believe)

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

- Andrew



-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 1:51 AM
To: 'Tomcat Users List'
Subject: RE: I fail to get green arrow for filter status.. IIS with
Tomca t


Hi Andrew, 
 Here's the info:-- 
size of isapi_redirect.dll:   112 KB 
exact file name : isapi_redirect.dll 
Physical path to isapi_redirect.dll:
E:\jakarta-tomcat-3.2.4\bin\isapi_rediect.dll 
Win 2000 Professional 
Configuring on Tomcat 3.2.4 (i also hv Tomcat 4.0) 
thanks, 
-anoop 
-Original Message- 
From: Andrew Conrad [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 07, 2002 12:03 AM 
To: 'Tomcat Users List' 
Subject: RE: I fail to get green arrow for filter status.. IIS with 
Tomcat 


Hey Anoop, 
Maybe I can try and help you.  A couple of things we need to check 
before we move on. 
I need to know the size of your isapi_redirector.dll and the exact file 
name (some use isapi_redirect.dll) and the physical path to the file on 
your machine. 
I also need to know the version of Tomcat and Windows. 
Zip up your workers.properties file, uriworkermap.properties file and an

export of your Apache Foudation Registry key.  Attach it to your 
response. 
If you will post that information, I'll try and step you through it.  I 
had a difficult time configuring Tomcat 4.03 with the isapi_redirect.dll

from Tomcat 3.3 and that may be the problem you are expreriencing.  I 
had the best luck using the ZIP file included in the zip file located at

(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm). 


-Andrew 
-Original Message- 
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 06, 2002 11:45 AM 
To: 'Tomcat Users List' 
Subject: I fail to get green arrow for filter status.. IIS with Tomcat 


hi, 
i know this issue has been raised many, many times, but i cdnt get 
anything from the archives. I am trying to configure IIS with Tomcat, 
and am following the very popular link 
(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm).. but try as many

times as i could. i fail to get a green arrow in my filter status 
window. I just cannot think abt where i had made a mistake. I hv 
rechecked my registry setting many times over, also set the Filter DLLs,

but what cd hv gone wrong..i fail to see. i hv restarted IIS and also 
rebooted my comp several times. One thing i did not do is register the 
dll. none of the docs suggested that anyway.. 
Need help pls. 
-anoop 
-- 
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]> 
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]> 
 

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




RE: Apache plugin for Tomcat 4.0.3 for Windows 2000

2002-07-08 Thread Andrew Conrad

Jamal, 

A good place to look for information is in the archives of this mailing
list.

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

The following info was pulled from there:

help file for a Win2k, Apache2, Tomcat4 install

http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml

mod_jk.dll for Apache 2.0.39 and TC 4.0.

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

-Andrew


-Original Message-
From: Jamal Najmi [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 07, 2002 10:44 PM
To: Tomcat Users List
Subject: Re: Apache plugin for Tomcat 4.0.3 for Windows 2000



Do the mod_jk and ASP13 connector libraries usually come with the Tomcat
4.0.3 installation?  After reading the tomcat server.xml file I am under
the impression that mod_jk is the connector.  I am not sure where to get
it though. Thanks Jamal David Kavanagh <[EMAIL PROTECTED]> wrote: I just
used my mod_jk configuration from tomcat 3.2.x on my 4.0.4 install. If
you look in the server.xml for tomcat 4, you should find something about
an AJP13 connector. That is what links with mod_jk. Just make sure the
port numbers match (mine did).

David

Jamal Najmi wrote:

>Hi, I am new to Apache and Tomcat. I
>
> I have recently installed Apache HTTP Server 2.0.39 and Tomcat 4.0.3 
> on my Win 2000. I need to connect them so that Apache HTTP server 
> forwards servlet and JSP requests to Tomcat. I have been trying to 
> find the documentation on Apache plugin for Tomcat 4.0.3, but noluck. 
> I can find instruction and mod_jk for Tomcat 3.3.x but not for Tomcat 
> 4.0.3. I will really appreciate if someone can direct to where the 
> software and instructions are.
>
>Thanks
>
>Jamal
>
>
>
>-
>Do You Yahoo!?
>New! SBC Yahoo! Dial - 1st Month Free & unlimited access
>



--
To unsubscribe, e-mail:
For additional commands, e-mail:



-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >