RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Ricky Leung
Thanks for the info.

For the information, Tomcat usually stops, but occasionally, it doesn't.
This seems to happen when there are some lockwaits on the db and Tomcat is
just sitting there waiting for it to return.  And yes, we are tracking on it
to see why this is happening so we can have this fixed.


Ricky

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 1:03 PM
> To: Tomcat Users List
> Subject: RE: tomcat not starting after reboot or from cron
>
>
> Howdy,
> I can't share the exact script due to intellectual property law issues
> ;)  But it's trivial, basically doing:
>
> export CATALINA_HOME=/foo/bar
> $CATALINA_HOME/bin/shutdown.sh
> sleep 60
> $CATALINA_HOME/bin/startup.sh
>
> That's it.
>
> >One of the problems I am worried about
> >is that Tomcat isn't stopping, so I would need to wait for it to end or
> >kill it before I restart it.
>
> If tomcat isn't stopping, find out why and fix it if possible.  The most
> typical cause is non-daemon user threads spawned by your apps but never
> destroyed properly.  We had that problem and fixed it where we could.
> Where we can't, we run only one webapp per instance and have a
> ServletContextListener with a System.exit() call in its
> contextDestroyed() method to assure shutdown.  Not the cleanest
> solution, but it's worked well in practice.
>
> Yoav Shapira
> Millennium ChemInformatics
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Ricky Leung
Do you mind sharing your Tomcat restart script with us?  I want to do the
same but perhaps on a weekly basis.  One of the problems I am worried about
is that Tomcat isn't stopping, so I would need to wait for it to end or kill
it before I restart it.

Any help would be appreciated.

Thanks.
Ricky

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 12:31 PM
> To: Tomcat Users List
> Subject: RE: tomcat not starting after reboot or from cron
>
>
> Howdy,
> We have some tomcat instances that restart nightly from a crontab,
> without a problem.  They're all tomcat 4.0.6-LE on Solaris 2.8.  None
> use apache as the front end.  None run as root.  Each runs as its own
> user, and the restart job is in that user's crontab.  We've had no
> problems with this setup.  What does the cron output email say when you
> have problems?
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: Lott, Carey [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, January 22, 2003 12:13 PM
> >To: 'Tomcat Users List'
> >Subject: tomcat not starting after reboot or from cron
> >
> >Has anybody had a problem with tomcat (4.0.4) starting after a reboot?
> Or
> >problems starting it from the root crontab?
> >I have no problems at all starting tomcat manually.  Everything works
> fine
> >that way.
> >To automate the startup after a reboot, I am using init.d with the
> startup
> >script in rc3.d.  However, nothing is happening.  I'm not even
> receiving
> >any
> >errors in the logs.  But I can immediately start it manually with out a
> >problem.
> >Also I can't stop and start tomcat from a crontab.  I set up a stop and
> >start script and placed them in the root crontab, but the time comes to
> >stop
> >tomcat and nothing happens then the startup script should be initiated
> a
> >minute later but it is a mute point since tomcat didn't stop, but
> nothing
> >shows up in the logs either way.
> >Is there a parameter or something that I am missing for this to work?
> >
> >I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
> >Solaris 2.7.  Apache 1.3.9 is running on the server as well using port
> 80.
> >
> >Thanks in advance for the help.
> >
> >- Carey -
> >
> >--
> >To unsubscribe, e-mail:    >[EMAIL PROTECTED]>
> >For additional commands, e-mail:  >[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: mod_jk performance

2003-01-22 Thread Ricky Leung
I had the same problem so if you look carefully, you can see the script
changed to a sub-directory and was still trying to access "./libtool".  The
easiest way without modifying the script for me was just creating a link in
that directory to point to the parent's libtool.  I had to create 2 links in
order for this to work till the end, just read the error when it fails and
you will know where to create the links.


> -Original Message-
> From: Pimentel, William (Col) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 4:14 PM
> To: [EMAIL PROTECTED]
> Subject: mod_jk performance
>
>
> Hello
>
> I've been unsuccesfully trying to compile mod_jk.so for Solaris 8, i get
> all kind of weird erros such as:
>
> sh: ./libtool: not found
> *** Error code 1
>
> when there's a ./libtool in the current directory  (native)
>
> The reason i'm trying to compile a new module is because the one i got
> some time ago doesn't work well, it's so slow when i try to display
> a jsp or servlet page over port 80 (apache), whereas it runs smoothly
> over port 8080 (tomcat).
>
> Can anybody tell me how to get this module to compile on Solaris 8?? i
> have tomcat 4.1.18 and Apache 2.0.x
>
> Thanks
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: tomcat,mod_jk & loadbalancing

2002-12-09 Thread Ricky Leung
> mod_jk 1.2.0 indeed does contain the socket_timeout &
> cache_timeout settings
> (I dont't know if they work, though)

I couldn't see it in the source code of 1.2.0 but I could be wrong about
that.


> This version doesn't seem to have any timeout options.
> Documentation says mod_jk is independent of tomcat version, so I guess I
> could just update the Apache/mod_jk part of my system. Is this assumption
> correct

yes, this is the idea.
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1
/

>
> I wouldn't want to switch to another tomcat, because chnages like
> this tend
> to create countless problems in regard to source compatibility.

There have been bugfixes with 4.0.2 so I would suggest installing
and testing with 4.0.6.  With this minor upgrade, you should see
very little change in comparison to 4.1.x.


Ricky


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




RE: tomcat,mod_jk & loadbalancing

2002-12-09 Thread Ricky Leung
> - if 1.2.0 doesn't use socket_timeout could I use cache_timeout ?

I think this is best used with web servers with threading models.  If you
are using apache2.x, then yes, use it, but if you are using apache1.3.x,
then this doesn't help.

> Could you give me an entry point to the mod_jk sources?

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1
/

click on the src link.

> - Another idea: We are operating a newspaper website, and
> offering our users
> to log into our system to get additional services.
> Of course most people won't log in because they just want to read
> the news.

Depending on how you code your application you will configure accordingly.
Are you using encodeURL()?  If not, your users are probably bouncing around
with each click even when they are not logged in.  In my opinion, you should
really maintain a session for each user whether they login or not.  This
way, they won't be connecting to a new Tomcat thread with each click.  You
can set the default session to expire in 3 mins or some other short time in
web.xml.  Then for those who logins, the web application expires in much
longer period.  There were just posts covering this topic.  This should
decrease your Tomcat threads.


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




RE: tomcat,mod_jk & loadbalancing

2002-12-09 Thread Ricky Leung
I know the documentation says the socket_timeout is there since 1.2.0, but
when I look at the source code, it seems to only read this configuration
setting with 1.2.1.  You might want to give that a try and also make sure
that you invalidate your sessions when people logout (which helps).  As for
that error, if a user stops the browser from waiting then you will get that
error.  If your site is slow, then you might see more of that then because
users will get inpatient waiting and waiting.


Ricky

> -Original Message-
> From: Julian Löffelhardt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 11:18 AM
> To: [EMAIL PROTECTED]
> Subject: tomcat,mod_jk & loadbalancing
>
>
> Hi,
>
> I'm using an Apache <---> 3 Tomcats loadbalancing scenario with
>
> Apache 1.3.26 mod_jk 1.2.0
> 3 x tomcat 4.0.4
>
> The tomcats are configured with:
> Xmx: 512m
> AJP13 Connector allows for 800 connections
>
> Each worker is set up like this and added to an loadbalanced worker
>
> worker.host1.port=8009
> worker.host1.host=host1
> worker.host1.type=ajp13
> worker.host1.lbfactor=10
> worker.host1.socket_timeout=300
>
>
> I keep experiencing the following problems:
> -The threadcount of each tomcat process keeps increasing (never decreases)
> - The memory usage keeps also increasing
> - When examinig the tomcat process with "ps -aux" I see many(>200) threads
> older than 1 day.
> I  thought that teh socket_timeout would always stop such
> threads after
> 5 minutes
>
> The AJP-Connectior threads keep throwing exceptions like:
>
>
> 2002-12-09 16:58:59 Ajp13Processor[8009][583] process: invoke
> java.net.SocketException: Socket closed
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> at org.apache.ajp.Ajp13.send(Ajp13.java:525)
> at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
> at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
> at
> org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.
> java:196)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
> at java.lang.Thread.run(Thread.java:536)
>
>
> 2002-12-09 13:09:21 Ajp13Processor[8009][349] process: invoke
> java.lang.IllegalArgumentException: Cookie name path is a reserved token
> at javax.servlet.http.Cookie.(Cookie.java:185)
> at
> org.apache.ajp.tomcat4.Ajp13Request.addCookies(Ajp13Request.java:189)
> at
> org.apache.ajp.tomcat4.Ajp13Request.setAjpRequest(Ajp13Request.java:148)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:446)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
> at java.lang.Thread.run(Thread.java:536)
>
>
> - When a tomcat instance gets into problems some connections still seem to
> work while others emit:
>
> 2002-12-09 13:32:25 Ajp13Processor[8009][155] process: invoke
> java.lang.OutOfMemoryError
>
> problem is that the mod_jk module (in the apache server) sometimes doesn't
> notive that a tomcat instance has problems and keeps sending
> connectuions to
> this particular instance , thereby freezing the whole cluster.
>
> --
>
> Now my question is:
>
> Do you think that upgrading to some other version of  tomcat,
> mod_jk, apache
> .. would solve some of my problems. Any experience with tomcat
> load-balancing under high -loads (Currently ~1 million pageviews/day).
>
>
> Any help would be appreciated?
>
> llap,
> julian löffelhardt
>
>
>
>
>
>
> -
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Why does encodeURL not include Session ID when switching between HTTP and HTTPS

2002-12-01 Thread Ricky Leung
just take the protocol and domain part out of the encodeURL function and
only have the rest of the section be in encodeURL().

so in stead of request.encodeURL("https://www.myserver.com/test.html";) use
"http://www.myserver.com"; + requestencodeURL("/test.html");


> -Original Message-
> From: Raiden [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 01, 2002 5:10 PM
> To: Tomcat Users List
> Subject: Re: Why does encodeURL not include Session ID when
> switching between HTTP and HTTPS
>
>
> A quick addendum... is there a setting somewhere that I need to explicitly
> state that my server is www.myserver.com, and therefore regardless of
> protocol (HTTP or HTTPS), all links at this server should be encoded with
> the session id?
>
> Thanks again,
> Raiden
>
>
> On Sun, 1 Dec 2002, Raiden wrote:
>
> > Hello,
> >
> > I have searched the archives, and while I have seen several people ask
> > this question, there doesn't seem to be an agreed upon answer/solution.
> >
> > I am using Tomcat 4.1.12.  When cookies are on, I can switch
> bettween http
> > and https just fine, while maintaining my session.  (I am using
> the Ajp13
> > connector with Apache, and so Apache does all my SSL management.)
> >
> > However, when cookies are off... URL rewriting ONLY seems to work when I
> > stay on the same protocol.  (Start on an HTTP page, all HTTP links are
> > properly encoded with the session id.  Start on an HTTPS page, all HTTPS
> > links are properly encoded with the session id.  However, start
> in either
> > protocol, and the links for the other protocol are NOT properly
> encoded.)
> >
> > As soon as I try and encode a link that would switch the protocol from
> > HTTP to HTTPS or HTTPS to HTTP, those links do not include the session
> > id.
> >
> > I have every link surrounded by response.encodeURL().
> >
> > Does anyone know why the encodeURL method does not seem to be including
> > the session id when I attempt to include a link that is in a different
> > protocol?
> >
> > I'm assuming it's because the encodeURL method does not think
> > http://www.myserver.com and https://www.myserver.com are able
> to maintain
> > the same session... but I can't understand why... especially
> since Tomcat
> > and Netscape and IE have aggreed to send the session cookie on both
> > protocols, when using cookies to maintain sessions.
> >
> > Thanks,
> > Raiden
> >
> >
> >
> > --
> > 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 4.1 and apache 1.3 how-to

2002-11-10 Thread Ricky Leung
just compile your own, it's not that difficult.  If you really can't do it
yourself, I can send mine to you, which is for Solaris7 on Sparc.


> -Original Message-
> From: Beatty, Z [mailto:zackbeatty@;yahoo.com]
> Sent: Sunday, November 10, 2002 11:09 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Tomcat 4.1 and apache 1.3 how-to
>
>
> So basically, I am never going to find a binary
> mod_jk.so for Solaris 7 on Sparc?   I am just trying
> to confirm, before I give up trying to connect Apache
> and Tomcat.   I always have the standalone Tomcat to
> fall back on, but it is awfully slow.
>
> Thanks.
>
> --- "Turner, John" <[EMAIL PROTECTED]> wrote:
> >
> > Red Hat 7.2 HOWTO using JK:
> >
> http://www.johnturner.com/howto/apache1-tomcat404-howto.html
> >
> > Aside from Tomcat version, and different binary
> > files for Solaris instead of
> > RH, there is no difference.  The setup is exactly
> > the same, I know this
> > because I just did it yesterday morning on a
> > brand-new install of Solaris 8
> > on a 420R.  By "setup" I mean configuration, not
> > compilation.  The
> > compilation was actually quite a bit of hassle, so
> > if you can get binaries
> > of JK you should be good to go.
> >
> > I have some Solaris 8 JK binaries archived at
> > http://www.johnturner.com/howto, they were compiled
> > against 4.0.4 source,
> > but I doubt it would make much difference.  Might be
> > worth a shot.
> >
> > John
> >
> > > -Original Message-
> > > From: Beatty, Z [mailto:zackbeatty@;yahoo.com]
> > > Sent: Monday, November 04, 2002 11:20 PM
> > > To: Tomcat Users List
> > > Subject: Tomcat 4.1 and apache 1.3 how-to
> > >
> > >
> > > Can anyone point me in the right direction, for
> > > connecting Apache 1.3 and Tomcat 4.12, on Solaris
> > 7?
> > > Should I try mod_webapp, mod_jk, or mod_jk2?   I
> > need
> > > a binary file, for whatever connector I choose.
> > > Please don't respond with RTFM.  There are no
> > binaries
> > > avaiable in:
> > >
> >
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> > > release/v1.2.0/bin/
> > >
> > > Also, there isn't even a Solaris 7 directory (only
> > 6
> > > and 8).   Does that matter?
> > >
> > > I would prefer to use mod_webapp, due to the
> > > simplicity of the installation process.   I
> > installed
> > > that on Win2000 a while ago, but there are no
> > Solaris
> > > binaries available anywhere.
> > >
> > > Thanks.
> > >
> > > __
> > > Do you Yahoo!?
> > > HotJobs - Search new jobs daily now
> > > http://hotjobs.yahoo.com/
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> > 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> __
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: where to set CATALINA_OPTS?

2002-10-28 Thread Ricky Leung
what if you are just using mod_jk?  I have been setting as user environment
and does this not work?


> -Original Message-
> From: Robert L Sowders [mailto:rsowders@;usgs.gov]
> Sent: Monday, October 28, 2002 3:59 PM
> To: Tomcat Users List
> Subject: RE: where to set CATALINA_OPTS?
>
>
> Yoav is using a windows machine, I believe, so
> $CATALINA_HOME/bin/catalina.sh is not available.  Most -OPTS can
> be set in the workers2.properties file
> if you are using mod_jk2.
>
> rls
>
>
>
>
>
> "Shapira, Yoav" <[EMAIL PROTECTED]>
> 10/28/2002 06:03 AM
> Please respond to "Tomcat Users List"
>
>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> Subject:RE: where to set CATALINA_OPTS?
>
>
> Hi,
> $CATALINA_HOME/bin/catalina.sh is one good place.  Setting it as a user
> environment variable will probably just lead you to confusion and,
> eventually, anger ;)
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: Peng Annie [mailto:Annie.Peng@;KONE.com]
> >Sent: Monday, October 28, 2002 6:58 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: where to set CATALINA_OPTS?
> >
> >Hi there,
> >
> >I have Apache2 running as service, tomcat4 is invoked by JK. Where can
> I
> >set
> >variable CATALINA_OPTS? should I set it in system environment variable?
> >
> >BR,
> >
> >Annie
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
>
> --
> To unsubscribe, e-mail:
> 
> 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 multipartParser

2002-10-09 Thread Ricky Leung

Did you set encoding type to multipart/form-data?  I'm not sure how you are
setting this but you may want to try using MultipartRequest instead also.

Look up the information here and look at how it is implemented from the
example.

http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/MultipartP
arser.html



> -Original Message-
> From: Sam Seaver [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 5:35 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Error with multipartParser
>
>
> that didnt make any difference...it's really fustrating because
> I'm just not
> getting any specific messages...
>
> thanks for the reply though
> S
>
> >From: "Ricky Leung" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: RE: Error with multipartParser
> >Date: Wed, 9 Oct 2002 17:14:03 -0400
> >
> > >   MultipartParser mpParser = new MultipartParser(req,
> > > 10*1024*1024);
> >
> >try to use a smaller number and see what happens, like
> 1024bytes, instead
> >of
> >10Megs.
> >
> >
> > > -Original Message-
> > > From: Sam Seaver [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, October 09, 2002 2:09 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Error with multipartParser
> > >
> > >
> > > I cannot work this out as I get no more in my error messages
> > > despite trying
> > > to use the usual ways of debugging the bean.  Basically I'm
> using a bean
> > > that extends HttpServlet and uses Hunter's MultipartParser, and the
> >error
> > > ALWAYS occurs when I try to create an instance of the parser...
> > >
> > > Error:
> > >
> > > root cause
> > >
> > > javax.servlet.ServletException:
> > > com/oreilly/servlet/multipart/MultipartParser
> > >   at
> > > org.apache.jasper.runtime.PageContextImpl.handlePageException(Page
> > > ContextImpl.java:497)
> > >
> > > Code:
> > >
> > > import java.io.*;
> > > import java.util.*;
> > > import javax.servlet.http.*;
> > > import javax.servlet.*;
> > >
> > > import com.oreilly.servlet.*;
> > > import com.oreilly.servlet.multipart.*;
> > >
> > > public class SimpleBean extends HttpServlet {
> > >
> > > private String fileName;
> > > private String name;
> > > private String type;
> > > private String output;
> > >
> > > public SimpleBean(){
> > >   fileName="";
> > >   name="";
> > >   type="";
> > >   output="";
> > > }
> > >
> > > public void setFileName(String x){
> > >   fileName=x;
> > > }
> > >
> > > public void setName(String x){
> > >   name=x;
> > > }
> > >
> > > public void setType(String x){
> > >   type=x;
> > > }
> > >
> > > public void setOutput(String x){
> > >   output=x;
> > > }
> > >
> > > public void appendOutput(String x){
> > >   output=output+x;
> > > }
> > >
> > > public String getFileName(){
> > >   return fileName;
> > > }
> > >
> > > public String getName(){
> > >   return name;
> > > }
> > >
> > > public String getType(){
> > >   return type;
> > > }
> > >
> > > public String getOutput(){
> > >   return output;
> > > }
> > >
> > > public void doPost(HttpServletRequest req,
> HttpServletResponse res)
> > >   throws ServletException, IOException{
> > >   setOutput("Demo Parser Upload Bean");
> > >   res.setContentType("text/html");
> > >   ServletOutputStream out = res.getOutputStream();
> > >
> > >   try{
> > >   MultipartParser mpParser = new MultipartParser(req,
> > > 10*1024*1024);
> > >   }catch (Exception e){
> > >   StringWriter sw = new StringWriter();
> > >   PrintWriter pw = new PrintWriter(sw);
> > >   e.printStackTrace(pw);
> > >
> > >   }
> > >
> > >
> > >
> > > }
> > > }
> > >
> > >
> > >
> > > "JC Rules"
> > >
> > > _
> > > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
>
> "JC Rules"
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



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




RE: Error with multipartParser

2002-10-09 Thread Ricky Leung

>   MultipartParser mpParser = new MultipartParser(req,
> 10*1024*1024);

try to use a smaller number and see what happens, like 1024bytes, instead of
10Megs.


> -Original Message-
> From: Sam Seaver [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 2:09 PM
> To: [EMAIL PROTECTED]
> Subject: Error with multipartParser
>
>
> I cannot work this out as I get no more in my error messages
> despite trying
> to use the usual ways of debugging the bean.  Basically I'm using a bean
> that extends HttpServlet and uses Hunter's MultipartParser, and the error
> ALWAYS occurs when I try to create an instance of the parser...
>
> Error:
>
> root cause
>
> javax.servlet.ServletException:
> com/oreilly/servlet/multipart/MultipartParser
>   at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(Page
> ContextImpl.java:497)
>
> Code:
>
> import java.io.*;
> import java.util.*;
> import javax.servlet.http.*;
> import javax.servlet.*;
>
> import com.oreilly.servlet.*;
> import com.oreilly.servlet.multipart.*;
>
> public class SimpleBean extends HttpServlet {
>
> private String fileName;
> private String name;
> private String type;
> private String output;
>
> public SimpleBean(){
>   fileName="";
>   name="";
>   type="";
>   output="";
> }
>
> public void setFileName(String x){
>   fileName=x;
> }
>
> public void setName(String x){
>   name=x;
> }
>
> public void setType(String x){
>   type=x;
> }
>
> public void setOutput(String x){
>   output=x;
> }
>
> public void appendOutput(String x){
>   output=output+x;
> }
>
> public String getFileName(){
>   return fileName;
> }
>
> public String getName(){
>   return name;
> }
>
> public String getType(){
>   return type;
> }
>
> public String getOutput(){
>   return output;
> }
>
> public void doPost(HttpServletRequest req, HttpServletResponse res)
>   throws ServletException, IOException{
>   setOutput("Demo Parser Upload Bean");
>   res.setContentType("text/html");
>   ServletOutputStream out = res.getOutputStream();
>
>   try{
>   MultipartParser mpParser = new MultipartParser(req,
> 10*1024*1024);
>   }catch (Exception e){
>   StringWriter sw = new StringWriter();
>   PrintWriter pw = new PrintWriter(sw);
>   e.printStackTrace(pw);
>
>   }
>
>
>
> }
> }
>
>
>
> "JC Rules"
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Does anyone know why I am getting these mod_jk error messages or what they mean????

2002-10-08 Thread Ricky Leung

I have found that I could generate this error when the site is slow and I go
view a page and then clicked stop on the browser.  What happens is that the
user gave up looking at the page and ajp could no longer send it out.  This
usually happens when jsps are compiling...


> -Original Message-
> From: Francom, Kodie [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: Does anyone know why I am getting these mod_jk error messages
> or what they mean
>
>
> We are using Tomcat 4.1, Sun JDK 1.4, Linux 7.2 and Apache 1.3.
>
>
> [Thu Sep 26 18:13:26 2002]  [jk_ajp13_worker.c (845)]: In
> jk_endpoint_t::service, get_reply failed in send loop 1
> [Thu Sep 26 18:13:26 2002]  [jk_ajp13_worker.c (845)]: In
> jk_endpoint_t::service, get_reply failed in send loop 1
> [Thu Sep 26 18:13:46 2002]  [jk_ajp13_worker.c (228)]:
> connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
> [Thu Sep 26 18:13:46 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
> [Thu Sep 26 18:13:46 2002]  [jk_ajp13_worker.c (845)]: In
> jk_endpoint_t::service, get_reply failed in send loop 0
> [Thu Sep 26 18:13:48 2002]  [jk_ajp13_worker.c (228)]:
> connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
> [Thu Sep 26 18:13:48 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
> [Thu Sep 26 18:13:48 2002]  [jk_ajp13_worker.c (845)]: In
> jk_endpoint_t::service, get_reply failed in send loop 2
> [Thu Sep 26 18:13:51 2002]  [jk_ajp13_worker.c (228)]:
> connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
> [Thu Sep 26 18:13:51 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
> [Thu Sep 26 18:13:51 2002]  [jk_ajp13_worker.c (845)]: In
> jk_endpoint_t::service, get_reply failed in send loop 0
> [Thu Sep 26 18:13:53 2002]  [jk_ajp13_worker.c (228)]:
> connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
> [Thu Sep 26 18:13:53 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
> [Thu Sep 26 18:13:53 2002]  [jk_ajp13_worker.c (845)]: In
> jk_endpoint_t::service, get_reply failed in send loop 2
> [Thu Sep 26 18:13:57 2002]  [jk_ajp13_worker.c (228)]:
> connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: download 4.0.3?

2002-10-04 Thread Ricky Leung

Why don't you use 4.0.5?  That should be the release that you should be
using, which has the most bug fixes and a security fix.

With 4.1.12, you might have to do additional testing to ensure that your
application is working.

> -Original Message-
> From: chad kellerman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 04, 2002 4:00 PM
> To: Tomcat Users List
> Subject: download 4.0.3?
>
>
> Hi everyone,
>
> I just went to download 4.0.3 and I can't, the url is missing "not
> found".
>
> I was using 4.0.3 on a rh6.2 server now I was going to put it on a
> rh7.3 server.  Figured I use the same version because I am afraid the
> the {$TOMCAT_HOME}/conf/*.xml files might not work(compatible) with
> newer versions of tomcat.
>
>   Can I just drop the server.xml file (and others) and expect them to
> work with 4.1.X? ( making sure everything else is set up correctly, of
> course) Or are there a lot of changes?
>
> If I can't, anyone know where to download 4.0.3?
>
>
> Thanks,
> chad
>
> --
> Chad Kellerman
> Jr. Systems Administrator
> Alabanza Inc
> 410-234-3305
>


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




RE: AW: Tomcat 4.1.12 memory leak, resources leak, final call ?

2002-09-27 Thread Ricky Leung

>   My recommendation is to stop trying to make sense of the output from top
> and ps, and go to an unambiguous source. Take a look at the contents of
> /proc//status, where  is the process ID. This will, at
> any instant
> you examine it, give you (among other things) total current VM usage and
> RSS.

The files under  doesn't seem to be readable, how should I read it?  My
OS is Solaris.

Thanks.
Ricky


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




RE: Tomcat 4.1.12 memory leak, still

2002-09-26 Thread Ricky Leung

> >JAVA_OPTS='-Xmx=64M'

I remember I saw in Sun's website that it's lowercase for all, k for kilo, m
for mega, and g for giga, but in this group, people always say use capital
letters.  Now I am confused!


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




RE: apache tomcat and ssl

2002-08-09 Thread Ricky Leung

Did you define jk directives in the SSL virtual host section of your apache
config file?  If you want https
to behave exactly like http, but just secure, copy your virtual jk
directives over to the ssl portion.

Also, make sure when you start apache, it doesn't complain about mod_jk
without EAPI support, you
will need that with SSL.

> -Original Message-
> From: Vincent Kerr [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: apache tomcat and ssl
>
>
> I have apache and tomcat working with mod_jk on Windows NT and can
> access my tomcat apps through apache. I have installed ssl support and
> can access apache's htdocs over https. However I cannot access my Tomcat
> webapps over https.
>
> Could someone tell me how to configure apache so that tomcat apps can be
> accessed over https.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: Load balancing problem

2002-08-08 Thread Ricky Leung

I made changes for you and believe you should have it like this instead.  If
you don't mind, could you try it out and let us know if this works.  You
bought up a good point and I am experimenting this myself also.

-Original Message-
From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: Load balancing problem


We got mod_jk working and configuration seem ok.

lbfactor is the same for the 10 servers.

The problem is that the load is not distribute evenly to all the server.
1 or 2 server seem to be receiving all the load.

Does I miss something in the configuration?

Thanks for your help

Jean-Christophe Rioux



worker.web01.port=
worker.web01.host=web01
worker.web01.type=ajp13
worker.web01.lbfactor=1
worker.web01.cachesize=30

worker.web02.port=
worker.web02.host=web02
worker.web02.type=ajp13
worker.web02.lbfactor=1
worker.web02.cachesize=30

worker.web03.port=
worker.web03.host=web03
worker.web03.type=ajp13
worker.web03.lbfactor=1
worker.web03.cachesize=30

worker.web04.port=
worker.web04.host=web04
worker.web04.type=ajp13
worker.web04.lbfactor=1
worker.web04.cachesize=30

worker.web05.port=
worker.web05.host=web05
worker.web05.type=ajp13
worker.web05.lbfactor=1
worker.web05.cachesize=30

worker.web06.port=
worker.web06.host=web06
worker.web06.type=ajp13
worker.web06.lbfactor=1
worker.web06.cachesize=30

worker.web07.port=
worker.web07.host=web07
worker.web07.type=ajp13
worker.web07.lbfactor=1
worker.web07.cachesize=30

worker.web08.port=
worker.web08.host=web08
worker.web08.type=ajp13
worker.web08.lbfactor=1
worker.web08.cachesize=30

worker.web09.port=
worker.web09.host=web09
worker.web09.type=ajp13
worker.web09.lbfactor=1
worker.web09.cachesize=30

worker.web10.port=
worker.web10.host=web10
worker.web10.type=ajp13
worker.web10.lbfactor=1
worker.web10.cachesize=30

#note list only includes loadbalancers
#each one will loadbalance on their own so don't expect perfection
#but if you run for thousands, the numbers shouldn't be way off as well
worker.list=loadbalancer1,loadbalancer2

#lb marks this worker has Loadbalancer
#each lb balances 10 ajp connectors
#add more lb workers below and to the worker.list above
#for fault tolerance lb, in case the lb worker fails.
worker.loadbalancer1.type=lb
worker.loadbalancer1.balanced_workers=web01,web02,web03,web04,web05,web06,we
b07,web08,web09,web10

#lb marks this worker has Loadbalancer
worker.loadbalancer2.type=lb
worker.loadbalancer2.balanced_workers=web01,web02,web03,web04,web05,web06,we
b07,web08,web09,web10


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Error : Why IllegalStateException ?

2002-07-24 Thread Ricky Leung

Well, I sometimes get this error with my error page, which only gets called
by Tomcat.  This is what's in web.xml.


java.lang.Exception
/error/er500.jsp



If the stream has already been closed, I think then this is a Tomcat error.
I am not sure how I could fix this.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 4:35 AM
To: Tomcat Users List
Subject: AW: Error : Why IllegalStateException ?


That's not a problem of web.xml.
What make you think it is? (That kind of problem wouldn't
be resolved by a restart)
The typical reason for an IllegalStateException is that
you (or any component that you use) try to write something
to a response or a stream that already has bean closed
(flushed).

> -Ursprüngliche Nachricht-
> Von: jose saloio [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 24. Juli 2002 10:21
> An: [EMAIL PROTECTED]
> Betreff: Error : Why IllegalStateException ?
>
> I have this error:
> Current state = FLUSHED, new state = CODING
> 7-10 11:09:48 - Ctx( /test): IllegalStateException in: R(
> /test+)  Current
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Problem with Load Balancing using mod_jk and session affinity.

2002-07-17 Thread Ricky Leung

It definitely works as I have it working too.  What you have to do is also
make sure you encodeURL all links and form actions.

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 10:51 PM
> To: Tomcat Users List
> Subject: Re: Problem with Load Balancing using mod_jk and session
> affinity.
>
>
> I believe (and I could be wrong) that you need to specify the _worker
> name_ for jvmRoute.  ubeans.com/tomcat - they do it.  He tested it and
> claims he has it working fine.  Check it out.
>
> Regards,
>
> Eddie
>
> Robert Chartier wrote:
>
> >Hi,
> >
> >I've successfully installed and configured apache and 2 tomcats
> using mod_jk.
> >
> >Unfortunately the load balancing works without session affinity
> between my 2 tomcat instances.  I discovered the issue by calling
> the following link: /examples/servlet/SessionExample.  I keep
> getting switch between my 2 tomcat instances.
> >
> >I know that my jvmRoute attribute is properly set as I see it
> appended on the generated session id.  Can some help me in
> figuring out what I am missing.  I know I am pretty close to have
> a working setup!
> >
> >The only odd thing about my setup is that there is a firewall
> between apache and tomact:
> >OS on all machine: Linux
> >WebServer: apache v1.3.26
> >Java: Sun v1.3.1_01
> >Tomcat: v4.0.2
> >
> >The following is all my configuration files used in my current
> setup and a portion of mod_jk.log related to my http requests.
> >
> >Thanks, I remain.
> >
> >Robert Chartier
> >
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: getRequestURI()

2002-07-11 Thread Ricky Leung

Yes, that is correct.  Though I am not familiar with how the other AS are
interpreting this, but when I use TC and encodeURL, I find that I have to
*not* put the hostname part in as the URL.

For example

myURL = "http://myserver.com/test.jsp";;
encodeURL(myURL);

this will not ever put the jsessionid to test.jsp, however.

myHostname = "http://myserver.com/";;
myURL = "test.jsp";
  //example only, mixed
html + java code

this works.  I have jsessionId appended when cookie is off on browser.


> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 1:29 AM
> To: Tomcat Users List
> Subject: Re: getRequestURI()
>
>
> I don't believe that's what I said at all =) What I was was that to the
> best of my recollection that's how it is supposed to act. Isn't
> encodeURL what you're supposed to be able to depend on when cookies are
> disabled? If it doesn't list the parameters/cookies in the url ... then
> what is it for? =) Ok - here I go digging through the docs *cringe*. Now
> ... you tell ME what the correct interpretation is:
>
>
>   encodeURL
>
> public java.lang.String *encodeURL*(java.lang.String url)
>
> Encodes the specified URL by including the session ID in it, or, if
> encoding is not needed, returns the URL unchanged. The
> implementation of this method includes the logic to determine
> whether the session ID needs to be encoded in the URL. For example,
> if the browser supports cookies, or session tracking is turned off,
> URL encoding is unnecessary.
>
> For robust session tracking, all URLs emitted by a servlet should be
> run through this method. Otherwise, URL rewriting cannot be used
> with browsers which do not support cookies.
>
>
> *Parameters:*
> |url| - the url to be encoded.*Returns:*
> the encoded URL if encoding is needed; the unchanged URL otherwise.
>
>
> That's off of Sun's JDK docs for J2EE 1.3. I think it danged well better
> have the session in it if cookies are off!
>
> I don't know why I was thinking attributes would be there ... the
> sessionid is really the only piece you need to track things you are
> persisting.
>
> Alex Kachanov wrote:
>
> >Wll Tomcat 4.0.x reference implementation returns:
> >
> >/index.jsp
> >
> >Then, that means all AS are wrong and just one Jrun is right?
> >
> >with best wishes
> >Alexander Kachanov
> >
> >-Original Message-
> >From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> >Sent: 11 „y„„|„‘ 2002 „s. 11:59
> >To: Tomcat Users List
> >Subject: Re: getRequestURI()
> >
> >
> >I'd say the first one, but I'm not authoritative.  To the best of my
> >recollection, however, that is precisely what encodeURL is there for.
> > Hopefully someone else will have something additional to add.  I
> >_really_ think it should be the first (including the sessionid - and
> >other cookies/params too?).
> >
> >Regards,
> >
> >Eddie
> >
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: custom error-pages

2002-07-10 Thread Ricky Leung

I asked about this before but it is according to spec so I did this instead.

  
java.lang.Exception
/errors/test.html
  

This is basically the same as a 500 with any type of exception catched and
presented with a better formatted page.



> -Original Message-
> From: Daniel Collins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 10:36 AM
> To: [EMAIL PROTECTED]
> Subject: custom error-pages
>
>
>
>
>
>
> I was playing around with creating some custom error pages for a
> web application
> (servlets and JSPs) and I'm not sure if what I am seeing is
> correct or not. I've
> had a look around the archives but can't see anything about this
> particular
> problem, but apologies if someone's already asked it (or I'm
> missing something
> blindinly obvious!)
>
> The application occasionally throws ClassCastExceptions in the
> JSPs (in essence
> jsp:useBean finds a bean of the same name but wrong class and
> tries to cast it
> unsuccessfully) which generate Error 500: Internal Servlet
> Errors, so I added
> the following to my web.xml:
>
>   
> 500
> /errors/test.html
>   
>
> But it didn't work, it still gave me Tomcat's default error page.
> (And yes that
> html file does exist relative to the web-root).
>
> I then trapped the exception directly with the following:
>
>   
> java.lang.ClassCastException
> /errors/test2.html
>   
>
> And it goes to the correct error page, why does the exception
> trapping work but
> the error code not? (Yes they are different error pages, but it's
> just so I can
> see which one is being produced for now).  I've tried this in
> both 3.3.1 and
> 4.0.4 with the same results, which implies to me that it's something in my
> expectation that is wrong rather than tomcat.
>
> Thanks,
>
> Daniel
>
>
>  Tertio Telecoms Limited  -  One Angel Square,   Torrens Street,
>  London  EC1V
> 1PL
> Tel: +44 (0)20 7843 4000 Fax: +44 (0)20 7843 4001 Web
http://www.tertio.com
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Tertio
Ltd.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: server.xml DTD - where can I find it ?

2002-06-25 Thread Ricky Leung

server.xml doesn't have a DTD, the web.xml's DTD is what that email was
about.


> -Original Message-
> From: Mykola A. Nickishov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 1:14 PM
> To: Tomcat Users List
> Subject: Re: server.xml DTD - where can I find it ?
>
>
> "Craig R. McClanahan" <[EMAIL PROTECTED]> writes:
>
> > On Mon, 6 May 2002, João Luiz de Brito Macaíba wrote:
> >
> > > Date: Mon, 6 May 2002 11:03:55 -0300 (EST)
> > > From: João Luiz de Brito Macaíba <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: server.xml DTD - where can I find it ?
> > >
> > > Hi,
> > >
> > >   does anyone know where I can find the DTD for server.xml ?
> > >
> >
> > The official copy is in the servlet specification, which you
> can download
> > at:
> >
> >   http://java.sun.com/products/servlet/download.html
> >
> > For Tomcat 4, there is a copy of all the relevant DTDs buried in the
> > servlet.jar file that is in the common/lib directory.
>
> Craig, are you shure? I didn't find anything about Tomcat's DTD for
> server.xml in common/lib/servlet.jar file :(
>
> --
> /me @ home
> MAN-UANIC
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




RE: server.xml dtd

2002-06-11 Thread Ricky Leung

That's exactly what I did, in fact, I looked at every single .jar file that
was bundled with Tomcat and I didn't find a dtd that is for server.xml.  And
that's why I have to ask the list.

-Original Message-
From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:52 PM
To: Tomcat Users List
Subject: RE: server.xml dtd


Ricky -
Sorry for the misinformation -- I thought they would both be in the
servlet.jar.  But, in looking into it further, I don't see any DTD
referenced in server.xml, nor do I see one in the servlet.jar.  I see doc on
the Tomcat web site about all the elements in server.xml
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html.  But,
maybe that doesn't completely answer your question about the order of
things.

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


-----Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 10:44 AM
To: Tomcat Users List
Subject: RE: server.xml dtd


not the DTD for web.xml but the DTD for server.xml.

-Original Message-
From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:35 PM
To: Tomcat Users List
Subject: RE: server.xml dtd


According to one of the developers (Craig McClanahan) (posted last Friday):

> Where can I find the DTD for web.xml? I want to make sure I have the
> elements in the correct order.
>

It is in the servlet specification, which you can download from:

  http://java.sun.com/products/servlet/download.html

You can also extract the DTDs that Tomcat uses from the servlet.jar file
that is in the "common/lib" subdirectory -- it looks at these internal
copies so that DTD validation can occur even if your server is not
connected to the Internet.

Craig

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


-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 10:27 AM
To: Tomcat Users List
Subject: server.xml dtd


I can't find the dtd anywhere and the documentation area only gives the
explanation and not the order of the attributes and my guess is that the
ordering is a must.  Could someone point me to where the dtd where
server.xml uses so I can just look it up myself?

Thanks,
Ricky


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


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


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




RE: server.xml dtd

2002-06-11 Thread Ricky Leung

not the DTD for web.xml but the DTD for server.xml.

-Original Message-
From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:35 PM
To: Tomcat Users List
Subject: RE: server.xml dtd


According to one of the developers (Craig McClanahan) (posted last Friday):

> Where can I find the DTD for web.xml? I want to make sure I have the
> elements in the correct order.
>

It is in the servlet specification, which you can download from:

  http://java.sun.com/products/servlet/download.html

You can also extract the DTDs that Tomcat uses from the servlet.jar file
that is in the "common/lib" subdirectory -- it looks at these internal
copies so that DTD validation can occur even if your server is not
connected to the Internet.

Craig

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


-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 10:27 AM
To: Tomcat Users List
Subject: server.xml dtd


I can't find the dtd anywhere and the documentation area only gives the
explanation and not the order of the attributes and my guess is that the
ordering is a must.  Could someone point me to where the dtd where
server.xml uses so I can just look it up myself?

Thanks,
Ricky


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


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




server.xml dtd

2002-06-11 Thread Ricky Leung

I can't find the dtd anywhere and the documentation area only gives the
explanation and not the order of the attributes and my guess is that the
ordering is a must.  Could someone point me to where the dtd where
server.xml uses so I can just look it up myself?

Thanks,
Ricky


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




RE: Loadbalancer connector Question

2002-04-26 Thread Ricky Leung

Do you have cookie turned off?  If you are using modjk (which is the only
one I know of that load balances), you will need that turned on, because it
is dependent on that.

-Original Message-
From: Gabriel Maffia [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 10:18 PM
To: Tomcat Users List
Subject: Loadbalancer connector Question


Hi:

I've finally made my Tomcat loadbalancing work, but the problem is that
sessions are not "sticky" (For example, when I log in to my application, the
connector redirects me to the other server, instead of maintaining the other
through the session).

Is there a way to solve this?.

Thanks in advance

Gabriel,.


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




RE: Installation Issue

2002-04-16 Thread Ricky Leung

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


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


Hi,

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

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

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

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

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

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

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

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

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

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

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

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


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

  Any help?

  Thanks,

  Philip Juels
  [EMAIL PROTECTED]



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



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




RE: Newbie question

2002-04-12 Thread Ricky Leung

you also need to copy your web.xml in WEB-INF to ROOT/WEB-INF

-Original Message-
From: Javier [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 5:33 AM
To: Tomcat Users List
Subject: Re: Newbie question


On 11/04/2002 at 20:16 yilmaz wrote:

>Hi Javier,
>I am not very sure what mistake are you doing,
>but to find out if your tomcat is up and installation is okey,
>try using default examples servlets
>http://localhost:8080/examples/
>
>try any of them, and if they are okey,
>tell me if you can access
>


Well, I'm close to scream against Tomcat like some guy did a few days ago
!!!

I've deleted all my XP box and installed a clean W2K (for more reasons than
Tomcat).

I've installed a clean Tomcat on c:\tomcat.

Then I tried to access:

http://localhost:8080   -> OK
http://localhost:8080/examples/servlet/HelloWorldExample-> OK

Well, I decide to copy  HelloWorldExample.class from
c:\tomcat\webapps\examples\WEB-INF\classes to
c:\tomcat\webapps\ROOT\WEB-INF\classes


Then I tried to access:

http://localhost:8080/HelloWorldExample -> Fail, 404 Error
http://localhost:8080/servlet/HelloWorldExample -> Fail 500 Error

with the following code

java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale es
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:8
04)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
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
:174)
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.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


If I found so much problems with a little example page I don't want to know
which will be the problem with a real application !!

Could someone help me ?

Thanks in advance








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



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




RE: Jspc & i18n

2002-04-10 Thread Ricky Leung

did you set your browser's encoding to use French?  Try it with and without.

-Original Message-
From: Christian Bourque [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 5:57 PM
To: Tomcat Users List
Subject: Re: Jspc & i18n


Hi Jeff !

I can't use the attribute "encoding", I think my app server doesn't
implements the last JSP specs !

But I have an update to my problem, I did a diff on two different .java file
based on the same jsp file :

1) the one generated by using jspc command line (the one that doesn't works)
2) the one generated by tomcat/jspc when accessed the first time by a
browser (the one that works)

Its really weird because there are almost identical (only the class name is
different but this is normal), the french text is scrambled in both versions
!

Even more weird, if I access the command line generated version page (#1) in
IE I see this :

Joyeux noël et bonne année !!!

But if I do a view source of the page look at this :

Joyeux noël et bonne année !!!

Everything is fine !!

Christian

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 4:55 PM
Subject: Re: Jspc & i18n



Hi, Christian.

 I haven't run into this problem before, so I'm not sure, but it looks
like the compiler is encoding the accented characters.  Perhaps if you
specify
the JSP page's encoding, it won't do that anymore...?  Try using a directive
at the top of your JSP to do this, something like <%@ page encoding
="ISO-8859-1" %> or whatever specific encoding/character set you are using.

HTH,
-Jeff




"Christian
Bourque"  To: "Tomcat Users List"
<[EMAIL PROTECTED]>
Subject: Re: Jspc & i18n

04/10/02 02:16
PM
Please respond
to "Tomcat
Users List"






Hi Jay !

No, the bad characters are in the .java files that jspc creates !

The text is clean in the .jsp file but as soon as I convert it to .java with
jspc all french accent are scrambled !

Christian

- Original Message -
From: "Jay Gardner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:42 PM
Subject: RE: Jspc & i18n


> Are all the correct characters in the .java files that jspc creates?
>
> --Jay Gardner
>
> -Original Message-
> From: Christian Bourque [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:49 PM
> To: Tomcat Users List
> Subject: Jspc & i18n
>
> Hi !
>
> I'm having a weird problem with JSPC. We have a bilingual web application
> (english/french), so when I pre-compile all my jsp pages the ones which
> contains french accent are all screwed up  :
>
> Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
> passe
> ?
> chaîne = chaÃ(r)ne
>
> ???
>
> Christian
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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






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


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



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




RE: change a webapp's context

2002-04-10 Thread Ricky Leung

Just rename you war file to ROOT.war and drop it the the same way under
webapps.

-Original Message-
From: Brian K. Buckley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:49 PM
To: [EMAIL PROTECTED]
Subject: change a webapp's context


Hi all,

What must one do to change a webapp's context?

I initially deployed my webapp by dropping "test.war" into Tomcat's webapp
directory and it deployed properly.

After testing it out to my satisfaction, I wanted my users to access the
webapp by entering , http://www.example.com"; instead of
"http://www.example.com/test";, so I added this line to Tomcat's server.xml



and removed the existing Context with path="" and restarted Tomcat.  At
first it appeared to work but I quickly noticed a lot of flaky problems,
which went away when I undid the line and reverted back to the "test"
context.

What's the best way to change a webapp context?  Are there directories or
files to delete or move or any other suggestions?

Regards,
-Brian   (using Tomcat 4.0.4-b2-01)


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



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




RE: Newbie question

2002-04-10 Thread Ricky Leung

>
>I've tried but it didn't work.
>
>I've made a new directory called classes under  /Program Files/Apache
Tomcat >>>4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class
to this directory.
>
>From my browser I tried http://localhost:8080/servlet/HelloWorldExample and
I received a >"The requested resource (/servlet/HelloWorldExample) is not
available."  message.
>
>

If you put it in ROOT, then you should put your HelloWorldExample in classes
as in
Apache Tomcat4.0/webapps/ROOT/WEB-INF/classes

then run it as http://localhost:8080/HelloWorldExample

That ROOT name under webapps is your context path.  ROOT is a special case
that you can omit, but if you have other names like myserv then you will
need to use myserv as your context path as in
http://localhost:8080/myserv/HelloWorldExample

If that still doesn't work, it's your web.xml file.

Ricky


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




RE: someone....need help!!!!....

2002-04-09 Thread Ricky Leung

I think this is the default behavior.  However, it only reloads servlets and
jsps and not the beans because when I was debugging them, after I deployed,
TC didn't take the changes and I wasted a lot of wondering what is wrong
until I restarted it and everything took into effect.


-Original Message-
From: Sefton, Adam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 11:47 AM
To: 'Tomcat Users List'
Subject: RE: someoneneed help


I've only been using TC for a couple of days, so I might be wrong, but:

I found that you need to set server.xml so it reloads the pages:

in server.xml, before your first , place:



this will cause all your contexts to reload automatically without having to
use the manager application.  This works for my servlets, not tried it with
JSPs yet.

Once you've added the line to server.xml, you'll also need to restart the
tomcat server to take into account the change to the xml file, but then you
should be ok.

Does this help?

-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: 09 April 2002 16:44
To: 'Tomcat Users List'
Subject: RE: someoneneed help


Try touching the JSPs before you run them to make sure that the timestamp is
changed so tomcat knows to re-compile the JSP.

-Original Message-
From: Giorgio Ponza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 5:37 PM
To: Tomcat Users List
Subject: Re: someoneneed help


Sometimes happens also to me.
My solution is to empty the folder /tomcat/work
so Tomcat must recompile it.
But i think some gurus here have a better solution.
Giorgio

- Original Message -
From: "ajith kondapalli" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 5:28 PM
Subject: someoneneed help


> hai,
> I have just started using tomcat to deploy some
> webapps...the problem:I create the webapps for the
> first time and deploy them,it saves the changes and
> runs properly..but later "changes" in the JSP i am
> makin are not reflected in the outputso if i run
> the program for the first time then it shows the
> changes but later after i make some changes and run it
> the second time,it doesnt reflect those changesi
> dont undertsand what the problem issomeone plz
> help...!!!
>  thanks
>   ajith
>
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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

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


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

**


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



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




RE: TOMCAT STOPS!

2002-04-03 Thread Ricky Leung

which jdk are you using and how was the memory during that time?  It might
be a memory issue and the system is heavily swapping, causing the server to
almost halt?

Just throwing random ideas out.

-Original Message-
From: Bob Swerdlow [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 5:12 PM
To: Tomcat Users List
Subject: Re: TOMCAT STOPS!


Hi, Eric -

That is what I thought, too (I was not the one to see lynx working, but I'll
try it myself the next time).  Unfortunately, I don't know whether it was to
localHost or www.emergentmusic.com (that's the URL we're having trouble
with).  I'll asked the engineer who did that testing, but he's out for a
while.

tracert showed a complete trace.

Did not try telnet.

What is interesting is that we have another server running another copy of
Tomcat for development.  The firewall is set up to forward port 8080 to that
server and port 80 to the main server (the one that failed).  Accessing the
other server works fine, so DNS does not seem to be the issue and the
firewall seems to be up.

Thanks for your help!
- Bob

- Original Message -
From: "Dahnke, Eric" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 4:53 PM
Subject: RE: TOMCAT STOPS!


>
> If this is true:
>
> If we use lynx on the server running Tomcat, we CAN access the
> pages.
>
> then Tomcat is not your problem, and it is more likely a networking /
> firewall issue. When it goes down what does telnetting to port 80 show
you?
> How about traceroute?
>
> could also be a hostname dns thing. when you run lynx do you use
localhost?
> What is the  exact URL you use in lynx?
>
>
>
> -Original Message-
> From: Bob Swerdlow [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 4:58 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: TOMCAT STOPS!
>
>
> One more detail, which may be important:
> If we use lynx on the server running Tomcat, we CAN access the pages.  I
> can't figure that out at all.
>
> Please help if you can.
>
> - Original Message -
> From: "Bob Swerdlow" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 03, 2002 4:51 PM
> Subject: TOMCAT STOPS!
>
>
> > We're in trouble.
> >
> > We're using Tomcat 4.0.2 Stand-alone on Solaris 8.  Periodically it just
> > stops servicing requests.
> >
> > We know it is Tomcat because we can still get to the machine on other
> ports.
> > We can SSH to it and everything seems fine.
> >
> > We know it is not just one project since we cannot get to any projects
> that
> > Tomcat should be running.  Not even /manager/list.
> >
> > If we are patient enough, it sometimes comes back after 4 or 5 minutes.
> > Then everything seems normal again.  Usually we don't wait because our
> site
> > is down, so we just stop and restart it.  However, it often takes
several
> > restarts to get it going again.
> >
> > I'm not even sure where to start looking!  Any help would be greatly
> > appreciated!
> >
> > Bob Swerdlow
> > Chief Operating Officer
> > Transpose, LLC
> > [EMAIL PROTECTED]
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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



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




RE: help in include file tag.

2002-02-27 Thread Ricky Leung

you are missing a closing " on your second example's first include file.

-Original Message-
From: Kurt Kurniawan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 1:52 AM
To: [EMAIL PROTECTED]
Subject: help in include file tag.


hi everyone! Need help with tis one

I have this
<%@ include file="CheckLoggedIn.jsp, getPool.jsp"%>

which doesn't work in tomcat4 but works well in Resin, say couldn't find the
file

anybody can tell me how to include multiple files in Tomcat?
It doesn't accept as well if I put like this...

<%@ include file="CheckLoggedIn.jsp%>
<%@ include file="getPool.jsp"%>

say we cannot put multiple directives

thanx


*
- NOTICE -
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message
and any attachments for viruses.  Under no circumstances do we accept
liability for any loss or damage which may result from your receipt of
this message or any attachments.

*


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



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




RE: Apache does not load images!!

2002-02-27 Thread Ricky Leung

are you using mod_webapp?  I find this to be a problem when using apache and
mod_webapp, but it went away once I use it on Solaris.  mod_jk doesn't have
this problem either.

-Original Message-
From: Eswar.K [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 8:56 AM
To: Tomcat Users List
Subject: RE: Apache does not load images!!



sometimes some images gets loaded and sometimes some others...
and sometimes all of them are shown.

The path of  the image is not a problem, bcos if it was, i should be
consistently get the problem for the same image, which is not happening.

Eswar

-Original Message-
From: Phil Shrimpton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:27 PM
To: Tomcat Users List; Eswar.K
Subject: Re: Apache does not load images!!


On Wednesday 27 February 2002 10:39, Eswar.K wrote:

Hi,

> tomcat has been integrated with apache with mod_jk.  When I send a request
> directly to tomcat(post 8080), all the images are loaded appropriately,
but
> when i am sending a requet to apache(port 80), few images are not being
> loaded. What should be done to avoid such a problem?

I had the same problem.  What is was, was that the URI I was using for the
imgaes was

/images/myimage.gif

Which when used via Apache/mod_jk were being request from Apache's doument
root.

Changing the URI to...

images/myimage.gif  (no initial slash)

Fixed the problem

Phil


--
Linux 2.4.4-4GB
  9:55am  up  2:27,  1 user,  load average: 0.20, 0.47, 0.41

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



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




RE: Custom 404 Page

2002-02-27 Thread Ricky Leung

assuming you have tomcat4 and you integrated with apache correctly and
apache send the request to tomcat because it matched the context path that
you specified, you can edit your webapp's web.xml and add the following.


404
/error/er404.jsp


but you will need to put it in the correct place, look at the dtd for where
to place it under.

-Original Message-
From: Brian Owens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 4:45 PM
To: [EMAIL PROTECTED]
Subject: Custom 404 Page


How do I set an ErrorDocument-like directive in Tomcat?  I have a custom 404
page setup in my Apache httpd.conf file, but when users enter a URL for a
file not on my website they get the standard Apache-Tomcat 404 page.  For
example, instead of going to /index.html (which is a valid file), I type
/ind (which is not a valid file).  I don't think this is the same as the
welcome file since I think that only refers to no filename being supplied.
In my case an invalid filename is supplied.  I'm running Apache 1.3.20 and
Tomcat 4.0.2.

Thanks,
Brian



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



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




RE: How-To on load balancing?

2002-02-21 Thread Ricky Leung

http://www.ubeans.com/tomcat/index.html

-Original Message-
From: Michael Molloy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 6:30 PM
To: Tomcat
Subject: How-To on load balancing?


Someone a few weeks ago posted a link to a how to on setting up load
balancing with Tomcat 4.02b or something like that. I can't find the link
and was wondering if that person could repost it.

Thanks a lot.

--Michael

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



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




RE: Guys Tomcat Vs Oracle Problem _Puneet Sachar

2002-02-21 Thread Ricky Leung

why don't you try installing the other way around to see if it works.

If you are not using oracle's app server, pick the ones that you only need
so it doesn't install JRE.  All you really need to have oracle is the main
oracle and some thin drivers running.

Then install your JDK1.3 and make sure that's the only JRE in windows.
Check to make sure in the registry that under JavaSoft, there's only one.
Windows is very messy with this and you might have to really clean it up
before you can install everything correctly.

Finally, install Tomcat and see if the example apps work as well.

-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 2:31 PM
To: Tomcat Users List
Subject: Guys Tomcat Vs Oracle Problem _Puneet Sachar


No sucharitha ..

u took my whole question worng

actually we have a servlet project runing with tomcat
and we have jdk1.3 installed ad tomcat need
jdk1.3/lib/tools.jar file

now when we installed oracle ..which is needed by VB
guys ur tomcat showing "bad command of file nale" on
starting it

and when i did few modification eroor changes but
tomcat didn't start

plz tell me Sucharitha or any one help me project dead
line is coming...and this time tamcat...

anyways plz guys
--- Sucharitha Panthika <[EMAIL PROTECTED]> wrote:
> Is your question is about
> how to have two Java versions running in same system
> or in one JVM?
>
> Which version of JRE the oracle project running on
> and which JRE the
> Tomcat running on.
> Can't you migrate to 1.3 JDK and JRE for your oracle
> project?
>
>
> -Original Message-
> From: puneet sachar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 11:40 AM
> To: Tomcat Users List
> Subject: Plz Help me_anyone
>
>
> Hi guys this is Puneet 
>
> Well i have tomcat 3.1 installed on my machine win
> '98
>
> when i insatlled oracle 8i ..it stop working
> may be tomcat uses jre 1.1.7 whicg is stored with
> oracle
>
> its giving message out of enviroment space..or when
> i
> make new batch file to add jdk1.3/lib/tools.jar life
> it gives me bad command of file name
>
> plz help me i need to have both tomcat and oracle
> for
> two projects running
>
> Help me friend
>
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
>
> --
> To unsubscribe:
> 
> For additional commands:
> 
> Troubles with the list:
> 
>
>
> --
> To unsubscribe:
> 
> For additional commands:
> 
> Troubles with the list:
> 
>


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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



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




RE: Jakarta Tomcat Error Message Information Disclosure Vulnerability?

2002-02-20 Thread Ricky Leung

The link that you send already has the answer to the problem, just some
people might not implement it and therefore give it away how things are
organized/setup.

-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 4:34 PM
To: Tomcat User List
Subject: Jakarta Tomcat Error Message Information Disclosure
Vulnerability?


Does anyone know if this vulnerability still exists? It says that 4.0.1
suffers from this vulnerability, but, I don't see anything out of the
ordinary when I try it on mine.

http://online.securityfocus.com/cgi-bin/vulns-item.pl?section=info&id=3199

Jon



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



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




RE: multiple instance of tomcat question

2002-02-20 Thread Ricky Leung

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

Look under 4) Advanced Configuration - Multiple Tomcat 4 Instances

-Original Message-
From: Xie, David (IPCG-NJ) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 3:46 PM
To: 'Tomcat Users List'
Subject: multiple instance of tomcat question


Hi all,

Quick question.  Would anyone please tell me where I can find instructions
for setting up mulitple instances of Jakarta Tomcat 4.0?  I appreciate your
help.

thanks,

David


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



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




RE: Manager options...

2002-02-20 Thread Ricky Leung

yeah, I did miss it, hope I am not restarting it.

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 12:46 PM
To: 'Tomcat Users List'
Subject: RE: Manager options...


Oh boy :) You must have missed the "great debate" thread on engines, hosts
and name. It was debated as to whether an engine needs a host. I set the
defaulthost attribute and specified a host. Is this necessary? The doc's
aren't clear. The default server.xml has a confusing comment about setting
localhost. The name att. of engine is used for logging (according to the
docs) and is simply logical. I see no reason why it -should- match the name
attr. of the host tag or the Servername directive, although it can't do any
harm. I set the defaulthost att. of the engine to match the servername
directive in httpd.conf. If you look at server.xml and
server-noexamples.xml.config you'll see that the  comment makes much more
sense in noexamples.xml.config!
No body (developer) came back with a definitive answer...

Thanks,

John


-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2002 17:26
To: Tomcat Users List
Subject: RE: Manager options...


I think name="Apache" in Engine has to be the same as what ServerName is
defined in http.conf in apache.

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 12:13 PM
To: 'Tomcat Users List'
Subject: RE: Manager options...


Attached my server.xml - there a couple of contexts including manager. All
are declared within the  tag. I've just used manager now to restart a
context - worked fine. It's definitely using the Warp connector!
I can't think of anything else other than the web.xml for manager - is it
there and complete?

Thanks,

John


-Original Message-
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2002 17:03
To: Tomcat Users List
Subject: Re: Manager options...


John Wadkin a icrit :

> The only differences I can see are:
>
> You use Manger and /managerstuff whereas I use manager and /manager -
could
> this have something to do with it? Not sure!
> You use localhost I use the actual server name - again, not sure if this
has
> anything to do with it...
> You don't have a  in your TomCat-Apache service. There's some debate
> as to whether this is necessary but I have one and the manager app
works...
>
> Bit of puzzle really. I had no problems - just added the necessary lines
in
> httpd.conf and server.xml and the manager app worked!
>
> Thanks,
>
> John
>
> -Original Message-
> From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 16:26
> To: Tomcat Users List
> Subject: Re: Manager options...
>
> Thank yu for the answer, john.
>
> I verified again and again, but...
>
> John Wadkin a icrit :
>
> > Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system.
>
> I'm actually runnin' SOLARIS _ TC 4.0.2/Warp 1.0.2 Apache 1.3.22 full dso
>
> >
> >
> > httpd.conf:
> >
> > WebAppConnection warpConnection warp servername:8008
> > WebAppDeploy manager warpConnection /manager
>
> Mine is
>
> WebAppConnection WarpConnector0 warplocalhost:8008
> WebAppDeploy ManagerWarpConnector0  /managerstuff/
>
> > server.xml
> >
> > 
> >  >  debug="0" privileged="true"/>
>
> For me it is ( full description of the Tomcat Apache part )
> 
>   
>
> port="8008" minProcessors="5" maxProcessors="75"
>enableLookups="true" acceptCount="10" debug="0"/>
>
> 
>  name="Apache" appBase="webapps" defaulthost="localhost" >
>
>   
>
>   
>   debug="0" privileged="true"/>
>
>   
>
>   
>  prefix="apache_log." suffix=".txt" timestamp="true"/>
>
>   
>
>   
>
> 
>
>   
>
> >
> >
> > One point - the context is in the  I defined under the  > name="Tomcat-Apache">
>
> Hum i don't have any host defined as i don't need virtual host for the
> moment.
>
> >
> >
> > Thanks,
> >
> > John
> >
> >
>
> And it still doesn't work.
>
> I'm really stuck !
>
> Jean-Luc :0(
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:

RE: Manager options...

2002-02-20 Thread Ricky Leung

I think name="Apache" in Engine has to be the same as what ServerName is
defined in http.conf in apache.

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 12:13 PM
To: 'Tomcat Users List'
Subject: RE: Manager options...


Attached my server.xml - there a couple of contexts including manager. All
are declared within the  tag. I've just used manager now to restart a
context - worked fine. It's definitely using the Warp connector!
I can't think of anything else other than the web.xml for manager - is it
there and complete?

Thanks,

John


-Original Message-
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2002 17:03
To: Tomcat Users List
Subject: Re: Manager options...


John Wadkin a icrit :

> The only differences I can see are:
>
> You use Manger and /managerstuff whereas I use manager and /manager -
could
> this have something to do with it? Not sure!
> You use localhost I use the actual server name - again, not sure if this
has
> anything to do with it...
> You don't have a  in your TomCat-Apache service. There's some debate
> as to whether this is necessary but I have one and the manager app
works...
>
> Bit of puzzle really. I had no problems - just added the necessary lines
in
> httpd.conf and server.xml and the manager app worked!
>
> Thanks,
>
> John
>
> -Original Message-
> From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2002 16:26
> To: Tomcat Users List
> Subject: Re: Manager options...
>
> Thank yu for the answer, john.
>
> I verified again and again, but...
>
> John Wadkin a icrit :
>
> > Works fine on my Solaris 8, TC 4.0.1, Apache 1.3 system.
>
> I'm actually runnin' SOLARIS _ TC 4.0.2/Warp 1.0.2 Apache 1.3.22 full dso
>
> >
> >
> > httpd.conf:
> >
> > WebAppConnection warpConnection warp servername:8008
> > WebAppDeploy manager warpConnection /manager
>
> Mine is
>
> WebAppConnection WarpConnector0 warplocalhost:8008
> WebAppDeploy ManagerWarpConnector0  /managerstuff/
>
> > server.xml
> >
> > 
> >  >  debug="0" privileged="true"/>
>
> For me it is ( full description of the Tomcat Apache part )
> 
>   
>
> port="8008" minProcessors="5" maxProcessors="75"
>enableLookups="true" acceptCount="10" debug="0"/>
>
> 
>  name="Apache" appBase="webapps" defaulthost="localhost" >
>
>   
>
>   
>   debug="0" privileged="true"/>
>
>   
>
>   
>  prefix="apache_log." suffix=".txt" timestamp="true"/>
>
>   
>
>   
>
> 
>
>   
>
> >
> >
> > One point - the context is in the  I defined under the  > name="Tomcat-Apache">
>
> Hum i don't have any host defined as i don't need virtual host for the
> moment.
>
> >
> >
> > Thanks,
> >
> > John
> >
> >
>
> And it still doesn't work.
>
> I'm really stuck !
>
> Jean-Luc :0(
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

OK.

It does work under Apache/Warp connector ?

Great.

Could yu indicate me how yu declared yur Host in Engine for the
Tomcat-Apache
Engine, please ?

Jean-Luc B :0(



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



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




RE: Manager options...

2002-02-20 Thread Ricky Leung

http://jakarta.apache.org/site/bugs.html  for bug entering info

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
Sent: Wednesday, February 20, 2002 10:50 AM
To: Tomcat Users List
Subject: Re: Manager options...


"Cox, Charlie" a écrit :

> you should probably file a bug report as it appears to be a problem with
> manager through the connector as opposed to something with just the
manager
> app. This way one of the developers is sure to look at it.
>
> Charlie
>
> > -Original Message-
> > From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 20, 2002 10:22 AM
> > To: Tomcat Users List
> > Subject: Re: Manager options...
> >
> >
> > Yoav Shapira a écrit :
> >
> > > Hi,
> > > Sorry to bump in late in the thread, maybe this was already raised,
> > > but in your server.xml, did you specify the privileged="true"
> > > attribute for the Manager context?
> > >
> > > Yoav
> > >
> > > > If i enter http://myserver/managerstuff/list
> > > >
> > > > it then ask for login/password - OK
> > > >
> > > > and then generates an exeption below:
> > > >
> > > > javax.servlet.ServletException: Error allocating a
> > servlet instance
> > > > at
> > > >
> > org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
> > per.java:619)
> > > > ../..
> > > > - Root Cause -
> > > > java.lang.SecurityException: Servlet of class
> > > > org.apache.catalina.servlets.ManagerServlet is privileged
> > and cannot be
> > > > loaded by this web application
> > >
> > > --
> > > To unsubscribe:
> 
> > For additional commands: 
> > Troubles with the list: 
>
> Yes i did.
>
> The manager context seems to work fine on the standalone Tomcat ( ie for
me
> port
> 8080 )
> but fails with Apache through mod_webapp on port 80
>
> Sure the privileged="true" is set, as it appears in the eeption raised...
>
> Well i don't know what to do more..
>
> JLB :0(
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

Well i said yes to the trick, but don't know how to do it

What is the best way to post a bug ?

Thanks.



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



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




RE: Manager options...

2002-02-20 Thread Ricky Leung

sorry, post the answer to the wrong thread.

-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 10:51 AM
To: Tomcat Users List
Subject: RE: Manager options...


look at the web.xml file under $CATALINA_HOME/conf, there's a sample web.xml
file there that explains how to setup timeouts in your webapp.  Just copy
and paste into your webapp's web.xml.  Remember the tag ordering is crucial
in xml.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
Sent: Wednesday, February 20, 2002 10:22 AM
To: Tomcat Users List
Subject: Re: Manager options...


Yoav Shapira a écrit :

> Hi,
> Sorry to bump in late in the thread, maybe this was already raised,
> but in your server.xml, did you specify the privileged="true"
> attribute for the Manager context?
>
> Yoav
>
> > If i enter http://myserver/managerstuff/list
> >
> > it then ask for login/password - OK
> >
> > and then generates an exeption below:
> >
> > javax.servlet.ServletException: Error allocating a servlet instance
> > at
> >
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
> > ../..
> > - Root Cause -
> > java.lang.SecurityException: Servlet of class
> > org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
> > loaded by this web application
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

Yes i did.

The manager context seems to work fine on the standalone Tomcat ( ie for me
port
8080 )
but fails with Apache through mod_webapp on port 80

Sure the privileged="true" is set, as it appears in the eeption raised...

Well i don't know what to do more..

JLB :0(





--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: session timeout

2002-02-20 Thread Ricky Leung

look at the web.xml file under $CATALINA_HOME/conf, there's a sample web.xml
file there that explains how to setup timeouts in your webapp.  Just copy
and paste into your webapp's web.xml.  Remember the tag ordering is crucial
in xml.

-Original Message-
From: Jagan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 11:35 PM
To: Tomcat Users List
Subject: session timeout


hi all!
My session time is presnetly the default tomcat-session time.
how to set session time so that the session will stay for longer?
Regards
Jagan
Unidux Electronics Ltd.
Email : [EMAIL PROTECTED]
TEL   : +65 293 4797
FAX   : +65 293 4920
  



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



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




RE: Manager options...

2002-02-20 Thread Ricky Leung

look at the web.xml file under $CATALINA_HOME/conf, there's a sample web.xml
file there that explains how to setup timeouts in your webapp.  Just copy
and paste into your webapp's web.xml.  Remember the tag ordering is crucial
in xml.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
Sent: Wednesday, February 20, 2002 10:22 AM
To: Tomcat Users List
Subject: Re: Manager options...


Yoav Shapira a écrit :

> Hi,
> Sorry to bump in late in the thread, maybe this was already raised,
> but in your server.xml, did you specify the privileged="true"
> attribute for the Manager context?
>
> Yoav
>
> > If i enter http://myserver/managerstuff/list
> >
> > it then ask for login/password - OK
> >
> > and then generates an exeption below:
> >
> > javax.servlet.ServletException: Error allocating a servlet instance
> > at
> >
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:619)
> > ../..
> > - Root Cause -
> > java.lang.SecurityException: Servlet of class
> > org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
> > loaded by this web application
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

Yes i did.

The manager context seems to work fine on the standalone Tomcat ( ie for me
port
8080 )
but fails with Apache through mod_webapp on port 80

Sure the privileged="true" is set, as it appears in the eeption raised...

Well i don't know what to do more..

JLB :0(





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



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




RE: error-page tag in web.xml

2002-02-19 Thread Ricky Leung

Yes, with the exception-type, if I give a fully qualified class name, it
works.  Great!  Thanks.

However, the 500 error-code is still not working while 404 works, I searched
everywhere and there doesn't seem to be any answer to that question.

%CATALINA_HOME%/logs/_log.txt gives me the exceptions which
is great for debugging, but I was thinking it would be better to be able to
capture the 500 error and present a better page for the customers however.

In any case, thanks for the info, at least I am steps closer to what I want,
at the least, I could just define most of the exception-types that we get
here, but if 500 works it would really simplify things a lot.

Ricky

-Original Message-
From: Drew Cox [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 6:38 PM
To: Tomcat Users List
Subject: RE: error-page tag in web.xml


Hey Ricky,

Struggling with similar issues to you, but might be able to help here.  Your

  CompileException

should contain a fully qualified class name.  I have the redirection working
in Tomcat 4.0.2 with this.  I would also suggest checking the
%CATALINA_HOME%/logs/_log.txt log file, it usually has more
info if the redirection is failing.

Cheers
Drew

-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 2:30 PM
To: Tomcat Users List
Subject: error-page tag in web.xml


I have the following in my web.xml and if I bring up a non-existent page,
Tomcat4 correctly parses and presents the er404.jsp page, however, I have
not been able to get the 500 and the exception ones working.  I always get
the Tomcat Error report with the dreaded 500 - Internal Server Error.  Any
ideas?


StoreServlet
/store



CompileException
/error/er500.jsp



404
/error/er404.jsp



500
/error/er500.jsp



Thanks,
Ricky


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




error-page tag in web.xml

2002-02-19 Thread Ricky Leung

I have the following in my web.xml and if I bring up a non-existent page,
Tomcat4 correctly parses and presents the er404.jsp page, however, I have
not been able to get the 500 and the exception ones working.  I always get
the Tomcat Error report with the dreaded 500 - Internal Server Error.  Any
ideas?


StoreServlet
/store



CompileException
/error/er500.jsp



404
/error/er404.jsp



500
/error/er500.jsp



Thanks,
Ricky


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




RE: Reposting [INIMSS] How can I load a custom jar file for a par ticular web application. [a newbie question]

2002-02-19 Thread Ricky Leung

depends, .class files go in the classes dir and .jar files goes in the lib
dir.

-Original Message-
From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 9:48 AM
To: Tomcat Users List
Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a
par ticular web application. [a newbie question]


Hi

But where should I put them, in "WEB-INF/classes" or "WEB-INF/lib"

Thank You
Dino Cherian K

On Tuesday 19 February 2002 19:23, you wrote:
>  Just reference them as normal. Ie ClassA.ClassA1.class
>
>  There's no magic involved...
>  Donie
>
>  -Original Message-
>  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  Sent: 18 February 2002 13:04
>  To: Tomcat Users List
>  Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a
>  particular web application. [a newbie question]
>
>  Hi
>
>  Ya it worked. Thanks
>
>  What if the thirdparty library is available as classes in a heirarchy.
> That is they are arranged in folder structure.
>
>  Like
>
>  + ClassA
>
>  |  ClassA1.class
>  |  ClassA2.class
>
>  + ClassB
>
>  |  ClassB1.class
>  |  ClassB3.class
>
>  + ClassC.class
>
>
>  Thanks
>  Dino Cherian K
>
>  On Tuesday 19 February 2002 16:30, you wrote:
>  >  Putting the jar file in the
${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
>  > directory will do the job.
>  >
>  >  -Original Message-
>  >  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  >  Sent: 18 February 2002 08:17
>  >  To: [EMAIL PROTECTED]
>  >  Subject: Reposting [INIMSS] How can I load a custom jar file for a
>  >  particular web application. [a newbie question]
>  >
>  >
>  >  Hi
>  >
>  >  Please help me ASAP.
>  >
>  >  I am having a third party jar file that is to be loaded from jsp pages
>  > to attain some task. The particular jar file is to be used only buy one
>  > web application. Where should I place the files and what all should I
>  > modify to make it work?
>  >
>  >  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.
>  >
>  >  Thanks
>  >  Dino CK
>  >
>  >
>  >  --
>  >  To unsubscribe:   
>  >  For additional commands: 
>  >  Troubles with the list: 
>  >
>  >
>  >
>  >
>  >  ***
>  >   This email/attachment(s) has been virus checked upon
>  >   receipt at the OS and is free of all known viruses.
>  >  ***
>  >
>  >
>  >
>  >
>  >
>  >
>  >  ***
>  >  For more information on Ordnance Survey products and services,
>  >  visit our web site at http://www.ordnancesurvey.co.uk
>  >  ***
>  >
>  >
>  >
>  >
>  >  --
>  >  To unsubscribe:   
>  >  For additional commands: 
>  >  Troubles with the list: 
>
>  --
>  To unsubscribe:   
>  For additional commands: 
>  Troubles with the list: 
>
>  --
>  To unsubscribe:   
>  For additional commands: 
>  Troubles with the list: 

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



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




RE: Tomcat as a service...

2002-02-19 Thread Ricky Leung

Another thing to watch out for is although the doc and the installer says it
detected JSDK at somewhere, make sure that is the case because I came to
realize that all it does is check the environment variable and not the
registry setting in JavaSoft.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:06 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat as a service...



I just downloaded and installed Tomcat 4.02 binary and everything
works fine for me.  The installer detected the JVM (1.3) on installation.
The only difference is that I installed to a directory without spaces in it.

It would seem that the service configuration is stored in the
registry at HKEY_LOCAL_MACHINE\SYSTEM\Services\Apache Tomcat\Parameters.
You might want to check these and make sure that the installer filled in the
parameters correctly (epically quoting the parameters correctly).

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 9:41 AM
> To: Tomcat Users List
> Subject: RE: Tomcat as a service...
>
>
>
>
> When I look at the properties for the service, it says that
> the path to the
> executable is:
> C:\Program Files\Apache Tomcat 4.0\bin\tomcat.exe
> When I try to run this exe from the command line, tomcat, of
> course, doesnt start.
> How does the service know to perform all the stuff that
> startup.bat does???
> Also, the service has no settings for environmental
> variables, so I assume it goes
> directly off whats in the system variables, correct?
> Question: Is a reboot needed if
> one of the env variables changes?
> Also, it has a line for "Start parameters" which is empty.
> Should something be here
> maybe???
> Dependencies tab, how do I set it up so that Tomcat starts up
> before Apache does.
> Because, I have noticed, runnning on the command line, that
> Apache needs a restart
> once you load up Tomcat.  Will the order of the services
> booting affect it?  If so, it seems
> to me that the installer should detect if Apache is present
> or not and set it up for the user.
>  Questions, questions...
>  -Kevin
>
>
>
>
>
> Randy Layman <[EMAIL PROTECTED]> on 02/19/2002 08:36:17 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
> cc:
> Subject:  RE: Tomcat as a service...
>
>
>
>  They should be in the logs directory, but you might want to try
> searching the system for the files.  Their lack of existence
> would point to
> the service not even getting loaded, probably a problem with your
> JAVA_HOME.
> I don't know about Tomcat 4, but with Tomcat 3 you had to edit the
> wrapper.properties file in the conf directory to set the
> JAVA_HOME. Maybe
> someone more familiar with Tomcat 4 could indicate how to set
> the JAVA_HOME
> for the service?
>
>  Randy
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 19, 2002 9:16 AM
> > To: Tomcat Users List
> > Subject: RE: Tomcat as a service...
> >
> >
> >
> >
> > Where can I find jvm.stderr and jvm.stdout? I dont see them
> in the log
> > dir???
> > Sorry if I seem stupid, but I am a SUN Certified Programmer,
> > not a system
> > admin type
> > guy.
> >  -Kevin
> >
> >
> >
> >
> >
> > Randy Layman <[EMAIL PROTECTED]> on 02/19/2002 08:08:51 AM
> >
> > Please respond to "Tomcat Users List"
> <[EMAIL PROTECTED]>
> >
> > To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > cc:
> > Subject:  RE: Tomcat as a service...
> >
> >
> >
> >  The reason that you get the message is because the only
> > errors that
> > can be reported are those detected by 2000 (like missing
> > binary, improper
> > permissions, etc).
> >
> >  I would suggest that you look at the jvm.stderr and
> > jvm.stdout for
> > more information about what the error is that you are getting.
> >
> >  Randy
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 19, 2002 8:51 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Tomcat as a service...
> > >
> > >
> > >
> > > One other thing... I have tried now, every now and then over
> > > the past 6 months to get Tomcat to run as an NT service.
> > > I have NEVER been sucessful and I have tried 4 or 5 different
> > > ways.  I kept thinking that there was some silly bug that
> was going
> > > to be fixed in the next release.  Well, I just installed the
> > > Tomcat 4.0.2
> > > exe file, and during the install, checked the option to
> > install as NT
> > > service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
> > > set properly, and reboot, and ONCE AGAIN, no tomcat service.
> > > The service is listed in the Admin Services console as being
> > > automatically started, but it wont actually start.  When I
> > > try to start it
> > > manually from the services panel, I get this message, 

RE: Tomcat as a service...

2002-02-19 Thread Ricky Leung

I remember someone post it back then he tried installing without spaces and
used the long names, I always install my apache and tomcat into C:\ or D:\
and not in program files, it's easier to get to them this way, or put them
in c:\usr\local\ to mimic Unix directory structure.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:14 AM
To: Tomcat Users List
Subject: RE: Tomcat as a service...




What do you mean by my Network config?
I have tried it at home and at work, both with very different setups of
Windows2000, and Tomcat pulls the same BS in both cases. Tomcat starts fine
when either I double click on startup.bat, or use the "Start Tomcat"
shortcut in the Start Menu(which just points to startup.bat).  Do you want
to know my varible settings?
System variables:
JAVA_HOME=C:\j2sdk1.4.0
CATALINA_HOME=C:\Progra~1\Apache~2
CLASSPATH=C:\IBMCON~1\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\Pro
gram~1\SQLLIB\java\db2java.zip;C:\Progra~1\SQLLIB\java\runtime.zip;C:
\Progra~1\SQLLIB\java\sqlj.zip;C:\Progra~1\SQLLIB\bin

Be more specific what settings you want to know...
 -Kevin






Loïc Lefèvre <[EMAIL PROTECTED]> on 02/19/2002 09:01:45 AM

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

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Tomcat as a service...


Hi Kevin,
Could you write your system configuration?
(especially your network configuration)

Cheers,
Loïc Lefèvre

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 19 février 2002 14:51
À : [EMAIL PROTECTED]
Objet : Tomcat as a service...



One other thing... I have tried now, every now and then over
the past 6 months to get Tomcat to run as an NT service.
I have NEVER been sucessful and I have tried 4 or 5 different
ways.  I kept thinking that there was some silly bug that was going
to be fixed in the next release.  Well, I just installed the Tomcat 4.0.2
exe file, and during the install, checked the option to install as NT
service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
set properly, and reboot, and ONCE AGAIN, no tomcat service.
The service is listed in the Admin Services console as being
automatically started, but it wont actually start.  When I try to start it
manually from the services panel, I get this message, "Could not
start Tomcat on local computer.  The service did not return an error.
Could be windows internal error or internal error."  If there was no error
returned, then why WONT IT START   And if there was an error,
why not REPORT IT.  How about telling the user what is wrong so that
he/she can fix it.  Duh. Sorry to be so brash, but it has been this way
for a long time and noone seems to care about fixing it.
 -Kevin Schmidt
 Cincinnati, OH




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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


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







--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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



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




RE: Tomcat as a service...

2002-02-19 Thread Ricky Leung

with Tomcat4, I don't think there's a jvm.stderr and jvm.stdout, all the
logs should be in your log directory, the default is CATALING_HOME/logs,
stdout.log and stderr.log.  Look at the other ones, they might give you an
idea also.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:16 AM
To: Tomcat Users List
Subject: RE: Tomcat as a service...




Where can I find jvm.stderr and jvm.stdout? I dont see them in the log
dir???
Sorry if I seem stupid, but I am a SUN Certified Programmer, not a system
admin type
guy.
 -Kevin





Randy Layman <[EMAIL PROTECTED]> on 02/19/2002 08:08:51 AM

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

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Tomcat as a service...



 The reason that you get the message is because the only errors that
can be reported are those detected by 2000 (like missing binary, improper
permissions, etc).

 I would suggest that you look at the jvm.stderr and jvm.stdout for
more information about what the error is that you are getting.

 Randy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 8:51 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat as a service...
>
>
>
> One other thing... I have tried now, every now and then over
> the past 6 months to get Tomcat to run as an NT service.
> I have NEVER been sucessful and I have tried 4 or 5 different
> ways.  I kept thinking that there was some silly bug that was going
> to be fixed in the next release.  Well, I just installed the
> Tomcat 4.0.2
> exe file, and during the install, checked the option to install as NT
> service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
> set properly, and reboot, and ONCE AGAIN, no tomcat service.
> The service is listed in the Admin Services console as being
> automatically started, but it wont actually start.  When I
> try to start it
> manually from the services panel, I get this message, "Could not
> start Tomcat on local computer.  The service did not return an error.
> Could be windows internal error or internal error."  If there
> was no error
> returned, then why WONT IT START   And if there was an error,
> why not REPORT IT.  How about telling the user what is wrong so that
> he/she can fix it.  Duh. Sorry to be so brash, but it has
> been this way
> for a long time and noone seems to care about fixing it.
>  -Kevin Schmidt
>  Cincinnati, OH
>
>
>
>
> --
>
> NOTICE:  The information contained in this electronic mail
> transmission is
> intended by Convergys Corporation for the use of the named
> individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential.  If you have received
> this electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error
> by reply email
> or by telephone (collect), so that the sender's address records can be
> corrected.
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>

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







--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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



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




RE: Determining User Connection Speed

2002-02-15 Thread Ricky Leung

To determine one's net speed, I guess you can write up something to send out
a 100k file and calculate how long it took the user to download the file,
but that still slows down LAN users.  The more elegant way is to separate by
the domain or IP group since LAN users have predictable net configurations
while everyone else you set to compress.

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 12:03 PM
To: Tomcat Users List
Subject: RE: Determining User Connection Speed


Our clients run our application on both the internet and intranet.  The
users who use the application on the intranet are usually on a 100MB (LAN)
network directly attached to the application server.  For these users the
application really hums.  For those on the internet, using 33kb or 58kb
dialup connections, the application is very slow downloading data.  We have
experimented with sending back the data compressed with mixed results.  That
is, the dialup users see a significant drop in download time while the
intranet (100MB LAN) users actually see a slow down in performance do to the
additional time needed to compress and uncompress the data.

If we could tell when a user is on a dialup (slow) connection we could
compress the data and not compressing it for those on a LAN connection.

Jim

> -Original Message-
> From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 11:39 AM
> To: Tomcat Users List
> Subject: Re: Determining User Connection Speed
>
>
> Jim Urban wrote:
> >
> > Is there a way to determine the speed a user is connected to the
> > internet at from within a servlet?
> >
>
>  No.
>
>  If you explain more about why you want to know, maybe
> someone could suggest something that would solve your
> problem without requiring the user's connection speed.
>
>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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



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




RE: Running Tomcat for Multiple developers

2002-02-14 Thread Ricky Leung

You can have multiple instances of tomcat with 1 installation but every
instance *must* have their own instance.

To do that, simple set JAVA_HOME to where java is installed and set
CATALINA_HOME to be where tomcat4 is installed and lastly, set CATALINA_BASE
to be that user's home directory/tomcat.

Under CATALINA_BASE, there should be a conf, logs, webapps, and work, same
as the Tomcat install should have in order to run.  Each student can then
have their own complete set of webapps and server.xml as if there's only 1
instance on the server.  But, again, the server.xml will have to use
different port numbers.

Then each student simple runs $CATALINA_HOME/bin/startup.sh and
$CATALINA_HOME/bin/shutdown.sh to start/stop tomcat, respectively.

You should provide them with an example of server.xml that they should place
under conf/ and have them just edit the port number.  Your sample should
only have 1 service and you can delete the bottom  tag used for
apache integration.

The Tomcat4 documentation area has more detail info on this under the
configuration section.

Ricky

-Original Message-
From: Lantz Johnson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 7:36 PM
To: [EMAIL PROTECTED]
Subject: Running Tomcat for Multiple developers


Hi,

I need to use tomcat for 30 or so students who may or may not be logging
onto more than one system.  How do I get multiple instance's of tomcat
with one installation ?  I can not give everyone a separte server.xml
file with unique port numbers because I can not figure out how to tell
the startup.sh script where to find a server.xml file in, for example,
everyone's home directory or how that will affect other components of the
application.

Thanks.

Lantz Johnson
Unix System Administrator
Santa Clara University
(408) 554-6806


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



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




RE: Popup Browser Windows & Tomcat Realm Authentication

2002-02-14 Thread Ricky Leung

I'm not sure if this would work, but I am guessing that your popup
immediately opens and your original window didn't do a thing.  If you allow
your parent authenticate and go to a authenticated page, it would be fine.
Then simply have that page popup the window that you wanted.  This idea is
similar to the way many sites having an auto-popup of advertisement when you
enters their main page.  Give that a try.

Ricky

-Original Message-
From: Kennedy Clark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 8:59 PM
To: [EMAIL PROTECTED]
Subject: Popup Browser Windows & Tomcat Realm Authentication


I'm using Tomcat 4.0.1 to develop a web-site application that needs to use
popup browser windows.  I have the main page protected by a JDBCRealm and
it's working nicely.  Now that I've added the popups, the popup window
opens fine using the authentication of the main windows.  However, when you
close the popup, you cannot do anything in the main windows without having
to re-authenticate.  I've tried using both a "target=" attribute on an "mailto:[EMAIL PROTECTED]>
For additional commands: 
Troubles with the list: 



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




tomcat4 and load balancing with apache

2002-02-14 Thread Ricky Leung

Hi,

I am getting mixed answers from the documentations.  Does Tomcat4 support
load-balancing with mod_jk?  I know it doesn't with mod_webapp but any idea
when that feature will be out?  Also, in the release notes, it says that
there is now a Webapp 1.0.2, where can I download this?  I only see the one
in Tomcat4.0.1 but it's webapp-module-1.0, not 1.0.2.  I also looked at the
src of the connectors but not in there either,
jakarta-tomcat-connectors-4.0.2-01-src.

Thanks.
Ricky


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