Thoughts on the word buglet was Re: TC323 standalone/ajp13 thread pools

2001-08-30 Thread simon

Love the word buglet - looking forward to seeing someone use the word featurelet - 
haven't seen it yet.

simon

- Original Message - 
From: Bill Lipa [EMAIL PROTECTED]
To: GOMEZ Henri [EMAIL PROTECTED]; [EMAIL PROTECTED]; 
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Bill Lipa [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 3:26 PM
Subject: RE: TC323 standalone/ajp13  thread pools


 How many Apache children do you have?  The default is 256, which will indeed
 almost immediately consume all the threads in the Tomcat thread pool if you do
 not increase it.  Each Apache child uses a thread.
 
 With ajp13, what counts is really the number of Apache children that are
 active.  You can easily count them with the Apache status mod or by using ps.
 
 It is really a buglet that the Tomcat thread default is set lower than the
 Apache default.
 
 Bill
 
 
 --- GOMEZ Henri [EMAIL PROTECTED] wrote:
  Hi (.*),
  
   Hope all is well around the globe.
  
   We've been doing some stress testing here with Tomcat 
  3.2.3 operating
   in standalone mode and with apache via the mod_jk ajp13 
  connector.
  
   We've noticed something interesting which we're not sure about.
  
   Tomcat running our application standalone can handle 70 
  simultaneous
   users, with a TcpPoolConnector thread pool set to 150. 
  When we run the
   same test via Apache/ajp13, the thread pool is quickly exhausted
   (logged in tomcat.log)
  
  You may have find something interesting. 
  
  Could you check via netstat in that situation how many ajp connections
  are in CLOSE-WAIT ?
  
   Is this normal operation ? Should an ajp13 connector 
  consume more tomcat threads than standalone tomcat ?
  
  http native connector (HTTP/1.0) close connection at end of
  request. In ajp13 the connections between apache and tomcat
  are persistant. What I didn't understand is how you could 
  have 150 ajp13 connections to handle only 70 clients ?
  
  Stay tuned
 
 
 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
 http://im.yahoo.com
 




Re: Out of environment space

2001-08-30 Thread ravishankar s

hi rajesh,

try this
1.open a dos window
2.click on the ms-dos icon on the top left of the window
3.choose properties 
4.click on the memory tab
5.in the initial memory drop down box choose 4096
6.close the window and open a new window and start tomcat,everything should work fine

ravi


On Wed, 29 August 2001, Rajesh Nair wrote:

 
 
 Hi,
 
 I have downloaded Tomcat 3.2.3 and when I try to run
 startup.bat(Win 98 ) I get the following output:
 
 Including all jars in d:tomcat\lib in your CLASSPATH
 
 Using CLASSPATH:d:\.
 
 bad command or file name
 
 out of environment space
 
 Including all jars in d:tomcat\lib in your CLASSPATH
 
 out of environment space
 
 2001-08-30 15:54:18 The file argument '^' does not
 exist.
 
 This problem may have occured to someone before.
 
 Please tell me what the problem is??
 
 Cheerz
 
 Raj
 
 
 
 
 
 
 
 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
 http://im.yahoo.com


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com



Re: Out of environment space

2001-08-30 Thread asheesh

I do run startup.bat (C:\tomcat\bin\startup.bat) , and it never gave me
problem.

Do check ur environment space, u can open ur DOS window and go to properties
and then set initial environment space, set it to high value.

cheers
asheesh

- Original Message -
From: Rajesh Nair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 2:03 PM
Subject: Out of environment space



 Hi,

 I have downloaded Tomcat 3.2.3 and when I try to run
 startup.bat(Win 98 ) I get the following output:

 Including all jars in d:tomcat\lib in your CLASSPATH

 Using CLASSPATH:d:\.

 bad command or file name

 out of environment space

 Including all jars in d:tomcat\lib in your CLASSPATH

 out of environment space

 2001-08-30 15:54:18 The file argument '^' does not
 exist.

 This problem may have occured to someone before.

 Please tell me what the problem is??

 Cheerz

 Raj







 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo!
Messenger
 http://im.yahoo.com




help pooledconnection problem in tomcat3.2.3

2001-08-30 Thread Jason Eacott

Hi,
I'm getting a java.lang.NoClassDefFoundError 
:javax/sql/PooledConnection in Tomcat V3.2.3 when I try to use 
Xalan  Xerces. I do not get this error in V3.1 or V4
I have added xalan  xerces to the tomcat/lib folder and removed 
the jaxp.jar (because it interfered with xalan).

everything seems to work perfectly despite this error (I suspect it is 
a threadpool issue not an sql connection pool problem but not sure 
- or the two interfering with each other. I am using Jnetdirect type4 
jdbc driver.)
has anyone else had this problem?

It occurs both as standalone application and running as a service 
through IIS.
error occurs on NT4  W2000 Advanced Server.


thanks in advance
Jason.

-- 
Jason Eacott
Hardlight Interactive
http://www.hardlight.com.au

Support bacteria - they're the only culture some people have.



Re: Tomcat and Java technology...

2001-08-30 Thread Jim Cheesman

At 12:20 AM 30/08/01, you wrote:
Since Tomcat and its integrating products are all built on the Java and 
XML technology, is there somewhere that a newbie to both could go and read 
documentation in regards to learning these technolgies??

I apologize for getting a little off topic however I'm looking for some 
simple documentation so that I can get my arms around this technology and 
begin to understand it.  I had a brief introduction to Java when in 
version 1.1 but it has moved since to 3.5 and 4.0 versions and I'm sure 
the changes are major.  Can anyone help me out and point me in the right 
direction??
I'd appreciate it...thanks!!


Java's still at 1.3, 1.4beta - though you could argue that 1.2 should have 
been 2.0...  Still, as posted previously the best place for an intro to 
java is the java tutorial at java.sun.com.

For jsp there's a reasonable introductory jguru tutorial also linked off 
java.sun.com.

For servlets there's a fair amount available with a quick search at your 
favourite search engine.

XML is deceptively simple - though XSL is another matter. Again, a quick 
search should turn up some stuff fairly fast...


Jim





--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  Exaggeration is not 
all it's cracked up to be.





interesting fault on toshiba laptop

2001-08-30 Thread Jason Eacott

Hi,
I have been trying to run Tomcat 3.x on a toshiba Satelite Pro 
4300 series running both NT4sp6 and W2000 Advanced Server.
Tomcat 3.x behaves very strangely in both OS, the main symptom 
being that it fails to recognise sessions properly. Tomcat4 does not 
have this problem.
I am thinking that this problem is due to hardware rather than 
software since it occurs ONLY on this machine and in both OS' 
that I've tried it on.

Just thought Id share :)

Jason.
 
-- 
Jason Eacott
Hardlight Interactive
http://www.hardlight.com.au

Support bacteria - they're the only culture some people have.



Permission Denied Error in Linux

2001-08-30 Thread Lester June Cabrera


Hi,

I tried to install Tomcat 3.2 in Linux. But when I run
shell bin/startup.sh
I got a Permission Denied error.

These are the steps I did:
1) installed JDK 1.2.2 for Linux as root.
2) included JDK path in .bash_profile
3) set JAVA_HOME env variable in .bash_profile
4) installed Tomcat 3.2 as root
5) included Tomcat path in .bash_profile
6) set a TOMCAT_HOME in .bash_profile

See th settings of .bash_profile below:

PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.3/bin
ENV=$HOME/.bashrc
TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
JAVA_HOME=/usr/local/jdk1.2.2
USERNAME=root

export USERNAME ENV PATH TOMCAT_HOME



Thanks,
Lester




session-timeout - redirect to login.htm

2001-08-30 Thread Jostkleigrewe, Heiner

Hello,

I developed a webapplication with some servlets. The servlet putted together
to a security-constraint 
in web.xml. I use a formbased login with JDBCRealm. If the session timed out
and the user requests again tomcat redirects to login.htm. That's ok. But I
have to inform the user, that the session timed out. What's the way? My
servlets are not invoked. In JDBCRealm I could not get informations about
the timed out session.

My environment: W2K, Tomcat 4.0-b7

Please help!

Heiner Jostkleigrewe
eMail: [EMAIL PROTECTED]




tomcat as an NT service.

2001-08-30 Thread Sumit Ranjan

hi all !
   how can i run my tomcat (3.2.2 in this case ) as an NT service ?
   i mean , i want my tomcat to start by itself whenever i restart my
machine.

any help will be greatly appreciated.

thanx in advance,


sumit






Re: Tomcat, Apache: JSP source code showed instead of generated HTML

2001-08-30 Thread Gero Vermaas - Sun Holland - Sun Java Centre - Java Consultant

You're right, I forgot to attach the file... classic mistake.

This time it's attached.

Anybody else who's got an idea?

Regards,
Gero
sorry - I'm all out of ideas.  but I didn't see the mod_jk attachment, did
you do a me and not attach it?  (o:

cheesr
dim

On Wed, 29 Aug 2001, Gero Vermaas wrote:

 OK, I cracked up the debug level and now mod_jk.log contains more info 
 (see attacheement). The strange thing I notice is that is seems to try 
 to execute everything twice. Does this ring a bel with anybody?
 
 The jasper.log file does not contain much more info:
 
 2001-08-29 18:29:15 - Parent class loader is: AdaptiveClassLoader(  )
 2001-08-29 18:29:15 - Scratch dir for the JSP engine is: 
 /opt/jakarta-tomcat-3.2.3/work/localhost_8080%2Fexamples
 2001-08-29 18:29:15 - IMPORTANT: Do not modify the generated servlets
 2001-08-29 18:29:15 - Parent class loader is: AdaptiveClassLoader(  )
 2001-08-29 18:29:15 - Parent class loader is: AdaptiveClassLoader(  )
 2001-08-29 18:29:15 - Parent class loader is: AdaptiveClassLoader(  )
 
 
 Any ideas?
 
 Regards,
 
 Gero
 
 Dmitri Colebatch wrote:
  Hi,
  
  I remember this - didn't get it working hey?  bugger... ok, two things I
  can suggest:
  
  1. crank up the log level in mod_jk.conf to debug, see if it tells you
  anything interesting
  
  2. have a look in jasper.log (also crank the log level up - in
  server.xml) and see if that contains anything interested... normally when
  a jsp is requested you'll be a fair bit of debug as it is compiled.
  
  hth,
  cheesr
  dim
  
  On 29 Aug 2001, Gero Vermaas wrote:
  
  
 Hi all!
 
 I sent mail to this mailing list a while ago stating that I could not
 get apache to work with tomcat... well I tried all kinds of solutions,
 monitored the mailing list and unfortunately I still haven?t been able
 to get it up and running. 
 
 The problem:
 - Requesting a JSP page by doing a request via port 8080 works fine
 - Requesting a JSP page via apache and mod_jk returns the JSP source
 code
 
 Is seems that requests to JSPs are not directed to port 8007 of Tomcat.
 
 I try to give a concise description below, hopefully somebody can tell
 what I?m missing. It must be something simple...
 
 Apache version: 1.3.14
 Tomcat version: 3.2.3
 Mod_jk version:  tomcat-mod-3.2.2-1.i386.rpm
 
 The apache error.log states the following when apache is started:
 [Wed Aug 29 08:59:23 2001] [notice] Apache-AdvancedExtranetServer/1.3.14
 (Linux-M
 andrake/2mdk) mod_ssl/2.7.1 OpenSSL/0.9.5a mod_jk configured -- resuming
 normal o
 perations
 
 As you can see mod_jk is configured and seems to be fine.
 
 I started TomCat before starting apache and this Tomcat reported the
 following:
 
 [root@gerodt gero]# 2001-08-29 09:02:12 - Ctx( /examples ): Set debug to
 1
 2001-08-29 09:02:12 - ContextManager: Adding context Ctx( /examples )
 2001-08-29 09:02:12 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages 
 2001-08-29 09:02:12 - ContextManager: Adding context Ctx(  )
 2001-08-29 09:02:12 - ContextManager: Adding context Ctx( /test )
 2001-08-29 09:02:12 - Ctx( /examples ): XmlReader - init  /examples
 webapps/examp
 les
 2001-08-29 09:02:12 - Ctx( /examples ): Reading
 /opt/jakarta-tomcat-3.2.3/webapps
 /examples/WEB-INF/web.xml
 2001-08-29 09:02:13 - Ctx( /examples ): Add user tomcat tomcat tomcat
 2001-08-29 09:02:13 - Ctx( /examples ): Add user role1 tomcat role1
 2001-08-29 09:02:13 - Ctx( /examples ): Add user both tomcat
 tomcat,role1
 2001-08-29 09:02:13 - Ctx( /examples ): Loading -2147483646 jsp
 2001-08-29 09:02:13 - PoolTcpConnector: Starting HttpConnectionHandler
 on 8080
 2001-08-29 09:02:13 - PoolTcpConnector: Starting Ajp12ConnectionHandler
 on 8007
 
 Below I?ll include the mod_jk.conf and worker.properties file. I checked
 all paths in these file and they all seem to be correct.
 
 Doing a telnet to port 8007 reports:
 [root@gerodt gero]# telnet localhost 8007
 Trying 127.0.0.1...
 Connected to localhost.localdomain.
 Escape character is ?^]?.
 HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
 java.io.IOException: Stream broken
 at

org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHa
 ndler.java:426)
 at

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12Connect
 ionHandler.java:147)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)
 
 So Tomcat is accepting requests on this port.
 
 A strange this I discovered is that the /var/log/httpd/mod_jk.log file
 remains empty when I do a:
 /etc/rc.d/rc5.d/S85httpd stop
 followed by a
 /etc/rc.d/rc5.d/S85httpd start
 
 However, when I do a:
 /etc/rc.d/rc5.d/S85httpd restart
 
 The mod_jk.log file contains:
 [jk_uri_worker_map.c (335)]: 

Re: Permission Denied Error in Linux

2001-08-30 Thread ravishankar s

hi lester,
try chmod +x startup.sh or chmod 777 startup.sh

then try
sh startup.sh or ./startup.sh 

what flavour of linux do u have i hope it;'s not RH7.0!!!

ravi


On Wed, 29 August 2001, Lester June Cabrera wrote:

 
 
 Hi,
 
 I tried to install Tomcat 3.2 in Linux. But when I run
 shell bin/startup.sh
 I got a Permission Denied error.
 
 These are the steps I did:
 1) installed JDK 1.2.2 for Linux as root.
 2) included JDK path in .bash_profile
 3) set JAVA_HOME env variable in .bash_profile
 4) installed Tomcat 3.2 as root
 5) included Tomcat path in .bash_profile
 6) set a TOMCAT_HOME in .bash_profile
 
 See th settings of .bash_profile below:
 
 PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.3/bin
 ENV=$HOME/.bashrc
 TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
 JAVA_HOME=/usr/local/jdk1.2.2
 USERNAME=root
 
 export USERNAME ENV PATH TOMCAT_HOME
 
 
 
 Thanks,
 Lester


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com



Re: tomcat as an NT service.

2001-08-30 Thread ravishankar s

dear sumit,
here's what the docs say

The Jakarta NT service is an executable that wraps the Tomcat servlet container and 
executes it in the background as an NT
service. To install it you will need to:

   1.Get a hold on the NT executable (jk_nt_service.exe) 
  Download the executable from the win32/i386 directory found where you 
downloaded the Tomcat binary
  distribution. For those using Netscape as your browser, try downloading a 
zip version of the file, if available. There
  can be problems using Netscape to download DLL files. 
   2.Customize a properties file that provides the service with Tomcat information 
(wrapper.properties). 
  Locate the wrapper.properties template file in your Tomcat conf directory. 
  Update the wrapper.tomcat_home property to point at your tomcat home. 
  Update the wrapper.java_home property to point at your Java home. 
   3.Install jk_nt_service by running it with the -i flag. 
  Execute jk_nt_service -I name of service path to updated wrapper 
properties 
  name of service should be a single word (without and spaces) such as 
Jakarta 
  path to updated wrapper properties should point to your wrapper.properties 
file (and the service will check it's
  existence.) 
  For example, a valid command line can be jk_nt_service -I Jakarta 
wrapper.properties 
   4.Start tomcat as a service. 
  From the command line, execute net start name of service (e.g. net start 
Jakarta) 
  From the NT services applet, highlight your service and press start. 
 Note: If the log file location in your wrapper.properties file points to the logs 
directory, and the logs directory doesn't yet
 exist, manually create it before starting the service. 
   5.Stop Tomcat as a service. 
  From the command line, execute net stop name of service (e.g. net stop 
Jakarta) 
  From the NT services applet, highlight your service and press stop. 

Special note: The Tomcat service is using AJPV12 to perform clean shutdown and you 
should make sure that an AJPV12
connector is defined in your server.xml. In the absence of a configured AJPV12 port 
the Tomcat service will kill Tomcat abruptly
(that is murder it) without giving it a chance to clean up. 

To remove the installed service, execute jk_nt_service -R name of service


ravi

On Thu, 30 August 2001, Sumit Ranjan wrote:

 
 hi all !
how can i run my tomcat (3.2.2 in this case ) as an NT service ?
i mean , i want my tomcat to start by itself whenever i restart my
 machine.
 
 any help will be greatly appreciated.
 
 thanx in advance,
 
 
 sumit


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com



Re: Permission Denied Error in Linux

2001-08-30 Thread Lester June Cabrera


Thanks. I got it now.

I made startup.sh, tomcat.sh and shutdown.sh all executable. And nope, 
we're not using RedHat 7.0. We haven't fully tested it yet. Why? What 
should we know about version 7? We're using 6.2 because we have tested it 
already for more than a year now.


Thanks again,
Lester


At 12:11 AM 8/30/01 -0700, you wrote:
hi lester,
try chmod +x startup.sh or chmod 777 startup.sh

then try
sh startup.sh or ./startup.sh

what flavour of linux do u have i hope it;'s not RH7.0!!!

ravi


On Wed, 29 August 2001, Lester June Cabrera wrote:

 
 
  Hi,
 
  I tried to install Tomcat 3.2 in Linux. But when I run
  shell bin/startup.sh
  I got a Permission Denied error.
 
  These are the steps I did:
  1) installed JDK 1.2.2 for Linux as root.
  2) included JDK path in .bash_profile
  3) set JAVA_HOME env variable in .bash_profile
  4) installed Tomcat 3.2 as root
  5) included Tomcat path in .bash_profile
  6) set a TOMCAT_HOME in .bash_profile
 
  See th settings of .bash_profile below:
 
  
 PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.3/bin
  ENV=$HOME/.bashrc
  TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
  JAVA_HOME=/usr/local/jdk1.2.2
  USERNAME=root
 
  export USERNAME ENV PATH TOMCAT_HOME
 
 
 
  Thanks,
  Lester


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com



Lester June Cabrera
Chief Web Programmer
VinciWorks
2904 88 Corporate Center
Valero St., Salcedo Village
Makati City

Email: [EMAIL PROTECTED]
Mobile: +63915-7120430





Re: Permission Denied Error in Linux

2001-08-30 Thread ravishankar s

good for u les!!6.2 is the best for java.7.0 has a hell a lot of bugs which are still 
being fixed.7.1 is ok but still not as good as 6.2...

ravi

On Thu, 30 August 2001, Lester June Cabrera wrote:

 
 
 Thanks. I got it now.
 
 I made startup.sh, tomcat.sh and shutdown.sh all executable. And nope, 
 we're not using RedHat 7.0. We haven't fully tested it yet. Why? What 
 should we know about version 7? We're using 6.2 because we have tested it 
 already for more than a year now.
 
 
 Thanks again,
 Lester
 
 
 At 12:11 AM 8/30/01 -0700, you wrote:
 hi lester,
 try chmod +x startup.sh or chmod 777 startup.sh
 
 then try
 sh startup.sh or ./startup.sh
 
 what flavour of linux do u have i hope it;'s not RH7.0!!!
 
 ravi
 
 
 On Wed, 29 August 2001, Lester June Cabrera wrote:
 
  
  
   Hi,
  
   I tried to install Tomcat 3.2 in Linux. But when I run
   shell bin/startup.sh
   I got a Permission Denied error.
  
   These are the steps I did:
   1) installed JDK 1.2.2 for Linux as root.
   2) included JDK path in .bash_profile
   3) set JAVA_HOME env variable in .bash_profile
   4) installed Tomcat 3.2 as root
   5) included Tomcat path in .bash_profile
   6) set a TOMCAT_HOME in .bash_profile
  
   See th settings of .bash_profile below:
  
   
  PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.3/bin
   ENV=$HOME/.bashrc
   TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
   JAVA_HOME=/usr/local/jdk1.2.2
   USERNAME=root
  
   export USERNAME ENV PATH TOMCAT_HOME
  
  
  
   Thanks,
   Lester
 
 
 Find the best deals on the web at AltaVista Shopping!
 http://www.shopping.altavista.com
 
 
 
 Lester June Cabrera
 Chief Web Programmer
 VinciWorks
 2904 88 Corporate Center
 Valero St., Salcedo Village
 Makati City
 
 Email: [EMAIL PROTECTED]
 Mobile: +63915-7120430
 


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com



HTTPS and client authentication

2001-08-30 Thread Eirik Yksnøy


hi

I'm using Tomcat 4.0 b7 as a secure server. Everything works fine using
https. But I want to use a certificate and client authentication when
connecting to the server.
I have edited the file server.xml and set clientAuth=true in the SSL HTTPS
section (when set to false! everything is fine) to get the client
authentication, but when set to true I get a page can not be displayed
error. 
Any tips on what's wrong?


Eirik Yksnøy





RE: It worked - Can someone explain why?

2001-08-30 Thread Cato, Christopher

Take a look at your web.xml for the directory mappings.

The coreservlets.name is merely a pointer to coreservlets/name.class i
guess.

 -Original Message-
 From: Charles Webber [mailto:[EMAIL PROTECTED]]
 Sent: den 30 augusti 2001 03:36
 To: [EMAIL PROTECTED]
 Subject: It worked - Can someone explain why?
 
 
 I am working through a book on servlets and JSPs.  JSPs and 
 beans are pretty
 easy, and I understand how things fit together  - still want 
 to work on some
 JDBC stuff, but that's later.
 In the meantime, I wrote a servlet as part of a package 
 called coreservlets.
 I finally went through the examples that came with Tomcat and 
 noticed in the
 source that it didn't use packages and figured out both how 
 to invoke my
 servlets and where to place the class file so that it would work.  The
 question is why it works this way - what is going on under the covers?
 I placed my servlet class file in a directory like
 $TOMCAT_HOME/webapps/examples/WEB-INF/classes/coreservlets/nam
 e.class.  On
 the URL in my browser, I typed in the following:
 http://host/examples/servlet/coreservlets.name - and it worked!!!
 So the confusion I have is due to the fact that the directory 
 path names
 don't match where the servlet is located.  Can anyone explain 
 this?  I'm
 sure this is pretty straightforward - and if some document points this
 ut  - if you could point me to that I'll take it from there.
 Thanks.
 



Re: Installed Tomcat. Now what?

2001-08-30 Thread Catalin Palsu

Hello,

Go to www.jsptut.com .
You'll get the basic from there.

So I did.
Good luck.
Catalin
At 05:46 PM 8/30/01 +1000, you wrote:
Hi,

I installed Tomcat, and tried the examples. Now what? I have been
programming in Java for a couple of years so I'm OK there, but I want to
know how to write an app with JSP, Servlets and Beans. How? I find the
documentation doesn't help me very much. It's too vague for me.

Can someone write a step by step guide to writing an app for Tomcat? How
about a Hello World app? I don't know XML so I can't write build.xml files
or anything. I'm really stuck.

Can I just write a JSP file and stick it in /webapps and fetch it? With
servlets and Beans too? What is a servlet context? Is that just the document
root? If it's just the document root for the app, why the hell make up new
jargon for it and why not just call it document root of an app? I hate
learning all this jargon. You can spend your life getting really good at
programming or spend your life getting to know all the jargon. It seems
that's the way.

Also, why doesn't this work:

% response.writeln(Hello World); %

James




window2000+jdk+iis+tomcat Ç©

2001-08-30 Thread

 
 Àú´Â window2000 À» °¡Áö°í iis ¿Í tomcat À» ¿¬µ¿À» ÇÏ·Á´Âµ¥ 
 À߾ȵǰí ÀÖ½À´Ï´Ù
 ÀÚ¼¼ÇÑ ¹æ¹ýÀ» Á»¾Ë·Á ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù
 Á¦¹ß ºÎŹµå¸³´Ï´Ù


===
¿ì¸® ÀÎÅͳÝ, Daum  http://www.daum.net
ÇѸÞÀÏ³Ý µµÂø¾Ë¸²!, ¹«Á¦ÇÑ ÆÄÀÏÀü¼Û!
¢Ñ´Ù¿î¹Þ±â http://messenger.daum.net/



RE: Installed Tomcat. Now what?

2001-08-30 Thread BENARD Christophe, DDE 34/SG

 [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] écrivait
 jeudi 30 août 2001 09:46
 À: [EMAIL PROTECTED]
 Objet: Installed Tomcat. Now what?
 Can someone write a step by step guide to writing an app for 
 Tomcat? How
 about a Hello World app?

Try this link, you'll find some very interesting tutorials :
http://www-105.ibm.com/developerworks/education.nsf/dw/java-onlinecourse-byt
itle

You can try the Introduction to JSP technology tutorial.

Another link :
http://developer.java.sun.com/developer/infodocs/?frontpage-main#tutorials

HTH

Chris



Re: Out of environment space

2001-08-30 Thread james

I had exactly the same problem.

Type in the command in a DOS box instead of double clicking the batch file
in a window. First, click the icon in the top left of the DOS window, choose
properties, and the memory tab, then initial environment. It is probably set
to Auto. Choose 4096, which I think is the highest possible. Then click
apply, close the window, and open it up again and run the startup.bat batch
file. That should take care of it.

Also add:
SHELL=C:\command.com /P /E:4096

to your config.sys file. (Thanks Ted!)

---
James


- Original Message -
From: Rajesh Nair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:03 PM
Subject: Out of environment space



 Hi,

 I have downloaded Tomcat 3.2.3 and when I try to run
 startup.bat(Win 98 ) I get the following output:

 Including all jars in d:tomcat\lib in your CLASSPATH

 Using CLASSPATH:d:\.

 bad command or file name

 out of environment space

 Including all jars in d:tomcat\lib in your CLASSPATH

 out of environment space

 2001-08-30 15:54:18 The file argument '^' does not
 exist.

 This problem may have occured to someone before.

 Please tell me what the problem is??

 Cheerz

 Raj







 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo!
Messenger
 http://im.yahoo.com






Re: Out of environment space

2001-08-30 Thread Rajesh Nair

Hi 

Ive set the initial space to 4096.
However if i run startup.bat...
it says starting tomcat in  new window and then
bad command or file name
and ends

if i run tomcat.bat
it gives the foll error
2001-08-30 17:18:18 The file argument '^' does not
 exist.

i wonder why...

thanks

Raj

--- [EMAIL PROTECTED] wrote:
 I had exactly the same problem.
 
 Type in the command in a DOS box instead of double
 clicking the batch file
 in a window. First, click the icon in the top left
 of the DOS window, choose
 properties, and the memory tab, then initial
 environment. It is probably set
 to Auto. Choose 4096, which I think is the highest
 possible. Then click
 apply, close the window, and open it up again and
 run the startup.bat batch
 file. That should take care of it.
 
 Also add:
 SHELL=C:\command.com /P /E:4096
 
 to your config.sys file. (Thanks Ted!)
 
 ---
 James
 
 
 - Original Message -
 From: Rajesh Nair [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 30, 2001 4:03 PM
 Subject: Out of environment space
 
 
 
  Hi,
 
  I have downloaded Tomcat 3.2.3 and when I try to
 run
  startup.bat(Win 98 ) I get the following output:
 
  Including all jars in d:tomcat\lib in your
 CLASSPATH
 
  Using CLASSPATH:d:\.
 
  bad command or file name
 
  out of environment space
 
  Including all jars in d:tomcat\lib in your
 CLASSPATH
 
  out of environment space
 
  2001-08-30 15:54:18 The file argument '^' does not
  exist.
 
  This problem may have occured to someone before.
 
  Please tell me what the problem is??
 
  Cheerz
 
  Raj
 
 
 
 
 
 
 
  __
  Do You Yahoo!?
  Get email alerts  NEW webcam video instant
 messaging with Yahoo!
 Messenger
  http://im.yahoo.com
 
 
 


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Out of environment space

2001-08-30 Thread james

Right click on the batch files, and select edit. Sometimes Windows chokes
on the UNIX style newlines. If they're there get rid of them and try again.
I used Allaire Homesite (UltraEdit is good too) to convert the batch files
to DOS style.

---
James


- Original Message -
From: Rajesh Nair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:03 PM
Subject: Out of environment space



 Hi,

 I have downloaded Tomcat 3.2.3 and when I try to run
 startup.bat(Win 98 ) I get the following output:

 Including all jars in d:tomcat\lib in your CLASSPATH

 Using CLASSPATH:d:\.

 bad command or file name

 out of environment space

 Including all jars in d:tomcat\lib in your CLASSPATH

 out of environment space

 2001-08-30 15:54:18 The file argument '^' does not
 exist.

 This problem may have occured to someone before.

 Please tell me what the problem is??

 Cheerz

 Raj







 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo!
Messenger
 http://im.yahoo.com






Installed Tomcat. Now what?

2001-08-30 Thread james

Hi,

I installed Tomcat, and tried the examples. Now what? I have been
programming in Java for a couple of years so I'm OK there, but I want to
know how to write an app with JSP, Servlets and Beans. How? I find the
documentation doesn't help me very much. It's too vague for me.

Can someone write a step by step guide to writing an app for Tomcat? How
about a Hello World app? I don't know XML so I can't write build.xml files
or anything. I'm really stuck.

Can I just write a JSP file and stick it in /webapps and fetch it? With
servlets and Beans too? What is a servlet context? Is that just the document
root? If it's just the document root for the app, why the hell make up new
jargon for it and why not just call it document root of an app? I hate
learning all this jargon. You can spend your life getting really good at
programming or spend your life getting to know all the jargon. It seems
that's the way.

Also, why doesn't this work:

% response.writeln(Hello World); %

James





RE: Why does servlet.jar break servlets?

2001-08-30 Thread Wouter Boers

You allready gave the answer.

Tomcat is amongst other things, a servlet container and therefore needs
access to the javax.servlet.* packages. That's why it's in the common/lib,
it's crucial for tomcat to run. If you look at the startup scripts you will
notice that the jars in the tomcat/common/lib dir are added to the
classpath. The jars in the WEB-INF/lib are only added to the context. So
that really a different thing.

If you want to change the version of servlet.jar, replace it with the
version you want.

Wouter
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eryq
Sent: 29 August 2001 18:00
To: [EMAIL PROTECTED]
Subject: Why does servlet.jar break servlets?


I've noticed something which seems quite odd.

It appears that I need the javax.servlet.* classes in
order to compile my servlet, to get classes such as
javax.servlet.http.HttpServletRequest, etc.

The classes can be found in a servlet.jar included
with TDK-2.1, in common/lib.

However, it appears that servlet.jar does not need
to be in the WEB-INF/lib directory of a servlet
in order for the servlet to run.

Furthermore. I have noticed that if I put servlet.jar
in the WEB-INF/lib directory of a Tomcat4-b7 servlet
(including the examples servlets), it breaks them...
horribly.  I get ClassCastExceptions or worse.

I am guessing that javax.servlet is somehow
special, and that it's the servlet container's
job to ensure that the servlet has access to it,
no matter what might be in the WEB-INF/lib directory.

I am also guessing that there might be a Servlet API 2.2
versus 2.3 issue going on.

Anyway, if anyone can shed more light on this,
I'd be very interested in understanding it a bit more.

Thanks,

Eryq




Re: Out of environment space

2001-08-30 Thread Razi Ansari

Hey guys,

I cant seem to find the memory tab. I right click on my dos prompt window 
and I go to properties, but there is no memory tab. I am on Win2k. And I am 
using licences software. HELP


Razi


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Out of environment space
Date: Thu, 30 Aug 2001 16:45:26 +1000

I had exactly the same problem.

Type in the command in a DOS box instead of double clicking the batch file
in a window. First, click the icon in the top left of the DOS window, 
choose
properties, and the memory tab, then initial environment. It is probably 
set
to Auto. Choose 4096, which I think is the highest possible. Then click
apply, close the window, and open it up again and run the startup.bat batch
file. That should take care of it.

Also add:
SHELL=C:\command.com /P /E:4096

to your config.sys file. (Thanks Ted!)

---
James


- Original Message -
From: Rajesh Nair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:03 PM
Subject: Out of environment space


 
  Hi,
 
  I have downloaded Tomcat 3.2.3 and when I try to run
  startup.bat(Win 98 ) I get the following output:
 
  Including all jars in d:tomcat\lib in your CLASSPATH
 
  Using CLASSPATH:d:\.
 
  bad command or file name
 
  out of environment space
 
  Including all jars in d:tomcat\lib in your CLASSPATH
 
  out of environment space
 
  2001-08-30 15:54:18 The file argument '^' does not
  exist.
 
  This problem may have occured to someone before.
 
  Please tell me what the problem is??
 
  Cheerz
 
  Raj
 
 
 
 
 
 
 
  __
  Do You Yahoo!?
  Get email alerts  NEW webcam video instant messaging with Yahoo!
Messenger
  http://im.yahoo.com
 
 



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




How a html file pass arguments to a servlet??

2001-08-30 Thread Ruben Domene

Hi.
I need know how from a html file i can send arguments to servlet.
Thank you for your helps.



Ajp13 protocol

2001-08-30 Thread Roberto B.

I'm using a linux box.
I added this line in file server.xml

RequestInterceptor
className=org.apache.tomcat.modules.server.Ajp13Interceptor
port=8009/

to enable Ajp13 protocol, but when I start Tomcat 3.2.3 I receive an error.
Is it necessary the above line in order to activate Ajp13??

thanks!

Roberto.




loadbalancing with tomcat 3.2 , just an explication !

2001-08-30 Thread Bekkali Hatim - Soamaï

hy all
i read the documentation :
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/Tomcat-Workers-HowTo.html

i juste  want to know one thing :
i have two groups of servers ( redhat 6.2 and tomcat 3.2 ,apache 1.3.20 ) in 
the same network
Group A 
with 3 servers PC1 PC2 PC3
Group B
with 2 servers PC4 PC5
i want to make loadbalancing between PC 1 PC2 PC3 only
and loadbalancing between PC4 PC5 only 
1- It is possible ? and how ?how can i verify that the multiple tomcat 
connect between them ?
2-Loadbalancing preserve the session id ? if tomcat in PC2 created a 
jsessionid for a specifc web request , the next request from the same client 
will go to the same PC2 who have an opened sessionid for this client ?

Thank you 




Re: newbies question: tomcat jaxp-1.1

2001-08-30 Thread Pierre-Yves . Verdon

unfortunately, this tips don't work for jaxp with tomcat

thanks for your help

Ludovic Maitre wrote:
 
 Hello,
 
 you can rename your crimson.jar file to parser.jar, it should be work
 (this trick work for Cocoon2 who use jaxp1.1 or xerces, i don't
 remember,
 read xml.apache.org/cocoon2 for more info).
 
 [EMAIL PROTECTED] wrote:
 
  hi,
  i have just a little problem, i'm using jaxp-1.1. But jaxp-1.1 didn't
  contain the file parser.jar. The xml parser for jaxp seems to be
  crimson.jar
 
  [verdon@pc-ccri-11 jaxp-1.1]# ls
  License-ASF  License-W3C.html  docs  install.html
  readme.htmlxalan.jar
  License-RI.html  crimson.jar   examples  jaxp.jar  relnotes.html
  [verdon@pc-ccri-11 jaxp-1.1]# find . -name parser.jar
  [verdon@pc-ccri-11 jaxp-1.1]#
 
  So when compiling tomcat i get the following error:
 
  No JAXP compliant XML parser found. See http://java.sun.com/xml for the
  reference implementation.
  --- Nested Exception ---
  java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:124)
  at org.apache.tools.ant.Main.runBuild(Main.java:402)
  at org.apache.tools.ant.Main.main(Main.java:149)
 
  is someone knows how to help me ? or where can i get the previous
  version of jaxp ?
 
  --
  thanks
  pierre-yves VERDON
 
 --
  [EMAIL PROTECTED]
 
  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



RE: How a html file pass arguments to a servlet??

2001-08-30 Thread Suresh Krishna M (RBIN/DBA-JOT)

Hello ruben,
 Normally when u r calling a servlet u will be specifying
the url of the servlet(in the html).for url only u just need to add the
parameters.
ex. servlet/myclass?name=sage=21time=asd
 and u can get the parameters with request.getParameter() in
the servlet.
Hope this solves your problem.

The intellect has little to do on the road to discovery. There comes a leap
in consciousness, call it Intuition or what you will, the solution comes to
you and you don't know how or why.

--Albert Einstein
With best regards,
M.S.Krishna (RBIN/DBA-JOT)
 Phone*: +91-80-508-1416
Fax : +91-80 571-1865
E-mail : [EMAIL PROTECTED]
Robert Bosch India Limited,
123,Industrial Layout,
Koramangala,
Bangalore-95.

 -Original Message-
 From: Ruben Domene [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 5:05 AM
 To:   tomcat
 Subject:  How a html file pass arguments to a servlet??
 
 Hi.
 I need know how from a html file i can send arguments to servlet.
 Thank you for your helps.



RE: How a html file pass arguments to a servlet??

2001-08-30 Thread Cato, Christopher

You pass arguments to a servlet by adding the arguments to the request like
this:
http://myhost.com/testservlet?key=valuekey=valuekey=value and so on. You
then pick up the arguments in the servlet by working with the REQUEST
object's parameters.

Basically:

HttpRequest req = New HttpRequest();
key1 = req.getParameter(key);

this is from memory so don't flame me if I made a typo

chris

 -Original Message-
 From: Ruben Domene [mailto:[EMAIL PROTECTED]]
 Sent: den 30 augusti 2001 01:35
 To: tomcat
 Subject: How a html file pass arguments to a servlet??
 
 
 Hi.
 I need know how from a html file i can send arguments to servlet.
 Thank you for your helps.
 



Re: Ajp13 protocol

2001-08-30 Thread Bekkali Hatim - Soamaï


i use this to ennable Ajp13 protocol   

!-- Apache AJP13 support. This is also used to shut down tomcat.
  --
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
   value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
Parameter name=port value=8009/
/Connector


Le Jeudi 30 Août 2001 08:41, vous avez écrit :
 I'm using a linux box.
 I added this line in file server.xml

 RequestInterceptor
 className=org.apache.tomcat.modules.server.Ajp13Interceptor
 port=8009/

 to enable Ajp13 protocol, but when I start Tomcat 3.2.3 I receive an error.
 Is it necessary the above line in order to activate Ajp13??

 thanks!

 Roberto.



RE: How a html file pass arguments to a servlet??

2001-08-30 Thread Suresh Krishna M (RBIN/DBA-JOT)

Hello ruben,
or u can even send all the fields in a html file by
using the form field and action=post.
i.e in the html file u have

 form name= action=post
---
--- some html code and some fields.
---
---you have a submit button here.
type=Submit value=Submit name=aaa
form

In the above code the servlet gets all the fields that are there with in the
form tag and can be retrieved by the request.getParameter().
(the above si handy when u want to send the whole of the fields as
parameters.If u want to send the custom parameters then the previous
mentioned method is better.

The intellect has little to do on the road to discovery. There comes a leap
in consciousness, call it Intuition or what you will, the solution comes to
you and you don't know how or why.

--Albert Einstein
With best regards,
M.S.Krishna (RBIN/DBA-JOT)
 Phone*: +91-80-508-1416
Fax : +91-80 571-1865
E-mail : [EMAIL PROTECTED]
Robert Bosch India Limited,
123,Industrial Layout,
Koramangala,
Bangalore-95.

 -Original Message-
 From: Ruben Domene [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 5:05 AM
 To:   tomcat
 Subject:  How a html file pass arguments to a servlet??
 
 Hi.
 I need know how from a html file i can send arguments to servlet.
 Thank you for your helps.



Re: Ajp13 protocol

2001-08-30 Thread Roberto B.

Ok... I had already added those lines to server.xml... but i'm asking if the
line RequestInterceptor is important for ajp13
Do you have added any lines to workers.properties file??

R

- Original Message -
From: Bekkali Hatim - Soamaï [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 12:39 PM
Subject: Re: Ajp13 protocol



 i use this to ennable Ajp13 protocol

 !-- Apache AJP13 support. This is also used to shut down tomcat.
   --
 Connector className=org.apache.tomcat.service.PoolTcpConnector
 Parameter name=handler

value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
 Parameter name=port value=8009/
 /Connector


 Le Jeudi 30 Août 2001 08:41, vous avez écrit :
  I'm using a linux box.
  I added this line in file server.xml
 
  RequestInterceptor
  className=org.apache.tomcat.modules.server.Ajp13Interceptor
  port=8009/
 
  to enable Ajp13 protocol, but when I start Tomcat 3.2.3 I receive an
error.
  Is it necessary the above line in order to activate Ajp13??
 
  thanks!
 
  Roberto.




RE: Gotta Be Something Simple

2001-08-30 Thread Helena Hjertén

Call your servlet from a form action=servlet/packagename.servletname NOT
servlets/packagename.servletname unless you specifically defined any
additional servlet mappings in your server.xml under the conf directory
(http://webbroot/weppapplication/servlet is the default invoker). If
your servlet is not in a package, then call it with servlet/servletname...

/Helena


-Original Message-
From: Charles Webber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 21:31
To: [EMAIL PROTECTED]
Subject: Re: Gotta Be Something Simple


Just a quick question - how do I map them in a deployment descriptor?
Where can I find either a HOW-TO, or some additional documentation?
Thanks.
- Original Message -
From: Matt Barre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 12:49 PM
Subject: Re: Gotta Be Something Simple


 the default location for servlets should be /WEB-INF/classes/ within the
apps folder. Have
 you tried this? Also have you added and mapped them in your deployment
descriptor?

 Matt
 - Original Message -
 From: Charles Webber [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2001 12:26 PM
 Subject: Gotta Be Something Simple


  Got a problem that I either don't understand, or something isn't
configured
  properly.
  I have a couple of servlets that after I corrected the CLASSPATH,
compiled
  without any problems.  However, the page that attempts to invoke the
  servlets returns a 404 (not found).  I've tried putting the servlets in
  various directories under my tomcat directory tree, but still same
result.
  Both servlets are part of the same package.  The page that tries to
invoke
  the main servlet uses a form action=servlets/servletname.
  This is my first attempt in writing something like this, and even though
I
  think I understand where things are supposed to go and why they are
supposed
  to go there, I am baffled at why the servlet can't be found.  Any help
would
  be appreciated.
  Thanks.




RE: It worked - Can someone explain why?

2001-08-30 Thread Helena Hjertén

Hi Charles, 
All classfiles are placed in a directory structure that matches the package
name. For example: A class called JavaClass.class in a package called
com.anything.project must be placed in a directory structure
com/anything/project under a directory that is loaded by the class loader
(in tomcat case for example WEB-INF/classes). This goes for both servlets
and regular class files. 

When you do import com.anything.project.JavaClass in a normal java file,
this file must be available under a directory that matches this package
name, as well as when you call a servlet, you must call it with the package
name as in
http://www.website.com/webapplication/servlet/com.anything.project.JavaServl
et and the file JavaServlet.class must be available in the directory
mentioned above.

You can also put all your files into a java archive (jar-file) and place the
jar-file under WEB-INF/lib, but evenso, if you open a jarfile and check it
out (use for example winzip) you can see that there is a directory structure
that matches the package names.
/Helena

-Original Message-
From: Charles Webber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 03:36
To: [EMAIL PROTECTED]
Subject: It worked - Can someone explain why?


I am working through a book on servlets and JSPs.  JSPs and beans are pretty
easy, and I understand how things fit together  - still want to work on some
JDBC stuff, but that's later.
In the meantime, I wrote a servlet as part of a package called coreservlets.
I finally went through the examples that came with Tomcat and noticed in the
source that it didn't use packages and figured out both how to invoke my
servlets and where to place the class file so that it would work.  The
question is why it works this way - what is going on under the covers?
I placed my servlet class file in a directory like
$TOMCAT_HOME/webapps/examples/WEB-INF/classes/coreservlets/name.class.  On
the URL in my browser, I typed in the following:
http://host/examples/servlet/coreservlets.name - and it worked!!!
So the confusion I have is due to the fact that the directory path names
don't match where the servlet is located.  Can anyone explain this?  I'm
sure this is pretty straightforward - and if some document points this
ut  - if you could point me to that I'll take it from there.
Thanks.



Tomcat isapi redirector

2001-08-30 Thread David Rosenstark

I am using the Tomcat Isapi redirector to have servlets in an IIS
environment. I am trying to use it in an environment where I have an IIS web
server with multiple web sites. Problem is that when I add the filter to a
second web site It shows up as a red arrow and priority unknown. Any ideas?

TIA,
David



Help me, please about TomCat 4 and isapi_redirect.dll

2001-08-30 Thread Kubo

Hello everybody,

  I am trying to run jsp pages in IIS5.0, but I didn´t suceed yet. Do I need
to use isapi_redirect.dll how tomcat 3.2.3? and if I need, how should I use
this?


  Thanks very much,

  Kubo




Parser.jar

2001-08-30 Thread Tod Thomas

I'm in the process of building servletapi-3.2.3 in preparation for
building Tomcat 3.2.3.  The README mentions the need for jaxp.jar and
parser.jar.  I downloaded the Java API for XML Parsing implementation
1.1 and jaxp, crimson, and xalan.jar are there but not parser.jar.

My guess, which comments posted on  comp.lang.java.programmer seem to
validate, is that Sun has done away with parser.jar and replaced it with
crimson.jar.  Is this correct and the README just hasn't caught up yet?
Since I'm doing all of this to be able to eventually use Cocoon, and it
needs xalan.jar, should I forego that requirement when I come to it when
installing Cocoon?

Thanks - Tod




JSP not recompiling when included file changes

2001-08-30 Thread Holscher, David M


Jasper doesn't appear to check the modification times on files included with
%@include % to determine when to recompile a JSP. Having it do this would
be very helpful during development.

___
David Holscher 
It is a painful thing to look at your own trouble and know that you
yourself and no one else has made it. - Sophocles, Ajax, c. 450 B.C. 



RE: Help me, please about TomCat 4 and isapi_redirect.dll

2001-08-30 Thread Michael Wentzel

   I am trying to run jsp pages in IIS5.0, but I didn´t suceed 
 yet. Do I need
 to use isapi_redirect.dll how tomcat 3.2.3? and if I need, 
 how should I use
 this?

The short answer... Yes.
Have you had a chance to read the howto?
(http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html)

Also, there are a couple stumbling blocks that most people happen
across on their first try which can be found in the list archives.
http://www.aswethink.com/employees/randy/tomcat/mailingList.html


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



File path question

2001-08-30 Thread Ramesh Yerneni

Can someone tell how to provide location of a file without giving complete 
path in jsp?
I am including javascript file in jsp for validations. I couldn't get it to 
work unless if I give the complete path which is what I am trying to avoid. 
TIA

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: File path question

2001-08-30 Thread Thad Humphries

You can do this with a relative path.  In other words, don't start it 
with a /.  For example, I have an application myapp in 
$TOMCAT_HOME/webapps/myapp.  If a JSP in myapp requests a Javascript, 
image, or anything else in the same directory, it's just 'script 
language=JavaScript1.3 src=./myscript.js' or 'script 
language=JavaScript1.3 src=myscript.js'.  If the requesting JSP was 
in a lower diretory, say myapp/test, the I use 'script 
language=JavaScript1.3 src=../myscript.js'

Ramesh Yerneni wrote:

 Can someone tell how to provide location of a file without giving 
 complete path in jsp?
 I am including javascript file in jsp for validations. I couldn't get 
 it to work unless if I give the complete path which is what I am 
 trying to avoid. TIA
 ... 

-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI






Catalina New Features: Startup as root

2001-08-30 Thread Steven Elliott

Sorry if this has been answered but checking the archives I did not find
anything.

The following is from the release notes for 4.0b7
-
Catalina New Features:
-

Connectors - Refactored the startup code so that Catalina can run on port 80
(without being root) when started by JavaService or equivalent service
managers.
-

Anyone got this to work via inetd?  Don't mean to be stupid but I have no
idea what *JavaService or equivalent* is.8(

//* 
Steven Elliott  [EMAIL PROTECTED]
Head of Technology
VTV Learning Corporation
 Los Angeles  -  Boston  -  Lisbon
(http://www.vtvLearning.com/)





Tomcat conf prob

2001-08-30 Thread Hugo Hendriks

Hi,

I've a small problem. I want to configure apache the way that he does the
static content, and content with jsp/servlets would be passed on to tomcat.
This could be done by enabling tomcat's apache auto-config, but I can't find
the entry
autowebapp .../ anywhere. Do i have to append this myself or how does it
works

thx

Hugo




Re: newbies question: tomcat jaxp-1.1

2001-08-30 Thread Pierre-Yves . Verdon

i just set my CLASSPATH for /foo/bar/fud/jaxp-1.1/parser.jar instead of
/foo/bar/fud/jaxp-1.1/
and it's work.
Ludovic Maitre wrote:
 
 Hello,
 
 you can rename your crimson.jar file to parser.jar, it should be work
 (this trick work for Cocoon2 who use jaxp1.1 or xerces, i don't
 remember,
 read xml.apache.org/cocoon2 for more info).
 
 [EMAIL PROTECTED] wrote:
 
  hi,
  i have just a little problem, i'm using jaxp-1.1. But jaxp-1.1 didn't
  contain the file parser.jar. The xml parser for jaxp seems to be
  crimson.jar
 
  [verdon@pc-ccri-11 jaxp-1.1]# ls
  License-ASF  License-W3C.html  docs  install.html
  readme.htmlxalan.jar
  License-RI.html  crimson.jar   examples  jaxp.jar  relnotes.html
  [verdon@pc-ccri-11 jaxp-1.1]# find . -name parser.jar
  [verdon@pc-ccri-11 jaxp-1.1]#
 
  So when compiling tomcat i get the following error:
 
  No JAXP compliant XML parser found. See http://java.sun.com/xml for the
  reference implementation.
  --- Nested Exception ---
  java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:124)
  at org.apache.tools.ant.Main.runBuild(Main.java:402)
  at org.apache.tools.ant.Main.main(Main.java:149)
 
  is someone knows how to help me ? or where can i get the previous
  version of jaxp ?
 
  --
  thanks
  pierre-yves VERDON
 
 --
  [EMAIL PROTECTED]
 
  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: Tomcat conf prob

2001-08-30 Thread ravi2box

u have to copy mod_jk.dll(win) or mod_jk.so (linux) to lib dir of apache and include 
the auto-conf file to httpd.conf

ravi

Quoting  Hugo Hendriks [EMAIL PROTECTED]:

 Hi,
 
 I've a small problem. I want to configure apache the way that he does
 the
 static content, and content with jsp/servlets would be passed on to
 tomcat.
 This could be done by enabling tomcat's apache auto-config, but I can't
 find
 the entry
 autowebapp .../ anywhere. Do i have to append this myself or how does
 it
 works
 
 thx
 
 Hugo
 
 

-
This mail sent through : http://mail.sify.com



RE: Tomcat and Java technology...

2001-08-30 Thread Mills, Theo

I found the servlet 2.2 spec (and the JSP spec) to be particularly helpful
in regards to running servlets, or even the logic behind WAR's in general.

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

Since Tomcat is the reference implementation, this documentation is
completely applicable and clears up a lot of these types of questions that
aren't tomcat specific necessarily.

-Original Message-
From: Bob Wilson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat and Java technology...


Since Tomcat and its integrating products are all built on the Java and XML 
technology, is there somewhere that a newbie to both could go and read 
documentation in regards to learning these technolgies??

I apologize for getting a little off topic however I'm looking for some 
simple documentation so that I can get my arms around this technology and 
begin to understand it.  I had a brief introduction to Java when in version 
1.1 but it has moved since to 3.5 and 4.0 versions and I'm sure the changes 
are major.  Can anyone help me out and point me in the right direction??  
I'd appreciate it...thanks!!

Bob Wilson.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



Re: Catalina New Features: Startup as root

2001-08-30 Thread jean-frederic clere

Steven Elliott wrote:
 
 Sorry if this has been answered but checking the archives I did not find
 anything.
 
 The following is from the release notes for 4.0b7
 -
 Catalina New Features:
 -
 
 Connectors - Refactored the startup code so that Catalina can run on port 80
 (without being root) when started by JavaService or equivalent service
 managers.
 -
 
 Anyone got this to work via inetd?  Don't mean to be stupid but I have no
 idea what *JavaService or equivalent* is.8(

jakarta-tomcat-service?

 
 //*
 Steven Elliott  [EMAIL PROTECTED]
 Head of Technology
 VTV Learning Corporation
  Los Angeles  -  Boston  -  Lisbon
 (http://www.vtvLearning.com/)



RE: Tomcat conf prob

2001-08-30 Thread Hugo Hendriks

When i try to start apache he says:
could not open document c:/jakarta/tomcat/conf/jk/mod_jk.conf-auto

H

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: Thursday, August 30, 2001 3:24 PM
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Tomcat conf prob


u have to copy mod_jk.dll(win) or mod_jk.so (linux) to lib dir of apache and
include the auto-conf file to httpd.conf

ravi

Quoting  Hugo Hendriks [EMAIL PROTECTED]:

 Hi,
 
 I've a small problem. I want to configure apache the way that he does
 the
 static content, and content with jsp/servlets would be passed on to
 tomcat.
 This could be done by enabling tomcat's apache auto-config, but I can't
 find
 the entry
 autowebapp .../ anywhere. Do i have to append this myself or how does
 it
 works
 
 thx
 
 Hugo
 
 

-
This mail sent through : http://mail.sify.com



Tomcat compilation error on Linux 7.0

2001-08-30 Thread Naji Haddara

Hi,

I am trying to compile tomcat on linux 7.0 but  I got error message saying that
unresolved symbol
TagAttributeInfo.

Can someone tell me what I did wrong please

Thanks

I have the following environment:

jakarta-tomcat-3.2.3-src]# echo RED HAT LINUX  7.0
RED HAT LINUX 7.0
 jakarta-tomcat-3.2.3-src]#
jakarta-tomcat-3.2.3-src]# echo JAKARTA_HOME:
JAKARTA_HOME:
 jakarta-tomcat-3.2.3-src]# echo $JAKARTA_HOME
/install
jakarta-tomcat-3.2.3-src]# echo JAVA_HOME:
JAVA_HOME:
 jakarta-tomcat-3.2.3-src]# echo $JAVA_HOME
/usr/java/jdk1.3.1
jakarta-tomcat-3.2.3-src]# echo CLASSPATH:
CLASSPATH:
 jakarta-tomcat-3.2.3-src]# echo $CLASSPATH
:.:/install/jaxp-1.1/jaxp.jar:/install/jaxp-1.1/xalan.jar:/install/jaxp-1.1/crimson.jar:/usr/share/java/ant.jar:/install/jsse1.0.2/lib/jcert.jar:/install/jsse1.0.2/lib/jnet.jar:/install/jsse1.0.2/lib/jsse.jar:/install/servletapi/lib/servlet.jar

[root@naji jakarta-tomcat-3.2.3-src]# echo PATH:
PATH:
jakarta-tomcat-3.2.3-src]# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/sbin:/usr/sbin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/usr/X11R6/bin:.:/root/bin:/home/oracle/bin:/home/oracle/mybin:/usr/java/jdk1.3.1/bin:/root/bin

jakarta-tomcat-3.2.3-src]#
jakarta-tomcat-3.2.3-src]# #ls /download
jakarta-tomcat-3.2.3-src]# echo ls /install:
ls /install:
jakarta-tomcat-3.2.3-src]# ls /install
build  env.ksh  jakarta-tomcat-3.2.3-src  jar  jaxp-1.1  jre1.3.1
jsse1.0.2  servletapi  test  x  x1  xs
jakarta-tomcat-3.2.3-src]# echo

jakarta-tomcat-3.2.3-src]# echo ls /usr/java/jdk1.3.1;
ls /usr/java/jdk1.3.1
jakarta-tomcat-3.2.3-src]# ls /usr/java/jdk1.3.1
COPYRIGHT  LICENSE  LICENSE.fr  README  README.html  bin  demo  include
include-old  jre  lib  man  src.jar
jakarta-tomcat-3.2.3-src]# echo

jakarta-tomcat-3.2.3-src]# echo ls /usr/share/java;
ls /usr/share/java
jakarta-tomcat-3.2.3-src]# ls /usr/share/java
ant.jar  jaxp.jar  optional.jar  parser.jar
jakarta-tomcat-3.2.3-src]# echo
jakarta-tomcat-3.2.3-src]# echo ls /usr/share/ant/bin:
ls /usr/share/ant/bin:
jakarta-tomcat-3.2.3-src]# ls /usr/share/ant/bin
antRun  runant.pl
jakarta-tomcat-3.2.3-src]# echo

jakarta-tomcat-3.2.3-src]#
jakarta-tomcat-3.2.3-src]#


I got the following error message:

Buildfile: build.xml

prepare:
[mkdir] Created dir: /install/build/tomcat
[mkdir] Created dir: /install/build/tomcat/bin
[mkdir] Created dir: /install/build/tomcat/classes
[mkdir] Created dir: /install/build/tomcat/conf
[mkdir] Created dir: /install/build/tomcat/doc
[mkdir] Created dir: /install/build/tomcat/lib
[mkdir] Created dir: /install/build/tomcat/lib/test
[mkdir] Created dir: /install/build/tomcat/lib/test/Golden
[mkdir] Created dir: /install/build/tomcat/logs
[mkdir] Created dir: /install/build/tomcat/src
[mkdir] Created dir: /install/build/tomcat/webapps
 [copy] Copying 11 files to /install/build/tomcat/bin
 [copy] Copying 16 files to /install/build/tomcat/conf
 [copy] Copying 1 file to /install/build/tomcat/conf
 [copy] Copying 41 files to /install/build/tomcat/doc
 [copy] Copying 1 file to /install/build/tomcat
 [copy] Copying 1 file to /install/build/tomcat
 [copy] Copying 1 file to /install/build/tomcat
 [copy] Copying 1 file to /install/build/tomcat/lib
 [copy] Copying 1 file to /install/build/tomcat/lib
 [copy] Copying 1 file to /install/build/tomcat/lib
 [copy] Could not find file /install/jaxp-1.1/parser.jar to copy.
 [copy] Copying 36 files to /install/build/tomcat/lib/test/Golden
[chmod] /bin/chmod: too few arguments
[chmod] Try `/bin/chmod --help' for more information.

tomcat:
[javac] Compiling 221 source files to /install/build/tomcat/classes
[javac]
/install/jakarta-tomcat-3.2.3-src/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java:524:

cannot resolve symbol
[javac] symbol  : constructor TagAttributeInfo
(java.lang.String,boolean,java.lang.String,boolean)
[javac] location: class javax.servlet.jsp.tagext.TagAttributeInfo
[javac] return new TagAttributeInfo(name, required, type,
rtexprvalue);
[javac]^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 1 error

Total time: 45 seconds




Problem with Authentication and Warp Connector

2001-08-30 Thread Raimee Stevens

config: Apache 1.3.20 (Win32), Tomcat 4.0b7 (Catalina)

Problem: Unable to authenticate user against protected
URL when invoked using warp connector.

Reason: Warp Connector not passing user credentials.

For instance, a request for a resource under a 
protected context is accessed via the Apache
Warp Connector like this:
 
 http://localhost/protectedContext/

Result is that user is *never* authenticated.

A request for the same resource accessed via the
Tomcat 
Stand-Alone connector honors the user credentials
 http://localhost:8080/protectedContext/

Result is that a user *is* authenticated.

I have installed a RequestDumperValve under both 
Connectors in order to see what headers Catalina
receives. Under the standalone connector, the 
remoteUser header is initialized after the first
WWW-Authenticatd header is sent. Under the Warp
Connector, it is not (ie. remoteUser=null). 

Regards,
Raimee

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



JSSE SSL with tomcat

2001-08-30 Thread Mehul S Dave

Hello everyone,

Well i had configured my site with SSL functionality. I had set the
parameters in Server.xml files perfect . one of it is :
 parameter = clientAuth value=true which means it expects the personal
Certificate fom the client .
I had tested  i got a personal certi on my Browser but when i connect to
my SSL site i says that u dont have any Personal Certs.

Please tell some Solution to resolve it.
Thanks in advance


*
Mehul S Dave
Scientific Officer, (STCS Dept.),
Tata Institute of Fundamental Research
Phone - 2152971 Extn - 2372
Mumbai .
webpage:- http://www.ecom.tifr.res.in/~mehul
*




Re: Installed Tomcat. Now what?

2001-08-30 Thread james

Thanks everyone! I've got lots of new links to follow and stuff to go on and
got lots of help from lots of people. Thanks thanks thanks :o)

James





Re: Installed Tomcat. Now what?

2001-08-30 Thread Dmitri Colebatch

On Thu, 30 Aug 2001 [EMAIL PROTECTED] wrote:
 Can someone write a step by step guide to writing an app for Tomcat? How
 about a Hello World app? I don't know XML so I can't write build.xml files
 or anything. I'm really stuck.

http://java.sun.com/products/servlet is a good place to
start.  essentially tomcat just plays by those rules, so pretty well most
of the questions you're likely to ask will be answered in there

 Can I just write a JSP file and stick it in /webapps and fetch it? 
yep, although it needs to be part of a web application (keyword)

 servlets and Beans too? What is a servlet context? Is that just the document
 root? If it's just the document root for the app, why the hell make up new
 jargon for it and why not just call it document root of an app? 
(o:  lol... it effectively is the docroot, but you can have more, and it
is certainly more than just the docroot - each web application exists in
its own (servlet) context.  this means that a heap of classloader issues
will be taken care of there.  

 learning all this jargon. You can spend your life getting really good at
 programming or spend your life getting to know all the jargon. It seems
 that's the way.
if there were no jargon, what would consultants do for a living (o:  hehe

 Also, why doesn't this work:
 
 % response.writeln(Hello World); %

response is of type HttpServletResponse, which doesn't have a method
called writeln.  the variable out however is a PrintWriter which does,
so 

% out.writeln(Hello World); %

should work.

hth
dim




SSL-tomcat probs

2001-08-30 Thread Mehul S Dave

Hello everyone,

Well i had configured my site with SSL functionality. I had set the
parameters in Server.xml files perfect . one of it is :
 parameter = clientAuth value=true which means it expects the personal
Certificate fom the client .
I had tested  i got a personal certi on my Browser but when i connect to
my SSL site i says that u dont have any Personal Certs.

Please tell some Solution to resolve it.
Thanks in advance


*
Mehul S Dave
Scientific Officer, (STCS Dept.),
Tata Institute of Fundamental Research
Phone - 2152971 Extn - 2372
Mumbai .
webpage:- http://www.ecom.tifr.res.in/~mehul
*




Re:Filepath quesiton

2001-08-30 Thread Ramesh Yerneni

In my jsp file tried to replace
script scr=c:\aims\src\jsp\orgedit.js/script
with
script scr=orgedit.js/script
and it doesn't work. The .js file and .jsp file are in same directory.
What intrigues me more is in the same jsp the following line works
%@include file=footer.jsp %
For some reason I can't get .js files to work without giving full path where 
as included jsp are loaded properly wihtout full path. Anybody knows why?



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




JSP not recompiling when included file changes...

2001-08-30 Thread Ramesh Yerneni

Yes, that is a problem, if we use action instead that won't be a problem. 
Official JSP specs says the same.
I stop and restart the server if the changes in included jsp need to 
recognized. In my batch file to start Tomcat I added one more line to clear 
the work area files so that every time I restart the server it is forced to 
recompile every jsp file. Just my two cents...

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




IIS Redirector - Tomcat 3.2.3 (In need of desperate help)

2001-08-30 Thread Arafat

Good afternoon,

Can someone please give me some advise... I am having a difficult time
getting IIS Isapi Redirector to function properly.  I am running IIS 4.0 on
Windows NT 4.0 (SP5) and I am hosting 10 different sites off of this server.
I configured to ISAPI filter under WWW master properties (Machine name, not
root web) and I have verified that the filter is functioning properly
(Green arrrow).  If I access the url http://127.0.0.1:8080/examples/jsp I
am able to connect  and the examples all run OK.  However, if I access the
url http://127.0.0.1/examples/jsp I recieve an IIS HTTP - Internal Server
Error 500 if I try accessing the site from a different PC, if I try to
access the site localing using the troubled url I recieve the following
error message:

 Server Application Error
The server has encountered an error while loading an application during the
processing of your request. Please refer to the event log for more detail
information. Please contact the server administrator for assistance.


In the event log an entry is logged with the following details:

The server failed to load application '/LM/W3SVC/3/Root/jakarta'. The error
was '80040154'.



Any help would be GREATLY appreciated... So the final breakdown is that
tomcat is functioning fine, but I can't get the redirector to work...

PS:  Also in my iis_redirect.log I see a few entries that state
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters

Thanking you in Advance !!


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Permission Denied Error in Linux

2001-08-30 Thread David Smith

You need to set execute permission on your startup.sh and shutdown.sh.  They 
are not set as executable by default.

--David Smith

On Thursday 30 August 2001 02:54 am, you wrote:
 Hi,

 I tried to install Tomcat 3.2 in Linux. But when I run
   shell bin/startup.sh
 I got a Permission Denied error.

 These are the steps I did:
 1) installed JDK 1.2.2 for Linux as root.
 2) included JDK path in .bash_profile
 3) set JAVA_HOME env variable in .bash_profile
 4) installed Tomcat 3.2 as root
 5) included Tomcat path in .bash_profile
 6) set a TOMCAT_HOME in .bash_profile

 See th settings of .bash_profile below:

 PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.
3/bin ENV=$HOME/.bashrc
 TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
 JAVA_HOME=/usr/local/jdk1.2.2
 USERNAME=root

 export USERNAME ENV PATH TOMCAT_HOME



 Thanks,
 Lester




Re: Filepath quesiton

2001-08-30 Thread Thad Humphries

It's not scr--it's src.  It should read script 
src=orgedit.js/script

Ramesh Yerneni wrote:

 In my jsp file tried to replace
 script scr=c:\aims\src\jsp\orgedit.js/script
 with

 and it doesn't work. The .js file and .jsp file are in same directory.
 What intrigues me more is in the same jsp the following line works
 %@include file=footer.jsp %
 For some reason I can't get .js files to work without giving full path 
 where as included jsp are loaded properly wihtout full path. Anybody 
 knows why?

 ...

-- 
-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI






Re: interesting fault on toshiba laptop

2001-08-30 Thread Vladimir Grishchenko

Sounds weird. I don't think that hw is the problem, because if it was then
you'd get some sort of error in native code, but Tomcat not recognizing
sessions Most likely the problem lies in different network
configuration, like IP address, any http proxies you're using, etc.


--V.


- Original Message -
From: Jason Eacott [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 11:59 PM
Subject: interesting fault on toshiba laptop


 Hi,
 I have been trying to run Tomcat 3.x on a toshiba Satelite Pro
 4300 series running both NT4sp6 and W2000 Advanced Server.
 Tomcat 3.x behaves very strangely in both OS, the main symptom
 being that it fails to recognise sessions properly. Tomcat4 does not
 have this problem.
 I am thinking that this problem is due to hardware rather than
 software since it occurs ONLY on this machine and in both OS'
 that I've tried it on.

 Just thought Id share :)

 Jason.

 --
 Jason Eacott
 Hardlight Interactive
 http://www.hardlight.com.au

 Support bacteria - they're the only culture some people have.




JSPC -c Option

2001-08-30 Thread Alexander Grosse

Hello tomcat-user,

   In my Tomcat 3.2.1 the -c Option of JSPC doesn't work, tomcat
   still produces the mangled classname. Additionally it does not
   compile the .java file, because no javac is set.
   I patched the source, but I can't believe, that this kind of
   bug wasn't reported yet. Did anyone try to compile .jsp files
   directly using JSPC ??

   Regards

   Alex

-- 
Viele Grüsse,
  Alexander Grossemailto:[EMAIL PROTECTED]





Tomcat encoding text datatype?

2001-08-30 Thread Carlos Benavente

I have found only one posting related to my problem on this listserv but
there was not a fix for it, so here I am openning the vault again. Hope
someone can help. :)

My environment:
RedHat Linux 7.1
Jakarta Tomcat 3.2.3
MySQL 3.23.41
Macromedia Ultradev 4.01
mm.MySQL 1.2.c for JDBC
JDK 1.3.1

Everything is operational except: When I try to do a live display of a
text datatype field, Ultradev displays in an encoded format. Even after I
publish it to my Apache server and browse it, the text value is all messed
up (encoded). The data value is stored in MySQL properly, I can even select
that value using mysql client and see the proper value, so Tomcat must be
encoding the values of text datatype fields somehow. The other fields work
fine ( e.g. var, varchar, etc.) it is the text datatype that is giving me
problems. Any ideas? Do I need to manually code or recode the getobject()
function? Examples?
TIA,
Carlos

Carlos Benavente
Systems Programmer I - Webmaster
NC State University
Department of Computer Science
Daniels 131-K
(919)515-1964
[EMAIL PROTECTED]




Q: Is Tomcat's Thread-pooling efficient

2001-08-30 Thread wassel

Hi List,
I have problens with performance of my servlet running in a stand-alone
environment.
I use the default-options for Thread Pooling.
My Servlet measures the amount of time a request takes to be executed and
reports for 500 (simulated) Session something between 1 and 2 seconds, which
i
find very nice.

But my test-client reports 7-12 seconds between request and response. So
where is this time spent, if not during my servlet execution. I'm using
Tomcat
3.2 on NT Server in standalone mode. Is propose that the time is spent for
switching between the Threads in the threadpool, but i'm not sure.

Thanx in advance for any suggestions

Greetings
Anfreas

-- 
Andreas

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net





Re: Permission Denied Error in Linux

2001-08-30 Thread Tim O'Neil


$ chmod +x startup.sh



At 08:45 AM 8/30/2001, you wrote:
You need to set execute permission on your startup.sh and shutdown.sh.  They
are not set as executable by default.

--David Smith

On Thursday 30 August 2001 02:54 am, you wrote:
  Hi,
 
  I tried to install Tomcat 3.2 in Linux. But when I run
shell bin/startup.sh
  I got a Permission Denied error.
 
  These are the steps I did:
  1) installed JDK 1.2.2 for Linux as root.
  2) included JDK path in .bash_profile
  3) set JAVA_HOME env variable in .bash_profile
  4) installed Tomcat 3.2 as root
  5) included Tomcat path in .bash_profile
  6) set a TOMCAT_HOME in .bash_profile
 
  See th settings of .bash_profile below:
 
  PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.
 3/bin ENV=$HOME/.bashrc
  TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
  JAVA_HOME=/usr/local/jdk1.2.2
  USERNAME=root
 
  export USERNAME ENV PATH TOMCAT_HOME
 
 
 
  Thanks,
  Lester




IE and downloading a binary file

2001-08-30 Thread Zsolt Koppany

Hi,

My servlet has to get the Browsers to download binary file independently of their 
contents. For this purpose I use response.setContentType(application/octet-stream) 
and I write the content of the file into the output stream of the server. it works 
fine with Netscape and partly with IE. The problem is that IE obviously ignores 
setContentType() and depending of the file sometime it tries to show the content of 
the file instead of downloading it.
How can I force IE to download the file?
Zsolt
-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Str. 16
70565 Stuttgart
___
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
[EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de





RE: Tomcat conf prob

2001-08-30 Thread Bob Wilson

Did you remember to put the following statement in you 
APACHE_HOME/conf/httpd.conf directory...(just add it at the end)

Include path/to/tomcat_home/conf/mod_jk.conf-auto

eg.  Mine is... Include /usr/local/etc/tomcat_3.2.3/conf/mod_jk.conf.auto

Be sure to stop APACHE and stop TOMCAT. Then restart TOMCAT first followed 
by APACHE.

Cheers,
Bob.


When i try to start apache he says:
could not open document c:/jakarta/tomcat/conf/jk/mod_jk.conf-auto

H

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: Thursday, August 30, 2001 3:24 PM
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Tomcat conf prob


u have to copy mod_jk.dll(win) or mod_jk.so (linux) to lib dir of apache and
include the auto-conf file to httpd.conf

ravi

Quoting  Hugo Hendriks [EMAIL PROTECTED]:

Hi,

I've a small problem. I want to configure apache the way that he does
the
static content, and content with jsp/servlets would be passed on to
tomcat.
This could be done by enabling tomcat's apache auto-config, but I can't
find
the entry
autowebapp .../ anywhere. Do i have to append this myself or how does
it
works

thx

Hugo

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




java.util.MissingResourceException error ... please help!

2001-08-30 Thread Demetrios Sapounas

Tomcat newbie question.

I have installed and configured tomcat 3.2.3 on a linux server.
I used the rpm distribution from the jakarta web site.
I am running tomcat as a stand-alone, accessing it through
localhost:8080
All the servlet examples under ~tomcat/webapps/examples work fine.

I created another directory under webapps, ~tomcat/webapps/helpdesk and
below there I created the same directory tree as fown under examples.
The following simple servlet core

// HelloWorld Servlet
 
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
 
public class HelloWorld extends HttpServlet {
 
  public void doGet(HttpServletRequest request, HttpServletResponse
response)
   throws IOException, ServletException {
response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(html);
out.println(body bgcolor=#FF);
out.println(head);
out.println(titleHello World!/title);
out.println(/head);
out.println(body);
out.println(h1Hello World!/h1);
out.println(bThis is DS .../b);
out.println(/body);
out.println(/html);
  }
} 

worked fine, but the HelloWorldExample (the one found under examples)
gives me the error below.
Could anyone please point me to the right direction, so solve this
problem?  It may be sometihng very simple I am missing in the
configuration.

Thank you! - Demetrios

java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale en
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:712)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:683)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(HelloWorldExample.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:484)



Tomcat 4 :Weird probelms

2001-08-30 Thread Anand B N

Hi,

I'm still stuck with my Classes problem in tomcat 4.

As I mentioned earlier the whole thing works fine in a IDE environment like 
JBuilder but when I make them jars and put them in a standalone Tomcat 4 
envrn it doesn't work.

Here's what I am doing:-

I have a JSP that invokes a method in a JavaBean which inturns contacts a 
Singleton class to get handles on Deployer  object to get all available 
contexts. Here's the code snippet:-

   1.Context context;
   2.Deployer deployer = TomcatManager.getSharedInstance().getDeployer();
   3. System.out.println(deployer);
   4. String contextPaths[] = deployer.findDeployedApps();
   5. casInstanceList = new Array();
   6. response = new ResponseObject();
   7.  for (int i = 0; i  contextPaths.length; i++) {
   8.   context = 
TomcatManager.getSharedInstance().getDeployer().findDeployedApp(contextPaths[i]);
   9.   casInstanceList.add(context);
   10. }

Here TomcatManager get's initialized by a Servlet[which  implements the 
ContainerServlet interface] on startup.

Sequence of Events:-
On startup
1. Servlet intializes and set's the reference of Tomcat Maanger's Deployer 
and other objects

 From the webapp -
2. JSP is called and it invokes a JavaBean that invokes method on 
TomcatManager to obtain the Deployer reference
3. deployer.finDeployedApps() and now the expcetion is thrown.

As I told earlier I tried the following:-

1. Since my Javabean uses Deployer and Context classes I put them also in 
common/classes aprt from them being a part of catalina.jar. I get a linkage 
error(loader constraints violated)

2. I remove these and it says class not found

That's the whole picture and I'm not sure if I'm getting the solution as 
mentioned but Craig earlier.

Thanks

Anand






On doing further research I realized that the Exception is being thrown 
the  line 4 of the aboive snippet. It;s able to access the Deployer object 
and all that but it fails on this line.







Re: IE and downloading a binary file

2001-08-30 Thread Thad Humphries

Friend, if you ever find out, please let me know--I've been searching 
for a solution to this IE feature for over four years now!!

I've fallen back on telling the user in my documentation to use the 
browser's save function (in the case of text, images, etc.) or the save 
of the application opened in the browser window (in the case of Excel, 
Word, etc.).

Jez, I wish Mozilla would finally get it together...

Zsolt Koppany wrote:

Hi,

My servlet has to get the Browsers to download binary file independently of their 
contents. For this purpose I use response.setContentType(application/octet-stream) 
and I write the content of the file into the output stream of the server. it works 
fine with Netscape and partly with IE. The problem is that IE obviously ignores 
setContentType() and depending of the file sometime it tries to show the content of 
the file instead of downloading it.
How can I force IE to download the file?
Zsolt


-- 
-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI






Re: Filepath quesiton

2001-08-30 Thread Ramesh Yerneni

Sorry, that was a typo, I have it as src, still doesn't work. Thank you for 
trying to help...


Original Message Follows
From: Thad Humphries [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Filepath quesiton
Date: Thu, 30 Aug 2001 11:38:36 -0400

It's not scr--it's src.  It should read script
src=orgedit.js/script

Ramesh Yerneni wrote:

In my jsp file tried to replace
script scr=c:\aims\src\jsp\orgedit.js/script
with

and it doesn't work. The .js file and .jsp file are in same directory.
What intrigues me more is in the same jsp the following line works
%@include file=footer.jsp %
For some reason I can't get .js files to work without giving full path
where as included jsp are loaded properly wihtout full path. Anybody
knows why?

...

--
-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: Catalina New Features: Startup as root

2001-08-30 Thread Steven Elliott

on 30/08/2001 18:07, [EMAIL PROTECTED]
 Catalina New Features:
 -
 
 Connectors - Refactored the startup code so that Catalina can run on port 80
 (without being root) when started by JavaService or equivalent service
 managers.
 -
 
 Anyone got this to work via inetd?  Don't mean to be stupid but I have no
 idea what *JavaService or equivalent* is.8(

jean-frederic clere wrote:
 
 jakarta-tomcat-service?

Sorry but what is a *jakarta-tomcat-service*?  Can it make coffee?

Still a little unclear on how to get this to work with inetd?

//* 
Steven Elliott  [EMAIL PROTECTED]
Head of Technology
VTV Learning Corporation
 Los Angeles  -  Boston  -  Lisbon
(http://www.vtvLearning.com/)





Re: Filepath quesiton

2001-08-30 Thread Thad Humphries

If you are running Apache, have you added

AddType application/x-javascript .js

to your httpd.conf file?  If not Apache, does your web server recognize 
.js files if requested from an HTML page?

Ramesh Yerneni wrote:

 Sorry, that was a typo, I have it as src, still doesn't work. Thank 
 you for trying to help...


 Original Message Follows
 From: Thad Humphries [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Filepath quesiton
 Date: Thu, 30 Aug 2001 11:38:36 -0400

 It's not scr--it's src.  It should read script
 src=orgedit.js/script

 Ramesh Yerneni wrote:

 In my jsp file tried to replace
 script scr=c:\aims\src\jsp\orgedit.js/script
 with

 and it doesn't work. The .js file and .jsp file are in same directory.
 What intrigues me more is in the same jsp the following line works
 %@include file=footer.jsp %
 For some reason I can't get .js files to work without giving full path
 where as included jsp are loaded properly wihtout full path. Anybody
 knows why?

 ...


 -- 
 -
 Thad Humphries   ...no religious test shall ever be required
 Web Development Manager   as a qualification to any office or public
 Phone: 540/675-3015, x225 trust under the United States. -Article VI





 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp


-- 
-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI






urgent : using Mail Resource in web.xml

2001-08-30 Thread Christoph Rooms

hi,

I'm trying to get a mail session I define in the web.xml

resource-ref
  descriptionDefault Mail/description
  res-ref-nameTheMailSession/res-ref-name
  res-typejavax.mail.Session/res-type
  res-authContainer/res-auth
 /resource-ref



And I call it in my java code like :

Context initial = new InitialContext();
Session session = (Session)
initial.lookup(java:comp/env/TheMailSession);


This is the exception I get :

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
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:219)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
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:2251)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
984)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074
)
at java.lang.Thread.run(Thread.java:484)

Root Cause:
java.lang.NoClassDefFoundError: javax/mail/Session
at
org.apache.naming.factory.MailSessionFactory$1.run(MailSessionFactory.java:1
63)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessionFa
ctory.java:147)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:165)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:307)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at rnb.SendMail.doGet(SendMail.java:21)
at rnb.SendMail.doPost(SendMail.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(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

RE: Filepath quesiton

2001-08-30 Thread Charlie Cox

I'm not an expert with javascript, but doesn't the
script tag need a language or type attribute so the
browser knows what to do with this file?

Also if you front-end Tomcat with Apache or IIS, you
need to let the .js requests go through to Tomcat.

Charlie

 -Original Message-
 From: Ramesh Yerneni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 11:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re:Filepath quesiton
 
 
 In my jsp file tried to replace
 script scr=c:\aims\src\jsp\orgedit.js/script
 with
 script scr=orgedit.js/script
 and it doesn't work. The .js file and .jsp file are
in same directory.
 What intrigues me more is in the same jsp the
following line works
 %@include file=footer.jsp %
 For some reason I can't get .js files to work
without giving 
 full path where 
 as included jsp are loaded properly wihtout full
path. 
 Anybody knows why?
 
 
 

_
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
 

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Parser.jar

2001-08-30 Thread Tod Thomas

Never mind,  symlink to crimson.jar did the trick...

Tod Thomas wrote:

 I'm in the process of building servletapi-3.2.3 in preparation for
 building Tomcat 3.2.3.  The README mentions the need for jaxp.jar and
 parser.jar.  I downloaded the Java API for XML Parsing implementation
 1.1 and jaxp, crimson, and xalan.jar are there but not parser.jar.

 My guess, which comments posted on  comp.lang.java.programmer seem to
 validate, is that Sun has done away with parser.jar and replaced it with
 crimson.jar.  Is this correct and the README just hasn't caught up yet?
 Since I'm doing all of this to be able to eventually use Cocoon, and it
 needs xalan.jar, should I forego that requirement when I come to it when
 installing Cocoon?

 Thanks - Tod




Re: IE and downloading a binary file

2001-08-30 Thread VASQUEZ_JASON

We ran into this same problem here a while ago.

Here's a couple (unhelpful) Microsoft Knowledge Base articles regarding 
the problem:

http://support.microsoft.com/support/kb/articles/Q267/9/91.Asp
http://support.microsoft.com/support/kb/articles/Q281/1/19.ASP

They recommend upgrading to IE5.5 SP1, but that didn't even seem to work 
right here.

-jason






Thad Humphries [EMAIL PROTECTED]
08/30/2001 12:06 PM
Please respond to tomcat-user

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: IE and downloading a binary file



Friend, if you ever find out, please let me know--I've been searching 
for a solution to this IE feature for over four years now!!

I've fallen back on telling the user in my documentation to use the 
browser's save function (in the case of text, images, etc.) or the save 
of the application opened in the browser window (in the case of Excel, 
Word, etc.).

Jez, I wish Mozilla would finally get it together...

Zsolt Koppany wrote:

Hi,

My servlet has to get the Browsers to download binary file independently 
of their contents. For this purpose I use 
response.setContentType(application/octet-stream) and I write the 
content of the file into the output stream of the server. it works fine 
with Netscape and partly with IE. The problem is that IE obviously ignores 
setContentType() and depending of the file sometime it tries to show the 
content of the file instead of downloading it.
How can I force IE to download the file?
Zsolt


-- 
-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI









4.0 b7 JDBC not being included

2001-08-30 Thread Peter Shankey

OS ver Solaris 8

In BUILDING.txt it says the Servlet 2.3/JSP 1.2 API classes

FIXME:  Properties for mail.jar, activation.jar, jdbc2_0-stdext.jar,
jta-spec1_0_1.jar, tyrex-0.9.7.0.jar

In the build.properties and build.xml it never referances the JDBC driver. My question 
are:
* Because 4.0 is not including the jars will I be able to connect to a Oracle db?
* How can I include the jars in the build?
* If not what are the work-a-arounds?

Thanks
Pete


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




Re: IE and downloading a binary file

2001-08-30 Thread David Smith

I believe from previous posts that IE cheats on the content type of 
downloaded files by looking at the filename as opposed to the content type 
spec.  To get around it, you have to use the three letter file extension in 
the filename that corresponds to your file type (example: .jpg for jpeg 
files, .doc for Word docs, .exe for executable files)

--David Smith 

On Thursday 30 August 2001 01:06 pm, you wrote:
 Friend, if you ever find out, please let me know--I've been searching
 for a solution to this IE feature for over four years now!!

 I've fallen back on telling the user in my documentation to use the
 browser's save function (in the case of text, images, etc.) or the save
 of the application opened in the browser window (in the case of Excel,
 Word, etc.).

 Jez, I wish Mozilla would finally get it together...

 Zsolt Koppany wrote:
 Hi,
 
 My servlet has to get the Browsers to download binary file independently
  of their contents. For this purpose I use
  response.setContentType(application/octet-stream) and I write the
  content of the file into the output stream of the server. it works fine
  with Netscape and partly with IE. The problem is that IE obviously
  ignores setContentType() and depending of the file sometime it tries to
  show the content of the file instead of downloading it. How can I force
  IE to download the file?
 Zsolt




RE: tomcat as an NT service.

2001-08-30 Thread Nirmal Rajarathnam

In your install directory look for NT-Service-howto.html in the doc
subdirectory.

-Original Message-
From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:05 AM
To: [EMAIL PROTECTED]
Subject: tomcat as an NT service.


hi all !
   how can i run my tomcat (3.2.2 in this case ) as an NT service ?
   i mean , i want my tomcat to start by itself whenever i restart my
machine.

any help will be greatly appreciated.

thanx in advance,


sumit






Tomcat encoding text datatype?

2001-08-30 Thread Carlos Benavente

I apologize if this message has gone once already but my emailer burped
earlier today.

I have found only one posting related to my problem on this listserv but
unfortunatelly did not find a fix, so hope someone can help. :)

My environment:
RedHat Linux 7.1
Jakarta Tomcat 3.2.3
MySQL 3.23.41
Macromedia Ultradev 4.01
mm.MySQL 1.2.c for JDBC
JDK 1.3.1

I am using Ultradev 4.01 to build Web-based database applications using JSP
1.0. Everything went smoothly until I hit live data. Ultradev displays the
text values that I inserted in an encoded format (e.g. [B@58689a ) When I
browse the text values in a browser it also comes out encoded. However, the
data value recorded in MySQL table looks fine, I can even select that value
using the mysql client and see the proper value, so Tomcat must be encoding
my text fields somehow. The other field types work fine ( e.g. var,
varchar, etc.). I must have a field type that holds more than 255 characters
so it must be text. Any ideas?
TIA,
Carlos

Carlos Benavente
Systems Programmer I - Webmaster
NC State University
Department of Computer Science
Daniels 131-K
(919)515-1964
[EMAIL PROTECTED]

Carlos Benavente
Systems Programmer I - Webmaster
NC State University
Department of Computer Science
Daniels 131-K
(919)515-1964
[EMAIL PROTECTED]




RE: tomcat as an NT service.

2001-08-30 Thread Lin, Zhongwu

I can't find this NT-Service-howto.html in Tomcat 3.x  or Tomcat 4.x?

regards

 -Original Message-
 From: Nirmal Rajarathnam [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 1:33 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: tomcat as an NT service.
 
 In your install directory look for NT-Service-howto.html in the doc
 subdirectory.
 
 -Original Message-
 From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 12:05 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat as an NT service.
 
 
 hi all !
how can i run my tomcat (3.2.2 in this case ) as an NT service ?
i mean , i want my tomcat to start by itself whenever i restart my
 machine.
 
 any help will be greatly appreciated.
 
 thanx in advance,
 
 
 sumit
 
 



one tip for Tomcat IIS HowTo

2001-08-30 Thread Ivan Doebeli

Hi,

in the section Configuring the ISAPI Redirector @ point nine, you can
restart the whole IIS5 on W2k easy by typing iisreset on the cli.

hope this helps :)

Best regards,

Ivan

Ivan Döbeli
Senior System  Network Engineer

Unit.Net AG
Thurgauerstrasse 54
CH - 8050 Zurich
Phone   +41 1 306 51 11
Direct  +41 1 306 51 48
Fax +41 1 306 51 14
mailto:[EMAIL PROTECTED]
www.unit.net


AS GOLD SPONSOR OF THE STREAMING MEDIA EUROPE, UNIT.NET WILL BE HAPPY TO
WELCOME YOU ON STAND NUMBER 849 - STREAMING MEDIA EUROPE - OCTOBER 23 TO 25
- EXCEL CONVENTION  EXHIBITION CENTRE, LONDON - THE PLACE WHERE UNIT.NET
WILL PRESENT TOMORROW'S STREAMING TECHNOLOGIES TO ITS AUDIENCE!


The content of this e-mail is for the confidential and exclusive use of the
intended recipient. If you are not the intended recipient, you are hereby
notified that any use, distribution, or reproduction of the contents of this
e-mail is strictly prohibited and may be unlawful. If you are not the
intended recipient, please notify us immediately by electronic mail at the
above address (or if known by telephone or by fax), delete the e-mail and
destroy any copies of it. 
E-mail communications are not secure and therefore we do not accept any
responsibility for the confidentiality or altered contents of this message.
Please be aware that our company cannot accept any orders or other legally
binding correspondence with a participant as part of an e-mail. The views
expressed above are not necessarily those held by our company and not
binding for our company.




Load Balancing

2001-08-30 Thread Gerry Duhig

I am a little confused about tomcat workers and loadbalancing in a Linux
environment. I hope someone can explain.

I am running tomcat embedded in JBoss.

When I start JBoss, I see about 60 processes created.

Presumably each of these is an instance of JBoss with an embedded Tomcat?

Are they each equally available to handle user requests?

How do Tomcat Workers such as ajp12 / ajp13 relate or map to these
processes?

What happens if I set workers.properties to include a loadbalancer? How does
it affect the allocation of requests to these processes?

Gerry






Re: IE and downloading a binary file

2001-08-30 Thread Thad Humphries

If you do get the latest service pack, don't get SP2 for IE!  I 
understand that it removes support for old-style plugins, including the 
Java 2 plugin as loaded by the jsp:plugin tag.  I guess that is 
Microsloth's way of saying, So, there, Sun!

[EMAIL PROTECTED] wrote:

We ran into this same problem here a while ago.

Here's a couple (unhelpful) Microsoft Knowledge Base articles regarding 
the problem:

http://support.microsoft.com/support/kb/articles/Q267/9/91.Asp
http://support.microsoft.com/support/kb/articles/Q281/1/19.ASP

They recommend upgrading to IE5.5 SP1, but that didn't even seem to work 
right here.

...

-- 
-
Thad Humphries   ...no religious test shall ever be required
Web Development Manager   as a qualification to any office or public
Phone: 540/675-3015, x225 trust under the United States. -Article VI






RE: tomcat as an NT service.

2001-08-30 Thread Nirmal Rajarathnam

check this link
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html

-Original Message-
From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:58 AM
To: '[EMAIL PROTECTED]'
Subject: RE: tomcat as an NT service.


I can't find this NT-Service-howto.html in Tomcat 3.x  or Tomcat 4.x?

regards

 -Original Message-
 From: Nirmal Rajarathnam [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 1:33 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: tomcat as an NT service.
 
 In your install directory look for NT-Service-howto.html in the doc
 subdirectory.
 
 -Original Message-
 From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 12:05 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat as an NT service.
 
 
 hi all !
how can i run my tomcat (3.2.2 in this case ) as an NT service ?
i mean , i want my tomcat to start by itself whenever i restart my
 machine.
 
 any help will be greatly appreciated.
 
 thanx in advance,
 
 
 sumit
 
 



Choosing Tomcat vs php4

2001-08-30 Thread roland benedetti

Hello,
I need ressources to argue for the choice of Tomcat J2EE against PHP4.
The solution is needed for a web site delivering content to a huge 
amount of users.

If you heard about bench or studies proving the better scalability of 
Tomcat or any J2EE server, thanks to send me where to find the info.

--
luro




Tomcat as IIS Inprocess

2001-08-30 Thread BBui

Does anyone know where to find info on running Tomcat as IIS
inprocess?  Thanks.



JAXP 1.1 and Tomcat 3.2.3

2001-08-30 Thread Renato Weiner

Hi all,
 
I'm trying to build Tomcat 3.2.3 with JAXP 1.1 and I
have this error:
 
Buildfile: build.xml
 
BUILD FAILED

javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
 at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:120)
 at
org.apache.tools.ant.ProjectHelper.getParserFactory
(ProjectHelper.java:706)
 at
org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
 at

org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
 at
org.apache.tools.ant.Main.runBuild(Main.java:403)
 at
org.apache.tools.ant.Main.main(Main.java:149)
 
Total time: 0 seconds
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
 
Is Tomcat 3.2.3 compatible with JAXP 1.1 ??

Thanks
Renato - Brazil.


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Unable to start tomcat 3.2.3 (security related)

2001-08-30 Thread Sukhwinder Singh

Hello,
I have downloaded tomcat version 3.2.3 source code and compiled it on my
windows 95 machine with Sun JDk 1.3.1. I also had to download JSSE because
there was no option to compile without ssl support. If these classes are not
in classpath then source doesn't compile. My problem is when after compiling
distribution when I try to start tomcat following errors is produced:

///
FATAL Configuration error:
java.lang.SecurityException: sealing violation
..
..


I have followed that steps provided in SSL howto about making entry in java
security file and using keytool.
For password it is written that password can be changeit but when keytool
asks about alias tomcat password what should be entered. (i.e. what is the
tomcat admin password).

Please help me in solving above problem because I am unable to start tomcat.

Is there any option to compile tomcat without ssl support?





___
http://inbox.excite.com





Re: mod_webapp errors....

2001-08-30 Thread Jack Lauman

Nothing... but other modules including php build without any errors.
What should it return?

Jack

jean-frederic clere wrote:
 
 That is apxs problems: probably the apache does not support DSO.
 What does apxs -q LD_SHLIB returns?
 
 Roberto B. wrote:
 
  To compile webapp_module you must have in to your system APX ( Apache
  webserver development kit ), libtool v1.3.3 or newer and autoconf
 
  Roberto.
 
  - Original Message -
  From: Jack Lauman [EMAIL PROTECTED]
  To: Tomcat User List [EMAIL PROTECTED]
  Sent: Tuesday, August 28, 2001 2:16 AM
  Subject: mod_webapp errors
 
   I have been trying to compile mod_webapp from the cvs sources but
   keep running into the following error.  I know that others have
   reported the same error in the past week or so but I havn't seen
   any rolution to the problem.  Has anyone got this to compile?
  
   Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
   make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
   Linking Apache 1.3 WebApp Module
   /app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: command not
   found
   make[1]: *** [mod_webapp.so] Error 127
   make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
   make: *** [local-all] Error 2
  
   Configuration:
   RedHat 7.0 on a P3 w/1Gb RAM
   GCC: 2.96
   libtool: 1.3.5
   automake 1.4
   make: 3.79.1
   bison: 1.28
   JDK: 1.3.1 (Sun)
  
   I'd appreciate any help in resolving this.
  
   Thanks,
  
   Jack Lauman



Newbie JSP Question:

2001-08-30 Thread Peter L. Markowsky

I know this doesn't relate to Tomcat directly, but since Tomcat hosts JSPs
or at least is able I was wondering if anyone out there knew / could
recommend how to pass values from one JSP page to another. The problem I'm
having is that when I try to submit a form and then use
request.getParameter( parametername ) I keep getting nulls even though I
specify the parameter name.
-Thanks for all the Help
Pete Markowsky





Content-Length limited to 2^31-1???

2001-08-30 Thread David Daney

The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
content length to Integer.MAX_VALUE (2^31-1 or 2GB).

If I want to serve very large objects things do not work so well.

I seems that ServletResponse.SetContentLength(int) is the prefered 
manner to sent the content length of a servlet response and that the 
default implemtation for the HEAD method in HttpServlet also is 
limited to the range of int values.

My reading of the HTTP/1.1 spec does not indicate that there are any 
limitations to content length in the HTTP protocol.

So my question is:  Am I all messed up, or is Tomcat and the servlet 
spec/implementation sub-optimal?

David Daney




Re: Tomcat 4.0b7 and struts-example webapp

2001-08-30 Thread Will Stranathan

Get a parser.jar and jaxp.jar and put those in WEB-INF/lib -
Struts doesn't include them, and Tomcat 4 uses a different
classloader.

Optionally, you could put them in /lib.

Will Stranathan

On Thu, 30 Aug 2001 10:28:32 -0700 (PDT)
 Ian Kallen [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 Does this mean that TC 4.0b7's web.xml parsing is not
 backwards 
 compatible to the older webapp format?  This sounds like
 a bug, not a
 feature.  I'm using a webapp that just runs dropped
 into a TC 3.2.x
 installation straight out of the struts distribution.
 
 On Wed, 29 Aug 2001, Thinh Doan wrote:
 
  I got this same error running under Jrun.  Look into
 web.xml and make sure
  struts stuff is there (tlds etc..)
  
  T.
  
  -Original Message-
  From: Ian Kallen [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 29, 2001 4:17 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0b7 and struts-example webapp
  
  
  
  IIRC, the struts-example from struts 1.0 was happy with
 most of the recent
  Tomcat 3.2.x releases but with 4.0b7, it's not picking
 up the
  ApplicationResources.properties file.  yes, it's in
  /struts-example/WEB-INF/classes/org/apache/struts/webapp/example/Application
  Resources.properties
  and web.xml has:
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
param-nameapplication/param-name
  
  param-valueorg.apache.struts.webapp.example.ApplicationResources/param-va
  lue
  /init-param
  right out of the war file...
  
  This is the error:
  javax.servlet.ServletException: Cannot find message
 resources under key
  org.apache.struts.action.MESSAGE
  
  So what's up?  Is there something extra to setup the
 classpaths inside
  webapps under Tomcat 4.0?
  
  cheers,
  -Ian
  
  --
  Ian Kallen [EMAIL PROTECTED] | AIM: iankallen
  
  
  
 
 cheers,
 -Ian
 
 --
 Ian Kallen [EMAIL PROTECTED] | AIM: iankallen
 




Re: Newbie JSP Question:

2001-08-30 Thread Nirav S. Desai

Do you have a submit button. 
Peter L. Markowsky wrote:
 
 I know this doesn't relate to Tomcat directly, but since Tomcat hosts JSPs
 or at least is able I was wondering if anyone out there knew / could
 recommend how to pass values from one JSP page to another. The problem I'm
 having is that when I try to submit a form and then use
 request.getParameter( parametername ) I keep getting nulls even though I
 specify the parameter name.
 -Thanks for all the Help
 Pete Markowsky

-- 
Nirav S. Desai
Software Engineer
Vecna Technologies, Inc.
6525 Belcrest Rd, Suite 612
Hyattsville MD, 20782
Phone: 301.864.7253
Fax:   301.699.3180



RE: Content-Length limited to 2^31-1???

2001-08-30 Thread Martin van den Bemt

tomcat 3.2.3 is not http 1.1.. 

Mvgr,
Martin

 -Original Message-
 From: David Daney [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 11:48 PM
 To: [EMAIL PROTECTED]
 Subject: Content-Length limited to 2^31-1???
 
 
 The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
 content length to Integer.MAX_VALUE (2^31-1 or 2GB).
 
 If I want to serve very large objects things do not work so well.
 
 I seems that ServletResponse.SetContentLength(int) is the prefered 
 manner to sent the content length of a servlet response and that the 
 default implemtation for the HEAD method in HttpServlet also is 
 limited to the range of int values.
 
 My reading of the HTTP/1.1 spec does not indicate that there are any 
 limitations to content length in the HTTP protocol.
 
 So my question is:  Am I all messed up, or is Tomcat and the servlet 
 spec/implementation sub-optimal?
 
 David Daney
 
 



Re: Content-Length limited to 2^31-1???

2001-08-30 Thread Tim O'Neil

At 02:47 PM 8/30/2001, you wrote:
The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
content length to Integer.MAX_VALUE (2^31-1 or 2GB).

If I want to serve very large objects things do not work so well.

I seems that ServletResponse.SetContentLength(int) is the prefered manner 
to sent the content length of a servlet response and that the default 
implemtation for the HEAD method in HttpServlet also is limited to the 
range of int values.

My reading of the HTTP/1.1 spec does not indicate that there are any 
limitations to content length in the HTTP protocol.

So my question is:  Am I all messed up, or is Tomcat and the servlet 
spec/implementation sub-optimal?

The limit of an int is an int, right?
The setContentLength() method takes an int. What
do you want? Rather than try to stuff all your
data in one go you should treat it like the stream
that it is and feed your data into a buffer a blob
at a time, send that data down the pipe when you get
one full blob, and replenish the buffer with a new
blob of data from your source, like most anyone else
would do. Then you don't worry about how much data
you have to send. It could be gigs * gigs. Plus
you have the ability to resend any blobs (records,
frames) that get garbled on the way over, if any.

Much more efficient than trying to stuff your entire
wad down the wire.




Re: Content-Length limited to 2^31-1???

2001-08-30 Thread Dmitry Rogatkin

You can always provide content length value using setHeader like methods to avoid int 
limitations. Tomcat shouldn't overwrite header value if it's already set. You can also 
use chunked out where content length simple ignored for files greater than 2GB.

Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA






-Original Message-
From:David Daney [EMAIL PROTECTED]
Sent:Thu, 30 Aug 2001 14:47:40 -0700
To:  [EMAIL PROTECTED]
Subject: Content-Length limited to 2^31-1???


The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
content length to Integer.MAX_VALUE (2^31-1 or 2GB).

If I want to serve very large objects things do not work so well.

I seems that ServletResponse.SetContentLength(int) is the prefered 
manner to sent the content length of a servlet response and that the 
default implemtation for the HEAD method in HttpServlet also is 
limited to the range of int values.

My reading of the HTTP/1.1 spec does not indicate that there are any 
limitations to content length in the HTTP protocol.

So my question is:  Am I all messed up, or is Tomcat and the servlet 
spec/implementation sub-optimal?

David Daney




___
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.




Re: Newbie JSP Question:

2001-08-30 Thread Dmitri Colebatch

try request.setAttribute( ... ) in the first jsp and request.getAttribute(
... ) in the second.

hth
dim


On Thu, 30 Aug 2001, Peter L. Markowsky wrote:

 I know this doesn't relate to Tomcat directly, but since Tomcat hosts JSPs
 or at least is able I was wondering if anyone out there knew / could
 recommend how to pass values from one JSP page to another. The problem I'm
 having is that when I try to submit a form and then use
 request.getParameter( parametername ) I keep getting nulls even though I
 specify the parameter name.
   -Thanks for all the Help
   Pete Markowsky
 
 
 




  1   2   >