javax.servlet.ServletException: Name java:comp is not bound in this Context

2002-09-06 Thread Richard Chamberlain

Hello,

I'm struggling setting up a database resource.

I've copied the xml pretty much verbatim from the docs in the JNDI 
Datasource HOW-TO.

However when I try and access the database I get a ServletException as 
follows:

javax.servlet.ServletException: Name java:comp is not bound in this 
Context

This is the code that gets the connection:

Context env=(Context) new InitialContext().lookup("java:comp/env");
DataSource source=(DataSource) env.lookup("jdbc/db-pool");
Connection conn=source.getConnection();

and this is from server.xml:



   
 
   factory
   
org.apache.commons.dbcp.BasicDataSourceFactory
 
 
   maxActive
   100
 
 
   maxIdle
   30
 
 
   maxWait
   1
 
 
  username
  testuser
 
 
  password
  mypassword
 
 
driverClassName
org.gjt.mm.mysql.Driver
 
 
   url
   
jdbc:mysql://localhost:3306/test?autoReconnect=true
 
   

and the web.xml file:


DB Connection
jdbc/db-pool
javax.sql.DataSource
Container


Please help!

Thanks,

Richard


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




RE: tomcat v. resin

2002-09-06 Thread Martin Cooper



> -Original Message-
> From: micael [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 10:52 PM
> To: Tomcat Users List
> Subject: Re: tomcat v. resin
> 
> 
> Resin is, I think, noticeably faster in my limited 
> experience.  But, Resin 
> has serious features restrictions for me.

What sort of serious feature restrictions? Are they Servlet / JSP related,
or related to Resin-specific functionality?

--
Martin Cooper


> 
> At 05:30 PM 9/6/2002 -0700, you wrote:
> >Hey does anyone here have an opinion on Resin versus Tomcat? 
>   I've heard
> >that Resin is screaming fast but I never see anyone using it 
> ... always
> >Tomcat if they want something free.
> >
> >Thanks.
> >Neal
> >
> >
> >--
> >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: tomcat v. resin

2002-09-06 Thread Martin Cooper



> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 8:28 PM
> To: Tomcat Users List
> Subject: RE: tomcat v. resin
> 
> 
> Yeah true. I know I'll find mostly tomcat fans on the tomcat list.
> 
> Still, practically every book and every person I know working with
> openSource is using Tomcat. And, every site that I've run 
> across that has a
> JSP error ... is apparently Tomcat too.  ;-) So it seems like 
> a huge user
> base.  On the flip side, many have never even heard of Resin. 
>  Yet, some of
> the benchmarks I saw a little less than a year ago, Resin 
> looked like the
> sweetest thingout there - free or not.  Very strangs though 
> that it seemed
> to have a small following.

Actually, Resin has a huge following. Just take a look at the archives for
the resin-interest mailing list, or sign up to the list to see for yourself.

One of the reasons you see Tomcat everywhere is because it's the Reference
Implementation (RI) for Servlets and JSP. That doesn't mean it's the best
implementation, only that it represents the standard.

Many people and/or organisations are reluctant to place their bets on
anything other than the "standard" implementation, so they'll reject Resin
for no other reason than because it's not the "standard".

Sad but true...

--
Martin Cooper


> 
> 
> Neal
> 
> 
> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 6:42 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat v. resin
> 
> 
> Well, you're asking this on the tomcat-user list, so you'll 
> primarily find
> Tomcat users here... ;-)
> 
> Actually, I use Resin most of the time, including in 
> production. It *is*
> very fast, but I don't honestly know how it compares to 
> Tomcat 4.1.10. It
> used to beat the pants off earlier versions of Tomcat, 
> though. Resin is also
> a breeze to install and configure, but again, I believe 
> Tomcat has made
> progress in that direction with 4.1.10.
> 
> One nice thing about the latest version of Resin (2.1.4) is 
> that it has a
> built-in fast implementation of JSTL. That can be disabled if 
> you want to
> use the RI, but so far I've never had to.
> 
> Some people use Resin for its features over and above the 
> usual Servlet /
> JSP stuff. For example, it has its own alternative syntaxes, 
> XML template
> system, and the ability to use JavaScript as the scripting 
> language in JSP
> pages, instead of Java. Of course, then you're tied to Resin.
> 
> You might want to ask this question on the resin-interest 
> list to see what
> kind of responses you get from the Resin side of the house.
> 
> --
> Martin Cooper
> 
> 
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 5:30 PM
> > To: Tomcat Users List
> > Subject: tomcat v. resin
> >
> >
> > Hey does anyone here have an opinion on Resin versus Tomcat?
> >  I've heard
> > that Resin is screaming fast but I never see anyone using it
> > ... always
> > Tomcat if they want something free.
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > 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: tomcat v. resin

2002-09-06 Thread micael

I see.  Okay dokay.  Misunderstood.  Would not count on people that have 
those errors.. (I AM KIDDING!) ///;-)

At 10:58 PM 9/6/2002 -0700, you wrote:
>Oh, that wasn't to say that Tomcat caused errors ... I mean people's
>scripting errors.  404s and the like.  It tells which http/app server you're
>using.
>
>:)
>
>
>-Original Message-
>From: micael [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 10:56 PM
>To: Tomcat Users List
>Subject: RE: tomcat v. resin
>
>
>I have had absolutely no problems with Tomcat causing errors.  Again, Resin
>has features limitations.
>
>At 08:28 PM 9/6/2002 -0700, you wrote:
> >Yeah true. I know I'll find mostly tomcat fans on the tomcat list.
> >
> >Still, practically every book and every person I know working with
> >openSource is using Tomcat. And, every site that I've run across that has a
> >JSP error ... is apparently Tomcat too.  ;-) So it seems like a huge user
> >base.  On the flip side, many have never even heard of Resin.  Yet, some of
> >the benchmarks I saw a little less than a year ago, Resin looked like the
> >sweetest thingout there - free or not.  Very strangs though that it seemed
> >to have a small following.
> >
> >
> >Neal
> >
> >
> >-Original Message-
> >From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, September 06, 2002 6:42 PM
> >To: 'Tomcat Users List'
> >Subject: RE: tomcat v. resin
> >
> >
> >Well, you're asking this on the tomcat-user list, so you'll primarily find
> >Tomcat users here... ;-)
> >
> >Actually, I use Resin most of the time, including in production. It *is*
> >very fast, but I don't honestly know how it compares to Tomcat 4.1.10. It
> >used to beat the pants off earlier versions of Tomcat, though. Resin is
>also
> >a breeze to install and configure, but again, I believe Tomcat has made
> >progress in that direction with 4.1.10.
> >
> >One nice thing about the latest version of Resin (2.1.4) is that it has a
> >built-in fast implementation of JSTL. That can be disabled if you want to
> >use the RI, but so far I've never had to.
> >
> >Some people use Resin for its features over and above the usual Servlet /
> >JSP stuff. For example, it has its own alternative syntaxes, XML template
> >system, and the ability to use JavaScript as the scripting language in JSP
> >pages, instead of Java. Of course, then you're tied to Resin.
> >
> >You might want to ask this question on the resin-interest list to see what
> >kind of responses you get from the Resin side of the house.
> >
> >--
> >Martin Cooper
> >
> >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, September 06, 2002 5:30 PM
> > > To: Tomcat Users List
> > > Subject: tomcat v. resin
> > >
> > >
> > > Hey does anyone here have an opinion on Resin versus Tomcat?
> > >  I've heard
> > > that Resin is screaming fast but I never see anyone using it
> > > ... always
> > > Tomcat if they want something free.
> > >
> > > Thanks.
> > > Neal
> > >
> > >
> > > --
> > > 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:
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




RE: tomcat v. resin

2002-09-06 Thread neal

Oh, that wasn't to say that Tomcat caused errors ... I mean people's
scripting errors.  404s and the like.  It tells which http/app server you're
using.

:)


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:56 PM
To: Tomcat Users List
Subject: RE: tomcat v. resin


I have had absolutely no problems with Tomcat causing errors.  Again, Resin
has features limitations.

At 08:28 PM 9/6/2002 -0700, you wrote:
>Yeah true. I know I'll find mostly tomcat fans on the tomcat list.
>
>Still, practically every book and every person I know working with
>openSource is using Tomcat. And, every site that I've run across that has a
>JSP error ... is apparently Tomcat too.  ;-) So it seems like a huge user
>base.  On the flip side, many have never even heard of Resin.  Yet, some of
>the benchmarks I saw a little less than a year ago, Resin looked like the
>sweetest thingout there - free or not.  Very strangs though that it seemed
>to have a small following.
>
>
>Neal
>
>
>-Original Message-
>From: Martin Cooper [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 6:42 PM
>To: 'Tomcat Users List'
>Subject: RE: tomcat v. resin
>
>
>Well, you're asking this on the tomcat-user list, so you'll primarily find
>Tomcat users here... ;-)
>
>Actually, I use Resin most of the time, including in production. It *is*
>very fast, but I don't honestly know how it compares to Tomcat 4.1.10. It
>used to beat the pants off earlier versions of Tomcat, though. Resin is
also
>a breeze to install and configure, but again, I believe Tomcat has made
>progress in that direction with 4.1.10.
>
>One nice thing about the latest version of Resin (2.1.4) is that it has a
>built-in fast implementation of JSTL. That can be disabled if you want to
>use the RI, but so far I've never had to.
>
>Some people use Resin for its features over and above the usual Servlet /
>JSP stuff. For example, it has its own alternative syntaxes, XML template
>system, and the ability to use JavaScript as the scripting language in JSP
>pages, instead of Java. Of course, then you're tied to Resin.
>
>You might want to ask this question on the resin-interest list to see what
>kind of responses you get from the Resin side of the house.
>
>--
>Martin Cooper
>
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 5:30 PM
> > To: Tomcat Users List
> > Subject: tomcat v. resin
> >
> >
> > Hey does anyone here have an opinion on Resin versus Tomcat?
> >  I've heard
> > that Resin is screaming fast but I never see anyone using it
> > ... always
> > Tomcat if they want something free.
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > 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:



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




RE: tomcat v. resin

2002-09-06 Thread micael

I have had absolutely no problems with Tomcat causing errors.  Again, Resin 
has features limitations.

At 08:28 PM 9/6/2002 -0700, you wrote:
>Yeah true. I know I'll find mostly tomcat fans on the tomcat list.
>
>Still, practically every book and every person I know working with
>openSource is using Tomcat. And, every site that I've run across that has a
>JSP error ... is apparently Tomcat too.  ;-) So it seems like a huge user
>base.  On the flip side, many have never even heard of Resin.  Yet, some of
>the benchmarks I saw a little less than a year ago, Resin looked like the
>sweetest thingout there - free or not.  Very strangs though that it seemed
>to have a small following.
>
>
>Neal
>
>
>-Original Message-
>From: Martin Cooper [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 6:42 PM
>To: 'Tomcat Users List'
>Subject: RE: tomcat v. resin
>
>
>Well, you're asking this on the tomcat-user list, so you'll primarily find
>Tomcat users here... ;-)
>
>Actually, I use Resin most of the time, including in production. It *is*
>very fast, but I don't honestly know how it compares to Tomcat 4.1.10. It
>used to beat the pants off earlier versions of Tomcat, though. Resin is also
>a breeze to install and configure, but again, I believe Tomcat has made
>progress in that direction with 4.1.10.
>
>One nice thing about the latest version of Resin (2.1.4) is that it has a
>built-in fast implementation of JSTL. That can be disabled if you want to
>use the RI, but so far I've never had to.
>
>Some people use Resin for its features over and above the usual Servlet /
>JSP stuff. For example, it has its own alternative syntaxes, XML template
>system, and the ability to use JavaScript as the scripting language in JSP
>pages, instead of Java. Of course, then you're tied to Resin.
>
>You might want to ask this question on the resin-interest list to see what
>kind of responses you get from the Resin side of the house.
>
>--
>Martin Cooper
>
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 5:30 PM
> > To: Tomcat Users List
> > Subject: tomcat v. resin
> >
> >
> > Hey does anyone here have an opinion on Resin versus Tomcat?
> >  I've heard
> > that Resin is screaming fast but I never see anyone using it
> > ... always
> > Tomcat if they want something free.
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > 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: tomcat v. resin

2002-09-06 Thread micael

Resin is, I think, noticeably faster in my limited experience.  But, Resin 
has serious features restrictions for me.

At 05:30 PM 9/6/2002 -0700, you wrote:
>Hey does anyone here have an opinion on Resin versus Tomcat?   I've heard
>that Resin is screaming fast but I never see anyone using it ... always
>Tomcat if they want something free.
>
>Thanks.
>Neal
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




RE: Tomcat standalone Versus Apache

2002-09-06 Thread micael

Depends on if you have static content, neal.  Apache is way, way, way 
faster, of course, if you have static content running.

At 05:25 PM 9/6/2002 -0700, you wrote:
>Alright,
>
>So there's no taboo here that I'm not aware of. It sounds like a lot of
>people do run Tomcat with Apache but not all and its simply a matter of what
>fits my needs best.  So, there are no silver bullet issues (other than
>posibly this roon daemon thing) which suggests running Tomcat standalone in
>production is foolish, right?
>
>Thanks.
>Neal
>
>
>
>-Original Message-
>From: Randy Secrist [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 2:44 PM
>To: Tomcat Users List
>Subject: Re: Tomcat standalone Versus Apache
>
>
>I have heard reports, (although never seen actual numbers or data) that
>suggest that if you have a lot of static pages for a large site, standalone
>Tomcat decreases in performace pretty quickly.  That said - Apache has also
>been tested and proven with static pages, and has a great system for adding
>extentions.  As such, many production environments run cgi, php, and other
>scripting languages for their web pages.  Apache's role as a fully
>serviceable http server is much more broad than the http services Tomcat
>connectors provide.  Tomcat connectors CAN interface with Apache to give jsp
>/ servlet container abilities to Apache.
>
>Usually, people run Apache + Tomcat so they can use multiple scripting
>languages - since the entire world doesn't use java.  While Tomcat does
>support cgi (via servlet calls), jsp / servlet containers were not designed
>with this explicitly designed as their main role - while Apache was.  I have
>also never heard of a servlet that imitates php...although someone who never
>sleeps at night has probably implemented it.
>
>Randy
>
>- Original Message -
>From: "neal" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Friday, September 06, 2002 3:24 PM
>Subject: Tomcat standalone Versus Apache
>
>
> > What do most people run for production and why?  Tomcat standalone or
>Tomcat
> > with Apache? And for that matter, isn't the http server for Tomcat
>Apache -
> > or is it something else?
> >
> > John Turner mentioned the possible concern with running Tomcat as root.
>Are
> > there any other concerns?  Performance?  Security?
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > 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: Using a different Xerces library in Tomcat 4.1 on jdk1.4

2002-09-06 Thread Robert L Sowders

This excerpt is from the bottom of the page at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

JDK 1.4 supports a mechanism called the "Endorsed Standards Override 
Mechanism" to allow replacement of APIs created outside of the JCP (i.e. 
DOM and SAX from W3C). It can also be used to update the XML parser 
implementation. For more information, see: 
http://java.sun.com/j2se/1.4/docs/guide/standards/index.html.
Tomcat utilizes this mechanism by including the system property setting 
-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed in the command line 
that starts the container. Therefore, you can replace the parser that is 
installed in this directory, and it will get used even on a JDK 1.4 
system.

rls




Sam Cheung <[EMAIL PROTECTED]>
09/06/2002 03:44 PM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Using a different Xerces library in Tomcat 4.1 on jdk1.4

Hi,

The Web Application I am running needs an old version
of Xerces. I put that xerce.jar file in WEB-INF/lib,
but I still get java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser?

Could you please tell me how to fix that?


type Exception report

message 

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

exception 

javax.servlet.ServletException: Servlet.init() for
servlet ToolsUIServlet threw exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:952)

root cause 

java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser
 at
com.ibm.commerce.tools.xml.XMLFileDirectory.cacheNewReader(XMLFileDirectory.java:48)
 at
com.ibm.commerce.tools.xml.XMLFileDirectory.lookup(XMLFileDirectory.java:130)
 at
com.ibm.commerce.tools.sys.WebSysManager.init(WebSysManager.java:259)



__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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





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




IllegalStateException while using SSL

2002-09-06 Thread [EMAIL PROTECTED]

Hi,
 
I setup SSL in Tomcat using JSEE and the key is generated using the
keytool utility. The system is working fine, but the server is throwing
an IllegalStateException continuously while accessing any page through
HTTPS. This never stops and after few minutes of throwing the exception,
it gices an OutOfMemory error and stops there. [Till then it
successfully serves all pages through HTTPS]. The exception thrown is
copied below.
 
 
2002-09-07 10:11:24 - Ctx(  ): IllegalStateException in: R( /) Current
state = FLUSHED, new state = CODING
 
 
Any ideas why this is happening and how to resolve this?
 
 
Thx,
Hari.



Re: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Mark Eggers

Make sure the startup script is not suid/sgid to
something.

Also, make sure there is not an httpd configured in
/etc/inetd.conf.

/mde/

just my two cents . . . .

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: Tomcat standalone Versus Apache

2002-09-06 Thread Randy Secrist

You can search the web until your blue - but the truth is - this is really
new territory.  I say it mostly depends on your needs.  There is nothing
foolish about running tomcat standalone.  I've set up a few small companies
using TC standalone only.  Servlets DO handle multiple requests pretty
well - depending on their implementation - which you can research since the
source is available.  :)

The issue of running the process as user x - more or less is a security
issue.  As such, because it deals with a process running on an operating
system, it becomes an operating system security issue.  Granted - if TC's
security is breached, then it is probably more likely that if you run as
root, an intruder could do more damage than a regular generic user could...
BUT - that is IF security is breached.  TC is pretty solid - in that it
lives under the java security umbrella, with it's own security manager, and
thus protects from the standard issues that plague M$ software.  This
doesn't mean it is bug free though - people find stuff all the time - but
the finding in beta testing helps protect it when it goes to release.
Running TC as another user can add complexity to the configuration - since
you have to make sure that the specified user can access resources that the
web server may need.

Hope that helps...
Randy

- Original Message -
From: "neal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 6:25 PM
Subject: RE: Tomcat standalone Versus Apache


> Alright,
>
> So there's no taboo here that I'm not aware of. It sounds like a lot of
> people do run Tomcat with Apache but not all and its simply a matter of
what
> fits my needs best.  So, there are no silver bullet issues (other than
> posibly this roon daemon thing) which suggests running Tomcat standalone
in
> production is foolish, right?
>
> Thanks.
> Neal
>
>
>
> -Original Message-
> From: Randy Secrist [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 2:44 PM
> To: Tomcat Users List
> Subject: Re: Tomcat standalone Versus Apache
>
>
> I have heard reports, (although never seen actual numbers or data) that
> suggest that if you have a lot of static pages for a large site,
standalone
> Tomcat decreases in performace pretty quickly.  That said - Apache has
also
> been tested and proven with static pages, and has a great system for
adding
> extentions.  As such, many production environments run cgi, php, and other
> scripting languages for their web pages.  Apache's role as a fully
> serviceable http server is much more broad than the http services Tomcat
> connectors provide.  Tomcat connectors CAN interface with Apache to give
jsp
> / servlet container abilities to Apache.
>
> Usually, people run Apache + Tomcat so they can use multiple scripting
> languages - since the entire world doesn't use java.  While Tomcat does
> support cgi (via servlet calls), jsp / servlet containers were not
designed
> with this explicitly designed as their main role - while Apache was.  I
have
> also never heard of a servlet that imitates php...although someone who
never
> sleeps at night has probably implemented it.
>
> Randy
>
> - Original Message -
> From: "neal" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 06, 2002 3:24 PM
> Subject: Tomcat standalone Versus Apache
>
>
> > What do most people run for production and why?  Tomcat standalone or
> Tomcat
> > with Apache? And for that matter, isn't the http server for Tomcat
> Apache -
> > or is it something else?
> >
> > John Turner mentioned the possible concern with running Tomcat as root.
> Are
> > there any other concerns?  Performance?  Security?
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > 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: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Ben Walding

Does it work if you pick a port like 2343 or some other random unused 
port (just to rule out some other service / odd configuration error).

Keith Pemberton wrote:

>Here is the output I get from running tomcat4 run.  Hope this helps:
>
>Using CATALINA_BASE:   /var/tomcat4
>Using CATALINA_HOME:   /var/tomcat4
>Using CATALINA_TMPDIR: /var/tomcat4/temp
>Using JAVA_HOME:   /usr/java/j2sdk1.4.0
>Catalina.start: LifecycleException:  null.open:  java.net.BindException:
>Permission denied:80
>LifecycleException:  null.open:  java.net.BindException: Permission
>denied:80
>at
>org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
>at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>at 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)
>- Root Cause -
>java.net.BindException: Permission denied:80
>at
>org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
>at
>org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
>at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>at 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)
>
>Keith
>
>On Fri, 2002-09-06 at 22:59, Ben Walding wrote:
>
>Might be best to post the dump of your error message.
>
>Although from the sounds of it, it might be that your catalina.sh / 
>startup.sh is not set for execute
>
>Try chmod a+x catalina.sh
>
>Then
>./catalina.sh run
>
>See if that helps
>
>Keith Pemberton wrote:
>
>>I'm trying to point my tomcat server over to port 80 in Redhat Linux,
>>but I am having a little trouble with it.  I have apache installed as
>>well but I have both disabled the service and commented out the two
>>lines in the /etc/services file that deal specifically with port 80. 
>>Anyone have a suggestion as to why I am getting this error message and
>>what I can do to resolve it?  Thanks in advance! 
>>
>>Keith 
>>
>>  
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
>  
>




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




Re: How to make apache work both for https

2002-09-06 Thread Robert L Sowders

Assuming you already have a openssl.cnf file setup, cd into openssl/bin 
and run these commands:

openssl req -config openssl.cnf -new -out server.csr
openssl rsa -in privkey.pem -out server.key
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 
365





"Raj Mettai" <[EMAIL PROTECTED]>
09/06/2002 09:02 AM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:How to make apache work both for https

Hi all,

I have Installed Apache2.0.39 from source and configured with  Tomcat4 
using mod_jk on solaris8, I want to make Apache work with both http and 
https, can some one please tell me how to create and install a test 
certificate on apache and possible changes to conf files to make https 
work.


thanks

-Raj




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




Re: tomcat as nt serice

2002-09-06 Thread Robert L Sowders

Newer versions of Tomcat have an option for installing as an NT service 
during the install.  Here is an install for the latest of everything on 
windows 2k.  I should work for NT as well.

ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JSDK1.4.zip

rls





"Pragnesh Kumar" <[EMAIL PROTECTED]>
09/05/2002 11:05 PM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:tomcat as nt serice

Hi All Tomcat User and Developper.
This is Pragneshkumar Gandhi from India

I am facing very tough time with tomcat.
>From last 15 days i am trying to install tomcat as nt service but no 
LUCK.

i have tried Javaservice and Javaserv bcoz initially i had used jdk.1.3.1

but now i shifted to jdk1.2(1.2.2)
but the jk_nt_service.exe is excuting properlly but service is stopping 
just after the start.

"The Jakarta service terminated unexpectedly. It has done this 1 time(s). 
The following corrective action will be taken in 0 milliseconds: No 
action"

Above line are founded in the event viewer. no lines in any log file of 
tomcat..

i am not the member of the list . i have send the mail but it might take 
the time so pls give reply on

[EMAIL PROTECTED] or [EMAIL PROTECTED]

Urgent help will be very Nice
Thanking you all by Heart in advance

bye

Reagrds






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




Re: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Keith Pemberton

Here is the output I get from running tomcat4 run.  Hope this helps:

Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.0
Catalina.start: LifecycleException:  null.open:  java.net.BindException:
Permission denied:80
LifecycleException:  null.open:  java.net.BindException: Permission
denied:80
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at 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)
- Root Cause -
java.net.BindException: Permission denied:80
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at 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)

Keith

On Fri, 2002-09-06 at 22:59, Ben Walding wrote:

Might be best to post the dump of your error message.

Although from the sounds of it, it might be that your catalina.sh / 
startup.sh is not set for execute

Try chmod a+x catalina.sh

Then
./catalina.sh run

See if that helps

Keith Pemberton wrote:

>I'm trying to point my tomcat server over to port 80 in Redhat Linux,
>but I am having a little trouble with it.  I have apache installed as
>well but I have both disabled the service and commented out the two
>lines in the /etc/services file that deal specifically with port 80. 
>Anyone have a suggestion as to why I am getting this error message and
>what I can do to resolve it?  Thanks in advance! 
>
>Keith 
>
>  
>


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





Re: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Ben Walding

Might be best to post the dump of your error message.

Although from the sounds of it, it might be that your catalina.sh / 
startup.sh is not set for execute

Try chmod a+x catalina.sh

Then
./catalina.sh run

See if that helps

Keith Pemberton wrote:

>I'm trying to point my tomcat server over to port 80 in Redhat Linux,
>but I am having a little trouble with it.  I have apache installed as
>well but I have both disabled the service and commented out the two
>lines in the /etc/services file that deal specifically with port 80. 
>Anyone have a suggestion as to why I am getting this error message and
>what I can do to resolve it?  Thanks in advance! 
>
>Keith 
>
>  
>


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




Is tomcat a javabean container?

2002-09-06 Thread Vartan Nazarian

Hi,

Is Tomcat a javabean container as well as a JSP container?  Does it use 
introspection like the Sun's BeanBox to "look inside" the bean class file?  If so, 
does it run the introspection process during the run-time?

Thanks in advance.

Vartan
-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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




RE: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Keith Pemberton


hmm, I guess that I was not clear in my email... after already shutting
down the httpd server (and using netsta to make sure that it wasn't
running) I tried as the root user to start the service and it was giving
me that error message.  Any other suggestions?  Thanks!

Keith

On Fri, 2002-09-06 at 22:12, John Naldoza wrote:

Hi,


Kindly check if your web server is currently running, netstat -vat or ps -aux 
|grep httpd

if it is, shut it down via /etc/rc.d/init.d/httpd stop and then try to start your 
tomcat server.

If this still doesn't work, then you may need to be with root priveledges to 
start-up applications listening on ports < 1024 :)

Hope that helps.


Cheers,


John Clark

> -Original Message-
> From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 07, 2002 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: Permission denied trying to connect tomcat to port 80...
> 
> 
> I'm trying to point my tomcat server over to port 80 in Redhat Linux,
> but I am having a little trouble with it.  I have apache installed as
> well but I have both disabled the service and commented out the two
> lines in the /etc/services file that deal specifically with port 80. 
> Anyone have a suggestion as to why I am getting this error message and
> what I can do to resolve it?  Thanks in advance! 
> 
> Keith 
> 
> 

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





RE: tomcat v. resin

2002-09-06 Thread neal

Yeah true. I know I'll find mostly tomcat fans on the tomcat list.

Still, practically every book and every person I know working with
openSource is using Tomcat. And, every site that I've run across that has a
JSP error ... is apparently Tomcat too.  ;-) So it seems like a huge user
base.  On the flip side, many have never even heard of Resin.  Yet, some of
the benchmarks I saw a little less than a year ago, Resin looked like the
sweetest thingout there - free or not.  Very strangs though that it seemed
to have a small following.


Neal


-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:42 PM
To: 'Tomcat Users List'
Subject: RE: tomcat v. resin


Well, you're asking this on the tomcat-user list, so you'll primarily find
Tomcat users here... ;-)

Actually, I use Resin most of the time, including in production. It *is*
very fast, but I don't honestly know how it compares to Tomcat 4.1.10. It
used to beat the pants off earlier versions of Tomcat, though. Resin is also
a breeze to install and configure, but again, I believe Tomcat has made
progress in that direction with 4.1.10.

One nice thing about the latest version of Resin (2.1.4) is that it has a
built-in fast implementation of JSTL. That can be disabled if you want to
use the RI, but so far I've never had to.

Some people use Resin for its features over and above the usual Servlet /
JSP stuff. For example, it has its own alternative syntaxes, XML template
system, and the ability to use JavaScript as the scripting language in JSP
pages, instead of Java. Of course, then you're tied to Resin.

You might want to ask this question on the resin-interest list to see what
kind of responses you get from the Resin side of the house.

--
Martin Cooper


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 5:30 PM
> To: Tomcat Users List
> Subject: tomcat v. resin
>
>
> Hey does anyone here have an opinion on Resin versus Tomcat?
>  I've heard
> that Resin is screaming fast but I never see anyone using it
> ... always
> Tomcat if they want something free.
>
> Thanks.
> Neal
>
>
> --
> 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: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Larry Meadors

You have to be root to access ports < 1000.

I think you could su or sudo it.

Larry

>>> [EMAIL PROTECTED] 09/06/02 20:44 PM >>>
I'm trying to point my tomcat server over to port 80 in Redhat Linux,
but I am having a little trouble with it.  I have apache installed as
well but I have both disabled the service and commented out the two
lines in the /etc/services file that deal specifically with port 80. 
Anyone have a suggestion as to why I am getting this error message and
what I can do to resolve it?  Thanks in advance! 

Keith 



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




RE: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread John Naldoza

Hi,


Kindly check if your web server is currently running, netstat -vat or ps -aux |grep 
httpd

if it is, shut it down via /etc/rc.d/init.d/httpd stop and then try to start your 
tomcat server.

If this still doesn't work, then you may need to be with root priveledges to start-up 
applications listening on ports < 1024 :)

Hope that helps.


Cheers,


John Clark

> -Original Message-
> From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 07, 2002 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: Permission denied trying to connect tomcat to port 80...
> 
> 
> I'm trying to point my tomcat server over to port 80 in Redhat Linux,
> but I am having a little trouble with it.  I have apache installed as
> well but I have both disabled the service and commented out the two
> lines in the /etc/services file that deal specifically with port 80. 
> Anyone have a suggestion as to why I am getting this error message and
> what I can do to resolve it?  Thanks in advance! 
> 
> Keith 
> 
> 

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




Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Keith Pemberton

I'm trying to point my tomcat server over to port 80 in Redhat Linux,
but I am having a little trouble with it.  I have apache installed as
well but I have both disabled the service and commented out the two
lines in the /etc/services file that deal specifically with port 80. 
Anyone have a suggestion as to why I am getting this error message and
what I can do to resolve it?  Thanks in advance! 

Keith 




RE: tomcat v. resin

2002-09-06 Thread Martin Cooper

Well, you're asking this on the tomcat-user list, so you'll primarily find
Tomcat users here... ;-)

Actually, I use Resin most of the time, including in production. It *is*
very fast, but I don't honestly know how it compares to Tomcat 4.1.10. It
used to beat the pants off earlier versions of Tomcat, though. Resin is also
a breeze to install and configure, but again, I believe Tomcat has made
progress in that direction with 4.1.10.

One nice thing about the latest version of Resin (2.1.4) is that it has a
built-in fast implementation of JSTL. That can be disabled if you want to
use the RI, but so far I've never had to.

Some people use Resin for its features over and above the usual Servlet /
JSP stuff. For example, it has its own alternative syntaxes, XML template
system, and the ability to use JavaScript as the scripting language in JSP
pages, instead of Java. Of course, then you're tied to Resin.

You might want to ask this question on the resin-interest list to see what
kind of responses you get from the Resin side of the house.

--
Martin Cooper


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 5:30 PM
> To: Tomcat Users List
> Subject: tomcat v. resin
> 
> 
> Hey does anyone here have an opinion on Resin versus Tomcat?  
>  I've heard
> that Resin is screaming fast but I never see anyone using it 
> ... always
> Tomcat if they want something free.
> 
> Thanks.
> Neal
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 


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




RE: Tomcat standalone Versus Apache

2002-09-06 Thread Milt Epstein

On Fri, 6 Sep 2002, neal wrote:

> Alright,
>
> So there's no taboo here that I'm not aware of. It sounds like a lot
> of people do run Tomcat with Apache but not all and its simply a
> matter of what fits my needs best.  So, there are no silver bullet
> issues (other than posibly this roon daemon thing) which suggests
> running Tomcat standalone in production is foolish, right?

As I tried to suggest in an earlier reply, I don't think you can draw
many definitive conclusions from polling this list on this topic.  You
seem to be looking for a definitive answer on this question, I'm just
don't think it's so easy to come by.  All you're getting are the
thoughts of a handful of semi-knowledgable people.

I suggest you do some more searching to see what other
comments/perspectives you can find on using Tomcat standalone.  For
example, I went to groups.google.com and entered "tomcat standalone
production" and got "about 61" matches.  You can look through those
and see what people say (I haven't yet).  And/or you can try some
other searches, there or elsewhere.

And you can try it yourself for a while.  Set up Tomcat standalone and
see how it performs.  Try to throw some twists at
it functionality-wise and see how it does.  Try to simulate your
expected load, and see if the response/performance is acceptable.
This is somewhat pioneer territory you're exploring.

Regarding the running as root issue (I assume that's what you meant by
"roon daemon"), that may or may not be an issue depending on your
circumstances.  You can either run Tomcat on port 80 as root, or run
it on a non-default (for http) port, like 8080, as a safer user.
There are tradeoffs either way (I'd personally shy away from running
it as root -- no specific reason I can point to, just general
principles -- unless you expect to have a lot of users behind
proxies/firewalls who wold have trouble reaching non-default ports).


> -Original Message-
> From: Randy Secrist [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 2:44 PM
> To: Tomcat Users List
> Subject: Re: Tomcat standalone Versus Apache
>
>
> I have heard reports, (although never seen actual numbers or data) that
> suggest that if you have a lot of static pages for a large site, standalone
> Tomcat decreases in performace pretty quickly.  That said - Apache has also
> been tested and proven with static pages, and has a great system for adding
> extentions.  As such, many production environments run cgi, php, and other
> scripting languages for their web pages.  Apache's role as a fully
> serviceable http server is much more broad than the http services Tomcat
> connectors provide.  Tomcat connectors CAN interface with Apache to give jsp
> / servlet container abilities to Apache.
>
> Usually, people run Apache + Tomcat so they can use multiple scripting
> languages - since the entire world doesn't use java.  While Tomcat does
> support cgi (via servlet calls), jsp / servlet containers were not designed
> with this explicitly designed as their main role - while Apache was.  I have
> also never heard of a servlet that imitates php...although someone who never
> sleeps at night has probably implemented it.
>
> Randy
>
> - Original Message -
> From: "neal" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 06, 2002 3:24 PM
> Subject: Tomcat standalone Versus Apache
>
>
> > What do most people run for production and why?  Tomcat standalone
> > or Tomcat with Apache? And for that matter, isn't the http server
> > for Tomcat Apache - or is it something else?
> >
> > John Turner mentioned the possible concern with running Tomcat as
> > root. Are there any other concerns?  Performance?  Security?
> >
> > Thanks.
> > Neal

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


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




Re: Apache 2.0.40 - NOT working

2002-09-06 Thread Milt Epstein

On Fri, 6 Sep 2002, Manoj Kithany wrote:

> Hi Peter,
>
> I tried to check the logs but there were NO log files stored in
> /usr/local/apache/logs directory. I then checked httpd.conf for entry for
> Error Logs and it showed:
> --
> ErrorLog /logs/error.log
> CustomLog logs/access_log
> --
>
> but still no log files appear under /logs directory. Even the
> httpd.pid file is no seen?

Perhaps it's not even getting to the point where it starts up and
creates those files.

You might want to do "apachectl configtest" to see if it thinks the
config file is OK.

Also, please don't take this the wrong way, but, as others have
suggested, your use of this list is starting to border on
misuse/abuse.  It has to do with the number of questions you ask, the
basicness of some of them, and the relevance of some of them for this
list.  You might need to seek out other resources, find other more
appropriate forums or tutorials or help guides or books to get
information and/or ask questions.  And remember that many online
forums, whether they're mailing lists or newsgroups or whatever, have
archives that you can (and should) search for answers before asking
questions on them.  I find google (www.google.com for web searches and
groups.google.com for newsgroup searches) an invaluable resource for
finding solutions for things.  marc.theaimsgroup.com is a good mailing
list archive, for apache-related lists and many others.  I'm sure
there are tons others out there.


> >From: "Peter T. Abplanalp" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Apache 2.0.40 - NOT working
> >Date: Fri, 6 Sep 2002 16:07:34 -0600
> >
> >-BEGIN PGP SIGNED MESSAGE-
> >Hash: SHA1
> >
> >On Fri, Sep 06, 2002 at 09:51:29PM +, Manoj Kithany wrote:
> > > I tried to do "ps -ef | grep httpd" after I execute "./apachectl
> > > start" but it did'nt show me any process with httpd-that was my
> > > concern.
> >
> >then apache is not running.  what do the logs say?
> >
> > > Also, I READ ALL the documentation and try it firet before
> > > shooting it on to the Message List - I apologize it that is
> > > bothering you.
> >
> >well, once or twice doesn't bother too much but you keep asking
> >basic questions that aren't even related to tomcat.  anyh...
> >
> > > On web browser, I tried "http://my_ip_address"; on which it
> > > should show "If you see this page it means Apache is working..."
> > > but to me it says "Page cannot be displayed"
> >
> >well, "page not found" is a little different than what you are now
> >saying which is "page cannot be displayed."  stop using ie for this
> >stuff or turn off the "friendly" error messages.
> >
> >in any event, we need to see the logs.
> >
> >- --
> >Peter Abplanalp

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


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




Re: Apache 2.0.40 - NOT working

2002-09-06 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Sep 06, 2002 at 11:20:13PM +, Manoj Kithany wrote:
> I tried to check the logs but there were NO log files stored in 
> /usr/local/apache/logs directory. I then checked httpd.conf for entry for 
> Error Logs and it showed:
> --
> ErrorLog /logs/error.log
> CustomLog logs/access_log
> --
> 
> but still no log files appear under /logs directory. Even the httpd.pid 
> file is no seen?

time to take a step back.  what /exactly/ have you done.  where
/exactly/ are you putting things?  i seem to recall you were asking
about apache1 and apache2, where /exactly/ did you put each?
basically, on the information i have, i can not help you one iota.
Oh and what /exactly/ are you expecting to happen?

- -- 
Peter Abplanalp
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9eVU+ggA8sH0iRXQRAgzVAJ4iAS30ecmHmX+/EjgBwgGYjajwSgCgmoaz
zctwfqJrfmlSfwcpIsuqhUk=
=x8Bs
-END PGP SIGNATURE-

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




RE: Error in tomcat but not in resin (caucho)

2002-09-06 Thread Justin Ruthenbeck


Many app servers buffer the response output and allow anything to be done 
to the response until the first time the buffer is flushed to the 
client.  This can lead to runtime situations where you can call 
response.setHeader() AFTER writing something to the response... so long as 
you don't write enough to cause the buffer to flush.

Needless to say, this "feature" can lead to some pretty annoying debugging 
sessions and bewildered people when their application works in something 
loose (like WL and, apparently, Resin), but not in Tomcat.  I'm especially 
authoritative on that last point.  ;)

justin


At 03:38 PM 9/6/2002, you wrote:
>Because this:
><%
>response.setHeader("Cache-Control","no-cache");
>response.setHeader("Pragma","no-cache");
>
>will commit the response, after which you cannot redirect.
>
>Not sure why Resin would allow this.
>
>
>
>-Original Message-
>From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 5:28 PM
>To: [EMAIL PROTECTED]
>Subject: Error in tomcat but not in resin (caucho)
>
>
>Why bellow code is error in tomcat?
>this code runs well in resin.
>there is any error?
>thanks
>
>code:
>
>
><%
>response.setHeader("Cache-Control","no-cache");
>response.setHeader("Pragma","no-cache");
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




tomcat v. resin

2002-09-06 Thread neal

Hey does anyone here have an opinion on Resin versus Tomcat?   I've heard
that Resin is screaming fast but I never see anyone using it ... always
Tomcat if they want something free.

Thanks.
Neal


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




RE: Tomcat standalone Versus Apache

2002-09-06 Thread neal

Alright,

So there's no taboo here that I'm not aware of. It sounds like a lot of
people do run Tomcat with Apache but not all and its simply a matter of what
fits my needs best.  So, there are no silver bullet issues (other than
posibly this roon daemon thing) which suggests running Tomcat standalone in
production is foolish, right?

Thanks.
Neal



-Original Message-
From: Randy Secrist [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 2:44 PM
To: Tomcat Users List
Subject: Re: Tomcat standalone Versus Apache


I have heard reports, (although never seen actual numbers or data) that
suggest that if you have a lot of static pages for a large site, standalone
Tomcat decreases in performace pretty quickly.  That said - Apache has also
been tested and proven with static pages, and has a great system for adding
extentions.  As such, many production environments run cgi, php, and other
scripting languages for their web pages.  Apache's role as a fully
serviceable http server is much more broad than the http services Tomcat
connectors provide.  Tomcat connectors CAN interface with Apache to give jsp
/ servlet container abilities to Apache.

Usually, people run Apache + Tomcat so they can use multiple scripting
languages - since the entire world doesn't use java.  While Tomcat does
support cgi (via servlet calls), jsp / servlet containers were not designed
with this explicitly designed as their main role - while Apache was.  I have
also never heard of a servlet that imitates php...although someone who never
sleeps at night has probably implemented it.

Randy

- Original Message -
From: "neal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 3:24 PM
Subject: Tomcat standalone Versus Apache


> What do most people run for production and why?  Tomcat standalone or
Tomcat
> with Apache? And for that matter, isn't the http server for Tomcat
Apache -
> or is it something else?
>
> John Turner mentioned the possible concern with running Tomcat as root.
Are
> there any other concerns?  Performance?  Security?
>
> Thanks.
> Neal
>
>
> --
> 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: Error with Tomcat 4.1.10

2002-09-06 Thread Dan Payne

Got it. User error.

-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:08 PM
To: Tomcat Users List
Subject: RE: Error with Tomcat 4.1.10


There was indeed a type.  Using 4.1.10.

-Original Message-
From: Han Ming Ong [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:54 PM
To: Tomcat Users List
Subject: Re: Error with Tomcat 4.1.0


They just released 4.1.10-stable. Unless there is a typo in your mail,
you might want to try this first:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/


On Friday, September 6, 2002, at 04:36  PM, Dan Payne wrote:

> I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4.
>  I'm
> also using Struts. Evrything worked fine under the older tomcat and
> previous
> versions, but since the upgrade, all my action mappings are returning
> a "No
> action instance for path /home could be created" error.  Anybody?
>
>
> --
> 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: Error with Tomcat 4.1.10

2002-09-06 Thread Dan Payne

There was indeed a type.  Using 4.1.10.

-Original Message-
From: Han Ming Ong [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:54 PM
To: Tomcat Users List
Subject: Re: Error with Tomcat 4.1.0


They just released 4.1.10-stable. Unless there is a typo in your mail,
you might want to try this first:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/


On Friday, September 6, 2002, at 04:36  PM, Dan Payne wrote:

> I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4.
>  I'm
> also using Struts. Evrything worked fine under the older tomcat and
> previous
> versions, but since the upgrade, all my action mappings are returning
> a "No
> action instance for path /home could be created" error.  Anybody?
>
>
> --
> 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: Error with Tomcat 4.1.0

2002-09-06 Thread Han Ming Ong

They just released 4.1.10-stable. Unless there is a typo in your mail, 
you might want to try this first:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/


On Friday, September 6, 2002, at 04:36  PM, Dan Payne wrote:

> I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4. 
>  I'm
> also using Struts. Evrything worked fine under the older tomcat and 
> previous
> versions, but since the upgrade, all my action mappings are returning 
> a "No
> action instance for path /home could be created" error.  Anybody?
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>


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




Error with Tomcat 4.1.0

2002-09-06 Thread Dan Payne

I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4.  I'm
also using Struts. Evrything worked fine under the older tomcat and previous
versions, but since the upgrade, all my action mappings are returning a "No
action instance for path /home could be created" error.  Anybody?


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




RE: Error in tomcat but not in resin (caucho)

2002-09-06 Thread Curwen, Michael

Because this:
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

will commit the response, after which you cannot redirect.

Not sure why Resin would allow this.



-Original Message-
From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 5:28 PM
To: [EMAIL PROTECTED]
Subject: Error in tomcat but not in resin (caucho)


Why bellow code is error in tomcat?
this code runs well in resin.
there is any error?
thanks

code:


<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

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




uugh stuck again =P getting client side information with JSP/Servlets

2002-09-06 Thread Richard Diaz

Is it possible to NOT use JavaScript and JUST use JSP
Script alone? Specifically I need the user's screen
size and images that are placed on their browser
window (for click and drag functionality)

Maybe use a client-side applet? Or can I get the above
info in the servlet Response object?

If I have to use JavaScropt can I pass JavaScript
Variables to JSP Script Variables/Servlets?

all input much appreciated,
Rich

=


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: Apache 2.0.40 - NOT working

2002-09-06 Thread Manoj Kithany

Hi Peter,

I tried to check the logs but there were NO log files stored in 
/usr/local/apache/logs directory. I then checked httpd.conf for entry for 
Error Logs and it showed:
--
ErrorLog /logs/error.log
CustomLog logs/access_log
--

but still no log files appear under /logs directory. Even the httpd.pid file 
is no seen?

THANKS again!

Manoj G. Kithany




>From: "Peter T. Abplanalp" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Apache 2.0.40 - NOT working
>Date: Fri, 6 Sep 2002 16:07:34 -0600
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>On Fri, Sep 06, 2002 at 09:51:29PM +, Manoj Kithany wrote:
> > I tried to do "ps -ef | grep httpd" after I execute "./apachectl start" 
>but
> > it did'nt show me any process with httpd-that was my concern.
>
>then apache is not running.  what do the logs say?
>
> > Also, I READ ALL the documentation and try it firet before shooting it 
>on
> > to the Message List - I apologize it that is bothering you.
>
>well, once or twice doesn't bother too much but you keep
>asking basic questions that aren't even related to tomcat.
>anyh...
>
> > On web browser, I tried "http://my_ip_address"; on which it should show 
>"If
> > you see this page it means Apache is working..." but to me it says "Page
> > cannot be displayed"
>
>well, "page not found" is a little different than what you
>are now saying which is "page cannot be displayed."  stop
>using ie for this stuff or turn off the "friendly" error
>messages.
>
>in any event, we need to see the logs.
>
>- --
>Peter Abplanalp
>PGP: pgp.mit.edu
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.0.7 (GNU/Linux)
>
>iD8DBQE9eScmggA8sH0iRXQRAr85AJ9STPXHOARdN4u+OvXKy883NqWEFQCgmwgs
>bzljruGltAxcp33b3/ghHcE=
>=ShpT
>-END PGP SIGNATURE-
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




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


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




Bean questions

2002-09-06 Thread Vartan Nazarian

Hi,

Is Tomcat a javabean container on top of being a JSP/Servlet container?  Does it use 
introspection like the Sun's BeanBox to "look inside" the bean class file?  If so, 
does it run the introspection process during the run-time?

Thanks in advance.

Vartan
-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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




Using a different Xerces library in Tomcat 4.1 on jdk1.4

2002-09-06 Thread Sam Cheung

Hi,

The Web Application I am running needs an old version
of Xerces. I put that xerce.jar file in WEB-INF/lib,
but I still get java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser?

Could you please tell me how to fix that?


type Exception report

message 

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

exception 

javax.servlet.ServletException: Servlet.init() for
servlet ToolsUIServlet threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:952)

root cause 

java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser
at
com.ibm.commerce.tools.xml.XMLFileDirectory.cacheNewReader(XMLFileDirectory.java:48)
at
com.ibm.commerce.tools.xml.XMLFileDirectory.lookup(XMLFileDirectory.java:130)
at
com.ibm.commerce.tools.sys.WebSysManager.init(WebSysManager.java:259)



__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Re: error

2002-09-06 Thread Justin Ruthenbeck


You're (probably -- don't know without seeing the code) calling 
sendRedirect() on a response that has already been written.  Check to make 
sure you haven't already written something to the response.  Once you start 
your output (or actually -- once  the server sends output to the client), 
you can't add new headers.

justin

At 03:14 PM 9/6/2002, you wrote:
>Anybody knows whoat is this error?:
>Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
>
>
>
>
>type Exception report
>
>message Internal Server Error
>
>description The server encountered an internal error (Internal Server Error)
>that prevented it from fulfilling this request.
>
>exception
>
>java.lang.IllegalStateException
> at
>org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
>cade.java:173)
> at org.apache.jsp.index$jsp._jspService(index$jsp.java:3364)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:202)
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:247)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:193)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:243)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:201)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
>)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>66)
> at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:170)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>64)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
>)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>64)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:163)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
>ler.java:217)
> at
>org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
>4)
> at java.lang.Thread.run(Thread.java:484)
>
>
>
>
>
>
>
>
>
>
>
>
>
> MSN: [EMAIL PROTECTED]
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




Error in tomcat but not in resin (caucho)

2002-09-06 Thread Dionisio Ruiz de Zarate

Why bellow code is error in tomcat?
this code runs well in resin.
there is any error?
thanks

code:


<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

String login= (String)session.getAttribute("login");
String usuario= (String)session.getAttribute("usuario");
if(usuario==null){usuario="";}
String passwd= (String)session.getAttribute("passwd");
if(passwd==null){passwd="";}
String nivelaccesoTmp= (String)session.getAttribute("nivelacceso");
int nivelacceso=Integer.parseInt(nivelaccesoTmp);

String nivelTmp= (String)session.getAttribute("nivel");
if(nivelTmp==null){nivelTmp="0";}
  if(Integer.parseInt(nivelTmp)< nivelacceso){
  String p=request.getParameter("pagina");
  String pp=request.getParameter("pagina");
  if(paginas==null){paginas="";}
   session.setAttribute("estado","0");
   session.setAttribute("nivel","0");
   session.setAttribute("error","3");
   session.setAttribute("login","0");
   response.sendRedirect("login.jsp?p="+pp + "&" +
request.getQueryString());
  }

if ((login==null)||(login.equals("0"))){
StringBuffer pagina=HttpUtils.getRequestURL(request);
String parametros = request.getQueryString();
response.sendRedirect ("login.jsp?p=" + p );
}

%>


ERROR:

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




type Exception report

message Internal Server Error

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

exception

java.lang.IllegalStateException
at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:173)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:1144)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)





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




error

2002-09-06 Thread Dionisio Ruiz de Zarate

Anybody knows whoat is this error?:
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

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

exception

java.lang.IllegalStateException
at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:173)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:3364)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)













 MSN: [EMAIL PROTECTED]



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




Re: Apache 2.0.40 - NOT working

2002-09-06 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Sep 06, 2002 at 09:51:29PM +, Manoj Kithany wrote:
> I tried to do "ps -ef | grep httpd" after I execute "./apachectl start" but 
> it did'nt show me any process with httpd-that was my concern.

then apache is not running.  what do the logs say?

> Also, I READ ALL the documentation and try it firet before shooting it on 
> to the Message List - I apologize it that is bothering you.

well, once or twice doesn't bother too much but you keep
asking basic questions that aren't even related to tomcat.
anyh...

> On web browser, I tried "http://my_ip_address"; on which it should show "If 
> you see this page it means Apache is working..." but to me it says "Page 
> cannot be displayed"

well, "page not found" is a little different than what you
are now saying which is "page cannot be displayed."  stop
using ie for this stuff or turn off the "friendly" error
messages.

in any event, we need to see the logs.

- -- 
Peter Abplanalp
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9eScmggA8sH0iRXQRAr85AJ9STPXHOARdN4u+OvXKy883NqWEFQCgmwgs
bzljruGltAxcp33b3/ghHcE=
=ShpT
-END PGP SIGNATURE-

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




Re: Tomcat standalone Versus Apache

2002-09-06 Thread Milt Epstein

On Fri, 6 Sep 2002, Manoj Kithany wrote:

> Hi Mr. Neal,
>
> Apache is a Web Server and Tomcat is a Servlet/JSP Container and one
> has to Integrate both Apache + Tomcat to use Java Servlets/JSP's.
>
> Hope this information helps.

Unfortunately it's incorrect.  One can use either Tomcat standalone or
Tomcat integrated with Apache (or another web server) to use
servlets/JSPs.  Tomcat standalone can act as a (simple) web server to
handle static content.

In response to the original poster, I think it's hard to answer their
questions with much significant specific info (e.g. polling a few
people here won't really tell you what "most people" are doing).  It
basically depends on what the needs are, what will be on the site.  If
it's mostly dynamic content (i.e. servlets/JSPs), then Tomcat
standalone may very well serve (no pun intended :-) your needs.  If
there's at least some static content, it may be better to use it with
Apache.  Similarly if you want to use Perl CGI and/or PHP, and/or you
want to lots of customization/special kinds of things (like Aliases
and URL Rewriting and such).  About the best one can say is try it and
see.

Tomcat's "http server", AFAIK, is just a simple servlet that serves
out static files (e.g. reads and writes them).  It certainly won't be
as efficient as Apache.

Performance will depend on what exactly you're doing, e.g. the mix of
dynamic and static content.  I don't know of any particular security
concerns with Tomcat.


> >From: "neal" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: Tomcat standalone Versus Apache
> >Date: Fri, 6 Sep 2002 14:24:21 -0700
> >
> >What do most people run for production and why?  Tomcat standalone
> >or Tomcat with Apache? And for that matter, isn't the http server
> >for Tomcat Apache - or is it something else?
> >
> >John Turner mentioned the possible concern with running Tomcat as root.
> >Are there any other concerns?  Performance?  Security?
> >
> >Thanks.
> >Neal
>

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


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




Re: Apache 2.0.40 - NOT working

2002-09-06 Thread Manoj Kithany

Hi Peter,

THANKS!

I tried to do "ps -ef | grep httpd" after I execute "./apachectl start" but 
it did'nt show me any process with httpd-that was my concern.

Also, I READ ALL the documentation and try it firet before shooting it on to 
the Message List - I apologize it that is bothering you.

On web browser, I tried "http://my_ip_address"; on which it should show "If 
you see this page it means Apache is working..." but to me it says "Page 
cannot be displayed"

THANKS again!

Manoj G. Kithany



>From: "Peter T. Abplanalp" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Apache 2.0.40 - NOT working
>Date: Fri, 6 Sep 2002 15:44:28 -0600
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>On Fri, Sep 06, 2002 at 09:18:23PM +, Manoj Kithany wrote:
> > After installation I tried to see if my Web Server is working. So, I 
>tried
> > to execute the following command but there was no reply.
> > -
> > # ./apachectl start
> > #
> > -
> > I also check on the browser but it showed page not found.
>
>so what?  was the page you are trying to get to there or
>not?  if the httpd server was not running you would get a
>connection refused message, not page not found.
>
> > When I was using Apache 1.3 previously and executed apachectl start, it
> > displayed the message "httpd serevr started". Does this mean my Apache
> > 2.0.40 Server installation is not complete?
>
>how should we know?  did you follow the directions?  does ps
>- -ef | grep httpd show that there are httpd processes
>running?  what do the logs say?  you did check them, didn't
>you?
>
>btw - add some sort of linux documentation to the list of
>M's that you should FR.
>
>- --
>Peter Abplanalp
>PGP: pgp.mit.edu
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.0.7 (GNU/Linux)
>
>iD8DBQE9eSG8ggA8sH0iRXQRApJiAJ9XiMNkBzPRGDoUW7h+imDDtm9VcwCgnHjH
>gKP3wfzQeDKN4xvlhLbMEbA=
>=Bng6
>-END PGP SIGNATURE-
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




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


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




Re: Apache 2.0.40 - NOT working

2002-09-06 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Sep 06, 2002 at 09:18:23PM +, Manoj Kithany wrote:
> After installation I tried to see if my Web Server is working. So, I tried 
> to execute the following command but there was no reply.
> -
> # ./apachectl start
> #
> -
> I also check on the browser but it showed page not found.

so what?  was the page you are trying to get to there or
not?  if the httpd server was not running you would get a
connection refused message, not page not found.

> When I was using Apache 1.3 previously and executed apachectl start, it 
> displayed the message "httpd serevr started". Does this mean my Apache 
> 2.0.40 Server installation is not complete?

how should we know?  did you follow the directions?  does ps
- -ef | grep httpd show that there are httpd processes
running?  what do the logs say?  you did check them, didn't
you?

btw - add some sort of linux documentation to the list of
M's that you should FR.

- -- 
Peter Abplanalp
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9eSG8ggA8sH0iRXQRApJiAJ9XiMNkBzPRGDoUW7h+imDDtm9VcwCgnHjH
gKP3wfzQeDKN4xvlhLbMEbA=
=Bng6
-END PGP SIGNATURE-

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




Re: Tomcat standalone Versus Apache

2002-09-06 Thread Randy Secrist

I have heard reports, (although never seen actual numbers or data) that
suggest that if you have a lot of static pages for a large site, standalone
Tomcat decreases in performace pretty quickly.  That said - Apache has also
been tested and proven with static pages, and has a great system for adding
extentions.  As such, many production environments run cgi, php, and other
scripting languages for their web pages.  Apache's role as a fully
serviceable http server is much more broad than the http services Tomcat
connectors provide.  Tomcat connectors CAN interface with Apache to give jsp
/ servlet container abilities to Apache.

Usually, people run Apache + Tomcat so they can use multiple scripting
languages - since the entire world doesn't use java.  While Tomcat does
support cgi (via servlet calls), jsp / servlet containers were not designed
with this explicitly designed as their main role - while Apache was.  I have
also never heard of a servlet that imitates php...although someone who never
sleeps at night has probably implemented it.

Randy

- Original Message -
From: "neal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 3:24 PM
Subject: Tomcat standalone Versus Apache


> What do most people run for production and why?  Tomcat standalone or
Tomcat
> with Apache? And for that matter, isn't the http server for Tomcat
Apache -
> or is it something else?
>
> John Turner mentioned the possible concern with running Tomcat as root.
Are
> there any other concerns?  Performance?  Security?
>
> Thanks.
> Neal
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Tomcat standalone Versus Apache

2002-09-06 Thread Blackmore, John

Not true!!! Again, RTFM... I'm a newbie, but I can read... Tomcat will serve
static pages, just slower than Apache. That's one reason you integrate with
Apache instead of Tomcat standalone. For more reasons, try reading the
Introduction in the Tomcat-Apache HOWTO...

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

John

-Original Message-
From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 5:29 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Tomcat standalone Versus Apache


Hi Mr. Neal,

Apache is a Web Server and Tomcat is a Servlet/JSP Container and one has to 
Integrate both Apache + Tomcat to use Java Servlets/JSP's.


Hope this information helps.

Manoj G. Kithany



>From: "neal" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: Tomcat standalone Versus Apache
>Date: Fri, 6 Sep 2002 14:24:21 -0700
>
>What do most people run for production and why?  Tomcat standalone or 
>Tomcat
>with Apache? And for that matter, isn't the http server for Tomcat Apache -
>or is it something else?
>
>John Turner mentioned the possible concern with running Tomcat as root.  
>Are
>there any other concerns?  Performance?  Security?
>
>Thanks.
>Neal
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:




** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.




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




Re: Tomcat standalone Versus Apache

2002-09-06 Thread Manoj Kithany

Hi Mr. Neal,

Apache is a Web Server and Tomcat is a Servlet/JSP Container and one has to 
Integrate both Apache + Tomcat to use Java Servlets/JSP's.


Hope this information helps.

Manoj G. Kithany



>From: "neal" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: Tomcat standalone Versus Apache
>Date: Fri, 6 Sep 2002 14:24:21 -0700
>
>What do most people run for production and why?  Tomcat standalone or 
>Tomcat
>with Apache? And for that matter, isn't the http server for Tomcat Apache -
>or is it something else?
>
>John Turner mentioned the possible concern with running Tomcat as root.  
>Are
>there any other concerns?  Performance?  Security?
>
>Thanks.
>Neal
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Tomcat standalone Versus Apache

2002-09-06 Thread neal

What do most people run for production and why?  Tomcat standalone or Tomcat
with Apache? And for that matter, isn't the http server for Tomcat Apache -
or is it something else?

John Turner mentioned the possible concern with running Tomcat as root.  Are
there any other concerns?  Performance?  Security?

Thanks.
Neal


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




Apache 2.0.40 - NOT working

2002-09-06 Thread Manoj Kithany

Hi Experts,

I tried to install Apache 2.0.40 on IBM AIX System for DSO with:
#./configure --prefix=/usr/local/apache --enable-module=mod_so

After installation I tried to see if my Web Server is working. So, I tried 
to execute the following command but there was no reply.
-
# ./apachectl start
#
-
I also check on the browser but it showed page not found.

When I was using Apache 1.3 previously and executed apachectl start, it 
displayed the message "httpd serevr started". Does this mean my Apache 
2.0.40 Server installation is not complete?

THANKS!

Manoj G. Kithany




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


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




RE: SSL - cannot find /root/.keystore

2002-09-06 Thread neal

Actually, I just did a more thorough read of the docs and found the answer.
It's still not working ... but I found the answer to the two questions.  :)



-Original Message-
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 1:46 PM
To: Tomcat Users List
Subject: SSL - cannot find /root/.keystore


I'm getting this error while attempting to setup SSL on port 443 on Tomcat
on Linux:

initKeyStore:  java.io.FileNotFoundException: /root/.keystore (No such file
or directory)
java.io.FileNotFoundException: /root/.keystore (No such file or directory)

A temporary certificate has been generated and exists in my java/j2sdk/bin
directory.  Perhaps these files are suppose to go at the root or something?
But none of these generated files are of type *.keystore.  Also, is there an
attribute for the SSL connector where you can specify location of these
docs?

Thanks.
Neal


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Communicating with Tomcat3 through shell scripts.

2002-09-06 Thread Srinadh Karumuri

Hi,

I used Tomcat 3 for a while but didn't work on customizing it.

We need to disable the user input sometimes and typically we store a flag 
in the session. To modify this flag we use a jsp page.
If I can communicate with tomcat from shell scripts while it is running, I 
will be able to able to set it up in crontab etc.


Thanks for any help from you all,

-Sri


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




JNDI + NIS Authentication + Tomcat

2002-09-06 Thread Michael R. Schwab

Hi,

I've run into a bit of a stumbling block attempting to configure a
 and associated  in /etc/tomcat4/server.xml 
for web based NIS authentication using JAAS's
com.sun.security.auth.module.JndiLoginModule.

I have written a Principal and CallbackHandler class as well as the
configuration file as shown below (with the IPs and NIS domain masked):

indexName
{
com.sun.security.auth.module.JndiLoginModule required
debug=true
user.provider.url="nis://aaa.bbb.ccc.ddd/DOMAIN"
group.provider.url="nis://aaa.bbb.ccc.ddd/DOMAIN";
};

When I attempt to authenticate via a simple JSP based HTML form, I 
get the following output from the catalina.out log file:

[JndiLoginModule] user provider: nis://aaa.bbb.ccc.ddd/DOMAIN
[JndiLoginModule] group provider: nis://aaa.bbb.ccc.ddd/DOMAIN
[JndiLoginModule]:  User not found
javax.naming.NameNotFoundException: Name nis: is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at 
com.sun.security.auth.module.JndiLoginModule.attemptAuthentication(JndiLoginModule.java:497)
at com.sun.security.auth.module.JndiLoginModule.login(JndiLoginModule.java:310)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[...snip...]

[JndiLoginModule] regular authentication failed
[JndiLoginModule]: aborted authentication failed
LoginException: User not found

I have been scouring the Jakarta Tomcat, Sun, and other sites for
information/examples, but have yet to find anything of any help.

Does anyone know of any resource that describes how to properly
configure this type of web based authentication via Tomcat and
com.sun.security.auth.module.JndiLoginModule?

Thanks in advance,
Michael
-- 
Michael R. Schwab
Design Engineer
QCC Communications Corp.
[EMAIL PROTECTED]
Voice: (306) 249-0220
Fax: (306) 249-5128


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




SSL - cannot find /root/.keystore

2002-09-06 Thread neal

I'm getting this error while attempting to setup SSL on port 443 on Tomcat
on Linux:

initKeyStore:  java.io.FileNotFoundException: /root/.keystore (No such file
or directory)
java.io.FileNotFoundException: /root/.keystore (No such file or directory)

A temporary certificate has been generated and exists in my java/j2sdk/bin
directory.  Perhaps these files are suppose to go at the root or something?
But none of these generated files are of type *.keystore.  Also, is there an
attribute for the SSL connector where you can specify location of these
docs?

Thanks.
Neal


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




Re: Tomcat 4.03 Problems Setting up a

2002-09-06 Thread Steve Russell

Good to know, but I don't have the option of putting my project in the 
webapps folder.  I need to set it up elsewhere.

Steve


Ravindra K. Bhat wrote:
> I dont think you need to create a context in 4.X ..include your folder in
> the webapps folder ie for example test then you can access it by typing
> http://localhost:8080/test in you browser...
> The context was needed in 3.x..
> 
> On Fri, 6 Sep 2002, Steve Russell wrote:
> 
> 
>>Hi;
>>
>>I'm using Tomcat 4.03 with Red Hat 7.3.
>>
>>I'm having trouble setting up a  for a web application and I 
>>was hoping someone could give me a clue to what I missed in reading the 
>>manual.
>>
>>First I set up a "test" web app like this:
>>>reloadable="true"/>
>>
>>
>>It worked.
>>
>>
>>Then, I did the same thing, but for a different directory:
>>
>>
>>
>>
>>Did *NOT* work, yet when I set the docBase to "/zoora/mysubdir" it worked.
>>
>>Is Tomcat 4.03 blind to directories right off of root ?
>>
>>I am the owner of /zoora.  It and all of its subdirs are chmoded to 777.
>>
>>Any ideas?
>>
>>Thanks in advance
>>
>>
>>Steve
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 


-- 
Steve Russell
Programmer

571-203-7083

Zeera Networks, Inc.
12801 Worldgate Drive, Suite 500,
Herndon, VA
20170-4395
USA


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




Re: Tomcat 4.03 Problems Setting up a

2002-09-06 Thread Ravindra K. Bhat

I dont think you need to create a context in 4.X ..include your folder in
the webapps folder ie for example test then you can access it by typing
http://localhost:8080/test in you browser...
The context was needed in 3.x..

On Fri, 6 Sep 2002, Steve Russell wrote:

> Hi;
> 
> I'm using Tomcat 4.03 with Red Hat 7.3.
> 
> I'm having trouble setting up a  for a web application and I 
> was hoping someone could give me a clue to what I missed in reading the 
> manual.
> 
> First I set up a "test" web app like this:
>  reloadable="true"/>
> 
> 
> It worked.
> 
> 
> Then, I did the same thing, but for a different directory:
> 
> 
> 
> 
> Did *NOT* work, yet when I set the docBase to "/zoora/mysubdir" it worked.
> 
> Is Tomcat 4.03 blind to directories right off of root ?
> 
> I am the owner of /zoora.  It and all of its subdirs are chmoded to 777.
> 
> Any ideas?
> 
> Thanks in advance
> 
> 
> Steve
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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




RE: Tomcat shutdown & security

2002-09-06 Thread Przemyslaw Wegrzyn

On Fri, 2002-09-06 at 21:04, Turner, John wrote:
> 
> Very interesting.  I hadn't investigated this scenario until now.  I like
> your suggestion.

Even more, I've checked what exactly goes there, and you can stop
default Tomcat installation by simply telneting localhost 8005 and
typing SHUTDOW from your console. Of course any user can do this. 
IMHO It's not acceptable.

-=Czaj-nick=-



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




Tomcat 4.03 Problems Setting up a

2002-09-06 Thread Steve Russell

Hi;

I'm using Tomcat 4.03 with Red Hat 7.3.

I'm having trouble setting up a  for a web application and I 
was hoping someone could give me a clue to what I missed in reading the 
manual.

First I set up a "test" web app like this:



It worked.


Then, I did the same thing, but for a different directory:




Did *NOT* work, yet when I set the docBase to "/zoora/mysubdir" it worked.

Is Tomcat 4.03 blind to directories right off of root ?

I am the owner of /zoora.  It and all of its subdirs are chmoded to 777.

Any ideas?

Thanks in advance


Steve


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




trouble creating file object

2002-09-06 Thread Rutledge, Aaron

Hello List,
 I am simply trying to browse a file server for a list of filenames with the 
following JSP snipit below.  For some reason, It is returning null for the listfiles() 
method.  I know there are files in the directory and when I run the same piece of code 
inside of a main() from the server I am returned the list of files using the same JVM. 
 I have tried entering the URI different ways (such as NTSERVER\\Public\\Intranet, 
mapping a network drive and then using that, etc.) without luck.  Why would Tomcat 
have trouble with this?  I am pretty sure the same piece of code worked fine awhile 
ago.  The only thing I can think of that I've done wierd is add a CATALINA_OPTS 
variable into catalina.bat so that I could connect to resources outside of our SOCKS 
firewall (which BTW didn't work).  I have removed the variable and I still can't get 
this going.  ANy ideas???  It seems like such a simple obstacle but it is tearing my 
hair out.  Best regards, Aaron
 
File dir = new File("//NTSERVER/Public/Intranet");
File[] children = dir.listFiles();
if (children == null) {%>
Either dir does not exist or is not a directory
<%} else {
for (int i=0; i
rest of my code...

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




RE: JDBC connection persistence

2002-09-06 Thread Andrew Conrad

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


- Andrew

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


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




Re: integeration of Apache with TOCAAT

2002-09-06 Thread Ravindra K. Bhat

I am not sure it is integrated...I commented out the 8080 port in the
server.xml file but then http://servername/examples  says not found..if it
was integrated I should have succeeded

Ravi

On Fri, 6 Sep 2002, Dionisio Ruiz de Zarate wrote:

> the normal isntalation integrates both.
> they are integrated, but tomcat response, else, to the 8080 port --->
> comment the 8080 lines in the server.xml
> 
> - Original Message -
> From: "Sivaraman, Srinivasan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 06, 2002 9:30 PM
> Subject: integeration of Apache with TOCAAT
> 
> 
> > Hi ALL,
> >
> > I am a newbie to Tomcat.
> >
> > I have SuSE Linux 8.0
> > I have installed Apache 1.3.26 and Tomcat which comes with SuSE 8.0.
> > Both hte services are running. (Apache at prot 80 and Tomcat at 8080)
> > Can someone please tell me how to integerate these two, i.e how to make
> servlet requests to apache be forwarded to be handled by Tomcat?
> >
> > Thank you!!!
> >
> > --
> > 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: Apache 2.0.40 with DSO???

2002-09-06 Thread Peter T. Abplanalp

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Sep 06, 2002 at 03:33:54PM -0400, Turner, John wrote:
> 
> RTFM

i'm going to second this.  manoj, you need to read the docs
for apache, tomcat and jboss.  you might not think so but it
would be better for you if you understood those products
before you use them.  i think we have tried to be helpfull
here but you can't rely on us.  we may or may not be
available to answer your question in the timeframe you need
it answered.  do youself a favor and follow john's advice.

- -- 
Peter Abplanalp
PGP: pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9eQdqggA8sH0iRXQRAuA4AKCCuXfdbETXBCcClFIfzfHzsGWU3QCfR/7P
CMPoqf1zHxcKiayxuEs+8bM=
=XnVs
-END PGP SIGNATURE-

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




RE: Best practice advice sought: Classes shared by >1 webapp

2002-09-06 Thread Andy Eastham

Jim,

If you want the webapps to share the same static values in the same class,
put them in common/classes. (this allows a webapps to affect the data in
another webapp).

If you want the webapps to be totally independent, put a separate copy in
each webapp's individual classes directory.

Or you may want to share some classes and not share others. Put them in the
appropriate place according to the above.

Note: This is because each webapp has it's own class loader, so behaviour is
different to "normal" java programs where static values are shared across
the whole virtual machine.

Hope this helps a bit,

Andy

> -Original Message-
> From: Jim Coble [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 20:08
> To: [EMAIL PROTECTED]
> Subject: Best practice advice sought: Classes shared by >1 webapp
>
>
> I am developing two web applications that will share a few classes in
> common.  What is the best practice for handling this?  Put a copy of the
> class in the WEB-INF/classes/ directory structure of both web
> applications?
> Or put the class in Tomcat's common/classes/ directory structure?  These
> common classes are specific to our business, not general purpose ones.
> Also, these web applications are for our own internal use only, not ones
> that we will bundle up and distribute, though we will need to
> manage moving
> them successfully from our development server to our production server.
>
> Thanks in advance for any advice on best practices in this situation.
> --Jim
>
> ==
> Jim Coble
> Senior Technology Specialist
> Center for Instructional Technology
> Email: [EMAIL PROTECTED]
> Voice: 919-660-5974  Fax: 919-660-5923
> Box 90198, Duke University
> Durham, NC 27708-0198
> ==
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>



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




RE: Apache 2.0.40 with DSO???

2002-09-06 Thread Turner, John


RTFM

./configure --prefix=/usr/local/apache --enable-module=so

To check for DSO:

/usr/local/apache/bin/httpd -l and look for "mod_so.c".

John

> -Original Message-
> From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 3:30 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Apache 2.0.40 with DSO???
> 
> 
> Hi Experts,
> 
> How do I install Apache 2.0.40 with DSO? What options to include in 
> configure?
> ./configure --prefix=/usr/local/apache --enable
> 
> How can I check if it is installed for DSO???
> 
> THANKS!
> 
> Manoj G. Kithany
> 
> 
> 
> 
> 
> _
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: integeration of Apache with TOCAAT

2002-09-06 Thread Dionisio Ruiz de Zarate

the normal isntalation integrates both.
they are integrated, but tomcat response, else, to the 8080 port --->
comment the 8080 lines in the server.xml

- Original Message -
From: "Sivaraman, Srinivasan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 9:30 PM
Subject: integeration of Apache with TOCAAT


> Hi ALL,
>
> I am a newbie to Tomcat.
>
> I have SuSE Linux 8.0
> I have installed Apache 1.3.26 and Tomcat which comes with SuSE 8.0.
> Both hte services are running. (Apache at prot 80 and Tomcat at 8080)
> Can someone please tell me how to integerate these two, i.e how to make
servlet requests to apache be forwarded to be handled by Tomcat?
>
> Thank you!!!
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



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




RE: Best practice advice sought: Classes shared by >1 webapp

2002-09-06 Thread wbchmura


BDY.RTF
Description: RTF file


RE: integeration of Apache with TOCAAT

2002-09-06 Thread Turner, John


http://www.johnturner.com/howto

For Redhat, but SuSE shouldn't be that much different.

John Turner
[EMAIL PROTECTED]

> -Original Message-
> From: Sivaraman, Srinivasan
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 3:31 PM
> To: [EMAIL PROTECTED]
> Subject: integeration of Apache with TOCAAT
> 
> 
> Hi ALL,
> 
> I am a newbie to Tomcat.
> 
> I have SuSE Linux 8.0 
> I have installed Apache 1.3.26 and Tomcat which comes with SuSE 8.0.
> Both hte services are running. (Apache at prot 80 and Tomcat at 8080)
> Can someone please tell me how to integerate these two, i.e 
> how to make servlet requests to apache be forwarded to be 
> handled by Tomcat?
> 
> Thank you!!!
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Apache 2.0.40 with DSO???

2002-09-06 Thread Manoj Kithany

Hi Experts,

How do I install Apache 2.0.40 with DSO? What options to include in 
configure?
./configure --prefix=/usr/local/apache --enable

How can I check if it is installed for DSO???

THANKS!

Manoj G. Kithany





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


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




integeration of Apache with TOCAAT

2002-09-06 Thread Sivaraman, Srinivasan

Hi ALL,

I am a newbie to Tomcat.

I have SuSE Linux 8.0 
I have installed Apache 1.3.26 and Tomcat which comes with SuSE 8.0.
Both hte services are running. (Apache at prot 80 and Tomcat at 8080)
Can someone please tell me how to integerate these two, i.e how to make servlet 
requests to apache be forwarded to be handled by Tomcat?

Thank you!!!

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




Re: Best practice advice sought: Classes shared by >1 webapp

2002-09-06 Thread Josiel S. Oliveira

> I am developing two web applications that will share a few classes in
> common.  What is the best practice for handling this?  Put a copy of the
> class in the WEB-INF/classes/ directory structure of both web
applications?
> Or put the class in Tomcat's common/classes/ directory structure?  These
> common classes are specific to our business, not general purpose ones.
> Also, these web applications are for our own internal use only, not ones
> that we will bundle up and distribute, though we will need to manage
moving
> them successfully from our development server to our production server.

Hi, Jim.

Why don´t you build a JAR file with the classes to be shared,
and put it in %TOMCAT_HOME%/common/lib directory?



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




RE: jk_nt_service.exe

2002-09-06 Thread Whitcomb, Roger

Joe -
Your stderr.log shows the jni_connect.dll not being found.  I'm not familiar 
with JNI, but it sounds like a "path" issue -- it can't find this DLL where it wants 
to.  If Tomcat starts up NOT as a service, then I would check your system environment 
settings to see if PATH or maybe CLASSPATH are set correctly in the system (as opposed 
to the user settings).

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED]  


-Original Message-
From: Meagher, Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 10:32 AM
To: 'Tomcat Users List'
Subject: RE: jk_nt_service.exe


Yes they are, here are the files.

Joe


-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 12:13 PM
To: 'Tomcat Users List'
Subject: RE: jk_nt_service.exe


Are the stderr and stdout log files being created?

> -Original Message-
> From: Meagher, Joe [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 12:47 AM
> To: '[EMAIL PROTECTED]'
> Subject: jk_nt_service.exe
> 
> 
> I know this is probably an old and dead issue for most of you 
> guys, so sorry
> in advance.
> 
> I am trying to run tomcat 3.2 as a service on Win 2000.  
> Tomcat is installed
> properly as is my JDK (1.3.1_04) by the way.  Both are installed into
> directories with NO spaces.  I have configured my 
> wrapper.properties file as
> described in the docs.  After running "jk_nt_service.exe -i ..." the
> registry shows all the proper information.
> 
> Yet, still I get the following error.
> 
> net start tomcat
> The tomcat service is starting.
> The tomcat service could not be started.
> 
> The service did not report an error.
> 
> More help is available by typing NET HELPMSG 3534.
> 
> The given command does not give any useful information
> 
> If someone has a suggestion other than "take the spaces out of the
> directories" please let me know  there are NO spaces in any 
> directory I
> reference in my wrapper.properties file, or the registry 
> entry created for
> the service.
> 
> Thanks,
> 
> Joe
> 
> 
> ==
> Joe Meagher
> Rational Software
> Desk: 972-473-5226 2400 Dallas Pkwy, Suite 460
> Cell: 214-281-9318 
> Plano, TX 75093
> 
> Fax: 972-473-5210  [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: new tomcat 4.1.0, linux and mod_webapp

2002-09-06 Thread Turner, John


The instructions are in README.txt in this directory:
/some/path/to/jakarta-tomcat-connectors-4.0.4-src/webapp

John

> -Original Message-
> From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: new tomcat 4.1.0, linux and mod_webapp
> 
> 
> i'll try to install the tomcat 4.1.0 in my linux (SuSE 8), 
> with apache.
> but how can i build the mod_webapp.so file?
> thanks
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




new tomcat 4.1.0, linux and mod_webapp

2002-09-06 Thread Dionisio Ruiz de Zarate

i'll try to install the tomcat 4.1.0 in my linux (SuSE 8), with apache.
but how can i build the mod_webapp.so file?
thanks



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




Best practice advice sought: Classes shared by >1 webapp

2002-09-06 Thread Jim Coble

I am developing two web applications that will share a few classes in
common.  What is the best practice for handling this?  Put a copy of the
class in the WEB-INF/classes/ directory structure of both web applications?
Or put the class in Tomcat's common/classes/ directory structure?  These
common classes are specific to our business, not general purpose ones.
Also, these web applications are for our own internal use only, not ones
that we will bundle up and distribute, though we will need to manage moving
them successfully from our development server to our production server.

Thanks in advance for any advice on best practices in this situation.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==



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




RE: Tomcat shutdown & security

2002-09-06 Thread Turner, John


Very interesting.  I hadn't investigated this scenario until now.  I like
your suggestion.

John


> -Original Message-
> From: Przemyslaw Wegrzyn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 2:20 PM
> To: Tomcat Users List
> Subject: RE: Tomcat shutdown & security
> 
> 
> On Fri, 2002-09-06 at 14:40, Shapira, Yoav wrote:
> > Hi,
> > How about not letting any regular user execute 
> bin/shutdown.sh? ;) ;) ;)
>  
> Nope, it's not the solution.
> 
> Anyone can download tomcat, extract shutdown.sh and execute.
> Shutdown connects to Tomcat through a socket, so it's even possible
> across the net.
> 
> After briefly reviewing Tomcat installation I think the best 
> solution is
> to change  shutdown attribute in
> 
>  port="8005"
> debug="0" shutdown="SHUTDOWN">
> 
> to some other string, acting as password, and then chmod og-rx
> server.xml.
> 
> Any comments ?
> 
> -=Czaj-nick=-
> 
> 
> 
> 
>  
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 


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




any way to get just two days of logger files?

2002-09-06 Thread Rick Reumann

If I set the timestamp value to "false" in the logger settings like
below:

 

Will this only keep one day of log files or will it just be one file
that gets keeps getting larger?


Ideally what I would like is the logger fields in the server.xml to
only log the current day and keep a one day previous log. Is the only
way to accomplish this is to have some thread or script run that will
delete older files as they are no longer needed?

Thanks for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]


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




New HOWTOs posted

2002-09-06 Thread Turner, John


Hello all -

I've posted two new HOWTOs today, and have updated my earlier HOWTO.

You can reach the HOWTOs that are available now here:
http://www.johnturner.com/howto

The updated HOWTO is the Apache 1.3.26/Tomcat 4.0.4 w/ mod_jk HOWTO.  I
added an alternate method of building mod_jk (much simpler in my opinion,
given that you have build tools like autoconf, m4, and libtool on your
system).

The NEW HOWTOs are Apache 2.0.40/Tomcat 4.0.4 w/ mod_jk, and Apache
2.0.40/Tomcat 4.1.10 w/ mod_jk (not JK2...that one is in progress).

All the posted HOWTOs are for RedHat 7.2.

Also, I will be posting downloadable mod_jk.so files for AIX and Solaris 8,
thanks to Milt Epstein and the sys-admins at STS/CITES/UIUC.  They should be
available before Monday.  I will post downloadable mod_jk.so files for
Apache 1.3 and 2.0 on RedHat as well.

Comments and suggestions are welcome.  This URL:
http://www.johnturner.com/howto will remain the same, regardless of what
HOWTOs are posted.  Given some time in the next 5-7 days, I might even post
IIS and Apache on XP Pro HOWTOs for Tomcat 4.1.10, but I can't make any
promises.

- John


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


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




RE: Tomcat 4.0.4 and Apache 2.0.4 integration

2002-09-06 Thread Turner, John


mod_jk.dll is here:
http://www.acg-gmbh.de/mod_jk/

Even includes versions for 4.1.10

John

> -Original Message-
> From: Blackmore, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 2:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat 4.0.4 and Apache 2.0.4 integration
> 
> 
> Welcome to the club, many of us are struggling. You'll find 
> some updated
> docs for 4.0, but not the Tomcat/Apache integration, hopefully you've
> discovered that already. I know there are compiled mod_jk's 
> "out there" for
> NT, but I know not where. HTH-
> 
> John
> 
> -Original Message-
> From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 2:42 PM
> To: Tomcat Users List
> Subject: Tomcat 4.0.4 and Apache 2.0.4 integration
> 
> 
> 
> Hi:
> 
> Any idea how Tomcat 4.0.4/Apache 2.0.4 integration is done or 
> where I can
> find the docs for it?  I had Tomcat 3.0.2 and Apache 1.3 
> working but it
> seems to have changed.
> The OS in NT.
> 
> Thanks
> Ravi
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> **
>  
> This e-mail and any files transmitted with it may contain 
> privileged or 
> confidential information. It is solely for use by the 
> individual for whom 
> it is intended, even if addressed incorrectly. If you 
> received this e-mail 
> in error, please notify the sender; do not disclose, copy, 
> distribute, or 
> take any action in reliance on the contents of this 
> information; and delete 
> it from your system. Any other use of this e-mail is 
> prohibited. Thank you 
> for your compliance.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




RE: Tomcat 4.0.4 and Apache 2.0.4 integration

2002-09-06 Thread Turner, John


If you were using mod_jk, it's essentially the same.

If you are getting error messages, or not seeing the results you expect, or
have questions about specific changes, can you post those?  That will help
us help you.

John


> -Original Message-
> From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 2:42 PM
> To: Tomcat Users List
> Subject: Tomcat 4.0.4 and Apache 2.0.4 integration
> 
> 
> 
> Hi:
> 
> Any idea how Tomcat 4.0.4/Apache 2.0.4 integration is done or 
> where I can
> find the docs for it?  I had Tomcat 3.0.2 and Apache 1.3 
> working but it
> seems to have changed.
> The OS in NT.
> 
> Thanks
> Ravi
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Tomcat 4.0.4 and Apache 2.0.4 integration

2002-09-06 Thread Blackmore, John

Welcome to the club, many of us are struggling. You'll find some updated
docs for 4.0, but not the Tomcat/Apache integration, hopefully you've
discovered that already. I know there are compiled mod_jk's "out there" for
NT, but I know not where. HTH-

John

-Original Message-
From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 2:42 PM
To: Tomcat Users List
Subject: Tomcat 4.0.4 and Apache 2.0.4 integration



Hi:

Any idea how Tomcat 4.0.4/Apache 2.0.4 integration is done or where I can
find the docs for it?  I had Tomcat 3.0.2 and Apache 1.3 working but it
seems to have changed.
The OS in NT.

Thanks
Ravi



--
To unsubscribe, e-mail:

For additional commands, e-mail:




** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.




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




Re: jsp includes in tomcat 4..........

2002-09-06 Thread Raj Mettai

thanks justin, do you know how to do recursive touch on files in multiple directories, 
because come includes are being used all across the site...thanks again

-Raj

>>> [EMAIL PROTECTED] 09/06/02 02:27PM >>>

Tomcat won't recompile the jsp unless it sees that the jsp has changed... 
and following includes would be quite a bit of overhead to check every 
time.  If you know precisely which jsp you want to compile, you can touch 
the file to change the date on the file... this will cause a 
recompile.  Anyone know if there's an option to force recompile for every 
jsp, all the time?

justin

At 11:20 AM 9/6/2002, you wrote:
>Hi All,
>
>I am running tomcat4 on solaris8, when I modify an include in a jsp page 
>(ex: header.inc) the tomcat is not recompiling the page, even after 
>restart the changes are not coming up. If I delete .class files from work 
>folder then tomcat will re-compile the page and the changes are visible. 
>Is there any work around to make tomcat re-compile the page for include 
>changes... other than deleting the .class files itself.
>
>
>thanks in advance
>
>-Raj


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



Tomcat 4.0.4 and Apache 2.0.4 integration

2002-09-06 Thread Ravindra K. Bhat


Hi:

Any idea how Tomcat 4.0.4/Apache 2.0.4 integration is done or where I can
find the docs for it?  I had Tomcat 3.0.2 and Apache 1.3 working but it
seems to have changed.
The OS in NT.

Thanks
Ravi



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




Re: jsp includes in tomcat 4..........

2002-09-06 Thread Tim Funk

Tomcat 4.1 now checks included pages. (or at least one of the 4.1.x 
releases did - but I think it was temporarily yanked out - and I don't 
know if the functionality is back in yet or not)

As for the force recompile everytime - this would be bad since there is 
a memory leak pre-1.4.1 JDK when compiling.

Justin Ruthenbeck wrote:
> 
> Tomcat won't recompile the jsp unless it sees that the jsp has 
> changed... and following includes would be quite a bit of overhead to 
> check every time.  If you know precisely which jsp you want to compile, 
> you can touch the file to change the date on the file... this will cause 
> a recompile.  Anyone know if there's an option to force recompile for 
> every jsp, all the time?
> 
> justin
> 
> At 11:20 AM 9/6/2002, you wrote:
> 
>> Hi All,
>>
>> I am running tomcat4 on solaris8, when I modify an include in a jsp 
>> page (ex: header.inc) the tomcat is not recompiling the page, even 
>> after restart the changes are not coming up. If I delete .class files 
>> from work folder then tomcat will re-compile the page and the changes 
>> are visible. Is there any work around to make tomcat re-compile the 
>> page for include changes... other than deleting the .class 
>> files itself.
>>
>>
>> thanks in advance
>>
>> -Raj
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> 


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




Re: jsp includes in tomcat 4..........

2002-09-06 Thread Justin Ruthenbeck


Tomcat won't recompile the jsp unless it sees that the jsp has changed... 
and following includes would be quite a bit of overhead to check every 
time.  If you know precisely which jsp you want to compile, you can touch 
the file to change the date on the file... this will cause a 
recompile.  Anyone know if there's an option to force recompile for every 
jsp, all the time?

justin

At 11:20 AM 9/6/2002, you wrote:
>Hi All,
>
>I am running tomcat4 on solaris8, when I modify an include in a jsp page 
>(ex: header.inc) the tomcat is not recompiling the page, even after 
>restart the changes are not coming up. If I delete .class files from work 
>folder then tomcat will re-compile the page and the changes are visible. 
>Is there any work around to make tomcat re-compile the page for include 
>changes... other than deleting the .class files itself.
>
>
>thanks in advance
>
>-Raj


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




RE: Tomcat shutdown & security

2002-09-06 Thread Przemyslaw Wegrzyn

On Fri, 2002-09-06 at 14:40, Shapira, Yoav wrote:
> Hi,
> How about not letting any regular user execute bin/shutdown.sh? ;) ;) ;)
 
Nope, it's not the solution.

Anyone can download tomcat, extract shutdown.sh and execute.
Shutdown connects to Tomcat through a socket, so it's even possible
across the net.

After briefly reviewing Tomcat installation I think the best solution is
to change  shutdown attribute in



to some other string, acting as password, and then chmod og-rx
server.xml.

Any comments ?

-=Czaj-nick=-




 


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




jsp includes in tomcat 4..........

2002-09-06 Thread Raj Mettai

Hi All,

I am running tomcat4 on solaris8, when I modify an include in a jsp page (ex: 
header.inc) the tomcat is not recompiling the page, even after restart the changes are 
not coming up. If I delete .class files from work folder then tomcat will re-compile 
the page and the changes are visible. Is there any work around to make tomcat 
re-compile the page for include changes... other than deleting the .class 
files itself.


thanks in advance

-Raj



Re: war file deployment problem

2002-09-06 Thread Dave Robbins

Thanks a million for the quick feedback
I've got things working now
Once you see how this works it's pretty easy, but I must say getting here 
was kinda tuff
maybe when I get a little further along I'll make up a little tutorial 
titled

how to tie your shoes
before you learn to walk
before you learn to run

Thanx Again

Dave
> You are confusing Tomcat.  If you are going to dynamically deploy your
> webapp, don't have the .war file sitting in $TOMCAT_HOME/webapps.  Have
> it somewhere else.  Everything in $TOMCAT_HOME/webapps is automatically
> deployed and, yes, it is expanded if you *don't* have a Context entry
> defined for that webapp.
> 
> when you install like you are, there is already a webapp defined for
> the path you are specifying.  Now you install another webapp under the
> same name.  I don't know how Tomcat handles this situation, but it
> looks as if it hoses the webapp entry.  Make sure to name your webapps
> uniquely and don't put any .war files or expanded directories that you
> plan on dynamically installing through the manager in Tomcat's default
> auto-deploy directory (webapps).
> 
> Jake
> 
> Quoting Dave Robbins <[EMAIL PROTECTED]>:
> 
>> Hello All,
>> kindof a newbie here so be gentle
>> I wrote a little dummy app with Forte 4.0 that consists of a jsp page
>> with  a link that calls a servlet which does a database lookup and
>> spews out some
>> 
>> data. It works fine with the built in copy of Tomcat that comes with
>> Forte. I build a war file and try to deploy it on another machine with
>> Tomcat  4.0.4 on it. I put my file dummy.war in the
>> $CATALINA_HOME/webapps/dummy  dir and use this command from a browser
>> 
>> http://localhost:8080/manager/install?
>> path=/dummy&war=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
>> 
>> now the command
>> 
>> http://localhost:8080/manager/install
>> 
>> tells me that my app is running, but when I try to access it with
>> 
>> http://localhost/dummy or http://localhost/dummy/index.jsp it says the
>>  resource is not available. I kinda thought Tomcat could access the
>> war file
>> 
>> in it's bundled state but after reading the docs I got the impression
>> the  manager app was gonna expand it, is that true? In my case the
>> file wasn't  expanded. After some head scratching I figured I'd
>> manually expand the war  file in the $CATALINA_HOME/ROOT dir. After
>> doing that and restarting Tomcat
>> 
>> everything works fine with http://localhost/index.jsp.
>>  
>> So, let me ask a few questions
>> 
>> 1) What does the manager app do
>> does it modify $CATALINA_HOME/conf/server.xml
>> should it expand the war file
>> 
>> 2)If I'm gonna deploy multiple apps, what's the typical dir structure
>> $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
>> could i deploy an app outside the Tomcat dir structure (ie
>> /home/mydir)
>> 
>> 3)Is this the correct flow of things
>> Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now
>> knows  about the apps that are installed and what path they're mapped
>> to. when a  client tries to access an app, Tomcat goes and looks in
>> the jar file and  reads web.xml to discover what all is in the war
>> file. Within the war file  any static content goes in the WEB-INF dir,
>> class files go in WEB- INF/classes and .jar files goe in WEB-INF/lib
>> 
>> hep me, hep me
>> 
>> 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: 




Re: war file deployment problem

2002-09-06 Thread hoju

You are confusing Tomcat.  If you are going to dynamically deploy your webapp,
don't have the .war file sitting in $TOMCAT_HOME/webapps.  Have it somewhere
else.  Everything in $TOMCAT_HOME/webapps is automatically deployed and, yes, it
is expanded if you *don't* have a Context entry defined for that webapp.

when you install like you are, there is already a webapp defined for the path
you are specifying.  Now you install another webapp under the same name.  I
don't know how Tomcat handles this situation, but it looks as if it hoses the
webapp entry.  Make sure to name your webapps uniquely and don't put any .war
files or expanded directories that you plan on dynamically installing through
the manager in Tomcat's default auto-deploy directory (webapps).

Jake

Quoting Dave Robbins <[EMAIL PROTECTED]>:

> Hello All,
> kindof a newbie here so be gentle
> I wrote a little dummy app with Forte 4.0 that consists of a jsp page with 
> a link that calls a servlet which does a database lookup and spews out some
> 
> data. It works fine with the built in copy of Tomcat that comes with Forte.
> I build a war file and try to deploy it on another machine with Tomcat 
> 4.0.4 on it. I put my file dummy.war in the $CATALINA_HOME/webapps/dummy 
> dir and use this command from a browser
> 
> http://localhost:8080/manager/install?
> path=/dummy&war=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
> 
> now the command
> 
> http://localhost:8080/manager/install
> 
> tells me that my app is running, but when I try to access it with
> 
> http://localhost/dummy or http://localhost/dummy/index.jsp it says the 
> resource is not available. I kinda thought Tomcat could access the war file
> 
> in it's bundled state but after reading the docs I got the impression the 
> manager app was gonna expand it, is that true? In my case the file wasn't 
> expanded. After some head scratching I figured I'd manually expand the war 
> file in the $CATALINA_HOME/ROOT dir. After doing that and restarting Tomcat
> 
> everything works fine with http://localhost/index.jsp.
>  
> So, let me ask a few questions
> 
> 1) What does the manager app do
> does it modify $CATALINA_HOME/conf/server.xml
> should it expand the war file
> 
> 2)If I'm gonna deploy multiple apps, what's the typical dir structure
> $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
> could i deploy an app outside the Tomcat dir structure (ie /home/mydir)
> 
> 3)Is this the correct flow of things
> Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now knows 
> about the apps that are installed and what path they're mapped to. when a 
> client tries to access an app, Tomcat goes and looks in the jar file and 
> reads web.xml to discover what all is in the war file. Within the war file 
> any static content goes in the WEB-INF dir, class files go in WEB-
> INF/classes and .jar files goe in WEB-INF/lib
> 
> hep me, hep me
> 
> Dave
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 



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




Seting Classpath for Virtual Hosts with Tomcat 3.3.1

2002-09-06 Thread Joshua D. Drake

Hello,

  I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having 
problems getting Tomcat to pick up new
classpaths for virtual hosts. We can successfully run jsp files from the 
virtual hosts but once we try to add a class
(for JavaBeans in this case) it fails.

  Here is my apps-vhosts.xml:

  

 
  
 


Also I have the following lines in my tomcat.properties:

wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/usr/java/j2sdk1.4.0_01/bin
wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhosting/sfl/htdocs

Normally I would call to a separate class directory but I am just trying 
to get it to work at this point.
I also added the following to my tomcat3.conf although it is my 
understanding that tomcat3 doesn't
care about shell variables for the classpath:

CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sfl/htdocs
export CLASSPATH

Help would be greatly appreciated,

Sincerely,

Joshua D. Drake










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




Re: war file deployment problem

2002-09-06 Thread Dave Robbins

What? Me make it more complicated than it is?
surely you jest!

I got it to work by putting the war file in $CATALINA_HOME/webapps/ROOT 
I still don't know what I'm doing but I'll be able to figure it out now 
that I've got something working.

Thanks
Dave 
> Hi Dave.
> 
> I think you're making this more complicated than it needs to be.
> 
> Two things:
> 1. Try putting your war file in the $CATALINA_HOME/webapps directory
> rather than
>  $CATALINA_HOME/webapps/dummy.  If your tomcat installation is set up
>  to unpack
> war files (this is the default) it will create the "dummy" webapp
> directory for you and unpack everything into that directory when you
> restart tomcat.
> 
> 2. The URL to use to access your webapp will also have to use port
> 8080.  Unless you've modified your server.xml file and you're running
> tomcat as root that is.  This set up will work with the out of the box
> tomcat installation.  No need to modify server.xml at all.
> 
> You should then be able to access your app like this:
> http://localhost:8080/dummy
> 
> See if that simplifies things.
> 
> Regards,
> Pete  
> 
> On Fri, 6 Sep 2002 12:51:26 -0400 (EDT)
> "Dave Robbins" <[EMAIL PROTECTED]> wrote:
> 
>> Hello All,
>> kindof a newbie here so be gentle
>> I wrote a little dummy app with Forte 4.0 that consists of a jsp page
>> with  a link that calls a servlet which does a database lookup and
>> spews out some  data. It works fine with the built in copy of Tomcat
>> that comes with Forte. I build a war file and try to deploy it on
>> another machine with Tomcat  4.0.4 on it. I put my file dummy.war in
>> the $CATALINA_HOME/webapps/dummy  dir and use this command from a
>> browser
>> 
>> http://localhost:8080/manager/install?
>> path=/dummy&war=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
>> 
>> now the command
>> 
>> http://localhost:8080/manager/install
>> 
>> tells me that my app is running, but when I try to access it with
>> 
>> http://localhost/dummy or http://localhost/dummy/index.jsp it says the
>>  resource is not available. I kinda thought Tomcat could access the
>> war file  in it's bundled state but after reading the docs I got the
>> impression the  manager app was gonna expand it, is that true? In my
>> case the file wasn't  expanded. After some head scratching I figured
>> I'd manually expand the war  file in the $CATALINA_HOME/ROOT dir.
>> After doing that and restarting Tomcat  everything works fine with
>> http://localhost/index.jsp.
>>  
>> So, let me ask a few questions
>> 
>> 1) What does the manager app do
>> does it modify $CATALINA_HOME/conf/server.xml
>> should it expand the war file
>> 
>> 2)If I'm gonna deploy multiple apps, what's the typical dir structure
>> $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
>> could i deploy an app outside the Tomcat dir structure (ie
>> /home/mydir)
>> 
>> 3)Is this the correct flow of things
>> Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now
>> knows  about the apps that are installed and what path they're mapped
>> to. when a  client tries to access an app, Tomcat goes and looks in
>> the jar file and  reads web.xml to discover what all is in the war
>> file. Within the war file  any static content goes in the WEB-INF dir,
>> class files go in WEB- INF/classes and .jar files goe in WEB-INF/lib
>> 
>> hep me, hep me
>> 
>> Dave
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:  
>>  For additional
>> commands, e-mail: 
>> 
> 
> 
> --
> Peter Davison
> [EMAIL PROTECTED]
> 
> ...the increased productivity fostered by a friendly environment and
> quality tools is essential to meet ever increasing demands for
> software.
> -- M. D. McIlroy, E. N. Pinson and B. A. Tague
> 
> --
> To unsubscribe, e-mail:  
>  For additional
> commands, e-mail: 



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




Re: war file deployment problem

2002-09-06 Thread Peter Davison

Hi Dave.

I think you're making this more complicated than it needs to be.

Two things:
1. Try putting your war file in the $CATALINA_HOME/webapps directory rather than
 $CATALINA_HOME/webapps/dummy.  If your tomcat installation is set up to unpack
war files (this is the default) it will create the "dummy" webapp directory for
you and unpack everything into that directory when you restart tomcat.

2. The URL to use to access your webapp will also have to use port 8080.  Unless
you've modified your server.xml file and you're running tomcat as root that is. 
This set up will work with the out of the box tomcat installation.  No need to
modify server.xml at all.

You should then be able to access your app like this:
http://localhost:8080/dummy

See if that simplifies things.

Regards,
Pete  

On Fri, 6 Sep 2002 12:51:26 -0400 (EDT)
"Dave Robbins" <[EMAIL PROTECTED]> wrote:

> Hello All,
> kindof a newbie here so be gentle
> I wrote a little dummy app with Forte 4.0 that consists of a jsp page with 
> a link that calls a servlet which does a database lookup and spews out some 
> data. It works fine with the built in copy of Tomcat that comes with Forte.
> I build a war file and try to deploy it on another machine with Tomcat 
> 4.0.4 on it. I put my file dummy.war in the $CATALINA_HOME/webapps/dummy 
> dir and use this command from a browser
> 
> http://localhost:8080/manager/install?
> path=/dummy&war=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/
> 
> now the command
> 
> http://localhost:8080/manager/install
> 
> tells me that my app is running, but when I try to access it with
> 
> http://localhost/dummy or http://localhost/dummy/index.jsp it says the 
> resource is not available. I kinda thought Tomcat could access the war file 
> in it's bundled state but after reading the docs I got the impression the 
> manager app was gonna expand it, is that true? In my case the file wasn't 
> expanded. After some head scratching I figured I'd manually expand the war 
> file in the $CATALINA_HOME/ROOT dir. After doing that and restarting Tomcat 
> everything works fine with http://localhost/index.jsp.
>  
> So, let me ask a few questions
> 
> 1) What does the manager app do
> does it modify $CATALINA_HOME/conf/server.xml
> should it expand the war file
> 
> 2)If I'm gonna deploy multiple apps, what's the typical dir structure
> $CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
> could i deploy an app outside the Tomcat dir structure (ie /home/mydir)
> 
> 3)Is this the correct flow of things
> Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now knows 
> about the apps that are installed and what path they're mapped to. when a 
> client tries to access an app, Tomcat goes and looks in the jar file and 
> reads web.xml to discover what all is in the war file. Within the war file 
> any static content goes in the WEB-INF dir, class files go in WEB-
> INF/classes and .jar files goe in WEB-INF/lib
> 
> hep me, hep me
> 
> Dave
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
Peter Davison
[EMAIL PROTECTED]

...the increased productivity fostered by a friendly environment and quality
tools is essential to meet ever increasing demands for software.
-- M. D. McIlroy, E. N. Pinson and B. A. Tague

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




war file deployment problem

2002-09-06 Thread Dave Robbins

Hello All,
kindof a newbie here so be gentle
I wrote a little dummy app with Forte 4.0 that consists of a jsp page with 
a link that calls a servlet which does a database lookup and spews out some 
data. It works fine with the built in copy of Tomcat that comes with Forte.
I build a war file and try to deploy it on another machine with Tomcat 
4.0.4 on it. I put my file dummy.war in the $CATALINA_HOME/webapps/dummy 
dir and use this command from a browser

http://localhost:8080/manager/install?
path=/dummy&war=jar:file:$CATALINA_HOME/webapps/dummy/dummy.war!/

now the command

http://localhost:8080/manager/install

tells me that my app is running, but when I try to access it with

http://localhost/dummy or http://localhost/dummy/index.jsp it says the 
resource is not available. I kinda thought Tomcat could access the war file 
in it's bundled state but after reading the docs I got the impression the 
manager app was gonna expand it, is that true? In my case the file wasn't 
expanded. After some head scratching I figured I'd manually expand the war 
file in the $CATALINA_HOME/ROOT dir. After doing that and restarting Tomcat 
everything works fine with http://localhost/index.jsp.
 
So, let me ask a few questions

1) What does the manager app do
does it modify $CATALINA_HOME/conf/server.xml
should it expand the war file

2)If I'm gonna deploy multiple apps, what's the typical dir structure
$CATALINA_HOME/ROOT/app1, $CATALINA_HOME/ROOT/app2, etc
could i deploy an app outside the Tomcat dir structure (ie /home/mydir)

3)Is this the correct flow of things
Tomcat starts up and reads $CATALINA_HOME/conf/server.xml and now knows 
about the apps that are installed and what path they're mapped to. when a 
client tries to access an app, Tomcat goes and looks in the jar file and 
reads web.xml to discover what all is in the war file. Within the war file 
any static content goes in the WEB-INF dir, class files go in WEB-
INF/classes and .jar files goe in WEB-INF/lib

hep me, hep me

Dave



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




Help with UserTransaction using Tyrex 9.7.0/Oracle 8.1.7/Tomcat4.0.4

2002-09-06 Thread Ravindar Roopreddy


I am trying to get the "UserTransaction" working with Following setup :

- Tomcat 4.0.4, Oracle 8.1.7 JDBC driver (classes12.zip) and Tyrex 9.7.0

I get the following exception. I tried different combinations without much luck. I saw 
some posts that seems to think the
exception is because the JDBC driver is non-xa. When I try Oracle XA driver (commented 
out below in server.xml) I get
null data source at JNDI lookup time.

I would really appreciate if anybody has a working setup with the above configuration 
and willing share. I could not find
any documentation as to how to get this working.

Thanks
-Ravi R
-

javax.transaction.HeuristicRollbackException: Transaction has been rolled back
at tyrex.tm.TransactionImpl.commit(TransactionImpl.java:724)
at tyrex.tm.TransactionImpl.commit(TransactionImpl.java:648)
at tyrex.tm.TransactionManagerImpl.commit(TransactionManagerImpl.java:222)
at tyrex.tm.UserTransactionImpl.commit(UserTransactionImpl.java:105)
at org.apache.jsp.dbtest$jsp._jspService(dbtest$jsp.java:123)

Here is my sample configuration and JSP code :

1. server .xml (If I enable the "oracle XA driver, comment out here,  I get null 
DataSource in JSP)

  

userRAVI
passwordTEST

driverClassNameoracle.jdbc.driver.OracleDriver


driverName
jdbc:oracle:thin:@helios:1521:vcd1


maxActive
32


maxIdle
4



2. web.xml


myDS
javax.sql.DataSource
Container


3. Test jsp

<%@ page import=" java.util.Collection,
java.util.Iterator,,
 javax.naming.*,
 javax.sql.*,
 java.sql.*,
 javax.transaction.*,
 javax.naming.*"%>

  
DB Test
  
  

  <%
  InitialContext initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup("java:comp/env");
  //DataSource ds = null;
  Connection conn = null;

  Object tx = (new InitialContext()).lookup("java:comp/UserTransaction");
  UserTransaction utx = (UserTransaction) tx;

  System.out.println("Get status:"+utx.getStatus());

  // If I try the following line I get ClassCastException, the next line seems to 
work ok
  //ds = (DataSource)envCtx.lookup("myDS");
  tyrex.jdbc.xa.EnabledDataSource ds = 
(tyrex.jdbc.xa.EnabledDataSource)envCtx.lookup("myDS");
  System.out.println("Data source:"+ds);
  conn = ds.getConnection();
  conn.setAutoCommit(false);
  
  utx.begin();

if(conn != null)  {
Statement stmt = conn.createStatement();
stmt.executeUpdate("UPDATE USER SET USERNAME='y' WHERE 
PASSWORD='pwd'");
}

  utx.commit();
  %>
  


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




RE: JDBC connection persistence

2002-09-06 Thread William Wragg

Hi,

Thanks for the input. I have tried making sure all resources are closed by 
closing them myself with xxx.close() but I still get connections hanging 
around. I will look into the DBCP, but if manually closing all the 
resources does not solve the problem, will DBCP?

Regards,

Wm.

At 16:08 05/09/2002, you wrote:

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.385 / Virus Database: 217 - Release Date: 04/09/2002



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


RE: Load Balancing Tomcat 3.2.3

2002-09-06 Thread Anthony Milbourne

Hi

I found a reasonably good article on this at http://www.ubeans.com/tomcat/.
It covers Tomcat 4.0.2 so there may be some differences but I imagine the
mod_jk bits will be the same.

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: 06 September 2002 13:29
> To:   [EMAIL PROTECTED]
> Subject:  Load Balancing Tomcat 3.2.3
> 
> Hi,
> 
> I am currently trying to install and configure Tomcat 3.2.3 in a Load
> Balanced configuration across two Solaris Servers.  I have tried to find a
> documented procedure for this but no joy.  Does anyone have such
> procedure?
> 
> Thanks in Advance,
> 
> Ian.
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




RE: Problem running Tomcat 4.0.4 under JDK 1.4.1

2002-09-06 Thread Ganey, Todd

Do you have the correct tools.jar in your $TOMCAT_HOME\common\lib folder?
To me it sounds like you have an older JDK tools.jar in your folder.  Just
copy the correct jdk tools.jar from the $JDK_DIR\lib\tools.jar into the
tomcat\common\lib.  

Hope that helps,
Todd Ganey

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 4:22 AM
To: 'Tomcat Users List'
Subject: RE: Problem running Tomcat 4.0.4 under JDK 1.4.1


Hi all

I've downgraded the JDK to 1.4.0 but I'm still getting the following errors
when executing the jsp pages. I can access the servlets that generate HTML
specifically because I have some mapped to URL's so the problem is only
happening when Tomcat tries to compile the JSP's.

Thanks for any help
Donie

type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception 
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Invalid class file format:
C:\mmsdev\dev\mms\webapps\mms\WEB-INF\classes\com\tecnomen\mms\relay\Version
.class, wrong version: 46, expected 45

C:\tomcat4.0\work\Standalone\www.vodofone.ie\_\onm\index$jsp.java:3: Class
com.tecnomen.mms.relay.Version not found in import.
import com.tecnomen.mms.relay.Version;
   ^
error: Invalid class file format:
C:\mmsdev\dev\mms\webapps\mms\WEB-INF\classes\com\tecnomen\mms\relay\Stat.cl
ass, wrong version: 46, expected 45

C:\tomcat4.0\work\Standalone\www.vodofone.ie\_\onm\index$jsp.java:4: Class
com.tecnomen.mms.relay.Stat not found in import.
import com.tecnomen.mms.relay.Stat;
   ^
error: Invalid class file format:
C:\mmsdev\dev\mms\webapps\mms\WEB-INF\classes\com\tecnomen\mms\relay\Traffic
Manager.class, wrong version: 46, expected 45

C:\tomcat4.0\work\Standalone\www.vodofone.ie\_\onm\index$jsp.java:5: Class
com.tecnomen.mms.relay.TrafficManager not found in import.
import com.tecnomen.mms.relay.TrafficManager;
   ^
error: Invalid class file format:
C:\mmsdev\dev\mms\webapps\mms\WEB-INF\classes\com\tecnomen\mms\processor\Loa
dControlProcessor.class, wrong version: 46, expected 45

C:\tomcat4.0\work\Standalone\www.vodofone.ie\_\onm\index$jsp.java:6: Class
com.tecnomen.mms.processor.LoadControlProcessor not found in import.
import com.tecnomen.mms.processor.LoadControlProcessor;
   ^
error: Invalid class file format:
C:\mmsdev\dev\mms\webapps\mms\WEB-INF\classes\com\tecnomen\mms\relay\Alarms.
class, wrong version: 46, expected 45

C:\tomcat4.0\work\Standalone\www.vodofone.ie\_\onm\index$jsp.java:7: Class
com.tecnomen.mms.relay.Alarms not found in import.
import com.tecnomen.mms.relay.Alarms;
   ^
10 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:176)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:188)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.a

RE: Url Mapping with mod_jk

2002-09-06 Thread Turner, John


Actually, posting your mod_jk.conf file would be of more help...that's where
the JkMount directives that aren't working should be.

You have the Listener elements (*.ApacheConfig) in your server.xml.  There's
no need to have anything in httpd.conf except:

Include /some/path/to/tomcat/conf/auto/mod_jk.conf

The other thing I would change is to add forwardAll="false" to your Listener
directives...the default is true, and as far as I know, unless you
explicitly state "false", all requests for that URL will go to Tomcat,
making Apache (and mod_jk) redundant.  You want only dynamic requests (*.jsp
and servlet/*) to go to Tomcat.

A working mod_jk.conf file is here:
http://www.johnturner.com/howto/mod_jk_conf.html

That file was generated by Tomcat, I didn't do anything to it except sub in
"xxx.yyy.com" for my actual hostname.  

John

> -Original Message-
> From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 12:10 PM
> To: 'Tomcat Users List'
> Subject: RE: Url Mapping with mod_jk
> 
> 
> Hi
> 
> Thanks for that help - I now realise more about how the 
> server.xml works.
> I have done what you said and my webapp now appears in the 
> root url when I
> connect direct to Tomcat (which is great).  Unfortunately 
> when I connect via
> Apache I get back the JSP source, as if it has not gone 
> through Tomcat.  I
> have played around a bit and can't figure out what is going on.  
> Could you (or anyone) take a look at the config snippets 
> below and see if
> you can spot the problem.
> 

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




Re: Running a long transaction with tomcat but responding to userqui ckly

2002-09-06 Thread Ronald Klop

Try something like this in your servlet.

void doGet(request, response) {
...
// Get request info
...
out = response.getOutputStream();
out.write("Hello, everything is ok.");
out.close();
...
// Do the transaction here
...
}

Greetings,

Ronald.

Donie Kelly wrote:
> Hi all
> 
> I want to run a long transaction which lasts about 2 seconds with tomcat but
> after I have gathered the information from the request I want to return 200
> OK to user and close the connection to the browser. However, the thread
> should continue to process the request and when finished it should return to
> the thread pool tomcat has.
> 
> I want to set the tomcat pool up as follows in server.xml
>  port="80" minProcessors="5" maxProcessors="5"
>enableLookups="true" redirectPort="443" acceptCount="100"
> debug="0" connectionTimeout="6"/>
> So basically, I want only 5 threads running at any time and under load
> conditions it should cause a backlog of 100 with 5 threads doing the
> processing. It is important though that the threads return quickly to the
> user.
> 
> Thanks for any solutions
> Donie
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

-- 
  Ronald Klop
  Amsterdam, The Netherlands


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




RE: Url Mapping with mod_jk

2002-09-06 Thread Anthony Milbourne

Hi

Thanks for that help - I now realise more about how the server.xml works.
I have done what you said and my webapp now appears in the root url when I
connect direct to Tomcat (which is great).  Unfortunately when I connect via
Apache I get back the JSP source, as if it has not gone through Tomcat.  I
have played around a bit and can't figure out what is going on.  
Could you (or anyone) take a look at the config snippets below and see if
you can spot the problem.

The (I think) pertinent bit of my httpd.conf is:


  LoadModule jk_module /usr/local/apache/libexec/mod_jk.so


JkWorkersFile "/usr/local/jakarta-tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat/logs/mod_jk.log"

JkLogLevel info


ServerName stagenewngfl.ngfl.gov.uk

JkMount /* ajp13



And the server.xml file (without some comments) is:



  

  







  

  



  

  

  

  






  

  

  

  
  

  
  


  





  

  

  

  

  
  













  

  


Sorry that is a bit of a long config snippet - I tried to cut it down but
I'm not confident enough with server.xml to know which bits are relevant.

Thanks for any help,

Anthony.


> -Original Message-
> From: Turner, John [SMTP:[EMAIL PROTECTED]]
> Sent: 04 September 2002 15:18
> To:   'Tomcat Users List'
> Subject:  RE: Url Mapping with mod_jk
> 
> 
> How is this not handled with a Host and Context element?
> 
> Apache config:
> 
> VirtualHost one.host.com
> JkMount /*.jsp AJP13
> 
> VirtualHost two.host.com
> JkMount /*.jsp AJP13
> 
> Tomcat:
> 
> Host name="one.host.com"
> Context path="" docBase="one"
> 
> Host name="two.host.com"
> Context path="" docBase="two"
> 
> Host one files go in $CATALINA_HOME/webapps/one, host two files go in
> $CATALINA_HOME/webapps/two.  So then you would have one.host.com/index.jsp
> and two.host.com/index.jsp.
> 
> I haven't tried this with 4.x, the tomcats I have with virtual hosts are
> all
> 3.x and server.xml is quite a bit different, but I don't see why it
> wouldn't
> work, especially with some tweaking.
> 
> John
> 
> > -Original Message-
> > From: Anthony Milbourne [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 04, 2002 9:58 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Url Mapping with mod_jk
> > 
> > 
> > Hi
> > 
> > I know this question was asked in Feb but it didn't seem to 
> > get a full reply
> > back then - so I'm asking again.
> > 
> > I have one instanve of Apache 1.3 talking over mod_jk to one 
> > instance of
> > Tomcat 4.0.4.  Apache has 2 virtualhosts set up for the 2 
> > webapps deployed
> > on Tomcat.  Both virtualhosts need to have the webapps mapped 
> > to the root
> > url.
> > 
> > Currently I am using directives like:
> > 
> > JkMount /app1/*.jsp ajp13
> > 
> > but this mounts the webapp under the /app1 url.  I can't make app1 the
> > Tomcat root app as this would also need to be done for app2.  With
> > mod_webapp you can mount a given webapp under a given URL - 
> > but I haven't
> > seen anything like this for mod_jk.  Is it possible with 
> > mod_jk or do I have
> > to kludge it with an apache alias ?
> > 
> > Thanks,
> > 
> > Anthony.
> > 
> > PS - sorry if Outlook has filled this post with HTML.
> 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


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




  1   2   >