AW: flush="false" not working?

2002-06-13 Thread Ralph Einfeldt

I see one additonal problem with the original aproach.

If you don't set the buffersize big enough to hold the complete result 
of a request and there several includes that produce parts of the 
result you don't have control which include will be the last one
to access the header before the header will be sent (resulting in
'response has already bean commited')

Regarding your answer:

  Wether reading the date from the database is a significant overhead 
  depends on the kind of the database query. If the time is mostly spent

  in the query and not in the get/release call, the connection pool
doesn't 
  help much.

  I see a further problem with this approach:

  To get the last modified date from the database the controlling 
  servlet needs the knowledge how to get it (It must know what the 
  includes do). This is a bad design (in my opinion). 
  I think it's better to design the includes in a way that they 
  store the last access time in common place (e.g a bean with request 
  scope) and the controlling servlet just reads this value. (This again
  will only work if the 

> -Ursprüngliche Nachricht-
> Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 14. Juni 2002 06:28
> An: Tomcat Users List
> Betreff: Re: flush="false" not working?
> 
> By the way, doing the extra read to get the last modified date in the
> controlling servlet or page is not a significant overhead 
> with properly designed use of a connection pool.
> 

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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread anthony.dodd

Should be using OracleConnectionCacheImpl

- Original Message -
From: "Kevin Andryc" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 12:35 PM
Subject: RE: Connection pooling doesn't work for me ... Help !!


> I apologize but I saw this post late. I had a problem with connection
> pooling using Oracle and JNDI. To get around it I had to do something like
> this:
>
> In conf\server.xml
>
>  type="oracle.jdbc.pool.OracleConnectionPoolDataSource" />
>
>   
>  user
>  user
>
> 
>password
>password
> 
> 
>driverClassName
>oracle.jdbc.driver.OracleDriver
>  
>  
>  driverName
>  jdbc:oracle:thin:@oracle.ds:1521:db
> 
>  
>
> In WEB-INF/web.xml
>
> 
>
>
>   OracleConnectionPool
>   aOracleConnectionPool
>   1
>
>
>
>   jdbc/mydb
>   oracle.jdbc.pool.OracleConnectionPoolDataSource
>   Container
>
>
> 
>
> OracleConnectionPool.java
>
> try {
> Context initCtx = new InitialContext();
> OracleConnectionPoolDataSource ocpds = new
> OracleConnectionPoolDataSource();
> ResourceBundle rb = ResourceBundle.getBundle("database");
> ocpds.setURL(rb.getString("url"));
> ocpds.setUser(rb.getString("user"));
> ocpds.setPassword(rb.getString("password"));
> initCtx.rebind("axesdb", ocpds);
> } catch (SQLException sqlex) {
> sqlex.printStackTrace();
> } catch (Exception ex) {
> ex.printStackTrace();
> }
>
> In your code:
>
> Context initCtx = new InitialContext();
> OracleConnectionPoolDataSource ocpds =
> (OracleConnectionPoolDataSource)initCtx.lookup("mydb");
> PooledConnection pooledConnection = ocpds.getPooledConnection();
> Connection connection = pooledConnection.getConnection();
> Statement statement = connection.createStatement();
> ResultSet resultSet = statement.executeQuery(sql);
>
> Good Luck!
>
> Kevin
>
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 03:12 PM
> To: Tomcat Users List
> Subject: Re: Connection pooling doesn't work for me ... Help !!
>
> Hi,
>
> well I got stuck with the same problem as the others:
> I cannot get a connect to the DB via JNDI.
>
> Just a simple idea: can the problem be the MySQL Driver?
> Is there maybe someone out there to give some hints how to look into this
> "blackbox" JNDI to see what is going wrong(Craig ?)
>
> Thanks for any help!
>
> Rainer
>
> - Original Message -
> From: "Neil Milne" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 13, 2002 2:56 PM
> Subject: Re: Connection pooling doesn't work for me ... Help !!
>
>
> > I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
> > In server.xml I have:
> >
> >  > type="javax.sql.ConnectionPoolDataSource"/>
> > 
> >  driverClassName
> > com.sybase.jdbc2.jdbc.SybDriver 
> >  user user
> > 
> >  initialPoolSize
5
> > 
> >
> > There's no need to specify a factory as Tomcat has a Datasource resource
> > factory built in.
> >
> > Note that I've used the ConnectionPoolDataSource class - not sure if
> > this makes a difference.
> >
> > HTH
> > Neil.
> >
> > - Original Message -
> > from: Martin Jacobson <[EMAIL PROTECTED]>
> > date: Thursday, June 13, 2002 1:40 pm
> > subject: Re: Connection pooling doesn't work for me ... Help !!
> >
> > > anthony.dodd wrote:
> > >
> > > > Hi
> > > >
> > > > I've posted a solution see "Generic DataSource Resource Factory
> > > > Available. JDBC Data Source" on the tomcat user maillist.
> > > >
> > > > Tony
> > > >
> > > Yes, but...
> > >
> > >
> > > Like many others on this list, I too have been unable to get the
> > > std
> > > JNDI DataSource thingy working; as an interim measure, I
> > > implemented a
> > > workaround (which does at least work!), but I refuse to be defeated!
> > >
> >
> >
> >
> > --
> > 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: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread anthony.dodd

Hi

I've posted a solution see "Generic DataSource Resource Factory
Available. JDBC Data Source" on the tomcat user maillist. See also "Updated.
Generic DataSource Resource Factory. Available. JDBC Data Source ", for an
update to the readme for Pool Oracle connections.

Tony

- Original Message -
From: "John McNally" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 2:25 PM
Subject: Re: Connection pooling doesn't work for me ... Help !!


>
> > >
> > > In your code:
> > >
> > > Context initCtx = new InitialContext();
> > > OracleConnectionPoolDataSource ocpds =
> > > (OracleConnectionPoolDataSource)initCtx.lookup("mydb");
> > > PooledConnection pooledConnection = ocpds.getPooledConnection();
> > > Connection connection = pooledConnection.getConnection();
> > > Statement statement = connection.createStatement();
> > > ResultSet resultSet = statement.executeQuery(sql);
> > >
>
> This is not the correct way to to use a ConnectionPoolDataSource.  An
> application should only interact with DataSource's.  I don't know oracle
> jdbc drivers very well, but I assume that they provide a DataSource
> implementation and if you do not care to have connection pooling you
> should use that.
>
> A ConnectionPoolDataSource does not provide connections that are pooled
> somehow internally.  It is meant to be used by application servers or
> other middle-ware software which might include connection pooling.  This
> middle-ware layer will present a DataSource front-end for applications
> to use and the ConnectionPoolDataSource will be used as its source of
> physical connections.
>
> 
> If you are looking for a connection pool that will use the
> ConnectionPoolDataSource provided by oracle, you can find one in
> jakarta-commons-sandbox/jdbc2pool.  It is the Jdbc2PoolDataSource class.
> 
>
> john mcnally
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread anthony.dodd

Hi

I've posted a solution see "Generic DataSource Resource Factory
Available. JDBC Data Source" on the tomcat user maillist. See also "Updated.
Generic DataSource Resource Factory. Available. JDBC Data Source ", for an
update to the readme for Pool Oracle connections.

Tony

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 12:12 PM
Subject: Re: Connection pooling doesn't work for me ... Help !!


> Hi,
>
> well I got stuck with the same problem as the others:
> I cannot get a connect to the DB via JNDI.
>
> Just a simple idea: can the problem be the MySQL Driver?
> Is there maybe someone out there to give some hints how to look into this
> "blackbox" JNDI to see what is going wrong(Craig ?)
>
> Thanks for any help!
>
> Rainer
>
> - Original Message -
> From: "Neil Milne" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 13, 2002 2:56 PM
> Subject: Re: Connection pooling doesn't work for me ... Help !!
>
>
> > I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
> > In server.xml I have:
> >
> >  > type="javax.sql.ConnectionPoolDataSource"/>
> > 
> >  driverClassName
> > com.sybase.jdbc2.jdbc.SybDriver 
> >  user user
> > 
> >  initialPoolSize
5
> > 
> >
> > There's no need to specify a factory as Tomcat has a Datasource resource
> > factory built in.
> >
> > Note that I've used the ConnectionPoolDataSource class - not sure if
> > this makes a difference.
> >
> > HTH
> > Neil.
> >
> > - Original Message -
> > from: Martin Jacobson <[EMAIL PROTECTED]>
> > date: Thursday, June 13, 2002 1:40 pm
> > subject: Re: Connection pooling doesn't work for me ... Help !!
> >
> > > anthony.dodd wrote:
> > >
> > > > Hi
> > > >
> > > > I've posted a solution see "Generic DataSource Resource Factory
> > > > Available. JDBC Data Source" on the tomcat user maillist.
> > > >
> > > > Tony
> > > >
> > > Yes, but...
> > >
> > >
> > > Like many others on this list, I too have been unable to get the
> > > std
> > > JNDI DataSource thingy working; as an interim measure, I
> > > implemented a
> > > workaround (which does at least work!), but I refuse to be defeated!
> > >
> >
> >
> >
> > --
> > 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: 




please help: multiuser installation

2002-06-13 Thread Neil Zanella


Hello,

I want all users on my system to serve servlets or JSPs from their own
~/public_html directories or somewhere under there. So how do I
configure tomcat for this?

Thanks,

Neil


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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread Nikola Milutinovic

> Yes, I'm not using that class in my code, I'm just using DataSource. I 
> was referring to the setup in server.xml.

Ahh - then OK.

I must say that JNDI bit is the most occult part of Tomcat.

Nix.



Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread Jacob Kjome

The definitive solution has been provided by Leslie Hughes 
<[EMAIL PROTECTED]> here:

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

That is for the following configuration:

Tomcat  4.0.3 LE JDK 1.4 Build
mySQL  4.0.1 alpha
mm.mysql 2.0.14

Jakarta-Commons projects
DBCP Nightly Build 20020523 (Note:  I'd grab the latest 4.1.3 beta 
stuff rather than the nightly here)
collections 2.0
pool   1.0

Install instructions and configuration is provided.


Just to note, I've been using this for Oracle8i with classes12.jar in 
TOMCAT_HOME/common/lib and Tomcat 4.1.3 with the configuration described in 
the link above and everything works just peachy.  In addition, I provided a 
snippet of code that I use to access the DataSource here:
http://marc.theaimsgroup.com/?l=tomcat-user&m=102230398708809&w=2

Really, truly, this works.  No need for fancy workarounds like 
ConnectionPoolDataSource or directly using Oracle's connecion pool.  Just 
note that the configuration provided may differ slightly from the docs.  An 
example is the docs refer to the "user" parameter.  Leslie used "username" 
and that works.

So, please, do yourselves a favor and ignore the docs for a bit on this 
one.  Copy the configuration line for line that Leslie has provided.  Then, 
of course, change the values to match your setup.  I *guarantee* this works 
and it is the standard way it is supposed to be done.  Maybe this 
DataSource thread can finally be put to rest?

Jake


At 06:39 AM 6/14/2002 +0100, you wrote:
>Nikola Milutinovic wrote:
>>>Note that I've used the ConnectionPoolDataSource class - not sure if
>>>this makes a difference.
>>Well, yes and no. The actual class should be CPDS, but your application 
>>shouldn't specifically ask for it, but for DataSource. The container will 
>>use CPDS and cast it to DS for your use.
>
>Yes, I'm not using that class in my code, I'm just using DataSource. I was 
>referring to the setup in server.xml.
>
>Neil
>
>--
>Neil Milne  Hippo IT Consultants Ltd
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



AW: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread Friedli Beat

I have the same problem as Sankaranarayanan.
I may give you more detailed Information about the problem IIS /
manager-application:

The authentication is correctly installed. Prove: When using
http://localhost:8080/manager the application works fine.
Only when using the adress
http://www.aWebSiteOnIISWithRederectionToTomcat.com/manager we get the
"access denied" message. 


mit freundlichen Grussen 

Galexis AG 
Beat Friedli . SW-Entwicklung (DDIS/ASW)
Grubenstrasse 11 . CH-3322 Schoenbuehl
tel: +41 (0)31 858 72 32 . fax: +41 (0)31 858 78 81




> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 13. Juni 2002 20:28
> An: Tomcat Users List
> Betreff: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
> this foroveraweek now - PL HELP
> 
> 
> 
> Oh ok. You mentioned in your first email that tomcat does 
> seem to be throw
> the
> challenge response box. Well as for the redirector, I don't 
> know much about
> it. I don't use IIS. Sorry. Also quoting your first email, 
> you said that
> you get "Access to the specified resource is denied" which 
> almost implies
> that the request is reaching Tomcat. But to confirm, check 
> the logs. Maybe
> the problem is with Tomcat and not with the redirector.
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> 
> on 06/13/2002
> 12:39:43 PM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: ATTN IIS-Tomcat redirector developers - I am 
> stuck with
>this foroveraweek now - PL HELP
> 
> No, basic authentication doesnt work in the redirector case 
> atleast with
> IIS - The challenge response box doesnt come up !
> 
> I am trying to solve this for over a week now and I hardly 
> see any response
> - has anybody got this working at all? - Can the redirector developers
> help, PLEASE?
> 
> --Ganesh
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:36 AM
> To: Tomcat Users List
> Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
> this foroveraweek now - PL HELP
> 
> 
> 
> Maybe I'm missed something in your email. Since you are getting the
> authentication dialog box, BASIC authentication works, right?
> If you don't know the username/password, then see the 
> tomcat-users.xml file
> in %CATALINA_HOME%/conf directory.
> 
> Add a line for the manager app:
> 
>...
>...
>   
> 
> 
> Hope this helps.
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> 
> on 06/13/2002
> 12:29:35 PM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: ATTN IIS-Tomcat redirector developers - I am 
> stuck with
>this for overaweek now - PL HELP
> 
> It is privileged as well as configured to use basic authentication!
> 
> It is the basic authentication that I cant get to work with 
> IIS and tomcat
> connected using the AJP redirector!
> 
> thanx
> Ganesh
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:26 AM
> To: Tomcat Users List
> Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
> this for overaweek now - PL HELP
> 
> 
> 
> If you have the "examples" working with IIS, the Manager context will
> behave the same way (except that it's is privileged) since it's a web
> application itself. See Context entry for manager in server.xml.
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> 
> on 06/13/2002
> 12:16:45 PM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: ATTN IIS-Tomcat redirector developers - I am 
> stuck with
>this for over aweek now - PL HELP
> 
> I hope I am not missing something - but the document you pointed me to
> doesnt talk about getting the manager app to work with 
> external webservers
> like IIS! Ofcourse I do have the manager app working with 
> tomcat in stand
> alone mode.
> 
> Thanx
> Ganesh
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:12 AM
> To: Tomcat Users List
> Subject: Re: ATTN IIS-Tomcat redirector developers - I am stuck with
> this for over aweek now - PL HELP
> 
> 
> 
> See http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> 
> on 06/13/2002
> 12:02:18 PM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:<[EMAIL PROTECTED]>
> cc:
> 
> Subject:ATTN IIS-Tomcat redirector developers - I am 
> stuck with this
>for over a week now - PL HELP
> 
> Getting the manager app to work with tomcat 4.0.3 and IIS 5.0
> 
> Hi All,
> 
> I

image caching

2002-06-13 Thread William Shulman


All-

For some reason, Tomcat seems to be preventing my browser from caching
images. Has anyone had this problem or know how to fix it?

thanks in advance

-will


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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread Neil Milne

Nikola Milutinovic wrote:
>>Note that I've used the ConnectionPoolDataSource class - not sure if
>>this makes a difference.
> 
> Well, yes and no. The actual class should be CPDS, but your application shouldn't 
>specifically ask for it, but for DataSource. The container will use CPDS and cast it 
>to DS for your use.
> 

Yes, I'm not using that class in my code, I'm just using DataSource. I 
was referring to the setup in server.xml.

Neil

-- 
Neil Milne  Hippo IT Consultants Ltd


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




Re: Debugging

2002-06-13 Thread Rick R


--- Ravishankar S <[EMAIL PROTECTED]> wrote:
> yes..i have also used Forte for Java Comm
> edition...v2 is ok...v 3 is a
> little too heavyhangs a lot...anyway with win98
> it's like
> asking a horse to tow a battletank:-)))
> 
> on linux it's a totally different story which i
> don't want to discuss.

Try Netbeans. I couldn't run Forte on Linux, but I
could get Netbeans to run. go figure.

Also, you mentioned using a DOS window for debugging.
If you right-click on the "MS-DOS" icon on the
top-left corner of your DOS window, you should get a
pull-down menu. Pick "Properties", and there is an
option which will allow you to increase the buffer
length. I am on a Linux machine right now, so I am
describing from memory. 

You can make the buffer several thousand lines.
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Frans Stofberg

Forte is a really good one.
It has Tomcat-3.something  integrated into it this helps with debugging
available for Windows and Linux

go to http://java.sun.com/ to download

> -Original Message-
> From: Segree, Gareth [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 8:29 PM
> To:   'Tomcat Users List'
> Subject:  RE: [offtopic] IDE for Tomcat?
> 
> what about jdeveloper from oracle, is it any good?
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 1:14 PM
> To: 'Tomcat Users List'
> Subject: RE: [offtopic] IDE for Tomcat?
> 
> 
> 
> Hi -
> 
> This was just posted earlier today: http://www.netbeans.org/  It looks
> very
> promising, but I haven't worked with it.
> 
> We're using Borland's JBuilder...it seems to be the most neutral of the
> available options.  MSFT's Java IDE isn't current anymore, as far as I
> know.
> http://www.borland.com/jbuilder/  I believe the personal edition is free,
> but it might not have all the features you are looking for.
> 
> There's also things like MetroWerks CodeWarrior:
> http://www.metrowerks.com/desktop/java/
> 
> HTH
> 
> John Turner
> [EMAIL PROTECTED]
> http://www.aas.com
> 
> 
> -Original Message-
> From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 2:05 PM
> To: Tomcat Users List
> Subject: [offtopic] IDE for Tomcat?
> 
> 
> 
> I was wondering what kind of IDEs people were using for Tomcat
> development?
> 
> Any recomendations for someone who's been developing on linux from a NT
> desktop via ssh? (vi has it's charms, but there's got to be a better way!)
> Anything to avoid?
> 
> Thanks
> 
> Cindy
> 
> --
> 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: 




Apache2 tomcat4 virtual hosts

2002-06-13 Thread Ahmed Alawy

I am moving from apache 1.3 + tomcat 2.3 to apache2
+tomcat 4 on linux 7.1 with ssl. I am defining virtual
hosts as firstHost, secondHost, etc. My configuration
works fine until I try to use some of my jsp
applications. My goal is to be able to type
http://firstHost/myJspapp/index.jsp and the same
application should NOT be accessible from
secondHost/myJspapp/index.jsp. I am defining virtual
hosts in http.con and also in server.xml. But for some
reason nothing is working as I want. 

I am emulating my 1.3 configuration which works fine.
I know someone out there has done this before and can
help.

Regards.


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread Nikola Milutinovic

> I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.

Several guys have reported that Sybase works OK, so does Oracle 9i. With PostgreSQL, I 
am constantly out of luck. Right now, I'm preoccupied with some other work, but I'll 
get to the bottom of the PSQL mistery.

> There's no need to specify a factory as Tomcat has a Datasource resource
> factory built in.

Yes, and it should work - but it doesn't. For most of us, DataSource is null and 
nothing apperas in the logs.

> Note that I've used the ConnectionPoolDataSource class - not sure if
> this makes a difference.

Well, yes and no. The actual class should be CPDS, but your application shouldn't 
specifically ask for it, but for DataSource. The container will use CPDS and cast it 
to DS for your use.

Nix.



RE: Debugging

2002-06-13 Thread Trenton D. Adams

No way, that's just too cool. LOL  Ok, I'm done with the sillyness now.
Enough spamming from me.

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]] 
Sent: June 13, 2002 10:32 AM
To: Tomcat Users List
Subject: RE: Debugging


yes it's free.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Trenton D. Adams [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 9:14 AM
> To: 'Tomcat Users List'
> Subject: RE: Debugging
>
>
> It's not free by any chance is it?
>
> -Original Message-
> From: Larry Meadors [mailto:[EMAIL PROTECTED]]
> Sent: June 13, 2002 6:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Debugging
>
>
> >if u have some fancy IDE...
>
> What!?! No, no, no.
>
> Go to www.netbeans.org, and download netbeans.
>
> It is free, has an excellent JPDA debugger, is free, works great with 
> cvs, is free, has some really excellent (free) plugins (xml editing, 
> database explorer, junit integration, etc...), and it is FREE!
>
> Larry
>
> PS:
> Um, did I mention that netbeans is free? It is. An open-source too. 
> ;-)
>
>
>
> --
> 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: flush="false" not working?

2002-06-13 Thread Craig R. McClanahan



On Thu, 13 Jun 2002, Jim Michael wrote:

> Date: Thu, 13 Jun 2002 12:52:37 -0500
> From: Jim Michael <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: flush="false" not working?
>
>
> >Or setting your headers in the outer page, which is where it should
> be
> >done IMHO.  Includes are for content only -- trying to mix in
> control-type
> >functionality like modifying headers is a poor design practice.
>
> That makes some dynamic sites very problematic... image that every page
> on a site is pulling its content from a mySQL database, but I want the
> pages to have some sort of "last modified" date that gets pulled from
> field within each record... now if I have to set headers in the outer
> page, I need to make a database call *just* to get the modified date,
> then the included JSP actually makes the database calls for the real
> data. I just doubled the connections made to the database, all because I
> can't pull that date field and modify the header from within the
> include.
>
>

>From the HTTP protocol perspective, the fact that this page was assembled
with includes is totally transparent -- there is one and only one
Last-Modified header that the browser (and any intervening caches) pay
attention to.  Your challenge is to determine what value to set this
*single* header to.  Even if you got your way with the "last one wins"
rule, that is a totally arbitrary decision that is very likely to be the
wrong answer from the client's perspective.  (For example, I would expect
the maximum last-modified value if I were using your app, rather than the
last-modified value that happened to be related to the last include, so
that you could send me back a "not modified" response if I pressed reload
no matter what order the includes were executed in.)

By the way, doing the extra read to get the last modified date in the
controlling servlet or page is not a significant overhead with properly
designed use of a connection pool.

Craig


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




Reloading a servlet

2002-06-13 Thread Vladimir

Does anyone know how I can reload a particular webapp/context from
another webapp/context. I know that one possibility is to send the
proper GET request to the manager servlet but that looks too much like a
hack. There must be a cleaner way to do this, like a method call of some
sort or something. I was looking though the Docs on the tomcat website
and noticed the optional privileged attribute in the context element and
the description mentions the manager sevrlvet, does anyone know what
that's all about?



RE: Tomcat performance issues

2002-06-13 Thread Subir Sengupta

Use a tool like Optimizeit from Borland or wrap your methods in
System.currentTimeMillis().  That will at least help you narrow down your
search.

Good luck,
Subir

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Tomcat performance issues


Hi All

I have designed some jsp pages which extract from a database. But the pages 
can take upto 5 minutes before they show the content. Is there anyway I can 
pinpoit where the bottle neck is. My current settings are APACHE +  MOD_jk +

Tomcat 4.03 (could the bottle neck be my Apache and tomcat servers being on 
separate machines?) . Are there any tools that I can use to test the 
performance of my servers?

Regards 
amran

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: web.xml how-to

2002-06-13 Thread Subir Sengupta

Check out Chapter 5 - Controlling Web Application behavior with web.xml from
Marty Halls book 'More Servlets and Javaserver Pages'.  It's online at
http://www.moreservlets.com/

Hope this helps,
Subir

-Original Message-
From: Eric Armstrong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 7:11 PM
To: Tomcat Users List
Subject: Re: web.xml how-to


Scott Seidl wrote:

> Can someone give me a good resource on how to create the web.xml file
> for a web application using servlets?
>
> Thanks
> Scott

See docs/tomcat/appdev/web.xml.txt

It's a prototype file with a lot of commentary.





--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




mod_jk.so for HP-UX 11

2002-06-13 Thread Ravi Verma

Dear Friends,

I am in desperate need for a binary version of mod_jk.so for HP-UX 11. If
you gone through this process, could you please share the file with me.

Regards.

Ravi Verma
916 705 3261


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




RE: Multiple Tomcats on one server

2002-06-13 Thread Chakradhar Tallam

use different ports for different tomcat instances.

-Original Message-
From: Nathan Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 June 2002 12:00 PM
To: Tomcat Users List
Subject: Multiple Tomcats on one server


Does anybody know if more than one tomcat can be installed on the same
server at any one time, specifically Tomcat 3.3.1.
 
Does it require just changing the environment variable for the dos window
tomcat is started in and changing the port numbers that tomcat will listen
for requests and sutdown signals on or is it more than that.
 
Any suggestions will be appreciated.
 
 
Nathan.




Re: web.xml how-to

2002-06-13 Thread Eric Armstrong

Scott Seidl wrote:

> Can someone give me a good resource on how to create the web.xml file
> for a web application using servlets?
>
> Thanks
> Scott

See docs/tomcat/appdev/web.xml.txt

It's a prototype file with a lot of commentary.





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




Multiple Tomcats on one server

2002-06-13 Thread Nathan Smith



    Does anybody know if more than one tomcat 
can be installed on the same server at any one time, specifically Tomcat 
3.3.1.
 
Does it require just changing the environment variable for the 
dos window tomcat is started in and changing the port numbers that tomcat 
will listen for requests and sutdown signals on or is it more than 
that.
 
Any suggestions will be appreciated.
 
 
Nathan.

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


Error while compiling mod_jk for HP-UX

2002-06-13 Thread Ravi Verma

Friends,

I am trying to compile mod_jk for HP-UX and I am getting the following
error:

Building mod_jk
gcc -DHPUX11 -DMOD_SSL=208103 -DMOD_PERL -DUSE_PERL_SSI -D_POSIX_C_SOURCE=19
9506
L -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-s
tric
t-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DUSE
_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O2 -DCHROOT -fPIC
 -DS
HARED_MODULE -I/opt/apache/include -I../common -I/opt/java1.3/include -I/opt
/jav
a1.3/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
In file included from /usr/include/netdb.h:69,
 from ../common/jk_global.h:84,
 from ../common/jk_logger.h:65,
 from ../common/jk_ajp12_worker.h:65,
 from ../common/jk_ajp12_worker.c:63:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
/usr/include/sys/socket.h:501: parse error before "__sendfile64"
/usr/include/sys/socket.h:501: parse error before "bsize_t"
/usr/include/sys/socket.h:502: parse error before "__sendpath64"
/usr/include/sys/socket.h:502: parse error before "bsize_t"
/usr/include/sys/socket.h:504: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:504: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:505: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:505: parse error before "bsize_t"
In file included from /usr/include/sys/mp.h:55,
 from /usr/include/sys/malloc.h:59,
 from /usr/include/net/netmp.h:53,
 from /usr/include/sys/socketvar.h:61,
 from ../common/jk_global.h:92,
 from ../common/jk_logger.h:65,
 from ../common/jk_ajp12_worker.h:65,
 from ../common/jk_ajp12_worker.c:63:
/usr/include/machine/sys/setjmp.h: At top level:
/usr/include/machine/sys/setjmp.h:45: redefinition of `struct label_t'
apxs:Break: Command failed with rc=1
Error with apxs


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




web.xml how-to

2002-06-13 Thread Scott Seidl

Can someone give me a good resource on how to create the web.xml file
for a web application using servlets?
 
Thanks
Scott



Re: Tomcat 4.0 Manager Install -- Brittle??

2002-06-13 Thread Eric Armstrong

Yes, validation may have been one issue. Although I made
no substantive changes of which I was aware, it was one of
the ways I could cause the install to hang, and crash tomcat
in the process.

However, the install task hung and crashed tomcat in two
other ways, as well:
   a) An exception was thrown when a file was not found
   as the servlet was inititializing.
   b) An XML parsing exception was thrown when the
   XML data file turned out to be ill-formed.
---
I had this:

 


instead of this:

]>

Remy Maucherat wrote:

> Eric Armstrong wrote:
> > There was another error I was seeing that went away,
> > for no apparent reason. But it may help you reproduce
> > the hang I was seeing.
> >
> > I was seeing an XML validation error on the web.xml file.
> > It showed the allowable DTD structure for the web-app
> > element, but careful inspection of that file multiple times
> > didn't turn up anything wrong with it. (It was the same file
> > I had used successfully with 3.1)
> >
> > I reformated a bit for readability, and after saving the file,
> > the error went away. Strange and mysterious for me,
> > but it may be another way to reproduce the install-hangs-
> > and-crashes-Tomcat problem.
>
> Tomcat 3.1 didn't do proper validation of the web.xml. Tomcat 4.x does,
> and this includes the element order.
> That may have been the problem.
>
> Remy
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 





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




Re: Does Jakarta have a connection pooling project?

2002-06-13 Thread John McNally

On Thu, 2002-06-13 at 16:53, [EMAIL PROTECTED] wrote:
> Is there a connection pooling project in Jakarta that I can use for
> database connection pooling? I've found the pool component under Jakarta
> Commons, but is that the only one?

There is DBCP in commons.  I'm not sure if that is what you meant by the
pool component as there is also a Pool component that is general object
pooling.  DBCP contains BasicDataSource, which iirc is the default
connection pool that ships with the latest catalina code.

There is also Jdbc2Pool located in jakarta-commons-sandbox.  It uses a
ConnectionPoolDataSource as its source of connections as opposed a
Driver as BasicDataSource does.  I would say it is better featured than
BasicDataSource, but I am the author.  It can be more complex to
configure.

john mcnally





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




Error found while connecting to mysql from JSP page deployedontomcat

2002-06-13 Thread Jayanta Halder

Hi,
 
I have installed tomcat on HP-UX box.I have deployed my web application
on tomcat container.I have copied mysql JDBC driver under common/lib
area.
 
While running the application i am getting following error 
 
Cannot load JDBC driver class 'null'
java.lang.NullPointerException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown
Source)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source)
at org.apache.jsp.index_0005fmysql$jsp._jspService(Unknown
Source)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unkno
wn Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unkno
wn Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)

 
Can u please tell me what is wrong ?

Thanks,

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




Error found while connecting to mysql from JSP page deployedon tomcat

2002-06-13 Thread Jayanta Halder

Hi,
 
I have installed tomcat on HP-UX box.I have deployed my web application
on tomcat container.I have copied mysql JDBC driver under common/lib
area.
 
While running the application i am getting following error 
 
Cannot load JDBC driver class 'null'
java.lang.NullPointerException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown
Source)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source)
at org.apache.jsp.index_0005fmysql$jsp._jspService(Unknown
Source)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unkno
wn Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unkno
wn Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)

 
Can u please tell me what is wrong ?

Thanks,

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




Re: Tomcat 4.0 Manager Install -- Brittle??

2002-06-13 Thread Remy Maucherat

Eric Armstrong wrote:
> There was another error I was seeing that went away,
> for no apparent reason. But it may help you reproduce
> the hang I was seeing.
> 
> I was seeing an XML validation error on the web.xml file.
> It showed the allowable DTD structure for the web-app
> element, but careful inspection of that file multiple times
> didn't turn up anything wrong with it. (It was the same file
> I had used successfully with 3.1)
> 
> I reformated a bit for readability, and after saving the file,
> the error went away. Strange and mysterious for me,
> but it may be another way to reproduce the install-hangs-
> and-crashes-Tomcat problem.

Tomcat 3.1 didn't do proper validation of the web.xml. Tomcat 4.x does, 
and this includes the element order.
That may have been the problem.

Remy



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




Re: Tomcat 4.0 Manager Install -- Brittle??

2002-06-13 Thread Eric Armstrong

There was another error I was seeing that went away,
for no apparent reason. But it may help you reproduce
the hang I was seeing.

I was seeing an XML validation error on the web.xml file.
It showed the allowable DTD structure for the web-app
element, but careful inspection of that file multiple times
didn't turn up anything wrong with it. (It was the same file
I had used successfully with 3.1)

I reformated a bit for readability, and after saving the file,
the error went away. Strange and mysterious for me,
but it may be another way to reproduce the install-hangs-
and-crashes-Tomcat problem.

Eric Armstrong wrote:

> Remy Maucherat wrote:
>
> > Eric Armstrong wrote:
> > > I've been using the ant install task to add a servlet
> > > to a Tomcat 4.0 container.
> > >
> > > Symptoms:
> > > 1) The install script hangs.
> > > 2) Tomcat crashes.
> > > 3) Catalina.out shows that the app threw an
> > > exception at startup.
> > >
> > > I understand having to fix my application, but its
> > > weird that I have to restart Tomcat after each
> > > failed attempt.
> > >
> > > Is that a known problem with the Manager?
> > >
> > > In 3.1, it was possible to update an app without having
> > > to restart Tomcat. Does that feature exist in 4.0?
> >
> > How do you reproduce that ?
>
> In my case, the app is throwing an exception because
> a file it was looking for wasn't found. (With the install
> task, I'm no longer copying to the webapps directory.
> That's a good thing, but I've had to figure out where
> files are relative to each other all over again.)
>
> The exception that gets thrown is:
> java.lang.Exception: No data file found:
>/longPathFromRoot/servlet/build/glossary/main-glossary.xml
>at pkg.XmlFile.init(Unknown Source)
>
> Where XmlFile is my DOM wrapper.
>
> The full dump from Catalina.out is reproduced below, in case
> it holds any clues.
> ==
> Initializing com.sun.intl.GlossaryServlet at Thu Jun 13 16:24:19 PDT 2002
>   Initializing XmlFile
> java.lang.Exception: No data file found:
> /java/pubs/dev/glossary/servlet/build/glossary/main-glossary.xml
>  at com.sun.intl.XmlFile.init(Unknown Source)
>  at com.sun.intl.XmlFile.(Unknown Source)
>  at com.sun.intl.DataModule.(Unknown Source)
>  at com.sun.intl.GlossaryServlet.init(Unknown Source)
>  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:919)
>  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3293)
>
>  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486)
>  at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
>  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>  at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
>
>  at org.apache.catalina.core.StandardHost.install(StandardHost.java:773)
>  at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:646)
>  at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:339)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>
>  at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
>
>  at
> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
>
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
>  at
> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
>
>  at
> 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:527)
>
>  at
> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
>
>  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
>  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>  at
> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
>
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatc

Does Jakarta have a connection pooling project?

2002-06-13 Thread JStanczak

Is there a connection pooling project in Jakarta that I can use for
database connection pooling? I've found the pool component under Jakarta
Commons, but is that the only one?


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



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




Re: Tomcat 4.0 Manager Install -- Brittle??

2002-06-13 Thread Eric Armstrong

Remy Maucherat wrote:

> Eric Armstrong wrote:
> > I've been using the ant install task to add a servlet
> > to a Tomcat 4.0 container.
> >
> > Symptoms:
> > 1) The install script hangs.
> > 2) Tomcat crashes.
> > 3) Catalina.out shows that the app threw an
> > exception at startup.
> >
> > I understand having to fix my application, but its
> > weird that I have to restart Tomcat after each
> > failed attempt.
> >
> > Is that a known problem with the Manager?
> >
> > In 3.1, it was possible to update an app without having
> > to restart Tomcat. Does that feature exist in 4.0?
>
> How do you reproduce that ?

In my case, the app is throwing an exception because
a file it was looking for wasn't found. (With the install
task, I'm no longer copying to the webapps directory.
That's a good thing, but I've had to figure out where
files are relative to each other all over again.)

The exception that gets thrown is:
java.lang.Exception: No data file found:
   /longPathFromRoot/servlet/build/glossary/main-glossary.xml
   at pkg.XmlFile.init(Unknown Source)

Where XmlFile is my DOM wrapper.

The full dump from Catalina.out is reproduced below, in case
it holds any clues.
==
Initializing com.sun.intl.GlossaryServlet at Thu Jun 13 16:24:19 PDT 2002
  Initializing XmlFile
java.lang.Exception: No data file found:
/java/pubs/dev/glossary/servlet/build/glossary/main-glossary.xml
 at com.sun.intl.XmlFile.init(Unknown Source)
 at com.sun.intl.XmlFile.(Unknown Source)
 at com.sun.intl.DataModule.(Unknown Source)
 at com.sun.intl.GlossaryServlet.init(Unknown Source)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:919)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3293)

 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)

 at org.apache.catalina.core.StandardHost.install(StandardHost.java:773)
 at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:646)
 at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:339)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:527)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)

 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)

 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
 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.invokeNext(StandardPipeline.java:646)

 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineV

Cant compile tomcat 4.0.3 as a module to apache 2.0

2002-06-13 Thread Segree, Gareth

I am also getting the following when trying to install tomcat as a module to
apache 2.36

Apache compile:

EAPI_MM=SYSTEM OPTIM="-O3 -mcpu=i686 -funroll-loops -fomit-frame-pointer"
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" ./configure --prefix=/home/httpd
--bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/apache
--includedir=/usr/include/apache --sysconfdir=/etc/httpd/conf
--localstatedir=/var --datadir=/home/httpd --mandir=/usr/share/man
--enable-so --with-apxs

cd /tmp/{tomcat_connector}/webapp
support/buildconf.sh

I get the following error:

--- Cannot run APR "buildconf" script
Don't a forget to download a copy of the APR sources, and to run
the buildconf script for it:
  # cd [path to APR sources]
  # ./buildconf
  # cd [path to WebApp sources]
Then remember to run ./configure script including the command line
option "--with-apr=[path to APR sources]"
--- Creating WebApp "configure" script
Creating configure ...
--- All done

I downloaded apr_20020612223008.tar.gz & untar
cd apr
./configure
make

cd /tmp/{tomcat_connector}/webapp
./configure --with-apxs=/usr/sbin/apxs
--with-tomcat=/usr/jakarta-tomcat-4.0/ --with-apr=/tmp/apr

but still getting error:

checking for Apache apxs... yes
sh: /usr/bin/envvars: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
configure: error: "/include" not found. Use --with-apr-include=DIR.

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




Tomcat performance issues

2002-06-13 Thread AMRAN121

Hi All

I have designed some jsp pages which extract from a database. But the pages 
can take upto 5 minutes before they show the content. Is there anyway I can 
pinpoit where the bottle neck is. My current settings are APACHE +  MOD_jk + 
Tomcat 4.03 (could the bottle neck be my Apache and tomcat servers being on 
separate machines?) . Are there any tools that I can use to test the 
performance of my servers?

Regards 
amran

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




Re: Tomcat 4.0 Manager Install -- Brittle??

2002-06-13 Thread Remy Maucherat

Eric Armstrong wrote:
> I've been using the ant install task to add a servlet
> to a Tomcat 4.0 container.
> 
> Symptoms:
> 1) The install script hangs.
> 2) Tomcat crashes.
> 3) Catalina.out shows that the app threw an
> exception at startup.
> 
> I understand having to fix my application, but its
> weird that I have to restart Tomcat after each
> failed attempt.
> 
> Is that a known problem with the Manager?
> 
> In 3.1, it was possible to update an app without having
> to restart Tomcat. Does that feature exist in 4.0?

How do you reproduce that ?

You try to install an app which would have an incorrect web.xml, for 
example ?

Remy


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




Tomcat 4.0 Manager Install -- Brittle??

2002-06-13 Thread Eric Armstrong

I've been using the ant install task to add a servlet
to a Tomcat 4.0 container.

Symptoms:
1) The install script hangs.
2) Tomcat crashes.
3) Catalina.out shows that the app threw an
exception at startup.

I understand having to fix my application, but its
weird that I have to restart Tomcat after each
failed attempt.

Is that a known problem with the Manager?

In 3.1, it was possible to update an app without having
to restart Tomcat. Does that feature exist in 4.0?



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




admin & manager webapps empty after building TC 4.1.3 from source

2002-06-13 Thread otisg

Hello,

I built Tomcat 4.1.3 from sources, but I cannot get various webapps
(e.g. admin and manager) to build. I do not get any errors when
building, but the directory where .class files are supposed to show up,
or at least I think they should, is empty:

# ls -al
server/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/
total 8
drwxr-xr-x 2 root root 4096 Jun 12 15:01 .
drwxr-xr-x 12 root root 4096 Jun 12 15:01 ..


I did go into 'webapps' directory under my TC 4.1.3 source tree, and I
did do 'ant dist' and 'and deploy' there, which did create a number of
.war files in 'dist' directory, for different webapps, but even those
.war files didn't contain .class files, except for examples.war, which
contained .jsp, .java, and .class files.

Am I missing an important step or are those webapps in TC 4.1.3 empty?
I really wanted to see what these 2 webapps, admin and manager, do! :(

Thanks,
Otis


___
Sign up for FREE iVillage newsletters  .
>From health and pregnancy to shopping and relationships, iVillage
has the scoop on what matters most to you. 



RE: Trouble Compiling mod_webapp

2002-06-13 Thread Frans Stofberg

try running:

chmod +x support/*.sh

before you run

/bin/sh ./support/buildconf.sh

> -Original Message-
> From: Bruce Wright [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:44 AM
> To:   [EMAIL PROTECTED]
> Subject:  Trouble Compiling mod_webapp
> 
> I have apache 2.0.36 compiled and installed on RedHat 7.3
> 
> I'm using the following two source archives:
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/webapp/release/
> v1.2.0/src/apr_APACHE_2_0_35.tar.gz
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jak
> arta-tomcat-connectors-4.0.2-01-src.tar.gz
> 
> Step 1.
> /bin/sh ./support/buildconf.sh
> output looks fine...
> Creating configure ...
> --- All done
> 
> Step 2.
> ./configure --with-apxs=/usr/local/apache2/bin/apxs
> output looks fine...till here...
> 
> APR location
> checking for APR sources...
> /root/riapps/Tomcat.4.0.3/jakarta-tomcat-connectors-4.0.2-01-src/webapp/ap
> r
> checking for APR libraries... no
> checking for APR includes... no
> <--Does this mean I copied the apr to the wrong location?-->
> 
> more OK output...
> All done. Now you can issue "make". Good luck.
> 
> Step 3.
> make
> output looks fine...till the end...
> /usr/local/apache2/build/libtool:
> /root/riapps/Tomcat.4.0.3/jakarta-tomcat-connectors-4.0.2-01-src/webapp/su
> pport/install.sh: /bin/sh: bad interpreter: Permission denied
> make[2]: ***
> [/root/riapps/Tomcat.4.0.3/jakarta-tomcat-connectors-4.0.2-01-src/webapp/l
> ib/libwebapp.a] Error 126
> make[2]: Leaving directory
> `/root/riapps/Tomcat.4.0.3/jakarta-tomcat-connectors-4.0.2-01-src/webapp/l
> ib'
> make[1]: Exiting directory "lib"
> make[1]: *** [template] Error 2
> make[1]: Leaving directory
> `/root/riapps/Tomcat.4.0.3/jakarta-tomcat-connectors-4.0.2-01-src/webapp'
> make: *** [lib-build] Error 2
> 
> I am running this as root...why do I get Permission denied???  Any
> thoughts???
> 
> Thanks in advance
> 

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




RE: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread John McNally

On Thu, 2002-06-13 at 14:31, Kevin Andryc wrote:
> I wasn't aware of that. Thank you. When I was looking to do Oracle pooling I
> did a search on Google groups and asked around in which 99% of the posts
> used this method.

I have heard that oracle's documentation is not very clear on the
usage.  But from the specification:

"Connection pooling doesn't impact application code.  The application
simply accesses a standard JDBC DataSource and uses it in the standard
way.  The DataSource implements connection pooling transparently to the
application using the PooledConnection and ConnectionPoolDataSource
facilities provided by a JDBC 2.0 driver."

 I never heard of the Jdbc2PoolDataSource.

It's currently in the commons-sandbox.  I am trying to move it into dbcp
where it might be a bit more visible, but it works as it is currently
packaged.

john mcnally



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




Tomcat 4 java.lang.OutOfMemoryError - More Info?

2002-06-13 Thread JStanczak


When you say CATALINA_OPTS, you are talking about in the catalina.sh that
starts the Tomcat server? Your talking about this line in the catalina.sh
file: JPDA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address
=$JPDA_ADDRESS,server=y,suspend=n"

Also, is the somewhere I can find documentation on these things?


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
  
  "Shapira, Yoav"  
  
  
  .com>cc: 
  
   Subject:  RE: Tomcat 4 
java.lang.OutOfMemoryError 
  06/13/02 03:06 PM
  
  Please respond to
  
  "Tomcat Users
  
  List"
  
   
  
   
  




Howdy,
Add -XmxNm to your CATALINA_OPTS, where N is a the maximum heap space in
MB.  The Java default is 64MB, and you're running out of memory.  See
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java-classic.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 13, 2002 4:01 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4 java.lang.OutOfMemoryError
>
>I've seen this question a lot in the email group, but I can't find the
>solution. Could someone point me to the fix for this problem. I can
send
>the whole log file if needed. It just shows exceptions being thrown and
at
>the bottom it says this:
>
>- Root Cause -
>java.lang.OutOfMemoryError
>
>
>
>Thank You,
>
>Justin A. Stanczak
>Web Manager
>Shake Learning Resource Center
>Vincennes University
>(812)888-5813
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


--
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: How do I implement favicon.ico using catalina?

2002-06-13 Thread Mike Millson

If you name it favicon.ico you don't have to worry about setting up links in
your html; the browser automatically finds it. Browsers that have the
capability to display favicon.ico automatically request this file when you
bookmark a page. You may have noticed requests in your log files for this
file. So, just put a copy of favicon.ico in each directory that you want to
have this feature enabled. In my experience, the best way to test your
favicon file is using Konqueror. IE is incredibly buggy about caching files
and displaying the icon. There is no rhyme or reason to what it does.
Favicon is horribly implemented and broken in IE from my experience.

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:39 PM
To: Tomcat Users List
Subject: RE: How do I implement favicon.ico using catalina?



yes,I think it should work as it's the browser that checks for it, it has
"nothing" to do with the webserver.

for somereason I feel like it should be favico.ico but not favicon.ico ..
can it be correct ?

hope it helps
-reynir



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 13. júní 2002 18:21
> To: Tomcat Users List
> Subject: How do I implement favicon.ico using catalina?
>
>
> I tried dropping a favicon.ico into my webapps/myapp directory to no
> avail... Is this supported?
>
> Dave
>
> --
> 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: 




newbie assistance with catalina.policy

2002-06-13 Thread David Boyer

I realize I can use a "-" or "*" at the end of my pathname. Can I use
one in the middle?

I have approximately 1,200 user webs that I'd like to enable for JSPs
with Jakarta Tomcat. I'd like each user to have write access to a
/webdata folder withing their web:

permission java.io.FilePermission
"d:\\Inetpub\\Wwwroot\\dev\\jtest\\students\\-\\webdata\\-", "read,
write";

The directory name between students and webdata will be different for
each student. How do I handle a varying directory name in the middle of
the path?

Any suggestion, or am I stuck creating a separate application context
in "server.xml" for each user?

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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread August Detlefsen

But how many of these IDEs work remotely? Those of us who can only make
ssh connections to our servers are stuck with emacs and ant...

I have tried IntelliJ IDEA and it works over WebDAV (mount the webapp
as a drive using WebDrive or similar), but then you have to deal with
WebDAV slowness...

-August



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread Remy Maucherat

Jacob Kjome wrote:
> Hello Remy,
> 
> Actually, I think I am using a 1.2.0 version, but it doesn't seem to
> be able to use the AJP 1.4 protocol.  Does the CoyoteConnector support
> the 1.3 protocol, or the just 1.4?

The connector was incorrectly labelled as supporting AJP 1.4 by me. 
Actually, it is supposed to support the same AJP 1.3.

Remy


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




Re[2]: TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread Jacob Kjome

Hello Remy,

Actually, I think I am using a 1.2.0 version, but it doesn't seem to
be able to use the AJP 1.4 protocol.  Does the CoyoteConnector support
the 1.3 protocol, or the just 1.4?

Jake

Thursday, June 13, 2002, 4:42:21 PM, you wrote:

RM> Jacob Kjome wrote:
>> Hello Remy,
>> 
>> Related to this, how do I use the Coyote JK2 connector?  Where are the
>> documentation and examples of the jk workers and conf
>> files...especially since, by default, the JK AJP 1.3 connector is
>> commented out in the default server.xml in 4.1.3beta.
>> 
>> 
>> 
>> 
>> Are there any pre-made binaries for Windows?  I don't have Visual C++
>> to compile with.

RM> ?
RM> It is enabled by default in my server.xml.

RM> For the native side, you can use any version of mod_jk, although I would 
RM> recommend upgrading to the mod_jk 1.2.0 as soon as binaries are available.

RM> Remy


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread Remy Maucherat

Jacob Kjome wrote:
> Hello Remy,
> 
> Related to this, how do I use the Coyote JK2 connector?  Where are the
> documentation and examples of the jk workers and conf
> files...especially since, by default, the JK AJP 1.3 connector is
> commented out in the default server.xml in 4.1.3beta.
> 
> 
> 
> 
> Are there any pre-made binaries for Windows?  I don't have Visual C++
> to compile with.

?
It is enabled by default in my server.xml.

For the native side, you can use any version of mod_jk, although I would 
recommend upgrading to the mod_jk 1.2.0 as soon as binaries are available.

Remy


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




Re[2]: TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread Jacob Kjome

Hello Remy,

Related to this, how do I use the Coyote JK2 connector?  Where are the
documentation and examples of the jk workers and conf
files...especially since, by default, the JK AJP 1.3 connector is
commented out in the default server.xml in 4.1.3beta.




Are there any pre-made binaries for Windows?  I don't have Visual C++
to compile with.

Jake

Thursday, June 13, 2002, 4:29:42 PM, you wrote:

RM> otisg wrote:
>> Hello, I just compiled Tomcat 4.1.3 from sources. When I start Tomcat I
>> get:
>> java.lang.ClassNotFoundException:org.apache.catalina.mbeans.ServerLifecy
>> cleListener This class exists in the binary release of Tomcat 4.1.3 in
>> catalina.jar, but not in my catalina.jar that was built from sources. As
>> a matter of fact my catalina.jar does not have any classes in
>> org.apache.catalina.mbeans package. Does anyone know what could have
>> happened and how to build a full/proper catalina.jar? Thanks, Otis 
>> 

RM> You have to remove the listener from server.xml, if the build was made 
RM> without JMX.

RM> Remy


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread otisg

Thanks!

I actually traced the missing classes, got mx4j, got bcel (for mx4j
compilation), got commons-modeler, put it all in server/lib, and then
things worked.

Otis



___
Sign up for FREE iVillage newsletters  .
>From health and pregnancy to shopping and relationships, iVillage
has the scoop on what matters most to you. <-Original Message->
> 
> From: Remy Maucherat
> Sent: 6/13/2002 5:32:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: TC 4.1.3 catalina.jar incomplete (built from source)
> 
> otisg wrote:
> Hello, I just compiled Tomcat 4.1.3 from sources. When I start Tomcat
I
> get:
>
java.lang.ClassNotFoundException:org.apache.catalina.mbeans.ServerLifecy
> cleListener This class exists in the binary release of Tomcat 4.1.3 in
> catalina.jar, but not in my catalina.jar that was built from sources.
As
> a matter of fact my catalina.jar does not have any classes in
> org.apache.catalina.mbeans package. Does anyone know what could have
> happened and how to build a full/proper catalina.jar? Thanks, Otis 
> 
> 
> You have to remove the listener from server.xml, if the build was made
> without JMX.
> 
> Remy
> 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 




RE: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread Kevin Andryc

I wasn't aware of that. Thank you. When I was looking to do Oracle pooling I
did a search on Google groups and asked around in which 99% of the posts
used this method. I never heard of the Jdbc2PoolDataSource.

Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]



-Original Message-
From: John McNally [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 05:25 PM
To: Tomcat Users List
Subject: Re: Connection pooling doesn't work for me ... Help !!


> >
> > In your code:
> >
> > Context initCtx = new InitialContext();
> > OracleConnectionPoolDataSource ocpds =
> > (OracleConnectionPoolDataSource)initCtx.lookup("mydb");
> > PooledConnection pooledConnection = ocpds.getPooledConnection();
> > Connection connection = pooledConnection.getConnection();
> > Statement statement = connection.createStatement();
> > ResultSet resultSet = statement.executeQuery(sql);
> >

This is not the correct way to to use a ConnectionPoolDataSource.  An
application should only interact with DataSource's.  I don't know oracle
jdbc drivers very well, but I assume that they provide a DataSource
implementation and if you do not care to have connection pooling you
should use that.

A ConnectionPoolDataSource does not provide connections that are pooled
somehow internally.  It is meant to be used by application servers or
other middle-ware software which might include connection pooling.  This
middle-ware layer will present a DataSource front-end for applications
to use and the ConnectionPoolDataSource will be used as its source of
physical connections.


If you are looking for a connection pool that will use the
ConnectionPoolDataSource provided by oracle, you can find one in
jakarta-commons-sandbox/jdbc2pool.  It is the Jdbc2PoolDataSource class.


john mcnally


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread Remy Maucherat

otisg wrote:
> Hello, I just compiled Tomcat 4.1.3 from sources. When I start Tomcat I
> get:
> java.lang.ClassNotFoundException:org.apache.catalina.mbeans.ServerLifecy
> cleListener This class exists in the binary release of Tomcat 4.1.3 in
> catalina.jar, but not in my catalina.jar that was built from sources. As
> a matter of fact my catalina.jar does not have any classes in
> org.apache.catalina.mbeans package. Does anyone know what could have
> happened and how to build a full/proper catalina.jar? Thanks, Otis 
> 

You have to remove the listener from server.xml, if the build was made 
without JMX.

Remy


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




Silent Failures

2002-06-13 Thread Eric Armstrong

1. When attempting to use the startup.sh script, what appears
 to be a "silent failure" occurs that turns out to be simply
 an inordinately long startup time.

The script finishes right away, but:.
  * There are no indications of progress as the startup
  proceeds.
  * There is no indication of success when it completes.
  * It doesn't tell the name of the log file where errors
 might be found.

2. Similarly, when accessing tools like the manager and
admin tools, there is a long, long wait that has made
me think the server must be down, with nothing that
says, "Wait...", or any kind of progress indicator.

3. Finally, when attempting to install an application using
a Manager task in an ant build, the script simply
hangs. After about 10 minutes, I decided it must be
hung, anyway. Again, there was no inidcation of what
log file (if any) I might inspect to find out what is
happening. (I believe I have found it now, but when
first starting out, the accumulated crescendo of silence
from these issues was deafening.)








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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread John McNally


> >
> > In your code:
> >
> > Context initCtx = new InitialContext();
> > OracleConnectionPoolDataSource ocpds =
> > (OracleConnectionPoolDataSource)initCtx.lookup("mydb");
> > PooledConnection pooledConnection = ocpds.getPooledConnection();
> > Connection connection = pooledConnection.getConnection();
> > Statement statement = connection.createStatement();
> > ResultSet resultSet = statement.executeQuery(sql);
> >

This is not the correct way to to use a ConnectionPoolDataSource.  An
application should only interact with DataSource's.  I don't know oracle
jdbc drivers very well, but I assume that they provide a DataSource
implementation and if you do not care to have connection pooling you
should use that.

A ConnectionPoolDataSource does not provide connections that are pooled
somehow internally.  It is meant to be used by application servers or
other middle-ware software which might include connection pooling.  This
middle-ware layer will present a DataSource front-end for applications
to use and the ConnectionPoolDataSource will be used as its source of
physical connections.  


If you are looking for a connection pool that will use the
ConnectionPoolDataSource provided by oracle, you can find one in
jakarta-commons-sandbox/jdbc2pool.  It is the Jdbc2PoolDataSource class.


john mcnally


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




Tomcat behind a NAT box

2002-06-13 Thread Matthew Oatham

I am running Tomcat on a machine with multiple IP addresses, not only that
but the machine is behind a NAT box each internal IP address has a 1:1
mapping with an external address.

When I start tomcat I put the internal IP address I want the server to start
on in server.xml e.g.



However when I start Tomcat I get the following output in the logs:

2002-06-13 16:55:25 HttpConnector Opening server socket on host IP address
172.16.54.180
2002-06-13 16:55:26 HttpConnector No host IP address matching 172.16.54.180,
opening on all addresses

Has anyone tried this configuration? Does Tomcat do some kind of lookup on
startup? Should I be using the internal or external IP address?

Thanks.

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




Ultradev (Windows) -> Apache/Tomcat (Linux)

2002-06-13 Thread Alex Short

Do any of you have developers using Ultradev and use Apache/Tomcat as your 
development and production boxes?

In order to see dynamic content, i thought of a sandbox for each user on a 
development box running apache/tomcat on linux.

The problem is, when they are using Ultradev they will be using \'s 
because its a Windows system, and also using different document roots.  

I wonder if anyone has worked out a nice way for developers to code on 
Windows, see the changes live in a preview window, save to a samba mounted 
drive share of their sandbox, then to migrate all to a development version 
via cvs (cvs client running on the linux box within the sandobx) then out 
to a staging box, then production.

I think the idea might work, just wondering if anyone has gone down this 
path.

Thanks

Alex


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




RE: Apache SSLCERT + Tomcat 3.3 + keytool

2002-06-13 Thread Keith Wannamaker

See http://www.comu.de/docs/tomcat_ssl.htm

Keith

| -Original Message-
| From: Power-Netz (Schwarz) [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, June 13, 2002 12:09 PM
| To: tomcat liste
| Subject: Apache SSLCERT + Tomcat 3.3 + keytool
|
|
| Hi,
|
| i have a THAWTE standart CERTIFICATION  which thawte says it's X.509v3 ,
| but the keytool does not allow to import the corresponding RSA key,
|  with / without  the password, build as .pem file.
| The same .pem works great with the apache.
|
| How to import this RSA Key with keytool?
|
|
|
|
| Ihr Support-Team
|
| >>> POWER-NETZ®
| Full-Service-Provider <<<
|
| Online-Support:
| Support: 0190 - 15 11 15 (EUR 0,62/Min)
| http://Support.Power-Netz.de (kostenlos)
| http://Support.Power-Netz.com (kostenlos)
|
| Vertrieb Tel:  01805 - 57 35 57 (EUR 0,12/Min.)
| Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.)
|
| Power-Netz
| Am Plan 1
| 37581 Bad Gandersheim
|
| http://www.Power-Netz.de
| mailto:[EMAIL PROTECTED]
|
|
| +=+
| <--I N F O   C E N T E R-->
| + Senden Sie eine leere e-mail an:
| + Providerwechsel: mailto:[EMAIL PROTECTED]
| + Daten/Preise Webspace: mailto:[EMAIL PROTECTED]
| + Reseller-Programm: mailto:[EMAIL PROTECTED]
| + Dedizierte Server: mailto:[EMAIL PROTECTED]
| + Adult/Erotikserver: mailto:[EMAIL PROTECTED]
| + Domainpreise: mailto:[EMAIL PROTECTED]
| + Domain-Nameserver: mailto:[EMAIL PROTECTED]
| + SSL-Zertifikate: mailto:[EMAIL PROTECTED]
| + Geschaeftsbedingungen: mailto:[EMAIL PROTECTED]
| + =+
|
|
| --
| To unsubscribe, e-mail:   
| For additional commands, e-mail: 
|
|


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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread info

Thanks for your answer. That looks rather unconventional ;)

Rainer



> I apologize but I saw this post late. I had a problem with connection
> pooling using Oracle and JNDI. To get around it I had to do something like
> this:
>
> In conf\server.xml
>
>  type="oracle.jdbc.pool.OracleConnectionPoolDataSource" />
>
>   
>  user
>  user
>
> 
>password
>password
> 
> 
>driverClassName
>oracle.jdbc.driver.OracleDriver
>  
>  
>  driverName
>  jdbc:oracle:thin:@oracle.ds:1521:db
> 
>  
>
> In WEB-INF/web.xml
>
> 
>
>
>   OracleConnectionPool
>   aOracleConnectionPool
>   1
>
>
>
>   jdbc/mydb
>   oracle.jdbc.pool.OracleConnectionPoolDataSource
>   Container
>
>
> 
>
> OracleConnectionPool.java
>
> try {
> Context initCtx = new InitialContext();
> OracleConnectionPoolDataSource ocpds = new
> OracleConnectionPoolDataSource();
> ResourceBundle rb = ResourceBundle.getBundle("database");
> ocpds.setURL(rb.getString("url"));
> ocpds.setUser(rb.getString("user"));
> ocpds.setPassword(rb.getString("password"));
> initCtx.rebind("axesdb", ocpds);
> } catch (SQLException sqlex) {
> sqlex.printStackTrace();
> } catch (Exception ex) {
> ex.printStackTrace();
> }
>
> In your code:
>
> Context initCtx = new InitialContext();
> OracleConnectionPoolDataSource ocpds =
> (OracleConnectionPoolDataSource)initCtx.lookup("mydb");
> PooledConnection pooledConnection = ocpds.getPooledConnection();
> Connection connection = pooledConnection.getConnection();
> Statement statement = connection.createStatement();
> ResultSet resultSet = statement.executeQuery(sql);
>
> Good Luck!
>
> Kevin
>
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 03:12 PM
> To: Tomcat Users List
> Subject: Re: Connection pooling doesn't work for me ... Help !!
>
> Hi,
>
> well I got stuck with the same problem as the others:
> I cannot get a connect to the DB via JNDI.
>
> Just a simple idea: can the problem be the MySQL Driver?
> Is there maybe someone out there to give some hints how to look into this
> "blackbox" JNDI to see what is going wrong(Craig ?)
>
> Thanks for any help!
>
> Rainer
>
> - Original Message -
> From: "Neil Milne" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 13, 2002 2:56 PM
> Subject: Re: Connection pooling doesn't work for me ... Help !!
>
>
> > I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
> > In server.xml I have:
> >
> >  > type="javax.sql.ConnectionPoolDataSource"/>
> > 
> >  driverClassName
> > com.sybase.jdbc2.jdbc.SybDriver 
> >  user user
> > 
> >  initialPoolSize
5
> > 
> >
> > There's no need to specify a factory as Tomcat has a Datasource resource
> > factory built in.
> >
> > Note that I've used the ConnectionPoolDataSource class - not sure if
> > this makes a difference.
> >
> > HTH
> > Neil.
> >
> > - Original Message -
> > from: Martin Jacobson <[EMAIL PROTECTED]>
> > date: Thursday, June 13, 2002 1:40 pm
> > subject: Re: Connection pooling doesn't work for me ... Help !!
> >
> > > anthony.dodd wrote:
> > >
> > > > Hi
> > > >
> > > > I've posted a solution see "Generic DataSource Resource Factory
> > > > Available. JDBC Data Source" on the tomcat user maillist.
> > > >
> > > > Tony
> > > >
> > > Yes, but...
> > >
> > >
> > > Like many others on this list, I too have been unable to get the
> > > std
> > > JNDI DataSource thingy working; as an interim measure, I
> > > implemented a
> > > workaround (which does at least work!), but I refuse to be defeated!
> > >
> >
> >
> >
> > --
> > 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: [offtopic] IDE for Tomcat?

2002-06-13 Thread Sexton, George

We have been using Visual SlickEdit on Linux for a few years now and we
really like it. The new version adds support for an integrated Java
Debugger. It's very nice, and very reasonably priced at $300.00. It has
syntax highlight, "IntelliSense", source code control integration, and is
customizable in the extreme. It's worth looking at.

http://www.slickedit.com/



-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
Sent: 13 June, 2002 12:05 PM
To: Tomcat Users List
Subject: [offtopic] IDE for Tomcat?



I was wondering what kind of IDEs people were using for Tomcat development?

Any recomendations for someone who's been developing on linux from a NT
desktop via ssh? (vi has it's charms, but there's got to be a better way!)
Anything to avoid?

Thanks

Cindy

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




JSP post processing

2002-06-13 Thread Jason Novotny


Maybe I'm asking a really dumb question or this is the holy grail with 
JSP, but how can I capture the output of a JSP page for post-processing 
e.g. serializing or including in a composition of compiled JSP output to 
render a page. So I call a servlet that forwards to 5 JSP pages and then 
the output is patched together to render a final page for display on the 
browser in a pipeline fashion.

Thanks, jason


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




Update: Exception Handling

2002-06-13 Thread Subir Sengupta

I started looking at the stacktrace and reading the code.  It seems that
ErrorReportValve class is responsible for trapping throwable and creating
the report that is sent to the browser.  So I made a copy and renamed it to
WMErrorReportValve and attached a Valve element at the Host level.  This
seemed to work since now when I throw an exception I see WMErrorReportVavle
in the stacktrace and not ErrorReportValve.

Can anyone confirm that this is the correct way to handle exceptions, since
this valve isn't documented anywhere.

Thanks,
Subir

-Original Message-
From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:49 PM
To: '[EMAIL PROTECTED]'
Subject: Exception Handling


Hi,

I'd like to be able to trap all exceptions and show users a friendly error
page.  I know I can specify which exception to trap in the web.xml file and
what error pages to display. But it seems that will only trap exceptions
that I specify and let any other exceptions through!  So that doesn't seem
like a very practical way to deal with exceptions.

When an exception is thrown, Tomcat prints the stacktrace to the browser.
Is there a way to hook into this mechanism and have Tomcat display an error
page instead.  Also I'd like to have an email with the exception sent to me.

There may already be a way to do this that I don't know about.  Any pointers
are appreciated.

I'm using Tomcat 4.0.3 on linux.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Help! Tomcat 4/IIS Error! Everything seems set up fine.

2002-06-13 Thread Matt Fury

Hi. I've looked closely again at Tomcat 4/IIS and
can't find any answers. I've followed the posted
directions perfectly and no dice. I set up Tomcat
3.3.1 in 2 minutes with IIS no problems but 4 is
giving me a headache!

Basically when I hit http://localhost/examples or any
other dirs that I set up in uri*.properties I get this
error:

java.lang.NoSuchMethodError:
org.apache.tomcat.util.http.BaseRequest.authorizati
on()Lorg/apache/tomcat/util/buf/MessageBytes;
at
org.apache.ajp.tomcat4.Ajp13Request.setAjpRequest(Ajp13Request.java:1
21)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:417
)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)

Any idea what that means? I can't track down why it'd
throw that particular error.

-Matt

=

int myName() {
  cout << "-Matt Fury \n";
  return 0;
}


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Charles N. Harvey III

IBM has a new editor called Eclipse.  I haven't used it yet but a coworker
has.
It has a stop and start button for tomcat in it.  And when you start a new
project
it asks you if you want to start a new "Project" or "Tomcat Project".  And
when
you choose the tomcat option it makes an entry in the server.xml for your
webapp.
Pretty nifty stuff actually.  I am a big netbeans fan but this may be a bit
better.  Gotta hand it to IBM sometimes.  And they give it away for free
too.

Charlie

> -Original Message-
> From: Timothy Fisher [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 4:00 PM
> To: Tomcat Users List
> Subject: RE: [offtopic] IDE for Tomcat?
>
>
> I like the combination of ANT with JEdit
> (www.jedit.org).   JEdit is an open source code editor
> written in Java with an extensible framework.  There
> are many great plugins which can be used to make use
> of it as a Java IDE environment.
>
> Timothy Fisher
>
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: Tomcat 4 java.lang.OutOfMemoryError

2002-06-13 Thread Shapira, Yoav

Howdy,
Add -XmxNm to your CATALINA_OPTS, where N is a the maximum heap space in
MB.  The Java default is 64MB, and you're running out of memory.  See
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java-classic.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 13, 2002 4:01 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4 java.lang.OutOfMemoryError
>
>I've seen this question a lot in the email group, but I can't find the
>solution. Could someone point me to the fix for this problem. I can
send
>the whole log file if needed. It just shows exceptions being thrown and
at
>the bottom it says this:
>
>- Root Cause -
>java.lang.OutOfMemoryError
>
>
>
>Thank You,
>
>Justin A. Stanczak
>Web Manager
>Shake Learning Resource Center
>Vincennes University
>(812)888-5813
>
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




Tomcat 4 java.lang.OutOfMemoryError

2002-06-13 Thread JStanczak

I've seen this question a lot in the email group, but I can't find the
solution. Could someone point me to the fix for this problem. I can send
the whole log file if needed. It just shows exceptions being thrown and at
the bottom it says this:

- Root Cause -
java.lang.OutOfMemoryError



Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Timothy Fisher

I like the combination of ANT with JEdit
(www.jedit.org).   JEdit is an open source code editor
written in Java with an extensible framework.  There
are many great plugins which can be used to make use
of it as a Java IDE environment.

Timothy Fisher

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: How do I implement favicon.ico using catalina?

2002-06-13 Thread Neil Zanella


The rendering of a favicon is dependent on your browser supporting it.
Currently as far as I know only MS IE, KDE konqueror, and the latest
beta version of netscape 7 support the rendering of a favicon. Place
the favicon.ico in some place such as images/favicon.ico and then
place the following in your html code:



On Thu, 13 Jun 2002, Reynir Hübner wrote:

> 
> yes,I think it should work as it's the browser that checks for it, it has "nothing" 
>to do with the webserver.
> 
> for somereason I feel like it should be favico.ico but not favicon.ico .. can it be 
>correct ?
> 
> hope it helps
> -reynir
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 13. júní 2002 18:21
> > To: Tomcat Users List
> > Subject: How do I implement favicon.ico using catalina?
> > 
> > 
> > I tried dropping a favicon.ico into my webapps/myapp directory to no
> > avail... Is this supported?
> > 
> > Dave
> > 
> > --
> > 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: 




TC 4.1.3 catalina.jar incomplete (built from source)

2002-06-13 Thread otisg

Hello, I just compiled Tomcat 4.1.3 from sources. When I start Tomcat I
get:
java.lang.ClassNotFoundException:org.apache.catalina.mbeans.ServerLifecy
cleListener This class exists in the binary release of Tomcat 4.1.3 in
catalina.jar, but not in my catalina.jar that was built from sources. As
a matter of fact my catalina.jar does not have any classes in
org.apache.catalina.mbeans package. Does anyone know what could have
happened and how to build a full/proper catalina.jar? Thanks, Otis 



RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread rsequeira


Can't really tell what the problem is, but apparently the warp connector
dropped the connection. I don't think this has anything to do BASIC or FORM
based authentication. But I can't say for sure. Sorry can't be of much help
here.

RS





[EMAIL PROTECTED] on 06/13/2002 01:48:15 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this   foroveraweek now - PL HELP

Hi,

I have similar problem, although not using BASIC but FORM.

I took your advice and look into the apache.log and this is what I found.
Could you explain what I see and what should I look at next.


2002-06-13 13:10:58 [org.apache.catalina.connector.warp.WarpConnector]
Error
accepting requests
java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
 at java.net.ServerSocket.implAccept(ServerSocket.java:241)
 at java.net.ServerSocket.accept(ServerSocket.java:222)
 at
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)

 at java.lang.Thread.run(Thread.java:484)
***

Thanks very much.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:28 PM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with this
foroveraweek now - PL HELP


Oh ok. You mentioned in your first email that tomcat does seem to be throw
the
challenge response box. Well as for the redirector, I don't know much about
it. I don't use IIS. Sorry. Also quoting your first email, you said that
you get "Access to the specified resource is denied" which almost implies
that the request is reaching Tomcat. But to confirm, check the logs. Maybe
the problem is with Tomcat and not with the redirector.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:39:43 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this foroveraweek now - PL HELP

No, basic authentication doesnt work in the redirector case atleast with
IIS - The challenge response box doesnt come up !

I am trying to solve this for over a week now and I hardly see any response
- has anybody got this working at all? - Can the redirector developers
help, PLEASE?

--Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this foroveraweek now - PL HELP



Maybe I'm missed something in your email. Since you are getting the
authentication dialog box, BASIC authentication works, right?
If you don't know the username/password, then see the tomcat-users.xml file
in %CATALINA_HOME%/conf directory.

Add a line for the manager app:

   ...
   ...
  


Hope this helps.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:29:35 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for overaweek now - PL HELP

It is privileged as well as configured to use basic authentication!

It is the basic authentication that I cant get to work with IIS and tomcat
connected using the AJP redirector!

thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:26 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this for overaweek now - PL HELP



If you have the "examples" working with IIS, the Manager context will
behave the same way (except that it's is privileged) since it's a web
application itself. See Context entry for manager in server.xml.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:16:45 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for over aweek now - PL HELP

I hope I am not missing something - but the document you pointed me to
doesnt talk about getting the manager app to work with external webservers
like IIS! Ofcourse I do have the manager app working with tomcat in stand
alone mode.

Thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:12 AM
To: Tomcat Users List
Subject: Re: ATTN IIS-Tomcat redirector developers - I am stuck with
this for over aweek now - PL HELP



S

`getRequestDispatcher' Stack Trace...

2002-06-13 Thread Edward Wilson

This is the stack trace I'm getting when I try
"request.getRequestDispatcher("/MainFrame.html").forward(request,
response);"

I'm trying to get this to run on Tomcat 4.0.3.  It
runs fine on Tomcat 3.3. btw: RedHat 7.3/intel


java.lang.IllegalStateException: Current state =
FLUSHED, new state = CODING
at
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:933)
at
java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
at
sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:382)
at
sun.nio.cs.StreamEncoder.write(StreamEncoder.java:134)
at
sun.nio.cs.StreamEncoder.write(StreamEncoder.java:144)
at
java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
at
java.io.PrintWriter.write(PrintWriter.java:230)
at
org.apache.catalina.connector.ResponseWriter.write(ResponseWriter.java:441)
at
java.io.PrintWriter.write(PrintWriter.java:247)
at
org.apache.catalina.connector.ResponseWriter.write(ResponseWriter.java:426)
at
java.io.PrintWriter.print(PrintWriter.java:378)
at
org.apache.catalina.connector.ResponseWriter.print(ResponseWriter.java:243)
at
java.io.PrintWriter.println(PrintWriter.java:515)
at
org.apache.catalina.connector.ResponseWriter.println(ResponseWriter.java:372)
at Login.processRequest(Login.java:165)
at Login.doPost(Login.java:39)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: multiple instances

2002-06-13 Thread chad kellerman

Thanks,
   But I got it.  I had the stupid shutdown port the same on the server.xml 
files.


My bad


--chad


On Thu June 13 2002 3:17 pm, Turner, John wrote:
> I have multiple instances of tomcat 3.1 running in a production
> environment, with each instance a separate hostname (a.x.com, b.x.com, etc)
> served by apache 1.3, though all instances are running as the same user. 
> If this is similar to what you are trying to do, holler back and I will dig
> out the configs and post it.  I'm knee deep in tomcat 4 at the moment so I
> don't have the configs handy. :)
>
> John Turner
> [EMAIL PROTECTED]
> http://www.aas.com
>
>
> -Original Message-
> From: chad kellerman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: multiple instances
>
>
> Hi everyone,
>
>  I think this topic has been beet to death.  But I have a few questions
> more.
>
>Just a quick survey.  Does anyone have mulitple instances of tomcat
> running-under different users?  (under linux or Solaris)
>   If so, how many instances are you running? with 20 users? 50,100?
>
>My problem...
> My set up has the main tomcat installation in /usr/local/tomcat/.  I
> have
> also another user called gotc.  His tomcat instance in in
> /home/gotc/www/tomcat-  which I think I am going to change so it is not in
> his
> directory root.  but anyway.
>
> My server.xml files are set up so that the main tomcat should list on
> 8080.  And that gotc-tomcat should listen on 8090.  No other port is the
> same
> in the server.xml file.  Each runs great separately, but when run together,
> the one started second dies with the error:
>
> StandardServer.await: create[8005]: java.net.BindException: Address already
> in
> use
> java.net.BindException: Address already in use
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
> at java.net.ServerSocket.bind(ServerSocket.java:308)
> at java.net.ServerSocket.bind(ServerSocket.java:266)
> at java.net.ServerSocket.(ServerSocket.java:182)
> at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
> 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(NativeMethodAccessorImpl.java:3
>9 )
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>
>
>  what port is it trying to bind to?  And how can I change that port to
> another?
>
>
> Sorry for the long email...  But thanks for any help...
>
>
> --chad

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




RE: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread Kevin Andryc

I apologize but I saw this post late. I had a problem with connection
pooling using Oracle and JNDI. To get around it I had to do something like
this:

In conf\server.xml


   
  
 user
 user
   

   password
   password


   driverClassName
   oracle.jdbc.driver.OracleDriver
 
 
 driverName
 jdbc:oracle:thin:@oracle.ds:1521:db

 

In WEB-INF/web.xml



   
  OracleConnectionPool
  aOracleConnectionPool
  1
   

   
  jdbc/mydb
  oracle.jdbc.pool.OracleConnectionPoolDataSource
  Container
   



OracleConnectionPool.java

try {
Context initCtx = new InitialContext();
OracleConnectionPoolDataSource ocpds = new
OracleConnectionPoolDataSource();
ResourceBundle rb = ResourceBundle.getBundle("database");
ocpds.setURL(rb.getString("url"));
ocpds.setUser(rb.getString("user"));
ocpds.setPassword(rb.getString("password"));
initCtx.rebind("axesdb", ocpds);
} catch (SQLException sqlex) {
sqlex.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
}

In your code:

Context initCtx = new InitialContext();
OracleConnectionPoolDataSource ocpds =
(OracleConnectionPoolDataSource)initCtx.lookup("mydb");
PooledConnection pooledConnection = ocpds.getPooledConnection();
Connection connection = pooledConnection.getConnection();
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery(sql);

Good Luck!

Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 03:12 PM
To: Tomcat Users List
Subject: Re: Connection pooling doesn't work for me ... Help !!

Hi,

well I got stuck with the same problem as the others:
I cannot get a connect to the DB via JNDI.

Just a simple idea: can the problem be the MySQL Driver?
Is there maybe someone out there to give some hints how to look into this
"blackbox" JNDI to see what is going wrong(Craig ?)

Thanks for any help!

Rainer

- Original Message -
From: "Neil Milne" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 2:56 PM
Subject: Re: Connection pooling doesn't work for me ... Help !!


> I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
> In server.xml I have:
>
>  type="javax.sql.ConnectionPoolDataSource"/>
> 
>  driverClassName
> com.sybase.jdbc2.jdbc.SybDriver 
>  user user
> 
>  initialPoolSize 5
> 
>
> There's no need to specify a factory as Tomcat has a Datasource resource
> factory built in.
>
> Note that I've used the ConnectionPoolDataSource class - not sure if
> this makes a difference.
>
> HTH
> Neil.
>
> - Original Message -
> from: Martin Jacobson <[EMAIL PROTECTED]>
> date: Thursday, June 13, 2002 1:40 pm
> subject: Re: Connection pooling doesn't work for me ... Help !!
>
> > anthony.dodd wrote:
> >
> > > Hi
> > >
> > > I've posted a solution see "Generic DataSource Resource Factory
> > > Available. JDBC Data Source" on the tomcat user maillist.
> > >
> > > Tony
> > >
> > Yes, but...
> >
> >
> > Like many others on this list, I too have been unable to get the
> > std
> > JNDI DataSource thingy working; as an interim measure, I
> > implemented a
> > workaround (which does at least work!), but I refuse to be defeated!
> >
>
>
>
> --
> 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: ATTN IIS-Tomcat redirector developers - I am stuck with this for over a week now - PL HELP

2002-06-13 Thread Ignacio J. Ortega

> De: Sankaranarayanan (Ganesh) Ganapathy [mailto:[EMAIL PROTECTED]]
> Enviado el: 13 de junio de 2002 19:02

IIS+Authentication can work on IIS in 2 different ways that are mutually
exclusive..

1) Let tomcat to surpass completely the IIS auth..
* Disconnet any auth done at IIS level.. 
* set the tomcatAuthentication="true" in the Ajp connector line
in server.xml

2) Let the IIS server do the auth and tomcat use them
* set the IIS auth
* set tomcatAuthentication="false"
* There are some problems already with roles.. (JK2 will solve
them or at least try to)

dont forget to check that you have the appropiate user, roles and
web.xml security constraints..

And speaking generally 2) should work from 4.0.4 and up, and 3.3 and up,
1) was ever working.

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> Para: [EMAIL PROTECTED]
> Asunto: ATTN IIS-Tomcat redirector developers - I am stuck 
> with this for
> over a week now - PL HELP
> 
> 
> Getting the manager app to work with tomcat 4.0.3 and IIS 5.0
> 
> Hi All, 
> 
> I have setup IIS5.0 and tomcat4.0.3 successfully on Win2k 
> professional - can get to the example webapps.
> 
> But when I try to access the manager app I get the message - 
> Access to the specified resource is denied. The tomcat does 
> seem to be throw the challenge response box in this case. 
> 
> The instructions everywhere deals only with the simplest case 
> - setting up examples web app - doesnt seem to explain how to 
> set up an app that requires basic authentication such as the 
> manager application that is bundled with tomcat - so I am not 
> sure if this works
> 
> The jakarta virtual directory has read and execute premission 
> and the anonymous acces is enabled.
> 
> What should I do to get this working
> 
> Thanx
> Ganesh
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 



msg56688/bin0.bin
Description: application/ms-tnef

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


RE: multiple instances

2002-06-13 Thread Turner, John


I have multiple instances of tomcat 3.1 running in a production environment,
with each instance a separate hostname (a.x.com, b.x.com, etc) served by
apache 1.3, though all instances are running as the same user.  If this is
similar to what you are trying to do, holler back and I will dig out the
configs and post it.  I'm knee deep in tomcat 4 at the moment so I don't
have the configs handy. :)

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 3:05 PM
To: [EMAIL PROTECTED]
Subject: multiple instances


Hi everyone,

 I think this topic has been beet to death.  But I have a few questions 
more.

   Just a quick survey.  Does anyone have mulitple instances of tomcat 
running-under different users?  (under linux or Solaris)
  If so, how many instances are you running? with 20 users? 50,100?

   My problem...
My set up has the main tomcat installation in /usr/local/tomcat/.  I
have 
also another user called gotc.  His tomcat instance in in
/home/gotc/www/tomcat-  which I think I am going to change so it is not in
his 
directory root.  but anyway.

My server.xml files are set up so that the main tomcat should list on 
8080.  And that gotc-tomcat should listen on 8090.  No other port is the
same 
in the server.xml file.  Each runs great separately, but when run together, 
the one started second dies with the error:

StandardServer.await: create[8005]: java.net.BindException: Address already
in 
use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.(ServerSocket.java:182)
at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
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(NativeMethodAccessorImpl.java:39
)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


 what port is it trying to bind to?  And how can I change that port to 
another?


Sorry for the long email...  But thanks for any help...


--chad

--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Mike Jackson

jdeveloper is basically an extended version of jbuilder.
Oracle just adds Oracle stuff to it and makes it available.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Segree, Gareth [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 11:29 AM
> To: 'Tomcat Users List'
> Subject: RE: [offtopic] IDE for Tomcat?
>
>
> what about jdeveloper from oracle, is it any good?
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 1:14 PM
> To: 'Tomcat Users List'
> Subject: RE: [offtopic] IDE for Tomcat?
>
>
>
> Hi -
>
> This was just posted earlier today: http://www.netbeans.org/  It
> looks very
> promising, but I haven't worked with it.
>
> We're using Borland's JBuilder...it seems to be the most neutral of the
> available options.  MSFT's Java IDE isn't current anymore, as far
> as I know.
> http://www.borland.com/jbuilder/  I believe the personal edition is free,
> but it might not have all the features you are looking for.
>
> There's also things like MetroWerks CodeWarrior:
> http://www.metrowerks.com/desktop/java/
>
> HTH
>
> John Turner
> [EMAIL PROTECTED]
> http://www.aas.com
>
>
> -Original Message-
> From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 2:05 PM
> To: Tomcat Users List
> Subject: [offtopic] IDE for Tomcat?
>
>
>
> I was wondering what kind of IDEs people were using for Tomcat
> development?
>
> Any recomendations for someone who's been developing on linux from a NT
> desktop via ssh? (vi has it's charms, but there's got to be a better way!)
> Anything to avoid?
>
> Thanks
>
> Cindy
>
> --
> 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: mod_jk and Mapping configuration error

2002-06-13 Thread Turner, John


1) I think trying it without the "/jsp" is worth a shot, from everything I
have read the JkMount directive is exactly what you need...the specific path
could just as easily be "/" as "/jsp", I don't think it matters.  The "/jsp"
in the example is for housekeeping, as far as I know, not a specific
requirement or limitation.

2) The directives in the example are valid within an apache VirtualHost
container, so I'm not sure what you mean about "doesn't address virtual
hosts".  Granted, it didn't specifically detail exact configuration of a
virtual hosts situation, but I thought that could be inferred from the use
of valid VirtualHost directives.  

3) I believe that all you have to do to server.xml is this, for each virtual
host you want to support:

 
 
 
 

Like I said before, I haven't had a chance to set this up yet, so if anyone
sees anything wrong, please correct me.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Alex Short [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:40 PM
To: Tomcat Users List
Subject: RE: mod_jk and Mapping configuration error


Unfortunately in two respects this doesn't work for me.

1> It segregates jsp files from html/image files in a /jsp directory.  I'd 
like to have jsp's and html files in the same dir, and have 
http://www.mysite.net/index.jsp work, not have to do .net/jsp/index.jsp

2> It doesn't address virtual hosts which is important for me.

Thanks very much for the help, again if someone has this setup themselves 
or seen it, by all means.

Alex
 > 
> I haven't had a chance to try this yet, but a friend of mine sent this to
me
> late yesterday, it is apparently working for him and seems to be  "solid".
> He's using apache 1.3.  No guarantees that it will work for you, but it
> might be worth a shot. I'm going to try it out a little later today for
> sure.  Apologies to Matthew B. for posting this. :)
> 
> ** in httpd.conf **
> #testing mod_jk!
> 
>  LoadModule jk_module libexec/mod_jk-01.so
> 
> AddModule mod_jk.c
> JkWorkersFile "/usr/local/tomcat-4.0.3/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat-4.0.3/logs/mod_jk.log"
> ## for testing, tune this down for production
> JkLogLevel debug
> 
> Alias /jsp "/some/path/to/jsp"
> 
>   Options Indexes FollowSymLinks
>   DirectoryIndex index.html index.htm index.jsp
> 
> JkMount /jsp/*.jsp  ajp13
> 
> Alias /servlet "/some/path/to/servlet"
> 
>   Options Indexes FollowSymLinks
>   DirectoryIndex  index.html index.htm index.jsp
> 
> JkMount /servlet/*  ajp13
> 
> ** workers.properties file **:
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3-LE-jdk14
> workers.java_home=/usr/java/j2sdk1.4.0
> ps=/
> worker.list=ajp13
> 
> worker.ajp13.port=8007
> worker.ajp13.host=some.host.com
> worker.ajp13.type=ajp13
> 
> ALSO: comment out the AddType text/jsp .js and AddHandler jserv-servlet
.jsp
> directives. The above config passes off anything in the aliased
directories
> to the ajp13 connector, and anything else gets served by apache.
> 
> John Turner
> [EMAIL PROTECTED]
> http://www.aas.com
> 
> 
> -Original Message-
> From: Alex Short [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 2:11 PM
> To: Tomcat Users List
> Subject: Re: mod_jk and Mapping configuration error
> 
> 
> I'm using Tomcat 4.0.3
> 
> I've tried looking all over the place for good documentation of 
> apache+tomcat using mod_jk with Virtual Hosts and found many different 
> (but none that worked for me) solutions.
> 
> Some said to put Host name= in the server.xml, others said put it in the 
> workers.properties file.  Finally i got it sort of working by creating a 
> symbolic link in webapps called www.ialex.net which points to my web dir.

> But unfortunately that only works if i do 
> www.ialex.net/www.ialex.net/index.jsp.  otherwise it just gives me a 404.

> I've fiddled with Context host name and docBase etc, to no avail.
> 
> Does anyone have a working set of server.xml config files for a virtual 
> host setup using apache+tomcat4+mod_jk ?  I want to have .jsp files within

> my webdirectory and point them to tomcat by file extention as i tried with

> JkMount /*.jsp ajp13 in my config.
> 
> Thanks
> 
> Alex
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:




`getRequestDispatcher' error

2002-06-13 Thread Edward Wilson

I'm migrating an app from Tomcat 3.3 => 4.0.3 and I
can't get redirect working, does anybody know what
this might be caused by?

..ed

--code snippet--

try {
request.getRequestDispatcher("/MainFrame.html").forward(request,
response);
} catch(Exception ex) {
ex.printStackTrace();
}

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread info

Hi,

well I got stuck with the same problem as the others:
I cannot get a connect to the DB via JNDI.

Just a simple idea: can the problem be the MySQL Driver?
Is there maybe someone out there to give some hints how to look into this
"blackbox" JNDI to see what is going wrong(Craig ?)

Thanks for any help!

Rainer

- Original Message -
From: "Neil Milne" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 2:56 PM
Subject: Re: Connection pooling doesn't work for me ... Help !!


> I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
> In server.xml I have:
>
>  type="javax.sql.ConnectionPoolDataSource"/>
> 
>  driverClassName
> com.sybase.jdbc2.jdbc.SybDriver 
>  user user
> 
>  initialPoolSize 5
> 
>
> There's no need to specify a factory as Tomcat has a Datasource resource
> factory built in.
>
> Note that I've used the ConnectionPoolDataSource class - not sure if
> this makes a difference.
>
> HTH
> Neil.
>
> - Original Message -
> from: Martin Jacobson <[EMAIL PROTECTED]>
> date: Thursday, June 13, 2002 1:40 pm
> subject: Re: Connection pooling doesn't work for me ... Help !!
>
> > anthony.dodd wrote:
> >
> > > Hi
> > >
> > > I've posted a solution see "Generic DataSource Resource Factory
> > > Available. JDBC Data Source" on the tomcat user maillist.
> > >
> > > Tony
> > >
> > Yes, but...
> >
> >
> > Like many others on this list, I too have been unable to get the
> > std
> > JNDI DataSource thingy working; as an interim measure, I
> > implemented a
> > workaround (which does at least work!), but I refuse to be defeated!
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




multiple instances

2002-06-13 Thread chad kellerman

Hi everyone,

 I think this topic has been beet to death.  But I have a few questions 
more.

   Just a quick survey.  Does anyone have mulitple instances of tomcat 
running-under different users?  (under linux or Solaris)
  If so, how many instances are you running? with 20 users? 50,100?

   My problem...
My set up has the main tomcat installation in /usr/local/tomcat/.  I have 
also another user called gotc.  His tomcat instance in in
/home/gotc/www/tomcat-  which I think I am going to change so it is not in his 
directory root.  but anyway.

My server.xml files are set up so that the main tomcat should list on 
8080.  And that gotc-tomcat should listen on 8090.  No other port is the same 
in the server.xml file.  Each runs great separately, but when run together, 
the one started second dies with the error:

StandardServer.await: create[8005]: java.net.BindException: Address already in 
use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.(ServerSocket.java:182)
at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
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(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


 what port is it trying to bind to?  And how can I change that port to 
another?


Sorry for the long email...  But thanks for any help...


--chad

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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Edward Wilson

> what about jdeveloper from oracle, is it any good?

JDeveloper is awesome.  I used the beta version, it
was the best java ide I've ever used.  Then the final
version shipped and it was so slow I switched to sun
Forte.

I tried JDeveloper on both Linux and Win and in both
cases it was slow, too slow.

Post back to the group if you are able to get it to
work for you.  As soon as the speed issue is resolved,
I'm switching back to JDeveloper--it has everything
JBuilder has plus the Oracle goodies if you are bent
on Oracle.

..ed

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread Matt Fury

Hi. I'll add a reply :-).

I am getting this error as well:

java.lang.NoSuchMethodError:
org.apache.tomcat.util.http.BaseRequest.authorizati
on()Lorg/apache/tomcat/util/buf/MessageBytes;
at
org.apache.ajp.tomcat4.Ajp13Request.setAjpRequest(Ajp13Request.java:1
21)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:417
)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)

-Matt


--- [EMAIL PROTECTED] wrote:
> Hi,
> 
> I have similar problem, although not using BASIC but
> FORM.
> 
> I took your advice and look into the apache.log and
> this is what I found.
> Could you explain what I see and what should I look
> at next. 
> 
> 
> 2002-06-13 13:10:58
> [org.apache.catalina.connector.warp.WarpConnector]
> Error
> accepting requests
> java.net.SocketException: socket closed
>   at java.net.PlainSocketImpl.socketAccept(Native
> Method)
>   at
>
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
>   at
>
java.net.ServerSocket.implAccept(ServerSocket.java:241)
>   at
> java.net.ServerSocket.accept(ServerSocket.java:222)
>   at
>
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)
>   at java.lang.Thread.run(Thread.java:484)
> ***
> 
> Thanks very much.
> 
> Bao-Ha Dam Bui
> [EMAIL PROTECTED]
> S. Jude Medical, Inc
> 651.765.1018
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, June 13, 2002 1:28 PM
> To: Tomcat Users List
> Subject: RE: ATTN IIS-Tomcat redirector developers -
> I am stuck with this
> foroveraweek now - PL HELP
> 
> 
> Oh ok. You mentioned in your first email that tomcat
> does seem to be throw
> the
> challenge response box. Well as for the redirector,
> I don't know much about
> it. I don't use IIS. Sorry. Also quoting your first
> email, you said that
> you get "Access to the specified resource is denied"
> which almost implies
> that the request is reaching Tomcat. But to confirm,
> check the logs. Maybe
> the problem is with Tomcat and not with the
> redirector.
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy"
> <[EMAIL PROTECTED]> on 06/13/2002
> 12:39:43 PM
> 
> Please respond to "Tomcat Users List"
> <[EMAIL PROTECTED]>
> 
> To:"Tomcat Users List"
> <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: ATTN IIS-Tomcat redirector
> developers - I am stuck with
>this foroveraweek now - PL HELP
> 
> No, basic authentication doesnt work in the
> redirector case atleast with
> IIS - The challenge response box doesnt come up !
> 
> I am trying to solve this for over a week now and I
> hardly see any response
> - has anybody got this working at all? - Can the
> redirector developers
> help, PLEASE?
> 
> --Ganesh
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:36 AM
> To: Tomcat Users List
> Subject: RE: ATTN IIS-Tomcat redirector developers -
> I am stuck with
> this foroveraweek now - PL HELP
> 
> 
> 
> Maybe I'm missed something in your email. Since you
> are getting the
> authentication dialog box, BASIC authentication
> works, right?
> If you don't know the username/password, then see
> the tomcat-users.xml file
> in %CATALINA_HOME%/conf directory.
> 
> Add a line for the manager app:
> 
>...
>...
>roles="manager" />
> 
> 
> Hope this helps.
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy"
> <[EMAIL PROTECTED]> on 06/13/2002
> 12:29:35 PM
> 
> Please respond to "Tomcat Users List"
> <[EMAIL PROTECTED]>
> 
> To:"Tomcat Users List"
> <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: ATTN IIS-Tomcat redirector
> developers - I am stuck with
>this for overaweek now - PL HELP
> 
> It is privileged as well as configured to use basic
> authentication!
> 
> It is the basic authentication that I cant get to
> work with IIS and tomcat
> connected using the AJP redirector!
> 
> thanx
> Ganesh
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 10:26 AM
> To: Tomcat Users List
> Subject: RE: ATTN IIS-Tomcat redirector developers -
> I am stuck with
> this for overaweek now - PL HELP
> 
> 
> 
> If you have the "examples" working with IIS, the
> Manager context will
> behave the same way (except that it's is privileged)
> since it's a web
> application itself. See Context entry for manager in
> server.xml.
> 
> RS
> 
> 
> 
> 
> 
> "Sankaranarayanan (Ganesh) Ganapathy"
> <[EMAIL PROTECTED]> on 06/13/2002
> 12:16:45 PM
> 
> Please respond to "Tomcat Users List"
> <[EMAIL PROTECTED]>
> 
> To:"Tomcat Users List"
> <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: ATTN IIS-Tomcat redirector
> developers - I am stuck with
>this for over aweek now - PL HELP
> 
> I hope I am not missing something - but the document
> you pointed me to
> doesnt talk about getting 

RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Greg Trasuk

Hi Cindy:

I've had fairly good experience using xemacs (http://xemacs.org/) and Ant
(http://jakarta.apache.org/ant/index.html).  Xemacs comes with
syntax-highlighting and Java development modes (class wizards, etc).  Setup
xemac's compile command to invoke Ant, and you've got a not-bad IDE, if you
ask me (They'll both run under NT as well).  For developing on Linux, you
could probably keep using ssh windows, or setup Cygwin/XFree86 for X-Windows
access (I've found this works pretty well also, except that Swing GUI's over
X don't give very good performance.  For server-side development, though,
it's fine).

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

> -Original Message-
> From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
> Sent: June 13, 2002 14:05
> To: Tomcat Users List
> Subject: [offtopic] IDE for Tomcat?
>
>
>
> I was wondering what kind of IDEs people were using for
> Tomcat development?
>
> Any recomendations for someone who's been developing on linux
> from a NT desktop via ssh? (vi has it's charms, but there's
> got to be a better way!) Anything to avoid?
>
> Thanks
>
> Cindy
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Mark Shaw

If you haven't used IDEA from IntelliJ please give it a shot.  It's truly
amazing (BTW, I don't work for them), providing a great set of refactoring
capabilities combined with a very useable interface.  And it's written in
Java, which is very inspiring.

-Original Message-
From: Joel Sather [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [offtopic] IDE for Tomcat?



I was using JDeveloper for a while and it isn't too bad.  I had an old
copy (3.2 something), so I haven't played with the latest version.  It
is pretty big (250+ M), but at least the version I had was native under
Windows.  

I tried NetBeans and it was just too slow.  It has a ton of great
features (ANT support, CVS, Tomcat integration), but unless you have a
good machine it might not be worth it.  It was very slow on my 1Ghz
laptop w/ 128M of memory.  You might also try Forte from Sun which is
their version of NetBeans.

Personally, I don't need code completion and stuff so I just use a
simple editor and then ANT to do the builds.  I need to deploy on a
different machine so I just check the file into CVS and run ANT on the
server (does the pull from CVS and then compiles into my JAR).  Once the
build and deployment are done, if you have Tomcat setup right it
recognizes the new JAR has been uploaded.  Very slick.

Software Development Magazine (free subscriptions, but I can't remember
the URL at the moment) just did their Jolt awards and I think IDEA took
the top spot.  They also liked JBuilder (or Borland), though.  Isn't
JBuilder what JDeveloper is based off of?  I can't remember, but I
thought Oracle just licensed someone's IDE.

Anyway, it really depends on which features you need from your IDE.  I
can do everything I need with ANT and vi if I have to now.  :)

-J


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

>>> [EMAIL PROTECTED] 06/13/02 01:28PM >>>
what about jdeveloper from oracle, is it any good?

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 1:14 PM
To: 'Tomcat Users List'
Subject: RE: [offtopic] IDE for Tomcat?



Hi -

This was just posted earlier today: http://www.netbeans.org/  It looks
very
promising, but I haven't worked with it.

We're using Borland's JBuilder...it seems to be the most neutral of
the
available options.  MSFT's Java IDE isn't current anymore, as far as I
know.
http://www.borland.com/jbuilder/  I believe the personal edition is
free,
but it might not have all the features you are looking for.

There's also things like MetroWerks CodeWarrior:
http://www.metrowerks.com/desktop/java/ 

HTH

John Turner
[EMAIL PROTECTED] 
http://www.aas.com 


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 2:05 PM
To: Tomcat Users List
Subject: [offtopic] IDE for Tomcat?



I was wondering what kind of IDEs people were using for Tomcat
development?

Any recomendations for someone who's been developing on linux from a
NT
desktop via ssh? (vi has it's charms, but there's got to be a better
way!)
Anything to avoid?

Thanks

Cindy

--
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: How do I implement favicon.ico using catalina?

2002-06-13 Thread Reynir Hübner


yes,I think it should work as it's the browser that checks for it, it has "nothing" to 
do with the webserver.

for somereason I feel like it should be favico.ico but not favicon.ico .. can it be 
correct ?

hope it helps
-reynir



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 13. júní 2002 18:21
> To: Tomcat Users List
> Subject: How do I implement favicon.ico using catalina?
> 
> 
> I tried dropping a favicon.ico into my webapps/myapp directory to no
> avail... Is this supported?
> 
> Dave
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread BBui

Hi,

I have similar problem, although not using BASIC but FORM.

I took your advice and look into the apache.log and this is what I found.
Could you explain what I see and what should I look at next. 


2002-06-13 13:10:58 [org.apache.catalina.connector.warp.WarpConnector] Error
accepting requests
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
at java.net.ServerSocket.implAccept(ServerSocket.java:241)
at java.net.ServerSocket.accept(ServerSocket.java:222)
at
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)
at java.lang.Thread.run(Thread.java:484)
***

Thanks very much.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 1:28 PM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with this
foroveraweek now - PL HELP


Oh ok. You mentioned in your first email that tomcat does seem to be throw
the
challenge response box. Well as for the redirector, I don't know much about
it. I don't use IIS. Sorry. Also quoting your first email, you said that
you get "Access to the specified resource is denied" which almost implies
that the request is reaching Tomcat. But to confirm, check the logs. Maybe
the problem is with Tomcat and not with the redirector.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:39:43 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this foroveraweek now - PL HELP

No, basic authentication doesnt work in the redirector case atleast with
IIS - The challenge response box doesnt come up !

I am trying to solve this for over a week now and I hardly see any response
- has anybody got this working at all? - Can the redirector developers
help, PLEASE?

--Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this foroveraweek now - PL HELP



Maybe I'm missed something in your email. Since you are getting the
authentication dialog box, BASIC authentication works, right?
If you don't know the username/password, then see the tomcat-users.xml file
in %CATALINA_HOME%/conf directory.

Add a line for the manager app:

   ...
   ...
  


Hope this helps.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:29:35 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for overaweek now - PL HELP

It is privileged as well as configured to use basic authentication!

It is the basic authentication that I cant get to work with IIS and tomcat
connected using the AJP redirector!

thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:26 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this for overaweek now - PL HELP



If you have the "examples" working with IIS, the Manager context will
behave the same way (except that it's is privileged) since it's a web
application itself. See Context entry for manager in server.xml.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:16:45 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for over aweek now - PL HELP

I hope I am not missing something - but the document you pointed me to
doesnt talk about getting the manager app to work with external webservers
like IIS! Ofcourse I do have the manager app working with tomcat in stand
alone mode.

Thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:12 AM
To: Tomcat Users List
Subject: Re: ATTN IIS-Tomcat redirector developers - I am stuck with
this for over aweek now - PL HELP



See http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:02:18 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:ATTN IIS-Tomcat redirector developers - I am stuck with this
   for over a week now - PL HELP

Getting the manager app to work with tomcat 4.0.3 and IIS 5.0

Hi All,

I have setup IIS5.0 and tomcat4.0.3 successfully on Win2k professional -
can get to 

RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Joel Sather


I was using JDeveloper for a while and it isn't too bad.  I had an old
copy (3.2 something), so I haven't played with the latest version.  It
is pretty big (250+ M), but at least the version I had was native under
Windows.  

I tried NetBeans and it was just too slow.  It has a ton of great
features (ANT support, CVS, Tomcat integration), but unless you have a
good machine it might not be worth it.  It was very slow on my 1Ghz
laptop w/ 128M of memory.  You might also try Forte from Sun which is
their version of NetBeans.

Personally, I don't need code completion and stuff so I just use a
simple editor and then ANT to do the builds.  I need to deploy on a
different machine so I just check the file into CVS and run ANT on the
server (does the pull from CVS and then compiles into my JAR).  Once the
build and deployment are done, if you have Tomcat setup right it
recognizes the new JAR has been uploaded.  Very slick.

Software Development Magazine (free subscriptions, but I can't remember
the URL at the moment) just did their Jolt awards and I think IDEA took
the top spot.  They also liked JBuilder (or Borland), though.  Isn't
JBuilder what JDeveloper is based off of?  I can't remember, but I
thought Oracle just licensed someone's IDE.

Anyway, it really depends on which features you need from your IDE.  I
can do everything I need with ANT and vi if I have to now.  :)

-J


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

>>> [EMAIL PROTECTED] 06/13/02 01:28PM >>>
what about jdeveloper from oracle, is it any good?

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 1:14 PM
To: 'Tomcat Users List'
Subject: RE: [offtopic] IDE for Tomcat?



Hi -

This was just posted earlier today: http://www.netbeans.org/  It looks
very
promising, but I haven't worked with it.

We're using Borland's JBuilder...it seems to be the most neutral of
the
available options.  MSFT's Java IDE isn't current anymore, as far as I
know.
http://www.borland.com/jbuilder/  I believe the personal edition is
free,
but it might not have all the features you are looking for.

There's also things like MetroWerks CodeWarrior:
http://www.metrowerks.com/desktop/java/ 

HTH

John Turner
[EMAIL PROTECTED] 
http://www.aas.com 


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 2:05 PM
To: Tomcat Users List
Subject: [offtopic] IDE for Tomcat?



I was wondering what kind of IDEs people were using for Tomcat
development?

Any recomendations for someone who's been developing on linux from a
NT
desktop via ssh? (vi has it's charms, but there's got to be a better
way!)
Anything to avoid?

Thanks

Cindy

--
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: 




How do I implement favicon.ico using catalina?

2002-06-13 Thread dave-mlist

I tried dropping a favicon.ico into my webapps/myapp directory to no
avail... Is this supported?

Dave

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




RE: mod_jk and Mapping configuration error

2002-06-13 Thread Alex Short

Unfortunately in two respects this doesn't work for me.

1> It segregates jsp files from html/image files in a /jsp directory.  I'd 
like to have jsp's and html files in the same dir, and have 
http://www.mysite.net/index.jsp work, not have to do .net/jsp/index.jsp

2> It doesn't address virtual hosts which is important for me.

Thanks very much for the help, again if someone has this setup themselves 
or seen it, by all means.

Alex
 > 
> I haven't had a chance to try this yet, but a friend of mine sent this to me
> late yesterday, it is apparently working for him and seems to be  "solid".
> He's using apache 1.3.  No guarantees that it will work for you, but it
> might be worth a shot. I'm going to try it out a little later today for
> sure.  Apologies to Matthew B. for posting this. :)
> 
> ** in httpd.conf **
> #testing mod_jk!
> 
>  LoadModule jk_module libexec/mod_jk-01.so
> 
> AddModule mod_jk.c
> JkWorkersFile "/usr/local/tomcat-4.0.3/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat-4.0.3/logs/mod_jk.log"
> ## for testing, tune this down for production
> JkLogLevel debug
> 
> Alias /jsp "/some/path/to/jsp"
> 
>   Options Indexes FollowSymLinks
>   DirectoryIndex index.html index.htm index.jsp
> 
> JkMount /jsp/*.jsp  ajp13
> 
> Alias /servlet "/some/path/to/servlet"
> 
>   Options Indexes FollowSymLinks
>   DirectoryIndex  index.html index.htm index.jsp
> 
> JkMount /servlet/*  ajp13
> 
> ** workers.properties file **:
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3-LE-jdk14
> workers.java_home=/usr/java/j2sdk1.4.0
> ps=/
> worker.list=ajp13
> 
> worker.ajp13.port=8007
> worker.ajp13.host=some.host.com
> worker.ajp13.type=ajp13
> 
> ALSO: comment out the AddType text/jsp .js and AddHandler jserv-servlet .jsp
> directives. The above config passes off anything in the aliased directories
> to the ajp13 connector, and anything else gets served by apache.
> 
> John Turner
> [EMAIL PROTECTED]
> http://www.aas.com
> 
> 
> -Original Message-
> From: Alex Short [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 2:11 PM
> To: Tomcat Users List
> Subject: Re: mod_jk and Mapping configuration error
> 
> 
> I'm using Tomcat 4.0.3
> 
> I've tried looking all over the place for good documentation of 
> apache+tomcat using mod_jk with Virtual Hosts and found many different 
> (but none that worked for me) solutions.
> 
> Some said to put Host name= in the server.xml, others said put it in the 
> workers.properties file.  Finally i got it sort of working by creating a 
> symbolic link in webapps called www.ialex.net which points to my web dir.  
> But unfortunately that only works if i do 
> www.ialex.net/www.ialex.net/index.jsp.  otherwise it just gives me a 404.  
> I've fiddled with Context host name and docBase etc, to no avail.
> 
> Does anyone have a working set of server.xml config files for a virtual 
> host setup using apache+tomcat4+mod_jk ?  I want to have .jsp files within 
> my webdirectory and point them to tomcat by file extention as i tried with 
> JkMount /*.jsp ajp13 in my config.
> 
> Thanks
> 
> Alex
> 


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




RE: mod_jk and Mapping configuration error

2002-06-13 Thread Turner, John


I haven't had a chance to try this yet, but a friend of mine sent this to me
late yesterday, it is apparently working for him and seems to be  "solid".
He's using apache 1.3.  No guarantees that it will work for you, but it
might be worth a shot. I'm going to try it out a little later today for
sure.  Apologies to Matthew B. for posting this. :)

** in httpd.conf **
#testing mod_jk!

 LoadModule jk_module libexec/mod_jk-01.so

AddModule mod_jk.c
JkWorkersFile "/usr/local/tomcat-4.0.3/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat-4.0.3/logs/mod_jk.log"
## for testing, tune this down for production
JkLogLevel debug

Alias /jsp "/some/path/to/jsp"

  Options Indexes FollowSymLinks
  DirectoryIndex index.html index.htm index.jsp

JkMount /jsp/*.jsp  ajp13

Alias /servlet "/some/path/to/servlet"

  Options Indexes FollowSymLinks
  DirectoryIndex  index.html index.htm index.jsp

JkMount /servlet/*  ajp13

** workers.properties file **:
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3-LE-jdk14
workers.java_home=/usr/java/j2sdk1.4.0
ps=/
worker.list=ajp13

worker.ajp13.port=8007
worker.ajp13.host=some.host.com
worker.ajp13.type=ajp13

ALSO: comment out the AddType text/jsp .js and AddHandler jserv-servlet .jsp
directives. The above config passes off anything in the aliased directories
to the ajp13 connector, and anything else gets served by apache.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Alex Short [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:11 PM
To: Tomcat Users List
Subject: Re: mod_jk and Mapping configuration error


I'm using Tomcat 4.0.3

I've tried looking all over the place for good documentation of 
apache+tomcat using mod_jk with Virtual Hosts and found many different 
(but none that worked for me) solutions.

Some said to put Host name= in the server.xml, others said put it in the 
workers.properties file.  Finally i got it sort of working by creating a 
symbolic link in webapps called www.ialex.net which points to my web dir.  
But unfortunately that only works if i do 
www.ialex.net/www.ialex.net/index.jsp.  otherwise it just gives me a 404.  
I've fiddled with Context host name and docBase etc, to no avail.

Does anyone have a working set of server.xml config files for a virtual 
host setup using apache+tomcat4+mod_jk ?  I want to have .jsp files within 
my webdirectory and point them to tomcat by file extention as i tried with 
JkMount /*.jsp ajp13 in my config.

Thanks

Alex



RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread Turner, John


Hi -

This was just posted earlier today: http://www.netbeans.org/  It looks very
promising, but I haven't worked with it.

We're using Borland's JBuilder...it seems to be the most neutral of the
available options.  MSFT's Java IDE isn't current anymore, as far as I know.
http://www.borland.com/jbuilder/  I believe the personal edition is free,
but it might not have all the features you are looking for.

There's also things like MetroWerks CodeWarrior:
http://www.metrowerks.com/desktop/java/

HTH

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:05 PM
To: Tomcat Users List
Subject: [offtopic] IDE for Tomcat?



I was wondering what kind of IDEs people were using for Tomcat development?

Any recomendations for someone who's been developing on linux from a NT
desktop via ssh? (vi has it's charms, but there's got to be a better way!)
Anything to avoid?

Thanks

Cindy

--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: mod_jk and Mapping configuration error

2002-06-13 Thread Alex Short

I'm using Tomcat 4.0.3

I've tried looking all over the place for good documentation of 
apache+tomcat using mod_jk with Virtual Hosts and found many different 
(but none that worked for me) solutions.

Some said to put Host name= in the server.xml, others said put it in the 
workers.properties file.  Finally i got it sort of working by creating a 
symbolic link in webapps called www.ialex.net which points to my web dir.  
But unfortunately that only works if i do 
www.ialex.net/www.ialex.net/index.jsp.  otherwise it just gives me a 404.  
I've fiddled with Context host name and docBase etc, to no avail.

Does anyone have a working set of server.xml config files for a virtual 
host setup using apache+tomcat4+mod_jk ?  I want to have .jsp files within 
my webdirectory and point them to tomcat by file extention as i tried with 
JkMount /*.jsp ajp13 in my config.

Thanks

Alex
 > Alex,
> What version of Tomcat are you using?  Also, I'm trying to resolve an issue I 
> have (mod_jk not working).  Do you have a procedure on how to get mod_jk 
> working?
> 
> Thanks..
> 
> Quoting Alex Short <[EMAIL PROTECTED]>:
> 
> > I can't for the life of me figure out my problem.  I have apache running 
> > all peachy, and added in mod_jk to service *.jsp to tomcat.
> > 
> > I'm trying to first get a single Virtual host working with this config, 
> > and my webroot is /opt/web/www.ialex.net
> > 
> > In my VirtualHost i have my JkMount
> > JkMount /*.jsp ajp13
> > 
> > and in my server.xml
> > 
> > 
> >  >port="8009" minProcessors="5" maxProcessors="75"
> >acceptCount="10" debug="0"/>
> > 
> > 
> > 
> > 
> > No errors on startup for either apache or tomcat (I start tomcat first) 
> > and when i try going to a file index.jsp in /opt/web/www.ialex.net from my 
> > browser i get a 
> > 
> > Apache Tomcat/4.0.3 - Error 
> > report 
> > Apache Tomcat/4.0.3 - HTTP Status 404 - 
> > /index.jsptype Status 
> > reportmessage /index.jspdescription 
> > The requested resource (/index.jsp) is not available. > size="1" noshade>
> > 
> > And this in my tomcat logs
> > 
> > 2002-06-13 09:09:35 StandardHost[localhost]: MAPPING configuration error 
> > for request URI
> > 
> > Help please
> > 
> > Alex
> > 
> > 
> > --
> > 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: 




[offtopic] IDE for Tomcat?

2002-06-13 Thread Cindy Ballreich


I was wondering what kind of IDEs people were using for Tomcat development?

Any recomendations for someone who's been developing on linux from a NT desktop via 
ssh? (vi has it's charms, but there's got to be a better way!) Anything to avoid?

Thanks

Cindy

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




Re: Tomcat4.1.2 shutdown error

2002-06-13 Thread Remy Maucherat

Shapira, Yoav wrote:
> Howdy,
> I actually disagree with the interpretation of the error: if you try to
> shutdown tomcat when it's not running, you'll get a ConnectionRefused
> exception from when it tries to connect to the shutdown port.
> 
> But I don't have an answer to the original question ;)  Is Remy watching
> this thread?

Looking at the line number, the NamingResources field is null, but can't 
see any situation where this would happen.

Could you send what exactly you are doing to get that error, or any 
specific info on your configuration ? If you have all your webapps up 
and running, I really don't see how it can happen.

Remy

>>>java.lang.NullPointerException
>>>at
>>>
>>
>>org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCon
> 
> text
> 
>>L
>>istener.java:343)
>>
>>>at
>>>
>>
>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
> 
> uppo
> 
>>r
>>t.java:166)
>>
>>>at
>>>
>>
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:2216)
> 
>>>at
>>
> org.apache.catalina.startup.Catalina.start(Catalina.java:541)
> 
>>>at
>>>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>>>at
>>>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>
> Method)
> 
>>>at
>>>
>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> 
> va:3
> 
>>9
>>)
>>
>>>at
>>>
>>
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> 
> rImp
> 
>>l
>>.java:25)
>>
>>>at java.lang.reflect.Method.invoke(Method.java:324)
>>>at
>>>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


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




Tomcat Authentication: how to use CredentialsInterceptor?

2002-06-13 Thread Angoli, Angelo

Hi,

   I'm new to the Tomcat user list.
I want to use Tomcat authentication with SimpleRealm. I read the
documentation, my servlet requires userid and password. What am I supposed
to do to pass it to CredentialsInterceptor 
(right now servlet.xml "authentication block" is as follow:
 
 
 
)

In other words, which code do I have to write to pass userid and pwd to
CredentialsInterceptor?

Thanks 

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




RE: Changing Default Websites???

2002-06-13 Thread S W

Hi Mathew and the everyone else,

"Is there an equivalent to Tomcat.Conf in Windows
2000?"

Thanks for your help, but I'm running Tomcat on
Windows 2000 and it doesn't have the tomcat.conf file,
do you or anyone else know what the equivalent for
tomcat.conf in the windows version would be.

Thanks!!!
--- "Garling, Matthew"
<[EMAIL PROTECTED]> wrote:
> Hi S W,
> 
> Take a look in the tomcat.conf file. There you will
> find the following
> entries:
> 
>   ApJServMount default /root
> and
>   ApJServMount /examples /root.
> 
> You need to change these to whatever paths you want
> or require.
> 
> good luck.
> 
> 
> 
> 
> 
> -Original Message-
> From: S W [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 9:53 AM
> To: [EMAIL PROTECTED]
> Subject: Changing Default Websites???
> 
> 
> Hi Everyone,
> 
> I've configured TomCat to run off port 80, however
> I'm
> not sure how I change the website so that it starts
> up
> my website instead of the default
> examples/jsp/index.html page.
> 
> I've checked the server.xml and web.xml
> configuration
> files but still no luck.
> 
> Any help would be greatly appreciated, Thank you!!!
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: flush="false" not working?

2002-06-13 Thread Jim Michael


>Or setting your headers in the outer page, which is where it should
be
>done IMHO.  Includes are for content only -- trying to mix in
control-type
>functionality like modifying headers is a poor design practice.

That makes some dynamic sites very problematic... image that every page
on a site is pulling its content from a mySQL database, but I want the
pages to have some sort of "last modified" date that gets pulled from
field within each record... now if I have to set headers in the outer
page, I need to make a database call *just* to get the modified date,
then the included JSP actually makes the database calls for the real
data. I just doubled the connections made to the database, all because I
can't pull that date field and modify the header from within the
include.


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




RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread BBui

I am having the same issue but I am using FORM instead of BASIC.  The box
comes up in stand-alone but not when working with IIS 5 on W2K.  

I have also been knocking this for more than a week.  

Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018


-Original Message-
From: Sankaranarayanan (Ganesh) Ganapathy [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 13, 2002 12:40 PM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with this
foroveraweek now - PL HELP

No, basic authentication doesnt work in the redirector case atleast with IIS
- The challenge response box doesnt come up !

I am trying to solve this for over a week now and I hardly see any response
- has anybody got this working at all? - Can the redirector developers help,
PLEASE?

--Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this foroveraweek now - PL HELP



Maybe I'm missed something in your email. Since you are getting the
authentication dialog box, BASIC authentication works, right?
If you don't know the username/password, then see the tomcat-users.xml file
in %CATALINA_HOME%/conf directory.

Add a line for the manager app:

   ...
   ...
  


Hope this helps.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:29:35 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for overaweek now - PL HELP

It is privileged as well as configured to use basic authentication!

It is the basic authentication that I cant get to work with IIS and tomcat
connected using the AJP redirector!

thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:26 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this for overaweek now - PL HELP



If you have the "examples" working with IIS, the Manager context will
behave the same way (except that it's is privileged) since it's a web
application itself. See Context entry for manager in server.xml.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:16:45 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for over aweek now - PL HELP

I hope I am not missing something - but the document you pointed me to
doesnt talk about getting the manager app to work with external webservers
like IIS! Ofcourse I do have the manager app working with tomcat in stand
alone mode.

Thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:12 AM
To: Tomcat Users List
Subject: Re: ATTN IIS-Tomcat redirector developers - I am stuck with
this for over aweek now - PL HELP



See http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:02:18 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:ATTN IIS-Tomcat redirector developers - I am stuck with this
   for over a week now - PL HELP

Getting the manager app to work with tomcat 4.0.3 and IIS 5.0

Hi All,

I have setup IIS5.0 and tomcat4.0.3 successfully on Win2k professional -
can get to the example webapps.

But when I try to access the manager app I get the message - Access to the
specified resource is denied. The tomcat does seem to be throw the
challenge response box in this case.

The instructions everywhere deals only with the simplest case - setting up
examples web app - doesnt seem to explain how to set up an app that
requires basic authentication such as the manager application that is
bundled with tomcat - so I am not sure if this works

The jakarta virtual directory has read and execute premission and the
anonymous acces is enabled.

What should I do to get this working

Thanx
Ganesh


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










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


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










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


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










--
To unsubscribe, e-mail:

For additional commands, e-

RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread Sankaranarayanan (Ganesh) Ganapathy

No, basic authentication doesnt work in the redirector case atleast with IIS - The 
challenge response box doesnt come up !

I am trying to solve this for over a week now and I hardly see any response - has 
anybody got this working at all? - Can the redirector developers help, PLEASE?

--Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this foroveraweek now - PL HELP



Maybe I'm missed something in your email. Since you are getting the
authentication dialog box, BASIC authentication works, right?
If you don't know the username/password, then see the tomcat-users.xml file
in %CATALINA_HOME%/conf directory.

Add a line for the manager app:

   ...
   ...
  


Hope this helps.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:29:35 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for overaweek now - PL HELP

It is privileged as well as configured to use basic authentication!

It is the basic authentication that I cant get to work with IIS and tomcat
connected using the AJP redirector!

thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:26 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this for overaweek now - PL HELP



If you have the "examples" working with IIS, the Manager context will
behave the same way (except that it's is privileged) since it's a web
application itself. See Context entry for manager in server.xml.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:16:45 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for over aweek now - PL HELP

I hope I am not missing something - but the document you pointed me to
doesnt talk about getting the manager app to work with external webservers
like IIS! Ofcourse I do have the manager app working with tomcat in stand
alone mode.

Thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:12 AM
To: Tomcat Users List
Subject: Re: ATTN IIS-Tomcat redirector developers - I am stuck with
this for over aweek now - PL HELP



See http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:02:18 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:ATTN IIS-Tomcat redirector developers - I am stuck with this
   for over a week now - PL HELP

Getting the manager app to work with tomcat 4.0.3 and IIS 5.0

Hi All,

I have setup IIS5.0 and tomcat4.0.3 successfully on Win2k professional -
can get to the example webapps.

But when I try to access the manager app I get the message - Access to the
specified resource is denied. The tomcat does seem to be throw the
challenge response box in this case.

The instructions everywhere deals only with the simplest case - setting up
examples web app - doesnt seem to explain how to set up an app that
requires basic authentication such as the manager application that is
bundled with tomcat - so I am not sure if this works

The jakarta virtual directory has read and execute premission and the
anonymous acces is enabled.

What should I do to get this working

Thanx
Ganesh


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










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


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










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


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










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


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




Re[2]: Using "catalina run" fails...

2002-06-13 Thread Jacob Kjome

Hello Bernard,

Well, that is almost certainly not the case.  Here is where my
catalina install is:

C:\Program Files\Apache Group\Jakarta\tomcat-4.1.3

Here is how my CATALINA_HOME environment var is set up:

CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.3

I have absolutely no issues with this.  Everything works perfectly.

Jake

Thursday, June 13, 2002, 12:33:10 PM, you wrote:

BC> Suspect the problem is with the "." in your directory name "Tomcat 4.0". It
BC> seems to be interpreted as part of the package. Try naming it something
BC> else.. safest to avoid spaces and "."s.

BC> - Original Message -
BC> From: "Jakarta Tomcat Newsgroup" <@[EMAIL PROTECTED]>
BC> To: <[EMAIL PROTECTED]>
BC> Sent: Friday, June 14, 2002 12:55 AM
BC> Subject: Using "catalina run" fails...


>> Subject: Using "catalina run" fails...
>> From: "Kevin O'Connor" <[EMAIL PROTECTED]>
>>  ===
>> Any suggestions on this...
>>
>> C:\Apache\Tomcat 4.0\bin>catalina run
>> Using CATALINA_BASE:   C:\Apache\Tomcat 4.0\
>> Using CATALINA_HOME:   C:\Apache\Tomcat 4.0\
>> Using CATALINA_TMPDIR: \C:\Apache\Tomcat 4.0\temp
>> Using JAVA_HOME:   c:\jdk1.3.1_02
>> Exception in thread "main" java.lang.NoClassDefFoundError: 4/0"
>>
>> Tomcat starts and runs fine using the startup.bat, but not this way.
>>
>> Thanks in advance,
>> Kevin
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
BC> 
>> For additional commands, e-mail:
BC> 
>>


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: ATTN IIS-Tomcat redirector developers - I am stuck with this foroveraweek now - PL HELP

2002-06-13 Thread rsequeira


Maybe I'm missed something in your email. Since you are getting the
authentication dialog box, BASIC authentication works, right?
If you don't know the username/password, then see the tomcat-users.xml file
in %CATALINA_HOME%/conf directory.

Add a line for the manager app:

   ...
   ...
  


Hope this helps.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:29:35 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for overaweek now - PL HELP

It is privileged as well as configured to use basic authentication!

It is the basic authentication that I cant get to work with IIS and tomcat
connected using the AJP redirector!

thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:26 AM
To: Tomcat Users List
Subject: RE: ATTN IIS-Tomcat redirector developers - I am stuck with
this for overaweek now - PL HELP



If you have the "examples" working with IIS, the Manager context will
behave the same way (except that it's is privileged) since it's a web
application itself. See Context entry for manager in server.xml.

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:16:45 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: ATTN IIS-Tomcat redirector developers - I am stuck with
   this for over aweek now - PL HELP

I hope I am not missing something - but the document you pointed me to
doesnt talk about getting the manager app to work with external webservers
like IIS! Ofcourse I do have the manager app working with tomcat in stand
alone mode.

Thanx
Ganesh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:12 AM
To: Tomcat Users List
Subject: Re: ATTN IIS-Tomcat redirector developers - I am stuck with
this for over aweek now - PL HELP



See http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

RS





"Sankaranarayanan (Ganesh) Ganapathy" <[EMAIL PROTECTED]> on 06/13/2002
12:02:18 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:ATTN IIS-Tomcat redirector developers - I am stuck with this
   for over a week now - PL HELP

Getting the manager app to work with tomcat 4.0.3 and IIS 5.0

Hi All,

I have setup IIS5.0 and tomcat4.0.3 successfully on Win2k professional -
can get to the example webapps.

But when I try to access the manager app I get the message - Access to the
specified resource is denied. The tomcat does seem to be throw the
challenge response box in this case.

The instructions everywhere deals only with the simplest case - setting up
examples web app - doesnt seem to explain how to set up an app that
requires basic authentication such as the manager application that is
bundled with tomcat - so I am not sure if this works

The jakarta virtual directory has read and execute premission and the
anonymous acces is enabled.

What should I do to get this working

Thanx
Ganesh


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










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


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










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


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










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




Re: Using "catalina run" fails...

2002-06-13 Thread Bernard Choi

Suspect the problem is with the "." in your directory name "Tomcat 4.0". It
seems to be interpreted as part of the package. Try naming it something
else.. safest to avoid spaces and "."s.

- Original Message -
From: "Jakarta Tomcat Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 12:55 AM
Subject: Using "catalina run" fails...


> Subject: Using "catalina run" fails...
> From: "Kevin O'Connor" <[EMAIL PROTECTED]>
>  ===
> Any suggestions on this...
>
> C:\Apache\Tomcat 4.0\bin>catalina run
> Using CATALINA_BASE:   C:\Apache\Tomcat 4.0\
> Using CATALINA_HOME:   C:\Apache\Tomcat 4.0\
> Using CATALINA_TMPDIR: \C:\Apache\Tomcat 4.0\temp
> Using JAVA_HOME:   c:\jdk1.3.1_02
> Exception in thread "main" java.lang.NoClassDefFoundError: 4/0"
>
> Tomcat starts and runs fine using the startup.bat, but not this way.
>
> Thanks in advance,
> Kevin
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




  1   2   3   >