Directory browsing

2002-03-19 Thread Julien OIX

hi everyone,

I'm using Tomcat/Apache service;
in my default web.xml, located in $TOMCAT_HOME/conf, I've these lines:

servlet
servlet-namedefault/servlet-name
   
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class

init-param
  param-namelistings/param-name
  param-valuefalse/param-value   !-- HERE it was true by
default --
/init-param
load-on-startup1/load-on-startup
  /servlet

so, directory browsing is forbidden by default;

Is this possible to specify in this file a directory under my webapp
directory which could be browsed ?

if not, in an other file ? but for the moment, I don't have any
$WEBAPP_HOME/WEB_INF/web.xml ...

thanks in advance

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

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




Re: Disable DTD Validation for web.xml

2002-03-19 Thread Olaf Jahn

Craig R. McClanahan [EMAIL PROTECTED] wrote:

 On Mon, 18 Mar 2002, Kevin Grey wrote:
  I was wondering if its possible to disable DTD validation for
  the web.xml for a specific WAR file (or across an entire Tomcat engine)?
 
 
 Not without changing the Tomcat sources. 

Does not seem so: At least for Tomcat 3.3 the following is documented in
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#WebXmlReader:

  WebXmlReader validate=false /

Don't know if it works, though. Always preferred making my files
valid. ;-)

Olaf


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




RE: Tomcat 4.0 and Windows XP

2002-03-19 Thread Chris Pheby

I had problems running 4.0.3 as a service under XP. 4.0.4 beta 1 works well
as a service however. Also I had to use Service+ (a utility) to set Apache
as depending on Tomcat so they integrate properly. Otherwise no problems
there.


Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Marc Chamberlin
Sent: 17 March 2002 23:34
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0 and Windows XP


Hate to ask a straightfoward question, but can't seem to find any answers
and the FAQ is down

I currently am running Tomcat 4.0 under Win98 and am thinking of upgrading
to Windows XP Pro.  Has anyone encountered any problems or know of any
hitches I should be aware of to do this? Has Tomcat 4.0 been tested under
Windows XP?  Thanks for any/all replies, just trying to forsee any
roadblocks! ;-)

   Marc..





Do you think the software industry will ever make software that is as easy
and reliable for a user to use
as the automobile industry makes a car easy and reliable for a user to
drive?


A man said unto the universe -  Sir, I exist!
However, replied the universe  I do not see where that creates in me a
sense of an obligation.
  - Stephen Crane



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




Great Book - More Servlets and Java Server Pages

2002-03-19 Thread Andy Eastham

All,

I've just finished reading More Servlets and Java Server Pages by Marty
Hall.  I wish I'd read this when I'd been new to Tomcat.  It's brilliant as
it really explains _exactly_ how to configure things in Tomcat (plus a
couple of other engines), and has some excellent examples.

See http://www.moreservlets.com

It is the sequel to Core Servlets and Java Server Pages, which is
available free in PDF on this site.  There is also an excellent Tomcat 4
configuration guide on the site.

I'd suggest that anyone who has problems getting started with Tomcat reads
this book now, eg web.xml explained completely...

It's also got a lot advanced stuff too and covers security and Servlet
Filters excellently.

Thoroughly recommended for anyone who doesn't know absolutely everything
about servlets, jsp and Tomcat.

Andy

PS I've no connection to the author!



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




Re: Tomcat 4.0 and IterationTag

2002-03-19 Thread Albert Pastrana

Yes, I thought the same, because I did a similar tag some months ago, but I
looked at the JSP1.2 specification and docs and I saw that now, TagSupport
is implementing IterationTag (a new interface) and that the right way (the
other will be deprecated) to do an iteration tag is extending TagSupport.

thanks

- Original Message - 
From: Rich Sneiderman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 6:30 PM
Subject: RE: Tomcat 4.0 and IterationTag


 I haven't implemented on of these yet but it sounds like you should be
 inheriting from BodyTagSupport not TagSupport.
 
 - Rich
 
 -Original Message-
 From: Albert Pastrana [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 18, 2002 9:25 AM
 To: tomcat-list
 Subject: Tomcat 4.0 and IterationTag
 
 
 Hi,
 
 I've a tomcat 4.0 (downloaded latest week) in a Win2k pro.
 
 I've a little problem running it as service, but running stand-alone
 everything it's right.
 
 The first problem comes when creating an iteration tag. I've followed
 many explanations and, of course, read all the javadocs, and I cannot
 understand what I'm doing wrong.
 
 My code is something like that:
 
 public class RepeatTag
 extends  TagSupport
 {
int num = 0;
 
boolean endLoop()   { return num==10; }
voidnextElement() { num++;  }
 
public int doStartTag() throws JspException {
   if (!endLoop()) {
  nextElement();
  return EVAL_BODY_AGAIN;
  }
  return SKIP_BODY;
}
 
public int doAfterBody() throws JspException {
   if (!endLoop()) {
  nextElement();
  return EVAL_BODY_AGAIN;
   } else {
  return SKIP_BODY;
   }
   }
 
 } //end class RepeatTag
 
 And the problem is that my Tomcat is saying me that exception:
 javax.servlet.ServletException: Since tag handler class
 com.ludicus.general.taglib.RepeatTag does not implement BodyTag, it
 can't return BodyTag.EVAL_BODY_TAG
 
 I've read a lot of documentation about JSP1.2 and I think that's the
 right solution, but I supose I'm doing something wrong, could anyone
 tell me what's the problem?
 
 thanks a lot
 
   albert
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




Re: Lib placement problem

2002-03-19 Thread Alexander Reifinger

Hi John,

  In our JSP application I included an dynamic output as PDF,
  done via Cocoon on tomcat 3.2.
  This has worked once, but somehow does not anymore. After
  fiddling around and reading FAQ's and so on I decided to try
  Cocoon 2 and Tomcat 4, but could not get it to work again.
  Anyway, right now I am back to cocoon 1.8.2 on tomcat 4.0.3
  and I seem to be stuck to the following error message no
  matter what I try:
 Have you tried _both_ /server/lib and /ROOT/lib?  I believe there's a
 documented issue with Tomcat 4 earlier than 4.0.4 that's resolved
 by placing
 jars in both the server-only /lib folder (/server/lib), and in the
 web-apps-only /lib folder (/lib).
 Disclaimer: this is from recollection, and a recent problem I had
 porting a
 site to Tomcat (from Jrun 3.0).  Your milage may vary, I'd
 appreciate it if
 someone with more knowledge than me added comments if I've got it wrong...
 John

I just tried that again, no difference. Maybe I will have to copy my tomcat
folder from home where Cocoon works and alas go back to tomcat 3.2. But
still I don't see why one time he can find the cocoon.class and the other
time he cannot find the utils.xsl which resides in exactly the jar file?

Maybe anyone else can explain this to me, or maybe I do not get the problem
at all?

Thanks,
Alexander

  java.lang.RuntimeException: Error loading logicsheet at
  resource://org/apache/cocoon/processor/xsp/library/java/util.x
  sl due to
  java.lang.Exception: Resource not found or retrieving error.
  at
  org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor
  .java:302)
  [...]
  at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
  [...]
  This util.xsl is included in the cocoon.jar, which he
  obviously found, as the Cocoon.init() line shows.
  I thought it might have something to do with the placement of
  the jars (in WEB-INF/lib, in tomcat/lib, in
  tomcat/common/lib...), but the error shows no matter where I
  place the jars. Also renaming cocoon.jar to acocoon.jar or
  zcocoon.jar to try to alter its position in the Classpath
  does not change anything.
  What else could I look at to find what's going wrong? I was
  wondering whether to post this here or in the cocoon list,
  but I think it has something to do with a problem in (my
  understanding of) searching the classpath so I decided to
  post it here. In case you think this was a wrong decision,
  tell me so and I will contact the cocoon group.


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




AW: installation of Tomcat 4.0

2002-03-19 Thread Alexander Reifinger

Hi Will,

try to use catalina run instead of startup, so you will see the error
message tomcat produces...

Alexander

 I've followed the documents from the web on setting up those and
 when I run
 the startup.bat file,  a window pops up for a second and then disappears.
 The dos window is back at the command prompt.  I then go to the


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




java.net.BindException

2002-03-19 Thread cyril vidal

Hi,

When I start Tomcat 4.0.1 by commandline, I always obtain the same message:
Server. run /init:java.net.BindExecption:Adress in use:bind
java.net.BindException:Adress in use:bind
at java.net.PlainSocketImpl.socketBind(nativMethod)

...
Sitemap location = sitemap.xmap
Checking sitemap reload=true
...
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

I guess it means Tomcat is already running. Could someone tell me what I have to do so 
that no more happens?
Thanks a lot for your answers,
Cyril.



Strange Behaviour of Tomcat

2002-03-19 Thread KrishnaKanth Vishnubhotla

Hi,
 I have one observation abt the behaviour of Tomcat.
I've been using various versions of  Tomcat3.1.1  Tomcat3.2.x. 

I have a web-application in which I have a JSP page,with only 
%@ page language=java % as the import statement.

I use a 'Vector' object to store some details. BUT, I forgot to include 
the import statement, %@ page language=java.util.* %.
Even then, no error was thrown and my JSP page was working fine !!!.

I haven't included anything in my classpath.

When I deployed this web-application in Resin Webserver, 
and tried to access that JSP , Resin throwed an error
that Vector is undefined. then I realised that I forgot to
import the java.util statement. 

I then cross-verified this behaviour again with Tomcat, 
( by not importing the 'java.util 'package ) and still Tomcat was not
throwing any error..

Any suggestions as to why this is happening with Tomcat? 

Regards,
Krishna Kanth,
E-Mail : [EMAIL PROTECTED]

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




Re: Free J2EE IDE: Which one?

2002-03-19 Thread @Basebeans.com

Subject: Re: Free J2EE IDE: Which one?
From: Vic Cekvenich [EMAIL PROTECTED]
 ===
netbeans.org

[EMAIL PROTECTED] wrote:

 Go for VIsual Age for Java..This is one of the best way...
 
 -Original Message-
 From: Bing Zhang [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 11:01 AM
 To: '[EMAIL PROTECTED]'
 Subject: Free J2EE IDE: Which one?
 
 
 I am trying to use a free IDE to do J2EE development, mainly servlet and
 EJB. The development will be on Windows NT/2000. Deployment is on linux.
 Three tools come to my mind: Forte Java Community Edition (I am supprised
 that almost nobody mention this tool), Eclipse from IBM and NetBean.
 
 I feel short time evaluation does not give me enough insight, though I have
 downloaded both Forte and Eclopse. Hope anyone ever used the above tools in
 real life give me some guidance. Any of the above tools let me debug servlet
 or even EJB locally? How about remotely? Any other server I need to set up
 beside the IDE to effectively do J2EE?
 
 
 Thanks,
 
 Bing Zhang
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 ** 
 This email (including any attachments) is intended for the sole use of the
 intended recipient/s and may contain material that is CONFIDENTIAL AND
 PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
 distribution or forwarding of any or all of the contents in this message is
 STRICTLY PROHIBITED. If you are not the intended recipient, please contact
 the sender by email and delete all copies; your cooperation in this regard
 is appreciated.
 **
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Tomcat 4 with Apache 1.3

2002-03-19 Thread Robert Douglass

Could someone please point me to a FAQ or other resource that expains how to
configure Tomcat and Apache to run with each other (WIN2K)? I haven't found
this in the Tomcat user's manual. I am new to both systems and need
something aimed at newbies. Thanks,
Robert Douglass


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




AW: Strange Behaviour of Tomcat

2002-03-19 Thread Ralph Einfeldt

This is a behaviour of tomcat 3.?. 
It imported java.util.*.

Newer versions of tomcat (at least 4.*) don't 
have this 'feature' anymore.

 -Ursprüngliche Nachricht-
 Von: KrishnaKanth Vishnubhotla [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 19. März 2002 09:05
 An: '[EMAIL PROTECTED]'
 Betreff: Strange Behaviour of Tomcat
snip/ 
 I use a 'Vector' object to store some details. BUT, I forgot 
 to include the import statement, %@ page language=java.util.* %.
 Even then, no error was thrown and my JSP page was working fine !!!.
snip/ 

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




RE: tomcat3-3.3a-2 doesn't load turbine-2.1

2002-03-19 Thread Larry Isaacs

Is it a typo that you are using turbine in the
servlet declaration, and Turbine (uppercase 'T')
in the mapping?  They should be the same.

Cheers,
Larry

 -Original Message-
 From: Huy K Dung [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 18, 2002 7:02 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat3-3.3a-2 doesn't load turbine-2.1
 
 
 Hi,
 
 I just installed tomcat3-3.3a-2 on my linux 7.2 system apache 
 1.3.20.  I deployed two web apps that I have been developed 
 and work with tomcat 3.2.3. These two web apps deployed 
 outside of webapps directory.
 
 Tomcat seems to work ok since I can run jsp's from /examples 
 and /admin through port 8080.
 
 Both of my web apps are recognized by apache and tomcat. The 
 problem is that as soon as they finish loading the index.html 
 (which redirects to turbine), I get a HTTP 404 Not Found. I 
 check the tomcat.log and see the following
 message:
 
 2002-03-18 18:41:39 - Ctx(/[myapp]) : Class not found: turbine
 
 Here is the partial of my web.xml:
 
 web-app
 servlet
 servlet-name
turbine
 /servlet-name
 servlet-class
 org.apache.turbine.Turbine
 /servlet-class
  init-param
 param-nameproperties/param-name
 !-- This is relative to the docBase --
 param-value
 WEB-INF/conf/TurbineResources.properties
 /param-value
 /init-param
 /servlet
 servlet-mapping
   servlet-nameTurbine/servlet-name
   url-pattern/turbine/url-pattern
 /servlet-mapping
 
 ...
 ...
 
 /web-app
 
 I have all the jar files (turbine as well as other libraries) 
 in [myapp]/WEB-INF/lib directory.
 
 Does anyone have the same problem that I am having? Please 
 HELP!!! Thanks
 

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




RE: Tomcat and Unicode parameters in URLs ???

2002-03-19 Thread Larry Isaacs

If you can live with the Servlet 2.2 spec, Tomcat 3.3
has a work around for this.  The DecodeInterceptor can
accept a URL like the following to specify the encoding
as part of the URI:

http://localhost:8080/myapp/index.jsp;charset=UTF-8?param=value

For details, see the charsetAttribute attribute of the
DecodeInterceptor:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#DecodeInterceptor

You are welcome to give it a try.

Cheers,
Larry

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 18, 2002 8:50 PM
 To: Tomcat Users List
 Subject: Re: Tomcat and Unicode parameters in URLs ???
 
 
 
 
 On Tue, 19 Mar 2002, Soefara Redzuan wrote:
 
  Date: Tue, 19 Mar 2002 09:20:47 +0800
  From: Soefara Redzuan [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: Tomcat and Unicode parameters in URLs ???
 
 
  Setting the content type, as you did above, only affects 
 the *output* 
  of that particular response -- it has nothing to do with 
 how the next 
  *input* request from that browser will be handled.
  
  In order to deal with request parameters in an incoming 
 request, you 
  must tell Tomcat what encoding to use, *before* processing the 
  parameters. This is done by calling the 
  request.setCharacterEncoding() method that was added in 
 Servlet 2.3.  
  As long as you call this before calling methods like 
  request.getParameter(), the proper encoding will be applied.
  
  One way to do this without modifying your application itself is to 
  use a Filter that looks at incoming requests and decides what 
  encoding should be used -- perhaps by looking at the 
  codeAccept-Language/code header, or based on 
 attributes you have 
  stored in the current session that indicate what the user will be 
  supplying.
 
  But what happens if you really do not know what character set to 
  expect ? In our company, the webserver is used for B2B 
 messaging with 
  customers and not purely serving web pages.  For example, we can 
  accept a message with a query string like this 
  
 http://vpn.ourcompany.com/servlet/incoming? company=CustomerNamerefere
  nceId=1234noteText=
 
  The noteText could be in one of several languages since we do 
  international business. We're currently considering adding 
 a language 
  parameter such as Language=English but it would be nicer to 
  autodetect the language. Is this possible ?
 
 
 It would be possible if the HTTP specs defined a way to tell 
 the server what language the HTTP URL is encoded in, and if 
 browsers actually sent along that indication.  Neither seems 
 to be the case in general -- even on a POST transaction 
 (where the browsers really have no excuse for not including 
 the character encoding in the Content-Type header), many 
 don't. Thus, you're stuck haveing to figure it out for yourself.
 
 Note that adding a language parameter to the query string 
 isn't going to do you much good -- you have to call 
 setCharacterEncoding() *before* you call 
 request.getParameter(), so you won't have been able to read 
 the language field first.
 
  Thank you, Soefara
 
  _
 
 Craig
 
  Join the world's largest e-mail service with MSN Hotmail. 
  http://www.hotmail.com
 
 
  --
  To unsubscribe:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To 
 unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Serving images from a directory outside of WEB-INF

2002-03-19 Thread WATKINS, Andy, FM

We have a central image directory shared by several web apps.
How do I get Tomcat to server images from a directory outside of WEB-INF

ie so /images/myimage.gif   maps to   c:\cetralimages\myimage.gif

Andy



  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.


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




Re: installation of Tomcat 4.0

2002-03-19 Thread George . Marian

make sure you do not have any other web servers running. ie IIS, iplanet




Kwan, William [EMAIL PROTECTED]
18/03/2002 07:19 PM
Please respond to Tomcat Users List

 
To: Tomcat user (E-mail) [EMAIL PROTECTED]
cc: 
Subject:installation of Tomcat 4.0


Hi everyone,

I'm new to Tomcat and was wondering if you could help me.

I've downloaded the following:

j2sdk-1_3_1_02-win.exe
jakarta-tomcat-4.0.3-LE-jdk14.exe

I've install the jdk first then tomcat.

I've set the following environment variables:
Java_home = c:\java\jdk1.3.1_02
Catalina_home = c:\java\apache tomcat 4.0
classpath =
c:\java\jdk1.3.1_02\bin;c:\java\jdk1.3.1_02\lib;c:\java\jdk1.3.1_02\jre
Path = c:\java\apache tomcat 4.0\bin;c:\java\jdk1.3.1_02\bin;%system%;

I've followed the documents from the web on setting up those and when I 
run
the startup.bat file,  a window pops up for a second and then disappears.
The dos window is back at the command prompt.  I then go to the browser 
and
type in:
http://localhost:8080/ and get The page cannot be display

I'm on a windows 2000 server, IIS 5.0.

I've looked at the following documents:

http://members.ozemail.com.au/~lampante/hotwo/tomcat/iisnt/
http://javaboutique.internet.com/tutorials/Tomcat/

It doesnt seem that hard, but I dont know what I'm doing wrong, any help
would be appreciated.
thanks,
Will


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






Re: JDBC/JNDI problem, continued - PUZZLED

2002-03-19 Thread Adam Lipscombe

I get the same problem on Win2k with Tomcat 4.0.3 and JDK 1.3.1

From other posts it looks like Tyrex is not working.


Cheers - Adam





From: Nikola Milutinovic 
Subject: Re: JDBC/JNDI problem, continued - PUZZLED 
Date: Mon, 18 Mar 2002 23:14:55 -0800 




   Do your log files have any interesting messages?
  
  Nothing. Clean as a whistle. The problem is not related to PostgreSQL or
JDBC 
driver. I can establish a connection via regular mechanism:
  
  Class.forName( org.postgresql.Driver );
  Connection conn = DriverManager.getConnection( 
jdbc:postgresql://test.ev.co.yu/test, test, test_pass );
 
 This is problem in JSDK 1.4, I think. But under JSDK 1.3.1 everything
 ok.

I'm using JDK 1.3.0-2 on Tru64 UNIX.

Nix.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2002 13:35
To: Tomcat Users List
Subject: Re: installation of Tomcat 4.0


make sure you do not have any other web servers running. ie IIS, iplanet




Kwan, William [EMAIL PROTECTED]
18/03/2002 07:19 PM
Please respond to Tomcat Users List

 
To: Tomcat user (E-mail) [EMAIL PROTECTED]
cc: 
Subject:installation of Tomcat 4.0


Hi everyone,

I'm new to Tomcat and was wondering if you could help me.

I've downloaded the following:

j2sdk-1_3_1_02-win.exe
jakarta-tomcat-4.0.3-LE-jdk14.exe

I've install the jdk first then tomcat.

I've set the following environment variables:
Java_home = c:\java\jdk1.3.1_02
Catalina_home = c:\java\apache tomcat 4.0
classpath =
c:\java\jdk1.3.1_02\bin;c:\java\jdk1.3.1_02\lib;c:\java\jdk1.3.1_02\jre
Path = c:\java\apache tomcat 4.0\bin;c:\java\jdk1.3.1_02\bin;%system%;

I've followed the documents from the web on setting up those and when I 
run
the startup.bat file,  a window pops up for a second and then disappears.
The dos window is back at the command prompt.  I then go to the browser 
and
type in:
http://localhost:8080/ and get The page cannot be display

I'm on a windows 2000 server, IIS 5.0.

I've looked at the following documents:

http://members.ozemail.com.au/~lampante/hotwo/tomcat/iisnt/
http://javaboutique.internet.com/tutorials/Tomcat/

It doesnt seem that hard, but I dont know what I'm doing wrong, any help
would be appreciated.
thanks,
Will


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




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




Re: JDBC/JNDI problem, continued - PUZZLED

2002-03-19 Thread Nikola Milutinovic

 I get the same problem on Win2k with Tomcat 4.0.3 and JDK 1.3.1
 
 From other posts it looks like Tyrex is not working.

At least one guy managed to get my combination to work. The fact that he is one of the 
top developers (Craig) might have something to do with it. I'm not saying that he's 
witholding information, just that he is far more expirienced.

Craig, is there anything magical that one should do for PostgreSQL? Is there some way 
to test Tyrex and PostgreSQL separately from Tomcat?

Oh, and BTW, I have another unexpected feature in Tomcat. If my JSP page throws 
UnavailableException in it's init() method, not only does that page become 
unavailable (which was the idea), but the JSP servlet as well (which was not what I 
wanted). That disables ALL JSPs within the context.

Is this supposed to happen? Am I (again) doing something that was not meant to be 
done?

Nix.



Re: installation of Tomcat 4.0

2002-03-19 Thread Raj

U can run any servers with tomcat4.0.3.I did not get any problems.U have not
started the tomcat properly.U uninstall it and than install in a directcory
c:\tomcat4(as per your convenience.)Go to Env variables set JAVA_HOME as
name,c:\jdk1.3any version as value
  set CATALINA_HOME as name ,c:\tomact4 as value
at the end of the PATH add
%JAVA_HOME%\bin;%CATALINA_HOME%\bin
then from start programs click start tomcat.
Thats all.

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 1:34 PM
Subject: Re: installation of Tomcat 4.0


 make sure you do not have any other web servers running. ie IIS, iplanet




 Kwan, William [EMAIL PROTECTED]
 18/03/2002 07:19 PM
 Please respond to Tomcat Users List


 To: Tomcat user (E-mail) [EMAIL PROTECTED]
 cc:
 Subject:installation of Tomcat 4.0


 Hi everyone,

 I'm new to Tomcat and was wondering if you could help me.

 I've downloaded the following:

 j2sdk-1_3_1_02-win.exe
 jakarta-tomcat-4.0.3-LE-jdk14.exe

 I've install the jdk first then tomcat.

 I've set the following environment variables:
 Java_home = c:\java\jdk1.3.1_02
 Catalina_home = c:\java\apache tomcat 4.0
 classpath =
 c:\java\jdk1.3.1_02\bin;c:\java\jdk1.3.1_02\lib;c:\java\jdk1.3.1_02\jre
 Path = c:\java\apache tomcat 4.0\bin;c:\java\jdk1.3.1_02\bin;%system%;

 I've followed the documents from the web on setting up those and when I
 run
 the startup.bat file,  a window pops up for a second and then disappears.
 The dos window is back at the command prompt.  I then go to the browser
 and
 type in:
 http://localhost:8080/ and get The page cannot be display

 I'm on a windows 2000 server, IIS 5.0.

 I've looked at the following documents:

 http://members.ozemail.com.au/~lampante/hotwo/tomcat/iisnt/
 http://javaboutique.internet.com/tutorials/Tomcat/

 It doesnt seem that hard, but I dont know what I'm doing wrong, any help
 would be appreciated.
 thanks,
 Will


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






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




Re: java.net.BindException

2002-03-19 Thread cyril vidal


Does anybody have the solution for this problem?
When I start Tomcat 4.0.1 by commandline, I always obtain the same message:
Server. run /init:java.net.BindExecption:Adress in use:bind
java.net.BindException:Adress in use:bind
at java.net.PlainSocketImpl.socketBind(nativMethod)

...
Sitemap location = sitemap.xmap
Checking sitemap reload=true
...
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

I guess it means Tomcat is already running. Could someone tell me what I
have to do so that no more happens?
Thanks a lot for your answers,
Cyril.



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




JSP Page caching questions

2002-03-19 Thread Diego, Emil


Hi,

Here is the environment I am running under.
Redhat linux 7.2 running apache 1.3 and Tomcat 3.2.3.

I have a JSP website that I am making modifications to, here is what is
happening.

I hav a group of 20 pages, that are all including another pages using the
following tag
%@include file=includes/main.jsp %

I modified the main.jsp page to modify the order of some menu buttons. 

My question is this. Of the 20 pages that are including this file, only 2 of
them are displaying the modified menu button order. And those 2 were new
pages that I added to the site. 

I am assuming that the two pages are working fine because they were not
previously compiled by tomcat.

My question is this.  How do i tell tomcat to recompile all the JSP so that
they are 
updated with the modifications I made.


Emil

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




RE: JSP Page caching questions

2002-03-19 Thread Rodrigo Gonzalez Asensio

I have the same problem
The servlet engine doesn't regenerates the jsp files who has includes modified. 

The trivial solution is touch al files that you wanna update.

--- 

Rodrigo Gonzalez Asensio
División de Ingeniería - Platino - GUI Development
Gilbarco Latin America
Congreso 3450 - C1430AZD Buenos Aires - Argentina
TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)



-Original Message-
From: Diego, Emil [mailto:[EMAIL PROTECTED]] 
Sent: Martes, 19 de Marzo de 2002 11:14 a.m.
To: Tomcat Mailing List (E-mail)
Subject: JSP Page caching questions



Hi,

Here is the environment I am running under.
Redhat linux 7.2 running apache 1.3 and Tomcat 3.2.3.

I have a JSP website that I am making modifications to, here is what is happening.

I hav a group of 20 pages, that are all including another pages using the following 
tag %@include file=includes/main.jsp %

I modified the main.jsp page to modify the order of some menu buttons. 

My question is this. Of the 20 pages that are including this file, only 2 of them are 
displaying the modified menu button order. And those 2 were new pages that I added to 
the site. 

I am assuming that the two pages are working fine because they were not previously 
compiled by tomcat.

My question is this.  How do i tell tomcat to recompile all the JSP so that they are 
updated with the modifications I made.


Emil

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


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




AW: JSP Page caching questions

2002-03-19 Thread Ralph Einfeldt

Static includes are not considered when tomcat
decides to recompile a page.

One solution: run touch on all JSP Files that
include this file.

 -Ursprüngliche Nachricht-
 Von: Diego, Emil [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 19. März 2002 15:14
 An: Tomcat Mailing List (E-mail)
 Betreff: JSP Page caching questions
snip/
 My question is this.  How do i tell tomcat to recompile all 
 the JSP so that
 they are updated with the modifications I made.
snip/

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




Performance problem

2002-03-19 Thread HIRAUCHI Hideyuki


Hello everyone.]

My name is Hideyuki.
I'm Japanese ( poor at English).

I've got a trouble when I'm trying to optimize performance.
I want to:
1. set accept queue size 30.
2. process request on 3 thread concurrently.
So, I wrote below

---conf/server.xml start---
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=3 maxProcessors=3
   enableLookups=true
   acceptCount=30 debug=0 connectionTimeout=6/
---conf/server.xml end---

I think it's OK...
But when I send 30 request at once by LoadRunner, 27 requests is failure.
3 request is OK.
Is this a BUG? or a spec?

The source code is below.
I think we need own accept queue. Or Processor thread should do accept form 
serverSocket directly.

How do you think?


---HttpConnector start (1028)---
// Hand this socket off to an appropriate processor
HttpProcessor processor = createProcessor();
if (processor == null) {
try {
log(sm.getString(httpConnector.noProcessor));
socket.close();
} catch (IOException e) {
;
}
continue;
}
---HttpConnector end (1038)---

---HttpConnector start (834)---
/**
 * Create (or allocate) and return an available processor for use in
 * processing a specific HTTP request, if possible.  If the maximum
 * allowed processors have already been created and are in use, return
 * codenull/code instead.
 */
private HttpProcessor createProcessor() {

synchronized (processors) {
if (processors.size()  0) {
// if (debug = 2)
// log(createProcessor: Reusing existing processor);
return ((HttpProcessor) processors.pop());
}
if ((maxProcessors  0)  (curProcessors  maxProcessors)) {
// if (debug = 2)
// log(createProcessor: Creating new processor);
return (newProcessor());
} else {
if (maxProcessors  0) {
// if (debug = 2)
// log(createProcessor: Creating new processor);
return (newProcessor());
} else {
// if (debug = 2)
// log(createProcessor: Cannot create new processor);
return (null);
}
}
}

}
---HttpConnector end (865)---

-- 
HIRAUCHI Hideyuki [EMAIL PROTECTED]


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




RE: JDBC/JNDI problem, continued - PUZZLED

2002-03-19 Thread Adam Lipscombe

Should have mentioned that I am using Oracle 817...

The Tyrex mailing list archives suggest that it is possible to configure
Tyrex via a separate config file. I cant find this under the Tomcat
distribution.

Anyone know how to do this?


Cheers - Adam

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2002 13:58
To: Tomcat Users List
Subject: Re: JDBC/JNDI problem, continued - PUZZLED


 I get the same problem on Win2k with Tomcat 4.0.3 and JDK 1.3.1
 
 From other posts it looks like Tyrex is not working.

At least one guy managed to get my combination to work. The fact that he is
one of the top developers (Craig) might have something to do with it. I'm
not saying that he's witholding information, just that he is far more
expirienced.

Craig, is there anything magical that one should do for PostgreSQL? Is there
some way to test Tyrex and PostgreSQL separately from Tomcat?

Oh, and BTW, I have another unexpected feature in Tomcat. If my JSP page
throws UnavailableException in it's init() method, not only does that
page become unavailable (which was the idea), but the JSP servlet as well
(which was not what I wanted). That disables ALL JSPs within the context.

Is this supposed to happen? Am I (again) doing something that was not meant
to be done?

Nix.

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




Re: Urgent Re: Newbie: Servlet under Windows does not run

2002-03-19 Thread Jim Cobban

- Original Message -
From: Jim Cobban [EMAIL PROTECTED]
Subject: Re: Urgent Re: Newbie: Servlet under Windows does not run


 - Original Message -
 From: Wagoner, Mark [EMAIL PROTECTED]
 Subject: RE: Urgent Re: Newbie: Servlet under Windows does not run


  What URL are you using to get to the servlet?

This was the heart of the problem.  I was using the wrong URL.  I just
couldn't find any straightforward explanation of how you were supposed to
determine the URL to use to access the servlet once it was deployed.  The
URL which worked was:

http://hostname/context-name/servlet/package.class

The documentation continually talks in terms of relative URLs, so it only
gave the last part.  Furthermore most of the people I talked to just shoved
their servlets under ROOT, so their URLs were missing the context-name
part.

Thank you for your help.


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




RE: Deployment from directories not under webapps

2002-03-19 Thread rsequeira







Yuval Levav [EMAIL PROTECTED] on 03/19/2002 01:09:22 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  RE: Deployment from directories not under webapps

Thanks. My apps make use of JARs and classes that are not located under
docBase\WEB-INF\lib or classes.
When using tomcat 3,I added these through the classpath.
Here it seems that the JARs must be under WEB-INF.
Is there any way to use JARs and classes not under WEB-INF ?

You could. But things could get pretty messy when the application grows and
you have a heck lot of classes. Keeping track of classes and their loading
could be a pain. Tomcat 4.0.x takes care of this for you.
* Unpacked classes that you need visible to *only* a particular webapp go
under that webapps WEB-INF/classes folder. jar files go under
webapp/WEB-INF/lib folder
* Unpacked classes common to all webapps should be placed under
%CATALINA_HOME%/classes and common jar files under the %CATALINA_HOME%/lib
directory.
And if you still wish to set the classpath then see catalina.sh
(catalina.bat).

RS





Yuval

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 7:22 PM
To: Tomcat Users List
Subject: Re: Deployment from directories not under webapps



Yes. See docBase attribute of the Context.../ element in server.xml

RS




Yuval Levav [EMAIL PROTECTED] on 03/18/2002 11:10:06 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Deployment from directories not under webapps

Hi,
   Is it possible to deploy apps from directories not under the
webapps
directory ?
Thanks,
   Yuval


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









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


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









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




RE: Deployment from directories not under webapps

2002-03-19 Thread Rodrigo Gonzalez Asensio

JUST PUT YOUR SERVLETS IN 
WEB-INF/classes 
JUST PUT YOUR JARs IN
jar files webapp/WEB-INF/lib

--- 

Rodrigo Gonzalez Asensio
División de Ingeniería - Platino - GUI Development
Gilbarco Latin America
Congreso 3450 - C1430AZD Buenos Aires - Argentina
TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Martes, 19 de Marzo de 2002 11:42 a.m.
To: Tomcat Users List
Subject: RE: Deployment from directories not under webapps








Yuval Levav [EMAIL PROTECTED] on 03/19/2002 01:09:22 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  RE: Deployment from directories not under webapps

Thanks. My apps make use of JARs and classes that are not located under 
docBase\WEB-INF\lib or classes. When using tomcat 3,I added these through the 
classpath. Here it seems that the JARs must be under WEB-INF. Is there any way to use 
JARs and classes not under WEB-INF ?

You could. But things could get pretty messy when the application grows and you have a 
heck lot of classes. Keeping track of classes and their loading could be a pain. 
Tomcat 4.0.x takes care of this for you.
* Unpacked classes that you need visible to *only* a particular webapp go under that 
webapps WEB-INF/classes folder. jar files go under webapp/WEB-INF/lib folder
* Unpacked classes common to all webapps should be placed under 
%CATALINA_HOME%/classes and common jar files under the %CATALINA_HOME%/lib directory. 
And if you still wish to set the classpath then see catalina.sh (catalina.bat).

RS





Yuval

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 7:22 PM
To: Tomcat Users List
Subject: Re: Deployment from directories not under webapps



Yes. See docBase attribute of the Context.../ element in server.xml

RS




Yuval Levav [EMAIL PROTECTED] on 03/18/2002 11:10:06 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Deployment from directories not under webapps

Hi,
   Is it possible to deploy apps from directories not under the webapps 
directory ? Thanks,
   Yuval


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









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


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









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


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




Servlets that deployed yesterday ...

2002-03-19 Thread Paul Brown

... suddenly not deploying

i've changed no code but i'm getting exceptions stack traces in the
logs.

if anyone could explain this to me i'd be very grateful ...




2002-03-19 15:14:50 StandardContext[/messagelets]: Servlet /messagelets
threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.catalina.servlets.DefaultServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:872)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3272)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3393
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:278)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:680)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319)
at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:688)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.ClassNotFoundException:
org.apache.catalina.servlets.DefaultServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:866)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3272)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3393
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:278)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:680)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319)
at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:688)
at java.lang.Thread.run(Thread.java:484)

2002-03-19 15:14:50 StandardWrapper[/messagelets:invoker]: Loading
container servlet invoker
2002-03-19 15:14:50 StandardWrapper[/messagelets:invoker]: Marking
servlet invoker as unavailable
2002-03-19 15:14:50 StandardContext[/messagelets]: Servlet /messagelets
threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.catalina.servlets.InvokerServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:872)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3272)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3393
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:278)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:680)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319)
at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:688)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.ClassNotFoundException:
org.apache.catalina.servlets.InvokerServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at 

maxProcessors

2002-03-19 Thread Dean Hiller

excuse me in my ignorance, but it has been a while and I have  forgotten how 
webservers work.

How does a typical webserver work as far as a few threads waiting on accept() for 
incoming connections?  Is the socket created/teardown every time a user goes to a 
different page?

Now that the basics are out of the way, what is maxProcessors for?  If I set it to 10 
let's say, am I only going to be allowed 10 simultaneous requests from browsers, that 
next request will be refused if the load is too high.
thanks for any info you can provide,
Dean


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




AW: maxProcessors

2002-03-19 Thread Ralph Einfeldt


Have a look at http://www.kegel.com/c10k.html

How tomcat deal with this things I can't tell.


 -Ursprüngliche Nachricht-
 Von: Dean Hiller [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 19. März 2002 16:40
 An: [EMAIL PROTECTED]
 Betreff: maxProcessors
 
snip/ 
 How does a typical webserver work as far as a few threads 
 waiting on accept() for incoming connections?  Is the socket 
 created/teardown every time a user goes to a different page?
snip/ 

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




RE: Deployment from directories not under webapps

2002-03-19 Thread George . Marian

Where do you put the Oracle drivers?This is the error message I get from 
my log. I am running tomcat 4 on a win2000 machine
Tue Mar 19 10:40:54 EST 2002: Can't create a new connection for 
jdbc:oracle:thin:@172.17.112.10:1525:DTSAPPS
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:537)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at 
dtsServlets.DBConnectionManager$DBConnectionPool.newConnection(DBConnectionManager.java:380)
at 
dtsServlets.DBConnectionManager$DBConnectionPool.getConnection(DBConnectionManager.java:314)
at 
dtsServlets.DBConnectionManager.getConnection(DBConnectionManager.java:77)
at dtsServlets.connDB.getConnection(connDB.java:18)
at dtsServlets.FruitTest.showFruitTable(FruitTest.java:61)
at dtsServlets.FruitTest.doGet(FruitTest.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at 
org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown 
Source)
at java.lang.Thread.run(Thread.java:484)




Rodrigo Gonzalez Asensio [EMAIL PROTECTED]
19/03/2002 10:18 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Deployment from directories not under webapps


JUST PUT YOUR SERVLETS IN 
WEB-INF/classes 
JUST PUT YOUR JARs IN
jar files webapp/WEB-INF/lib

--- 

Rodrigo Gonzalez Asensio
División de Ingeniería - Platino - GUI Development
Gilbarco Latin America
Congreso 3450 - C1430AZD Buenos Aires - Argentina
TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Martes, 19 de Marzo de 2002 11:42 a.m.
To: Tomcat Users List
Subject: RE: Deployment from directories not under webapps








Yuval Levav [EMAIL PROTECTED] on 03/19/2002 01:09:22 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  RE: Deployment from directories not under webapps

Thanks. My apps make use of JARs and classes that are not located under 
docBase\WEB-INF\lib or classes. When using tomcat 3,I added these 
through the classpath. Here it seems that the JARs must be under WEB-INF. 
Is there any way to use JARs and classes not under WEB-INF ?

You could. But things could get pretty messy when the application grows 
and you have a heck lot of classes. Keeping track of classes and their 
loading could be a pain. Tomcat 4.0.x takes care of this for you.
* Unpacked classes that you need visible to *only* a particular webapp go 
under that webapps WEB-INF/classes folder. jar files go under 
webapp/WEB-INF/lib folder
* 

RE: Deployment from directories not under webapps

2002-03-19 Thread Randy Layman


You need to rename classesXXX.zip to classesXXX.jar and put it in
the WEB-INF/lib directory of your webapp.

Randy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 10:54 AM
 To: Tomcat Users List
 Subject: RE: Deployment from directories not under webapps
 
 
 Where do you put the Oracle drivers?This is the error message 
 I get from 
 my log. I am running tomcat 4 on a win2000 machine
 Tue Mar 19 10:40:54 EST 2002: Can't create a new connection for 
 jdbc:oracle:thin:@172.17.112.10:1525:DTSAPPS
 java.sql.SQLException: No suitable driver
 at 
 java.sql.DriverManager.getConnection(DriverManager.java:537)
 at 
 java.sql.DriverManager.getConnection(DriverManager.java:177)
 at 
 dtsServlets.DBConnectionManager$DBConnectionPool.newConnection
 (DBConnectionManager.java:380)
 at 
 dtsServlets.DBConnectionManager$DBConnectionPool.getConnection
 (DBConnectionManager.java:314)
 at 
 dtsServlets.DBConnectionManager.getConnection(DBConnectionMana
 ger.java:77)
 at dtsServlets.connDB.getConnection(connDB.java:18)
 at dtsServlets.FruitTest.showFruitTable(FruitTest.java:61)
 at dtsServlets.FruitTest.doGet(FruitTest.java:33)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(Unknown 
 Source)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Unkno
 wn Source)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
 at 
 org.apache.catalina.core.StandardContext.invoke(Unknown Source)
 at org.apache.catalina.core.StandardHostValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at org.apache.catalina.valves.AccessLogValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
 Source)
 at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
 Source)
 at 
 org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
 at 
 org.apache.catalina.connector.http.HttpProcessor.process(Unkno
 wn Source)
 at 
 org.apache.catalina.connector.http.HttpProcessor.run(Unknown 
 Source)
 at java.lang.Thread.run(Thread.java:484)
 
 
 
 
 Rodrigo Gonzalez Asensio [EMAIL PROTECTED]
 19/03/2002 10:18 AM
 Please respond to Tomcat Users List
 
  
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:RE: Deployment from directories not 
 under webapps
 
 
 JUST PUT YOUR SERVLETS IN 
 WEB-INF/classes 
 JUST PUT YOUR JARs IN
 jar files webapp/WEB-INF/lib
 
 --- 
 
 Rodrigo Gonzalez Asensio
 División de Ingeniería - Platino - GUI Development
 Gilbarco Latin America
 Congreso 3450 - C1430AZD Buenos Aires - Argentina
 TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Martes, 19 de Marzo de 2002 11:42 a.m.
 To: Tomcat Users List
 Subject: RE: Deployment from directories not under webapps
 
 
 
 
 
 
 
 
 Yuval Levav [EMAIL PROTECTED] on 03/19/2002 01:09:22 AM
 
 Please respond to Tomcat Users List [EMAIL PROTECTED]
 
 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:
 
 Subject:  RE: Deployment from directories not under webapps
 
 Thanks. My apps make use of JARs and classes that are not 
 located under 
 docBase\WEB-INF\lib or classes. When using tomcat 3,I added these 

Maximum length of URL

2002-03-19 Thread Michael Zhou

Hello,

We are running Tomcat 4.0 on Solaris 2.8 and are using GET method on a form which 
encodes all the parameter/value pairs
into the request URL.

I am wondering if there is a limit on the length of URL as in old days when CGI was 
used. In CGI, there is such a limit
(for example, 256 characters) because the query string is stored in an environmental 
variable QUERY_STRING and this
string is subject to limitation of the underlying operating system.

We are reluctant to use POST method on that form because it causes annoying 
navigational problems -- you see some
information like Page expires or POSTDATA expires, click Refresh to resubmit your 
information blah blah blah when you
hit Back or Forward in your browser.

--
Michael


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




newbie jsp question

2002-03-19 Thread Magnus Jansson

I'm getting nuts I tries to execute a stored procedure that looks like this:

INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO Integer, ISLUNCH Integer) 

But I haven't got a clue how to write the jsp code to execute that procedure.

I'm using Interbase 6.5 Pleeeaseee help me.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - 
Magnus Jansson
IT-Manager
Väddö folkhögskola
760 40 Väddö
Sweden

Phone: +46 (0) 176-528 00
Cellular: +46 (0) 70-370 33 16
Fax: +46 (0) 176-528 28
http://www.vaddo.fhsk.se (work)
http://www.jason.pp.se (private)




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


AW: Maximum length of URL

2002-03-19 Thread Ralph Einfeldt

This restrictions on the get request persist on all kind
of servers that will be used to route your request to the 
server.

 -Ursprüngliche Nachricht-
 Von: Michael Zhou [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 19. März 2002 16:58
 An: Tomcat Users List
 Betreff: Maximum length of URL
snip/
 I am wondering if there is a limit on the length of URL as in 
 old days when CGI was used. 
snip/

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




RE: newbie jsp question

2002-03-19 Thread Jeff Macomber

Jansson,

You are going to need a JDBC driver for Interbase 6.5 first.  Then I would
recommend looking at the examples that come with the driver on how they
handle insertion of BLOB data and escaping stored procedures.  

Hope this helps,
Jeff

-Original Message-
From: Magnus Jansson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:22 AM
To: [EMAIL PROTECTED]
Subject: newbie jsp question


I'm getting nuts I tries to execute a stored procedure that looks like this:

INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO Integer, ISLUNCH
Integer) 

But I haven't got a clue how to write the jsp code to execute that
procedure.

I'm using Interbase 6.5 Pleeeaseee help me.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - 
Magnus Jansson
IT-Manager
Väddö folkhögskola
760 40 Väddö
Sweden

Phone: +46 (0) 176-528 00
Cellular: +46 (0) 70-370 33 16
Fax: +46 (0) 176-528 28
http://www.vaddo.fhsk.se (work)
http://www.jason.pp.se (private)



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




RE: newbie jsp question

2002-03-19 Thread Randy Layman


You will need to learn how to use JDBC to access databases.  I would
suggest either going to Sun's JDBC site or looking at Interbase.  Once you
know how to execute the stored procedure from regular Java, JSP is trivial.

Randy


 -Original Message-
 From: Magnus Jansson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 11:22 AM
 To: [EMAIL PROTECTED]
 Subject: newbie jsp question
 
 
 I'm getting nuts I tries to execute a stored procedure that 
 looks like this:
 
 INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO 
 Integer, ISLUNCH Integer) 
 
 But I haven't got a clue how to write the jsp code to execute 
 that procedure.
 
 I'm using Interbase 6.5 Pleeeaseee help me.
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 - - - - - - - - - - - - - - 
 Magnus Jansson
 IT-Manager
 Väddö folkhögskola
 760 40 Väddö
 Sweden
 
 Phone: +46 (0) 176-528 00
 Cellular: +46 (0) 70-370 33 16
 Fax: +46 (0) 176-528 28
 http://www.vaddo.fhsk.se (work)
 http://www.jason.pp.se (private)
 
 
 

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




multiple SSL connectors

2002-03-19 Thread Daniel Fisher

Hello,
Is it possible to use multiple truststores when using multiple SSL connectors in 
Tomcat 4.0.3?
Thanks.

-- 
Daniel Fisher



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




RE: tomcat3-3.3a-2 doesn't load turbine-2.1

2002-03-19 Thread Huy K Dung

It could be a mistake when we did the web.xml originally. I've been
wondering if that would be the problem. However, it has been working with
tomcat 3.2.3 all along. I just upgraded to tomcat 3-3.3a-2 and it stopped
working. I fixed the typo and restarted tomcat - it didn't work either.

Well, one thing I can say is that the structure of tomcat 3-3.3a-2 is
different from that of tomcat 3.2.3. It could be that I don't know how to
configure the new tomcat.

Thank you!!! Please advise if you have any other ideas.

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 07:41 AM
To: 'Tomcat Users List'
Subject: RE: tomcat3-3.3a-2 doesn't load turbine-2.1


Is it a typo that you are using turbine in the
servlet declaration, and Turbine (uppercase 'T')
in the mapping?  They should be the same.

Cheers,
Larry

 -Original Message-
 From: Huy K Dung [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 18, 2002 7:02 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat3-3.3a-2 doesn't load turbine-2.1


 Hi,

 I just installed tomcat3-3.3a-2 on my linux 7.2 system apache
 1.3.20.  I deployed two web apps that I have been developed
 and work with tomcat 3.2.3. These two web apps deployed
 outside of webapps directory.

 Tomcat seems to work ok since I can run jsp's from /examples
 and /admin through port 8080.

 Both of my web apps are recognized by apache and tomcat. The
 problem is that as soon as they finish loading the index.html
 (which redirects to turbine), I get a HTTP 404 Not Found. I
 check the tomcat.log and see the following
 message:

 2002-03-18 18:41:39 - Ctx(/[myapp]) : Class not found: turbine

 Here is the partial of my web.xml:

 web-app
 servlet
 servlet-name
turbine
 /servlet-name
 servlet-class
 org.apache.turbine.Turbine
 /servlet-class
  init-param
 param-nameproperties/param-name
 !-- This is relative to the docBase --
 param-value
 WEB-INF/conf/TurbineResources.properties
 /param-value
 /init-param
 /servlet
 servlet-mapping
   servlet-nameTurbine/servlet-name
   url-pattern/turbine/url-pattern
 /servlet-mapping

 ...
 ...

 /web-app

 I have all the jar files (turbine as well as other libraries)
 in [myapp]/WEB-INF/lib directory.

 Does anyone have the same problem that I am having? Please
 HELP!!! Thanks


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



RE: Directory browsing

2002-03-19 Thread Shiva.Devaguptapu

Is there any similar way for Tomcat 3.2.3/3.2.4 to disable directory
browsing, while accessing via Apache 1.3.20? Thanks in advance for any idea.

-Original Message-
From: Julien OIX [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:06 PM
To: Tomcat list
Subject: Directory browsing 


hi everyone,

I'm using Tomcat/Apache service;
in my default web.xml, located in $TOMCAT_HOME/conf, I've these lines:

servlet
servlet-namedefault/servlet-name
   
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class

init-param
  param-namelistings/param-name
  param-valuefalse/param-value   !-- HERE it was true by
default --
/init-param
load-on-startup1/load-on-startup
  /servlet

so, directory browsing is forbidden by default;

Is this possible to specify in this file a directory under my webapp
directory which could be browsed ?

if not, in an other file ? but for the moment, I don't have any
$WEBAPP_HOME/WEB_INF/web.xml ...

thanks in advance

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

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

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




Creating threads from a servlet

2002-03-19 Thread David Shanahan

Is it against the servlet specification to create threads
from inside a servlet ?

I am using java.util.Timer  java.util.TimerTask to initiate
some background work (sending email) from a servlet. The 
java.util.Timer class implicitly creates a background thread.

Right now this is working fine but I wonder if I am going 
to run into trouble with future versions of tomcat.

If creating threads is against the spec. is there a recommended
way of performing background tasks.

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


Re: URL Re-writting

2002-03-19 Thread Craig R. McClanahan



On Mon, 18 Mar 2002, Gabriel Gajdos wrote:

 Date: Mon, 18 Mar 2002 13:48:37 +0100
 From: Gabriel Gajdos [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: URL Re-writting

 | That's been really a great help.Further can I control the length of
 | this
 | sessionID as I am working on a project for mobile devices and these devices
 | dont support very long URLs.
 |
 | Thanks

 I am affraid this was not able to set according to Tomcat current state of 
development...

 If you really need to have shorter JSESSIONID, you must recompile some Tomcat 
classes...
 But I do not know which ones...

 May be one of  Tomcat developers could give us a hint... ;-)


For Tomcat 4, session ids are created in the generateSessionId() method of
class org.apache.catalina.session.ManagerBase.


 GG


Craig


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




Re: JDBC/JNDI problem, continued - PUZZLED

2002-03-19 Thread Craig R. McClanahan



On Tue, 19 Mar 2002, Nikola Milutinovic wrote:

 Date: Tue, 19 Mar 2002 14:57:50 +0100
 From: Nikola Milutinovic [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: JDBC/JNDI problem, continued - PUZZLED

  I get the same problem on Win2k with Tomcat 4.0.3 and JDK 1.3.1
 
  From other posts it looks like Tyrex is not working.

 At least one guy managed to get my combination to work. The fact that he
 is one of the top developers (Craig) might have something to do with it.
 I'm not saying that he's witholding information, just that he is far
 more expirienced.


I just followed the directions in the JNDI how-to.

 Craig, is there anything magical that one should do for PostgreSQL? Is
 there some way to test Tyrex and PostgreSQL separately from Tomcat?


Look guys ... nobody on the developer end is withholding information.  If
people want this to be worked on, ***PLEASE*** provide a bug report with a
reproducible test case!!!  In the problem at hand, that means a complete
version of your server.xml, a complete copy of a test webapp (including
source), a description of what you expect to see, and a description of
what happens.

For the returns null problem, it should be pretty easy to put something
like that together.

Without this, all I can say is well, it works for me ...

 Oh, and BTW, I have another unexpected feature in Tomcat. If my JSP
 page throws UnavailableException in it's init() method, not only
 does that page become unavailable (which was the idea), but the JSP
 servlet as well (which was not what I wanted). That disables ALL JSPs
 within the context.

 Is this supposed to happen? Am I (again) doing something that was not
 meant to be done?


Doesn't sound right ... please file a bug report

  http://nagoya.apache.org/bugzilla

 Nix.


Craig



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




RE: installation of Tomcat 4.0

2002-03-19 Thread Kwan, William

Hi Alexander

I did try it and here is what i get:

C:\catalina debug start
Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
Initializing jdb...
 tomcat
Command 'tomcat' is not valid until the VM is started with the 'run' command
 run
run org.apache.catalina.startup.Bootstrap start start

VM Started:
Exception occurred: java.lang.NoClassDefFoundError (uncaught) thread=main,
org
.apache.catalina.loader.StandardClassLoader.findClass(), line=670, bci=179

any ideas??
thanks,
Will


-Original Message-
From: Alexander Reifinger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:40 AM
To: Tomcat Users List
Subject: AW: installation of Tomcat 4.0


Hi Will,

try to use catalina run instead of startup, so you will see the error
message tomcat produces...

Alexander

 I've followed the documents from the web on setting up those and
 when I run
 the startup.bat file,  a window pops up for a second and then disappears.
 The dos window is back at the command prompt.  I then go to the


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

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




RE: Off Topic: Free J2EE IDE: Which one?

2002-03-19 Thread Chris Pheby

I am using netbeans right now (for Servlets not J2EE). Tomcat 4 integration
is not here yet, but in practice this has yet to prove a problem.

The draft versions of the forthcoming Using Netbeans oreilly book are on
the netbeans site and really speeded learning the editor for me.


Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Bing Zhang
Sent: 19 March 2002 16:35
To: '[EMAIL PROTECTED]'
Subject: Off Topic: Free J2EE IDE: Which one?


I am trying to use a free IDE to do J2EE development, mainly servlet and
EJB. The development will be on Windows NT/2000. Deployment is on linux.
Three tools come to my mind: Forte Java Community Edition (I am supprised
that almost nobody mention this tool), Eclipse from IBM and NetBean.

I feel short time evaluation does not give me enough insight, though I have
downloaded both Forte and Eclopse. Hope anyone ever used the above tools in
real life give me some guidance. Any of the above tools let me debug servlet
or even EJB locally? How about remotely? Any other server I need to set up
beside the IDE to effectively do J2EE?



Thanks,

Bing Zhang


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




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




RE: tomcat3-3.3a-2 doesn't load turbine-2.1

2002-03-19 Thread Ignacio J. Ortega

 De: Huy K Dung [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 19 de marzo de 2002 1:02

Could you test deploying the JetSpeed war? it's working for me and is a
turbine 2.1 app AFAIK, maybe you can this way check your install.. and
copy from a web.xml that is already working..

http://jakarta.apache.org/jetspeed/ war at
http://jakarta.apache.org/builds/jakarta-jetspeed/release/v1.3a2/

Saludos ,
Ignacio J. Ortega

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




RE: installation of Tomcat 4.0

2002-03-19 Thread Kwan, William

Raj,

I did do that.  I kept the directory names the same except by putting it in
a directory called java.  Everytime I try to start tomcat, a dos window
appears and then a few seconds, it disappears.  I check the services and I
couldnt start tomcat there either.

Will


-Original Message-
From: Raj [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 6:04 AM
To: Tomcat Users List
Subject: Re: installation of Tomcat 4.0


U can run any servers with tomcat4.0.3.I did not get any problems.U have not
started the tomcat properly.U uninstall it and than install in a directcory
c:\tomcat4(as per your convenience.)Go to Env variables set JAVA_HOME as
name,c:\jdk1.3any version as value
  set CATALINA_HOME as name ,c:\tomact4 as value
at the end of the PATH add
%JAVA_HOME%\bin;%CATALINA_HOME%\bin
then from start programs click start tomcat.
Thats all.

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 1:34 PM
Subject: Re: installation of Tomcat 4.0


 make sure you do not have any other web servers running. ie IIS, iplanet




 Kwan, William [EMAIL PROTECTED]
 18/03/2002 07:19 PM
 Please respond to Tomcat Users List


 To: Tomcat user (E-mail) [EMAIL PROTECTED]
 cc:
 Subject:installation of Tomcat 4.0


 Hi everyone,

 I'm new to Tomcat and was wondering if you could help me.

 I've downloaded the following:

 j2sdk-1_3_1_02-win.exe
 jakarta-tomcat-4.0.3-LE-jdk14.exe

 I've install the jdk first then tomcat.

 I've set the following environment variables:
 Java_home = c:\java\jdk1.3.1_02
 Catalina_home = c:\java\apache tomcat 4.0
 classpath =
 c:\java\jdk1.3.1_02\bin;c:\java\jdk1.3.1_02\lib;c:\java\jdk1.3.1_02\jre
 Path = c:\java\apache tomcat 4.0\bin;c:\java\jdk1.3.1_02\bin;%system%;

 I've followed the documents from the web on setting up those and when I
 run
 the startup.bat file,  a window pops up for a second and then disappears.
 The dos window is back at the command prompt.  I then go to the browser
 and
 type in:
 http://localhost:8080/ and get The page cannot be display

 I'm on a windows 2000 server, IIS 5.0.

 I've looked at the following documents:

 http://members.ozemail.com.au/~lampante/hotwo/tomcat/iisnt/
 http://javaboutique.internet.com/tutorials/Tomcat/

 It doesnt seem that hard, but I dont know what I'm doing wrong, any help
 would be appreciated.
 thanks,
 Will


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






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

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




Re: Creating threads from a servlet

2002-03-19 Thread Craig R. McClanahan



On Tue, 19 Mar 2002, David Shanahan wrote:

 Date: Tue, 19 Mar 2002 21:05:11 +0900
 From: David Shanahan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  David Shanahan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Creating threads from a servlet


 Is it against the servlet specification to create threads
 from inside a servlet ?


In a J2EE application server, it is against the rules to create threads in
application components.

In Tomcat, whether it's against the rules or not depends on whether you
are running under a security manager or not.  If you are, it's possible
that the security policies will prohibit thread creation.  But that is up
to whoever sets up your security policies.

A couple of notes about using your own threads in servlet containers:

- You must properly clean up your threads when the application
  is shut down.  If you don't, you are very likely to cause
  Tomcat to hang at shutdown time.

- It is not legal to reference the request and response objects
  passed to your servlet outside the boudns of the service() method
  of that servlet.  Therefore, you will need to copy anything you
  need out of the request before using it in another thread.

- For threads running requests, Tomcat sets the thread context class
  loader (Thread.currentThread().getContextClassLoader()) to point at
  the webapp class loader for that web application.  Among other things,
  this gives your code access to the classes in /WEB-INF/classes and
  /WEB-INF/lib even if a library class is loaded from somewhere else.
  However, this service is *not* provided for application threads.

 I am using java.util.Timer  java.util.TimerTask to initiate
 some background work (sending email) from a servlet. The
 java.util.Timer class implicitly creates a background thread.

 Right now this is working fine but I wonder if I am going
 to run into trouble with future versions of tomcat.

 If creating threads is against the spec. is there a recommended
 way of performing background tasks.


Craig


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




newbie question of the day

2002-03-19 Thread Charles Horan

Is Tomcat currently, or in a future version intended to be a full J2EE
container?

Regards,
Charles Horan
There can be no permanent catalogue of change. You must look at it with as
few preconceptions as possible, asking yourself 'Now what is this thing
doing'



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




XML curiosities

2002-03-19 Thread John Wadkin

All,

A few XML issues. Firstly, I wrongly put this in server.xml:

Valve classname=org.apache.catalina.valves.RemoteAddrValve
 allow=ip address, ip address /

Instead of seeing a SAX parse exception or similar, this appeared in
catalina.out:

ERROR reading /usr/local/tomcat/conf/server.xml
At Line 29 /Server/Service/Engine/Host/Context/Valve/
classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*,
194.164.* 

Catalina.start: java.lang.NullPointerException
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code)
at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
Code)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co
mpiled Code)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
Code)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at org.apache.catalina.startup.Bootstrap.main(Compiled Code)

Is this behaviour correct? It's very misleading - took me a while to work
out what was wrong!

Secondly, I changed the parser in common/lib to Xerces 2 - the two jar
files. I expected TomCat to break, but it worked fine. However, the new
parser reported that an XML document wasn't well-formed. I didn't think
upgrading a parser would change the status of an XML document from OK to
not OK! What gives? Is the latest version of Xerces more strict?

Solaris 8
Tomcat 4.0.1
Apache 1.3
mod_webapp 1

Thanks,

John

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




RE: JSP Page caching questions

2002-03-19 Thread Anthony Eden

FWIW, I wrote a small Perl script for doing a recursive touch on all
files in a given directory.  It is at
http://www.anthonyeden.com/projects/perl/rtouch.pl.txt

Sincerely,
Anthony Eden

 -Original Message-
 From: Diego, Emil [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, March 19, 2002 9:14 AM
 To: Tomcat Mailing List (E-mail)
 Subject: JSP Page caching questions
 
 
 
 Hi,
 
 Here is the environment I am running under.
 Redhat linux 7.2 running apache 1.3 and Tomcat 3.2.3.
 
 I have a JSP website that I am making modifications to, here 
 is what is happening.
 
 I hav a group of 20 pages, that are all including another 
 pages using the following tag %@include file=includes/main.jsp %
 
 I modified the main.jsp page to modify the order of some menu 
 buttons. 
 
 My question is this. Of the 20 pages that are including this 
 file, only 2 of them are displaying the modified menu button 
 order. And those 2 were new pages that I added to the site. 
 
 I am assuming that the two pages are working fine because 
 they were not previously compiled by tomcat.
 
 My question is this.  How do i tell tomcat to recompile all 
 the JSP so that they are 
 updated with the modifications I made.
 
 
 Emil
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Re: Off Topic: Free J2EE IDE: Which one?

2002-03-19 Thread Matt Egyhazy

i havent done ejb in forte community edition, however, it comes with tc 3.3
and you can debug servlets internally.  i have not tried remote debugging.

matt

- Original Message -
From: Bing Zhang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 11:34 AM
Subject: Off Topic: Free J2EE IDE: Which one?


 I am trying to use a free IDE to do J2EE development, mainly servlet and
 EJB. The development will be on Windows NT/2000. Deployment is on linux.
 Three tools come to my mind: Forte Java Community Edition (I am supprised
 that almost nobody mention this tool), Eclipse from IBM and NetBean.

 I feel short time evaluation does not give me enough insight, though I
have
 downloaded both Forte and Eclopse. Hope anyone ever used the above tools
in
 real life give me some guidance. Any of the above tools let me debug
servlet
 or even EJB locally? How about remotely? Any other server I need to set up
 beside the IDE to effectively do J2EE?



 Thanks,

 Bing Zhang


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



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




Tomcat 3.2.x

2002-03-19 Thread Daniel Bruce Lynes

I'm curious as to whether this problem is just me.  I haven't seen any 
mention of anyone else running into this problem.

However, what I'm experiencing (it doesn't happen in Tomcat 4.0.x), but I 
still need to get things working under Tomcat 3.2.x is:

1. deploy the war file
2. restart tomcat
3. attempt to run the application

Where the problem lies is in the jar/zip files that are in the 
$TOMCAT_HOME/webapps/appname/WEB-INF/lib directory.  Some don't get loaded at 
all, and others only get partially loaded.  For the ones that only partially 
get loaded, even if I extract them into the classes directory, I still run 
into the same roadblock.

This phenomenon occurs under both Tomcat 3.2.3 and Tomcat 3.2.1.  I can move 
my jar/zip files into the system lib directory, but then my servlets are 
foobar; Tomcat won't find them anymore.

Thanks in advance for any help or answers you might have.

P.S.  Any properties files I have won't get loaded from the WEB-INF/classes 
directory either...I have to put those into the $TOMCAT_HOME/classes 
directory.

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




Re: Off Topic: Free J2EE IDE: Which one?

2002-03-19 Thread hanasaki

You can integrate Tomcat 4 yourself ;)

Change the startup scripts to support JPDA
Attach with Netbeans
For soruce debugging you will need to mount the Tomcat directories in 
your netbeans project

Chris Pheby wrote:
 I am using netbeans right now (for Servlets not J2EE). Tomcat 4 integration
 is not here yet, but in practice this has yet to prove a problem.
 
 The draft versions of the forthcoming Using Netbeans oreilly book are on
 the netbeans site and really speeded learning the editor for me.
 
 
 Chris.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 On Behalf Of Bing Zhang
 Sent: 19 March 2002 16:35
 To: '[EMAIL PROTECTED]'
 Subject: Off Topic: Free J2EE IDE: Which one?
 
 
 I am trying to use a free IDE to do J2EE development, mainly servlet and
 EJB. The development will be on Windows NT/2000. Deployment is on linux.
 Three tools come to my mind: Forte Java Community Edition (I am supprised
 that almost nobody mention this tool), Eclipse from IBM and NetBean.
 
 I feel short time evaluation does not give me enough insight, though I have
 downloaded both Forte and Eclopse. Hope anyone ever used the above tools in
 real life give me some guidance. Any of the above tools let me debug servlet
 or even EJB locally? How about remotely? Any other server I need to set up
 beside the IDE to effectively do J2EE?
 
 
 
 Thanks,
 
 Bing Zhang
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


-- 
=
= [EMAIL PROTECTED]  =
= Spam : Unhealthy and High in Sodium and Cholesterol   =
=


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




RE: Garbage showing up when trying to download a word doc in TC 4.0.1

2002-03-19 Thread Kapasi, Mehjabin

Thanks Joel,
I have been trying what you said. I did not understand what you meant by 
Check the http headers you are sending for the download. There's a tool
forthis floating around somewhere I think. Compare the headers 3.2.1 sends
with the headers 4.0.1 sends.
How do I check that?

Here is the garbage that I get when i try to download the word documen.Sorry
for the long email but can you help me out here? I am not understanding
where to start looking for the problem.
Thanks,
Mehjabin

ÐÏࡱáþÿ
‹þÿÿÿ‰Š









ì¥ÁW

ø¿Âbjbjªyªy ŠdÈÈõÌÿÿÿÿÿÿl       4Ž 
®!®!®!hDZ´Ž
1v(#Æà$¦†%†%†%†%¢ (0,T3˜°u²u²u²u²u²u²u$Yx yzŒÖu 
ì4†%†%ì4ì4Öun:Â Â
†%†%ëun:n:n:ì4 †% †%°un:ì4°un:2n: A^¨jà  |q†%# 
€¿mÚBÁŽ
®!7ˆph|q4v01vðpŒ{,9B{|qn:ö XN @    Ù  SUBJECT \* MERGEFORMAT
ClassicsCD Web Shop title \* Mergeformat Vision Version 2.1 Revision
History DateRevisionDescriptionAuthor20/Oct/20011.0Initial VersionP
Murphy10/Nov/20012.0Updated based on Requirements WorkshopP
Murphy15/Nov/20012.1Editorial RevisionsS. Chandler
[contractor]
 Table of Contents TOC \o 1-3 1. Introduction  PAGEREF
_Toc523131581 \h 1 1.1 Purpose of the Vision Requirements Document (VRD)
 PAGEREF _Toc523131582 \h 1 1.2 Product Overview  PAGEREF _Toc523131583
\h 1 2. User Description  PAGEREF _Toc523131584 \h 1 2.1 User/Market
Demographics  PAGEREF _Toc523131585 \h 1 2.2 User Profiles  PAGEREF
_Toc523131586 \h 1 2.3 User Environment  PAGEREF _Toc523131587 \h 1
2.4 Key User Needs  PAGEREF _Toc523131588 \h 2 2.5 Alternatives and
Competition  ...




-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 9:51 PM
To: Kapasi, Mehjabin
Subject: Re: Garbage showing up when trying to download a word doc in TC
4.0.1


Kapasi, Mehjabin wrote (off list):

 Subject: RE: Garbage showing up when trying to download a word doc in TC
4.0.1

Woops. I didn't read the title line well enough. I was thinking of text
files, which are a real pain to force downloads with.


(I haven't seen any follow-up on the list, and I have a moment to try to
respond again.)

 The problem is i want it to show me the browser dialog instead of the
 showing garbage on the page. I have tried it on different browsers on
 different machines and it still gives me the same result. If I try
accessing
 the webapp using Tomcat 3.2.1 using the same browser, the dialog shows up
 but as soon as I use Tomcat 4.0.1 I get the problem.
 What else can i do?

Check the http headers you are sending for the download. There's a tool for
this floating around somewhere I think. Compare the headers 3.2.1 sends with
the headers 4.0.1 sends.

But we would like more information, like a snippet of the code you are using
to send the .doc files, and a sample of the garbage that gets sent with TC
4.0.1, and also relevant server settings. Otherwise, we can only jump to
conclusions (like I did the first time).

You might also want to check whether you have something set to drop the high
bit and send only seven bits per octet, but I don't think so.

I apologize for the slow response. Had some work to do, you know. Anyway,
give us more information, and _post_ _to_ _the_ _list_. That way, other
people more qualified than I will be able respond.

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka



 -Original Message-
 From: Joel Rees [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 7:39 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Garbage showing up when trying to download a word doc in TC
 4.0.1


 Kapasi, Mehjabin wrote:

  However, when i click on the download icon I get garbage on the page
 instead
  of a browser dialog giving me options to save/open the document.

 This is usually a browser settings related problem, not a Tomcat issue..

  This problem i am experiencing when running Tomcat 4.0.1 with IIS and
  standalone.
  Is this a character encoding problem?

 You can tweak the encoding in the http header to help this, but there
 actually is not a good general solution. Ultimately, some users will have
to
 use right-click (or ctl-click on Mac) to direct the browser to save the
data
 instead of displaying it.

  Do i need to encode the Doc URL differently that when I was using TC
 3.2.4?

 This is a 

RE: Creating threads from a servlet

2002-03-19 Thread Anthony Eden



 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, March 19, 2002 12:15 PM
 To: Tomcat Users List; David Shanahan
 Subject: Re: Creating threads from a servlet
 

snip

 
 A couple of notes about using your own threads in servlet containers:
 
 - You must properly clean up your threads when the application
   is shut down.  If you don't, you are very likely to cause
   Tomcat to hang at shutdown time.

What exactly do you mean by properly clean up your threads?  I believe
I am seeing this behavior in some of my systems and I am interested in
fixing it.  Does this mean that the application must listen for some
sort of shutdown notification?

Sincerely,
Anthony Eden


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




Further to Tomcat 3.2 problem with deploying webapp jar/zip files

2002-03-19 Thread Daniel Bruce Lynes

I've also tried checking the Tomcat bugzilla database, to no avail.  Seems no 
matter what I enter for a query term, I don't get anything back, or if I try 
the simple form, I usually get back one item that is usually for a different 
product.

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




AW: installation of Tomcat 4.0

2002-03-19 Thread Alexander Reifinger

Ermmm - He does not seem to find some class. Anyone else please...

Alexander

 I did try it and here is what i get:

 C:\catalina debug start
 Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
 Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
 Initializing jdb...
  tomcat
 Command 'tomcat' is not valid until the VM is started with the
 'run' command
  run
 run org.apache.catalina.startup.Bootstrap start start
 
 VM Started:
 Exception occurred: java.lang.NoClassDefFoundError (uncaught)
 thread=main,
 org
 .apache.catalina.loader.StandardClassLoader.findClass(), line=670, bci=179
 any ideas??


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




RE: installation of Tomcat 4.0

2002-03-19 Thread John Niven

 -Original Message-
 From: Kwan, William [mailto:[EMAIL PROTECTED]] 
 Sent: 19 March 2002 17:06
 To: 'Tomcat Users List'
 Subject: RE: installation of Tomcat 4.0
 
 
 Raj,
 
 I did do that.  I kept the directory names the same except by 
 putting it in a directory called java.  Everytime I try to 
 start tomcat, a dos window appears and then a few seconds, it 
 disappears.  I check the services and I couldnt start tomcat 
 there either.
 
 Will
 
 
Will

Instead of starting Tomcat by double-clicking on startup.bat, open up a
console and start Tomcat manually:
C:\%CATALINA_HOME%\bin\catalina run
Tomcat won't open a DOS box that promptly shuts, and you'll get a chance to
see the error msg (without having to wade through reams of unfamiliar logs,
as I had too...)

Good luck
John

 --
John Niven
Please reply through mailing list

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




RE: Tomcat 3.2.x

2002-03-19 Thread Brandon Cruz

I use tomcat 3.2.4 and haven't noticed this problem.  Not sure about the
earlier versions of 3.2.x.

Brandon

-Original Message-
From: Daniel Bruce Lynes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:13 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.x


I'm curious as to whether this problem is just me.  I haven't seen any
mention of anyone else running into this problem.

However, what I'm experiencing (it doesn't happen in Tomcat 4.0.x), but I
still need to get things working under Tomcat 3.2.x is:

1. deploy the war file
2. restart tomcat
3. attempt to run the application

Where the problem lies is in the jar/zip files that are in the
$TOMCAT_HOME/webapps/appname/WEB-INF/lib directory.  Some don't get loaded
at
all, and others only get partially loaded.  For the ones that only partially
get loaded, even if I extract them into the classes directory, I still run
into the same roadblock.

This phenomenon occurs under both Tomcat 3.2.3 and Tomcat 3.2.1.  I can move
my jar/zip files into the system lib directory, but then my servlets are
foobar; Tomcat won't find them anymore.

Thanks in advance for any help or answers you might have.

P.S.  Any properties files I have won't get loaded from the WEB-INF/classes
directory either...I have to put those into the $TOMCAT_HOME/classes
directory.

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



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




Re: response.sendRedirect not redirecting

2002-03-19 Thread Christopher Bare


--- Mostafa Al-Mallawani [EMAIL PROTECTED] wrote:
 Hi,
 I have a problem with redirecting.  In my JSP page I
 keep checking for
 errors, whenever I catch one, I set a variable on
 the session object and
 then forward to an error page; this could happen up
 to 5 times in one
 page.  The weird thing is, redirection works on some
 pages and does
 absolutely nothing on some other pages.  Execution
 just passes over
 response.sendRedirect(../error.jsp); like it
 doesn't even exist.
 Please help, this is really frustrating.  Thanks.
 


I am guessing that this happens because you are
calling sendRedirect after writing something to the
response that causes it to be committed. Once the
servlet container (tomcat) considers the response
committed it can start streaming it to the browser,
and so at that point it's kind-of too late to change
your mind and redirect. Attempting to redirect at this
point will cause an IllegalStateException. Maybe your
error catching code is eating this exception.

Look at the JavaDocs for the Servlet API, specifically
HttpServletResponse.sendRedirect() for a clearer
explaination.

Hope this helps,

-Chris




__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




RE: Creating threads from a servlet

2002-03-19 Thread Craig R. McClanahan



On Tue, 19 Mar 2002, Anthony Eden wrote:

 Date: Tue, 19 Mar 2002 12:45:12 -0500
 From: Anthony Eden [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Creating threads from a servlet



  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 19, 2002 12:15 PM
  To: Tomcat Users List; David Shanahan
  Subject: Re: Creating threads from a servlet
 

 snip

 
  A couple of notes about using your own threads in servlet containers:
 
  - You must properly clean up your threads when the application
is shut down.  If you don't, you are very likely to cause
Tomcat to hang at shutdown time.

 What exactly do you mean by properly clean up your threads?  I believe
 I am seeing this behavior in some of my systems and I am interested in
 fixing it.  Does this mean that the application must listen for some
 sort of shutdown notification?


If you start a thread but never stop it, Tomcat shutdown will hang (unless
the thread was started as a daemon thread).  Somewhere in the shutdown
code of your application, it should stop all the background threads that
were started.

 Sincerely,
 Anthony Eden


Craig


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




Re: Creating threads from a servlet

2002-03-19 Thread Bo Xu

- Original Message - 
From: Anthony Eden [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 12:45 PM
Subject: RE: Creating threads from a servlet


 
 
  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, March 19, 2002 12:15 PM
  To: Tomcat Users List; David Shanahan
  Subject: Re: Creating threads from a servlet
  
 
 snip
 
  
  A couple of notes about using your own threads in servlet containers:
  
  - You must properly clean up your threads when the application
is shut down.  If you don't, you are very likely to cause
Tomcat to hang at shutdown time.
 
 What exactly do you mean by properly clean up your threads?  I believe
 I am seeing this behavior in some of my systems and I am interested in
 fixing it.  Does this mean that the application must listen for some
 sort of shutdown notification?
 
 Sincerely,
 Anthony Eden
[...]


good emaol for you! :-)

Bo
Mar192002


 Hi all-

 I have a web application that uses some static resources to make them
 available to any class in the application.  Amongst these static
 resources is a home-brewed JDBC connection pool.  What I'm seeing is
 that with Tomcat 4, when I stop/start or reload an application from the
 manager app, it isn't freeing up these static resources.  I can see this
 because my memory utilization goes up about 5 megs every time I restart,
 whereas if I stop and restart the whole tomcat process, my memory stays
 the same.  Also the database starts yelling at me about too many
 applications simultaneously etc.

 How can I tell Tomcat to clean up these resources when it stops the
 application? What hook/mechanism is there?  Is there some sort of
 listener interface I can implement, similar in idea to an
 HttpSessionBindingEvent, to let me know when an application is shutting
 down so I can close all of the database connections?

 None of this was an issue in Tomcat 3.x because I had no choice but to
 shut down the entire tomcat instance!

 Any help greatly appreciated!  Thanks!

 Best regards,

 Richard


Doing this is exactly what the new application event listeners APIs (in
Servlet 2.3) are designed for.  You need to:

* Create a class that implements javax.servlet.ServletContextListener

* Register it (in web.xml with a listener element

* In the contextInitialized() method, set up your connection pool

* In the contextDestroyed() method, gracefully clean up your
  connection pool.

Craig



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




RE: installation of Tomcat 4.0

2002-03-19 Thread Kwan, William

John,

Alexander suggested that and I tried that but get an error message:

 C:\catalina debug start
 Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
 Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
 Initializing jdb...
 tomcat
 Command 'tomcat' is not valid until the VM is started with the
 'run' command
 run
 run org.apache.catalina.startup.Bootstrap start start
 
 VM Started:
 Exception occurred: java.lang.NoClassDefFoundError (uncaught)
 thread=main,
 org.apache.catalina.loader.StandardClassLoader.findClass(), line=670,
bci=179

any ideas what the error message means??

My classpath is:  

C:\JAVA\APACHE TOMCAT
4.0\BIN\bootstrap.jar;C:\JAVA\JDK1.3.1_02\LIB\;C:\JAVA\JDK1.3.1_02\jre;c:\ja
va\jdk1.3.1_02;%JAVA_HOME%\BIN;%CATALINA_HOME%\BIN

My Path is:

c:\java\apache tomcat 4.0\bin;C:\Program Files\Seagate Software\NOTES\;
C:\Program Files\Seagate
Software\NOTES\DATA\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System3
2\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft SQL
Server\80\Tools\BINN;c:\java\jdk1.3.1_02\bin

thanks for you help.
Will


-Original Message-
From: John Niven [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 9:54 AM
To: 'Tomcat Users List'
Subject: RE: installation of Tomcat 4.0


 -Original Message-
 From: Kwan, William [mailto:[EMAIL PROTECTED]] 
 Sent: 19 March 2002 17:06
 To: 'Tomcat Users List'
 Subject: RE: installation of Tomcat 4.0
 
 
 Raj,
 
 I did do that.  I kept the directory names the same except by 
 putting it in a directory called java.  Everytime I try to 
 start tomcat, a dos window appears and then a few seconds, it 
 disappears.  I check the services and I couldnt start tomcat 
 there either.
 
 Will
 
 
Will

Instead of starting Tomcat by double-clicking on startup.bat, open up a
console and start Tomcat manually:
C:\%CATALINA_HOME%\bin\catalina run
Tomcat won't open a DOS box that promptly shuts, and you'll get a chance to
see the error msg (without having to wade through reams of unfamiliar logs,
as I had too...)

Good luck
John

 --
John Niven
Please reply through mailing list

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

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




RE: installation of Tomcat 4.0

2002-03-19 Thread John Niven

 -Original Message-
 From: Alexander Reifinger [mailto:[EMAIL PROTECTED]] 
 Sent: 19 March 2002 17:57
 To: Tomcat Users List
 Subject: AW: installation of Tomcat 4.0
 
 
 Ermmm - He does not seem to find some class. Anyone else please...

Ermmm is right -- I'm out of my depth.  I'm concerned at the error msg too:
is that normal?  That's why I was suggesting stripping away the catalina
debug start to the bare minimum: catalina or catalina run.  As to what
class is missing, I'd not want to chance a guess... :(

John

 
 Alexander
 
  I did try it and here is what i get:
 
  C:\catalina debug start
  Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
  Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
  Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
  Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
  Initializing jdb...
   tomcat
  Command 'tomcat' is not valid until the VM is started with 
 the 'run' 
  command
   run
  run org.apache.catalina.startup.Bootstrap start start
  
  VM Started:
  Exception occurred: java.lang.NoClassDefFoundError (uncaught) 
  thread=main, org
  .apache.catalina.loader.StandardClassLoader.findClass(), 
 line=670, bci=179
  any ideas??
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
John Niven
Please reply through mailing list

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




Re: JNDIRealm with bind as user functionality

2002-03-19 Thread Jonathan Eric Miller

Thanks for the info. Can you tell me where I would download it from? So,
you're saying it would be in a directory other than the following?

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/

Thanks, Jon

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Jonathan Eric
Miller [EMAIL PROTECTED]
Sent: Friday, March 15, 2002 5:14 PM
Subject: Re: JNDIRealm with bind as user functionality




 On Fri, 15 Mar 2002, Jonathan Eric Miller wrote:

  Date: Fri, 15 Mar 2002 15:36:09 -0600
  From: Jonathan Eric Miller [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   Jonathan Eric Miller [EMAIL PROTECTED]
  To: Tomcat User List [EMAIL PROTECTED]
  Subject: JNDIRealm with bind as user functionality
 
  Does anyone know if JNDIRealm is going to be fixed up anytime soon so
that
  the bind as user functionality is in there?
 
  I know someone had a patch for this. I'm wondering if that patch is
going to
  be integrated into the main distribution.
 

 Interesting timing ... I committed the patch a couple of hours ago :-).

 It will be in tonight's nightly build, which runs off the HEAD branch.
 Seeing as how it is an enhancement, it may or may not get added into the
 4.0 branch (which is focused on bug fixes, while new features get put into
 the following release).  In theory, the new JNDIRealm class should work in
 a 4.0.x environment, but I haven't tested it that way.

  Jon
 

 Craig


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



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




mod_webapp +ssl +apache 1.3.22

2002-03-19 Thread J S (m)

OS: RedHat 7.1
Apache: 1.3.22
Tomcat: 4.01

Have configured Apache to use mod_ssl and started with SSL with no
problem...
The problem is whenever I go to a jsp page from https I get source code.
If I go to http the request is passed to tomcat.
If I add a connecter to server.xml for ssl, I can go to https and get
normal parsed output but only if I specify the port (i.e. 8443), and I
cannot get anything on the non_secure protocol.

Any assistance you can provide is appreciated.

Jennifer C. Sears504.905.7410
[EMAIL PROTECTED] ICQ: 68015059
   ---   Intercosmos Media Group, Inc.  ---
   www.intercosmos.comwww.directnic.com




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




Re: question about tomcat configuration

2002-03-19 Thread Christopher Bare


--- Cheng Yan [EMAIL PROTECTED] wrote:
 Hi, all,
 
 I just installed tomcat 4.0 binary on my Solaris 8
 box at home. This Solaris
 machine is connected to my w2k pc through a linksys
 router, which is
 connected to a cable modem.


I'm a beginner, but we have very similar setups, so
maybe we can help each other. I have Solaris8 on a DSL
router. I'm trying to use Tomcat4, apache1.3, with
mod_webapp.

Have you tried to set up a connector with apache?
There are two that I know of, mod_jk and mod_webapp. I
am using mod_webapp, but am having probablems, so I'm
thinking of switching.

Have you tried integrating Tomcat with Apache yet, or
are you just using tomcat by itself? I have Tomcat
working by itself and mostly working with Apache via
mod_webapp.

-Chris


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: SecurityManager - pulling my hair out

2002-03-19 Thread Lawlor, Frank

Yes, strange.

I ran into a couple of odd things when I turned java security on.

One problem I saw once related to processing files in jars.

If you are really desperate, unzip xerces.jar and servlet.jar
into the neighboring classes dir (and remove the jars) and
see if it helps.  Make sure the .dtd file is there.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.



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




Re: SecurityManager - pulling my hair out

2002-03-19 Thread Lawlor, Frank

I also just remembered that Xerces seems to have problems
sometimes resolving paths correctly.  I found that it would 
'assume' the wrong base file directory location for resolving 
DTDs.  To see if this might be the case you can create
a /javax/servlet/resources/web-app_2_3.dtd 
and put it in some likely places (root of drive, under your
web app, etc.).  This seems to match the error message
a little better.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions

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




RE: JSP Page caching questions

2002-03-19 Thread Don Sauer

There are 2 ways. 1. Modify the server.xml and turn reloadable off for your
JSP (this is recommended because it will compile them each time the JSP page
is run) or 2. Stop Tomcat and delete the jsp cache pages under the working
drectory and restart Tomcat

-Original Message-
From: Anthony Eden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:23 AM
To: 'Tomcat Users List'
Subject: RE: JSP Page caching questions


FWIW, I wrote a small Perl script for doing a recursive touch on all
files in a given directory.  It is at
http://www.anthonyeden.com/projects/perl/rtouch.pl.txt

Sincerely,
Anthony Eden

 -Original Message-
 From: Diego, Emil [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 9:14 AM
 To: Tomcat Mailing List (E-mail)
 Subject: JSP Page caching questions



 Hi,

 Here is the environment I am running under.
 Redhat linux 7.2 running apache 1.3 and Tomcat 3.2.3.

 I have a JSP website that I am making modifications to, here
 is what is happening.

 I hav a group of 20 pages, that are all including another
 pages using the following tag %@include file=includes/main.jsp %

 I modified the main.jsp page to modify the order of some menu
 buttons.

 My question is this. Of the 20 pages that are including this
 file, only 2 of them are displaying the modified menu button
 order. And those 2 were new pages that I added to the site.

 I am assuming that the two pages are working fine because
 they were not previously compiled by tomcat.

 My question is this.  How do i tell tomcat to recompile all
 the JSP so that they are
 updated with the modifications I made.


 Emil

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



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



HELP! Tomcat startup error

2002-03-19 Thread Kwan, William

Hi,

Here is a debug of my startup.  Could someone please help me??

C:\catalina run -debug
Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
ClassLoaderFactory:  Creating new class loader
ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
4.0\common\clas
ses
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\n
aming-common.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\n
aming-resources.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\s
ervlet.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\t
ools.jar
ClassLoaderFactory:  Creating new class loader
ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
4.0\server\clas
ses
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\c
atalina.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\j
akarta-regexp-1.2.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-common.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-default.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-invoker.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-manager.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-snoop.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-webdav.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\t
omcat-ajp.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\t
omcat-util.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\w
arp.jar
ClassLoaderFactory:  Creating new class loader
ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT 4.0\classes
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\lib\jasper-c
ompiler.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\lib\jasper-r
untime.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\lib\naming-f
actory.jar
Bootstrap: Loading startup class
Bootstrap: Setting startup class properties
Bootstrap: Calling startup class process() method
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
org
/xml/sax/HandlerBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
sLoader.java:674)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:1093)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at
org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:
280)
at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

thanks,
Will


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




Re: question about tomcat configuration

2002-03-19 Thread Lev Assinovsky

Just keep in mind, 
the performance of  pair Apache-Tomcat few times less then of standalone
Tomcat.
You can verify this using 'ab'.

Christopher Bare wrote:
 
 --- Cheng Yan [EMAIL PROTECTED] wrote:
  Hi, all,
 
  I just installed tomcat 4.0 binary on my Solaris 8
  box at home. This Solaris
  machine is connected to my w2k pc through a linksys
  router, which is
  connected to a cable modem.
 
 I'm a beginner, but we have very similar setups, so
 maybe we can help each other. I have Solaris8 on a DSL
 router. I'm trying to use Tomcat4, apache1.3, with
 mod_webapp.
 
 Have you tried to set up a connector with apache?
 There are two that I know of, mod_jk and mod_webapp. I
 am using mod_webapp, but am having probablems, so I'm
 thinking of switching.
 
 Have you tried integrating Tomcat with Apache yet, or
 are you just using tomcat by itself? I have Tomcat
 working by itself and mostly working with Apache via
 mod_webapp.
 
 -Chris
 
 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]

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




RE: Tomcat 3.2.x

2002-03-19 Thread Robert Nocera

I was under the impression that you need to rename your zip files to jar
files to get Tomcat 3.2 to load them.  At least that's what I have
noticed in using Tomcat 3.2 with JBuilder.

Robert Nocera
New England Open Solutions
www.neosllc.com
You supply the Vision.  We will do the rest.
  


-Original Message-
From: Daniel Bruce Lynes [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 19, 2002 12:13 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.x

I'm curious as to whether this problem is just me.  I haven't seen any 
mention of anyone else running into this problem.

However, what I'm experiencing (it doesn't happen in Tomcat 4.0.x), but
I 
still need to get things working under Tomcat 3.2.x is:

1. deploy the war file
2. restart tomcat
3. attempt to run the application

Where the problem lies is in the jar/zip files that are in the 
$TOMCAT_HOME/webapps/appname/WEB-INF/lib directory.  Some don't get
loaded at 
all, and others only get partially loaded.  For the ones that only
partially 
get loaded, even if I extract them into the classes directory, I still
run 
into the same roadblock.

This phenomenon occurs under both Tomcat 3.2.3 and Tomcat 3.2.1.  I can
move 
my jar/zip files into the system lib directory, but then my servlets are

foobar; Tomcat won't find them anymore.

Thanks in advance for any help or answers you might have.

P.S.  Any properties files I have won't get loaded from the
WEB-INF/classes 
directory either...I have to put those into the $TOMCAT_HOME/classes 
directory.

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


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




RE: JSP Page caching questions

2002-03-19 Thread Anthony Eden

Option 1 isn't really viable for a production system.  There are times
when the PHBs want to make a minor change in an included file and the
easiest way to deal with it is to just make the change in the production
server and touch all of the files.  Option two is problematic as well
since it involves stopping the server which means that you have to stop
handling requests.

I have another option: don't use JSP.  Use Velocity
http://jakarta.apache.org/velocity/  either alone or with a framework
(such as shameless-plugJPublish http://www.jpublish.org/
/shameless-plug).

Sincerely,
Anthony Eden

 -Original Message-
 From: Don Sauer [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, March 19, 2002 2:23 PM
 To: 'Tomcat Users List'
 Subject: RE: JSP Page caching questions
 
 
 There are 2 ways. 1. Modify the server.xml and turn 
 reloadable off for your JSP (this is recommended because it 
 will compile them each time the JSP page is run) or 2. Stop 
 Tomcat and delete the jsp cache pages under the working 
 drectory and restart Tomcat
 
 -Original Message-
 From: Anthony Eden [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 11:23 AM
 To: 'Tomcat Users List'
 Subject: RE: JSP Page caching questions
 
 
 FWIW, I wrote a small Perl script for doing a recursive touch 
 on all files in a given directory.  It is at 
 http://www.anthonyeden.com/projects/perl/rtouch.pl.txt
 
 Sincerely,
 Anthony Eden
 
  -Original Message-
  From: Diego, Emil [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 19, 2002 9:14 AM
  To: Tomcat Mailing List (E-mail)
  Subject: JSP Page caching questions
 
 
 
  Hi,
 
  Here is the environment I am running under.
  Redhat linux 7.2 running apache 1.3 and Tomcat 3.2.3.
 
  I have a JSP website that I am making modifications to, 
 here is what 
  is happening.
 
  I hav a group of 20 pages, that are all including another 
 pages using 
  the following tag %@include file=includes/main.jsp %
 
  I modified the main.jsp page to modify the order of some 
 menu buttons.
 
  My question is this. Of the 20 pages that are including this file, 
  only 2 of them are displaying the modified menu button order. And 
  those 2 were new pages that I added to the site.
 
  I am assuming that the two pages are working fine because they were 
  not previously compiled by tomcat.
 
  My question is this.  How do i tell tomcat to recompile all 
 the JSP so 
  that they are updated with the modifications I made.
 
 
  Emil
 
  --
  To unsubscribe:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To 
 unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




bug JDK 1.3

2002-03-19 Thread vmfa

Hi,

I was reading this document:Working with the Jakarta NT
Service

I am working with tomcat 3.3a this document told about a
bug in Java 1.3

Notice for JDK 1.3 users: There is a known problem in
JDK 1.3 that affects Java applications being run as
Windows NT services. The bug causes the service to
terminate when the currently logged in user logs out.
The simplest way to work around this problem is to use
JDK 1.2. If your application requires JDK 1.3 features
then you may want to look into javaserv or JavaService .
Users have reported success with both of these packages
but there may be others that work as well.



I d like to know if this bug was fixed in jdk 1.3.1_01

I am using JdK 1.3.1_01 I will have this problem?

Vanessa




__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



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




bug Java 1.3

2002-03-19 Thread vmfa

Hi,

I was reading this document:Working with the Jakarta NT
Service

I am working with tomcat 3.3a this document told about a
bug in Java 1.3

Notice for JDK 1.3 users: There is a known problem in
JDK 1.3 that affects Java applications being run as
Windows NT services. The bug causes the service to
terminate when the currently logged in user logs out.
The simplest way to work around this problem is to use
JDK 1.2. If your application requires JDK 1.3 features
then you may want to look into javaserv or JavaService .
Users have reported success with both of these packages
but there may be others that work as well.



I d like to know if this bug was fixed in jdk 1.3.1_01

I am using JdK 1.3.1_01 I will have this problem?

Vanessa




__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



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




IIS + Tomcat

2002-03-19 Thread Deepan Patel

How's it going? I'm trying to get Tomcat running on IIS 5.0. I have found
some stuff out there, but everyone has there or way of doing things. Can you
guys tell me what's the best practice for this is, or point me in the right
direction? 

 

Thank you very much,

 

Deepan Patel

Network / Systems Engineer

G1440, Inc.

Work: 410.423.3905

 




Re: Garbage showing up when trying to download a word doc in TC 4.0.1

2002-03-19 Thread David Cassidy

Mehjabin,

Don't know if you are using windows or Unix but ...

( works nicer in a unix term rather than windows telnet but ..)

easiest way to test this is to fake a web request. So

telnet hostname port

where hostname is your machine's name or IP address and the port is the port
on which you are running Tomcat.

Then ...

HEAD /path to word doc / servlet HTTP/1.0
return
return

Before you see lots of garbage you should get what everyone is talking 
about - the headers.

Let us know what the Content-type: header says

D





Kapasi, Mehjabin wrote:

Thanks Joel,
I have been trying what you said. I did not understand what you meant by 
Check the http headers you are sending for the download. There's a tool
forthis floating around somewhere I think. Compare the headers 3.2.1 sends
with the headers 4.0.1 sends.
How do I check that?

Here is the garbage that I get when i try to download the word documen.Sorry
for the long email but can you help me out here? I am not understanding
where to start looking for the problem.
Thanks,
Mehjabin

ÐÏࡱáþÿ
‹þÿÿÿ‰Š




ì¥ÁW
ø¿Âbjbjªyªy ŠdÈÈõÌÿÿÿÿÿÿl       4Ž 
®!®!®!hDZ´Ž
1v(#Æà$¦†%†%†%†%¢ (0,T3˜°u²u²u²u²u²u²u$Yx yzŒÖu 
ì4†%†%ì4ì4Öun:Â Â
†%†%ëun:n:n:ì4 †% †%°un:ì4°un:2n: A^¨jà  |q†%# 
€¿mÚBÁŽ
®!7ˆph|q4v01vðpŒ{,9B{|qn:ö XN @    Ù  SUBJECT \* MERGEFORMAT
ClassicsCD Web Shop title \* Mergeformat Vision Version 2.1 Revision
History DateRevisionDescriptionAuthor20/Oct/20011.0Initial VersionP
Murphy10/Nov/20012.0Updated based on Requirements WorkshopP
Murphy15/Nov/20012.1Editorial RevisionsS. Chandler
[contractor]
 Table of Contents TOC \o 1-3 1. Introduction  PAGEREF
_Toc523131581 \h 1 1.1 Purpose of the Vision Requirements Document (VRD)
 PAGEREF _Toc523131582 \h 1 1.2 Product Overview  PAGEREF _Toc523131583
\h 1 2. User Description  PAGEREF _Toc523131584 \h 1 2.1 User/Market
Demographics  PAGEREF _Toc523131585 \h 1 2.2 User Profiles  PAGEREF
_Toc523131586 \h 1 2.3 User Environment  PAGEREF _Toc523131587 \h 1
2.4 Key User Needs  PAGEREF _Toc523131588 \h 2 2.5 Alternatives and
Competition  ...




-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 9:51 PM
To: Kapasi, Mehjabin
Subject: Re: Garbage showing up when trying to download a word doc in TC
4.0.1


Kapasi, Mehjabin wrote (off list):

Subject: RE: Garbage showing up when trying to download a word doc in TC

4.0.1

Woops. I didn't read the title line well enough. I was thinking of text
files, which are a real pain to force downloads with.


(I haven't seen any follow-up on the list, and I have a moment to try to
respond again.)

The problem is i want it to show me the browser dialog instead of the
showing garbage on the page. I have tried it on different browsers on
different machines and it still gives me the same result. If I try

accessing

the webapp using Tomcat 3.2.1 using the same browser, the dialog shows up
but as soon as I use Tomcat 4.0.1 I get the problem.
What else can i do?


Check the http headers you are sending for the download. There's a tool for
this floating around somewhere I think. Compare the headers 3.2.1 sends with
the headers 4.0.1 sends.

But we would like more information, like a snippet of the code you are using
to send the .doc files, and a sample of the garbage that gets sent with TC
4.0.1, and also relevant server settings. Otherwise, we can only jump to
conclusions (like I did the first time).

You might also want to check whether you have something set to drop the high
bit and send only seven bits per octet, but I don't think so.

I apologize for the slow response. Had some work to do, you know. Anyway,
give us more information, and _post_ _to_ _the_ _list_. That way, other
people more qualified than I will be able respond.

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka


-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 7:39 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Garbage showing up when trying to download a word doc in TC
4.0.1


Kapasi, Mehjabin wrote:

However, when i click on the download icon I get garbage on the page

instead

of a browser dialog giving me options to save/open the document.

This is usually a browser settings related problem, not a Tomcat issue..

This problem i am experiencing when running Tomcat 4.0.1 with 

Re: Off Topic: Free J2EE IDE: Which one?

2002-03-19 Thread David Cassidy

I think when you want the J2EE bits for forte it costs :(

I'm just starting to get going into the EJB areana and so $1995 doesn't
seem very nice :(

D

Matt Egyhazy wrote:

i havent done ejb in forte community edition, however, it comes with tc 3.3
and you can debug servlets internally.  i have not tried remote debugging.

matt

- Original Message -
From: Bing Zhang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 11:34 AM
Subject: Off Topic: Free J2EE IDE: Which one?


I am trying to use a free IDE to do J2EE development, mainly servlet and
EJB. The development will be on Windows NT/2000. Deployment is on linux.
Three tools come to my mind: Forte Java Community Edition (I am supprised
that almost nobody mention this tool), Eclipse from IBM and NetBean.

I feel short time evaluation does not give me enough insight, though I

have

downloaded both Forte and Eclopse. Hope anyone ever used the above tools

in

real life give me some guidance. Any of the above tools let me debug

servlet

or even EJB locally? How about remotely? Any other server I need to set up
beside the IDE to effectively do J2EE?



Thanks,

Bing Zhang


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



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




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




TC4.0 mod_webapp make error w/apache_1.3.20

2002-03-19 Thread Mark Scott

Hi,

I've been able to get the configure to work
now the make process craps out with the error 
in the attached file...

Thanks

Mark 
[EMAIL PROTECTED]


webapp-module-1.0.1-tc401:! $ make
make[1]: Entering directory `/home/mascott/webapp-module-1.0.1-tc401'

make[1]: Entering directory lib
make[1]: Invoking make  build
make[2]: Entering directory `/home/mascott/webapp-module-1.0.1-tc401/lib'
/home/mascott/webapp-module-1.0.1-tc401/apr/libtool /usr/local/bin/gcc -static -g -O2  
-g -O2 -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  
-I/home/mascott/webapp-module-1.0.1-tc401/apr/include 
-I/home/mascott/webapp-module-1.0.1-tc401/include -c pr_warp.c
/usr/local/bin/gcc -g -O2 -g -O2 -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
-I/home/mascott/webapp-module-1.0.1-tc401/apr/include 
-I/home/mascott/webapp-module-1.0.1-tc401/include -c pr_warp.c -o pr_warp.o
/usr/ccs/bin/as: /var/tmp/cc0kz1FW.s, line 2842: error: unknown opcode .subsection
/usr/ccs/bin/as: /var/tmp/cc0kz1FW.s, line 2842: error: statement syntax
/usr/ccs/bin/as: /var/tmp/cc0kz1FW.s, line 2914: error: unknown opcode .previous
/usr/ccs/bin/as: /var/tmp/cc0kz1FW.s, line 2914: error: statement syntax
make[2]: *** [pr_warp.lo] Error 1
make[2]: Leaving directory `/home/mascott/webapp-module-1.0.1-tc401/lib'
make[1]: Exiting directory lib
make[1]: *** [template] Error 2
make[1]: Leaving directory `/home/mascott/webapp-module-1.0.1-tc401'
make: *** [lib-build] Error 2

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


Re: XML curiosities

2002-03-19 Thread Dr A.C. Marshall

Funnily enough (as it always is!) - we've been having problems with a
new version of xerces on the WBL project that I supervise. It just keeps
coming back with things that arent wrong - for example, it claims an
entity isnt defined when it quite plainly is (and the other entities in
the same file are OK, and also theres an attempt to load local.ent by
uising a relative path not an absolute**. the relative path is something
like

../../../../../../../../ents/lusid.ent

the parser claims that the file

/lusid/uk/ac/liv/pages/test/../../ents/lusid.ent

doesnt exist - well I know it doesnt thats why the path is pointing else
where - it just seems to ignore the first part of the path. Got no idea
at all what is going on - it works fine with abs paths - can the parser
be full of bugs?

What is the line which is supposed to be causing problems in cqdefs?

Adam

** that reminds me the liverpool page tree that I sent had absolute
paths to the ents files so they wont be found on your server - sorry!
On Tue, 19 Mar 2002, John Wadkin wrote:

|All,
|
|A few XML issues. Firstly, I wrongly put this in server.xml:
|
|Valve classname=org.apache.catalina.valves.RemoteAddrValve
| allow=ip address, ip address /
|
|Instead of seeing a SAX parse exception or similar, this appeared in
|catalina.out:
|
|ERROR reading /usr/local/tomcat/conf/server.xml
|At Line 29 /Server/Service/Engine/Host/Context/Valve/
|classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*,
|194.164.*
|
|Catalina.start: java.lang.NullPointerException
|java.lang.NullPointerException
|   at java.lang.Class.forName0(Native Method)
|   at java.lang.Class.forName0(Compiled Code)
|   at java.lang.Class.forName(Compiled Code)
|   at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code)
|   at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code)
|   at
|org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
|   at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
|   at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
|   at
|org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
|Code)
|   at
|org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
|   at
|org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co
|mpiled Code)
|   at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
|Code)
|   at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
|   at
|org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
|   at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
|   at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
|   at
|org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
|   at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
|   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
|   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
|   at java.lang.reflect.Method.invoke(Native Method)
|   at java.lang.reflect.Method.invoke(Compiled Code)
|   at org.apache.catalina.startup.Bootstrap.main(Compiled Code)
|
|Is this behaviour correct? It's very misleading - took me a while to work
|out what was wrong!
|
|Secondly, I changed the parser in common/lib to Xerces 2 - the two jar
|files. I expected TomCat to break, but it worked fine. However, the new
|parser reported that an XML document wasn't well-formed. I didn't think
|upgrading a parser would change the status of an XML document from OK to
|not OK! What gives? Is the latest version of Xerces more strict?
|
|Solaris 8
|Tomcat 4.0.1
|Apache 1.3
|mod_webapp 1
|
|Thanks,
|
|John
|

-- 
   Dr AC Marshall ([EMAIL PROTECTED]). LUSID System Programmer,
   Centre for Lifelong Learning, University of Liverpool.

   Cheese of the Millenium: Quejo con Piri Piri

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.


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




Re: question about tomcat configuration

2002-03-19 Thread Cheng Yan

Christopher,

I have not tried to set up a connector with apache yet. I don't even know
how. And I don't know exactly the differences between apache and tomcat. My
impression is that they both are web servers and tomcat can interpret jsp
while apache can not. That's all I know. I just want to gain some
experiences on both apache and tomcat. Actually, I have been writing codes
under apache for quite some time. But I am really new to tomcat.

Please tell me how to set up a connector with apache and tomcat.

Thanks,

CY
- Original Message -
From: Christopher Bare [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Cheng Yan
[EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 13:55
Subject: Re: question about tomcat configuration



 --- Cheng Yan [EMAIL PROTECTED] wrote:
  Hi, all,
 
  I just installed tomcat 4.0 binary on my Solaris 8
  box at home. This Solaris
  machine is connected to my w2k pc through a linksys
  router, which is
  connected to a cable modem.


 I'm a beginner, but we have very similar setups, so
 maybe we can help each other. I have Solaris8 on a DSL
 router. I'm trying to use Tomcat4, apache1.3, with
 mod_webapp.

 Have you tried to set up a connector with apache?
 There are two that I know of, mod_jk and mod_webapp. I
 am using mod_webapp, but am having probablems, so I'm
 thinking of switching.

 Have you tried integrating Tomcat with Apache yet, or
 are you just using tomcat by itself? I have Tomcat
 working by itself and mostly working with Apache via
 mod_webapp.

 -Chris


 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.com/

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



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




Re: question about tomcat configuration

2002-03-19 Thread Cheng Yan

Hi, all,

Can someone kindly show me how to configure tomcat so that I can visit
http://localhost:8080/index.html  from any other machine than the one where
tomcat resides?

What changes should make in $CATALINA_HOME/conf/server.xml? Could someone
send his/her modified server.xml to me, please?

Many thanks,

CY

- Original Message -
From: Cheng Yan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 15, 2002 23:27
Subject: question about tomcat configuration


 Hi, all,

 I just installed tomcat 4.0 binary on my Solaris 8 box at home. This
Solaris
 machine is connected to my w2k pc through a linksys router, which is
 connected to a cable modem.

 After I started tomcat, I can visit http://localhost:8080/index.html only
 from the same workstation, but not from my pc. I understand this is
because
 the settings in $CATALINA_HOME/conf/server.xml. Could someone tell me how
to
 reconfigure this baby so that TOMCAT will point to a different location?
The
 different means that it does not point to the default page:
 $CATALINA_HOME/webapps/ROOT/index.html. Or better yet, can I reconfigure
it
 to point to $HOME/public_html, where apache server has already pointed to?

 I know I must set up somethings in $CATALINA_HOME/conf/server.xml. But I
am
 not sure how. Could someone show me step by step?

 BTW, I have configured apache on this station. I can already visit
 http://192.168.1.100/~myUnixID.

 Thanks.


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



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




Re: JNDIRealm with bind as user functionality

2002-03-19 Thread Craig R. McClanahan



On Tue, 19 Mar 2002, Jonathan Eric Miller wrote:

 Date: Tue, 19 Mar 2002 12:40:55 -0600
 From: Jonathan Eric Miller [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  Jonathan Eric Miller [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: JNDIRealm with bind as user functionality

 Thanks for the info. Can you tell me where I would download it from? So,
 you're saying it would be in a directory other than the following?

 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/


This is indeed the directory for nightly builds of the HEAD branch of
Tomcat 4 (including the updated JNDIRealm).  Over the last few days,
changes in build processes of some of the dependencies weren't yet
reflected in the build process for the nightly builds.  I just fixed that,
and uploaded a 20020319 version of the nightly build of Tomcat 4, in the
directory cited above.  Source bundles are in the src subdirectory below
it.

 Thanks, Jon

Craig


 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]; Jonathan Eric
 Miller [EMAIL PROTECTED]
 Sent: Friday, March 15, 2002 5:14 PM
 Subject: Re: JNDIRealm with bind as user functionality


 
 
  On Fri, 15 Mar 2002, Jonathan Eric Miller wrote:
 
   Date: Fri, 15 Mar 2002 15:36:09 -0600
   From: Jonathan Eric Miller [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED],
Jonathan Eric Miller [EMAIL PROTECTED]
   To: Tomcat User List [EMAIL PROTECTED]
   Subject: JNDIRealm with bind as user functionality
  
   Does anyone know if JNDIRealm is going to be fixed up anytime soon so
 that
   the bind as user functionality is in there?
  
   I know someone had a patch for this. I'm wondering if that patch is
 going to
   be integrated into the main distribution.
  
 
  Interesting timing ... I committed the patch a couple of hours ago :-).
 
  It will be in tonight's nightly build, which runs off the HEAD branch.
  Seeing as how it is an enhancement, it may or may not get added into the
  4.0 branch (which is focused on bug fixes, while new features get put into
  the following release).  In theory, the new JNDIRealm class should work in
  a 4.0.x environment, but I haven't tested it that way.
 
   Jon
  
 
  Craig
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




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




Re: XML curiosities

2002-03-19 Thread Craig R. McClanahan



On Tue, 19 Mar 2002, John Wadkin wrote:

 Date: Tue, 19 Mar 2002 17:22:47 -
 From: John Wadkin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
 Subject: XML curiosities

 All,

 A few XML issues. Firstly, I wrongly put this in server.xml:

 Valve classname=org.apache.catalina.valves.RemoteAddrValve
  allow=ip address, ip address /

 Instead of seeing a SAX parse exception or similar, this appeared in
 catalina.out:


I agree that the error message below is less than helpful, but why did you
expect an XML parsing error?  It looks like you have valid XML syntax.
What was wrong that you finally found and fixed?

Craig


 ERROR reading /usr/local/tomcat/conf/server.xml
 At Line 29 /Server/Service/Engine/Host/Context/Valve/
 classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*,
 194.164.*

 Catalina.start: java.lang.NullPointerException
 java.lang.NullPointerException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName0(Compiled Code)
   at java.lang.Class.forName(Compiled Code)
   at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code)
   at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code)
   at
 org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
   at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
   at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
   at
 org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
 Code)
   at
 org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
   at
 org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co
 mpiled Code)
   at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
 Code)
   at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
   at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
   at
 org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at java.lang.reflect.Method.invoke(Native Method)
   at java.lang.reflect.Method.invoke(Compiled Code)
   at org.apache.catalina.startup.Bootstrap.main(Compiled Code)

 Is this behaviour correct? It's very misleading - took me a while to work
 out what was wrong!

 Secondly, I changed the parser in common/lib to Xerces 2 - the two jar
 files. I expected TomCat to break, but it worked fine. However, the new
 parser reported that an XML document wasn't well-formed. I didn't think
 upgrading a parser would change the status of an XML document from OK to
 not OK! What gives? Is the latest version of Xerces more strict?

 Solaris 8
 Tomcat 4.0.1
 Apache 1.3
 mod_webapp 1

 Thanks,

 John

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




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




Figuring out which Unix process is which

2002-03-19 Thread Yoav Shapira

Hi,
We run multiple instance of tomcat using the same JAVA_HOME,
so when we run a ps command (Solaris 2.8) we see a bunch
of java processes, but can't tell which one is which instance
of tomcat.  Does anyone have any ideas to help this problem?

It's not possible for us to run the processes as different 
users, and the path is too long for the different CATALINA_OPTS
to show through.  

I realize this may be more of a Unix question, but if anyone
has suggestions, I'll be glad to hear them.  Thanks in advance,

Yoav Shapira
Millennium Pharmaceuticals

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




Re: HELP! Tomcat startup error

2002-03-19 Thread matt


Looks like you don't have xerces-j installed. You can download it here:

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

Make sure the xerces.jar file is in your classpath. $CATALINA_HOME/lib is a good place.

Matt

 Hi,
 
 Here is a debug of my startup.  Could someone please help me??
 
 C:\catalina run -debug
 Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
 Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\common\clas
 ses
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\n
 aming-common.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\n
 aming-resources.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\s
 ervlet.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\t
 ools.jar
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\server\clas
 ses
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\c
 atalina.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\j
 akarta-regexp-1.2.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-common.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-default.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-invoker.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-manager.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-snoop.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-webdav.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\t
 omcat-ajp.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\t
 omcat-util.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\w
 arp.jar
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT 4.0\classes
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\jasper-c
 ompiler.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\jasper-r
 untime.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\naming-f
 actory.jar
 Bootstrap: Loading startup class
 Bootstrap: Setting startup class properties
 Bootstrap: Calling startup class process() method
 Exception during startup processing
 java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
 org
 /xml/sax/HandlerBase
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
 1)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at
 org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
 sLoader.java:674)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
 sLoader.java:1093)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
 sLoader.java:992)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at
 org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:
 280)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
 thanks,
 Will
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



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




Problem with Tomcat and Apache

2002-03-19 Thread Philip M. Meier

Hello,

I'm using Tomcat 4.0.2 and Apache 1.3.20 connected with mod_webapp. I want
to configure it Apache, that every request for a jsp-page or a servlet will
be redirected to tomcat and the rest will be parsed by Apache! How to do
that?

WepAppDeploy /home/www/userxxx/html conn /   does not work and everything is
handled by Tomcat...

Thanks in advance,
Philip M. Meier


Philip M. Meier [EMAIL PROTECTED]
AmambaSoft http://www.amambasoft.com


Diese E-Mail Nachricht und alle beigefügten Anlagen sind nur für die
Adresse bestimmt, an die sie geschickt wurde und kann vertrauliche und
privilegierte Informationen enthalten. Wenn der Leser dieser Meldung  nicht
der beabsichtigte Empfänger ist, ist jegliche Weitergabe der enthaltenen
Informationen streng verboten. Wenn Sie diese Meldung irrtümlicherweise
empfangen haben, benachrichtigen Sie uns bitte sofort und löschen Sie die
Meldungvon Ihrem System.

- Original Message -
From: John Wadkin [EMAIL PROTECTED]
To: 'Dr A.C. Marshall' [EMAIL PROTECTED]
Cc: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 8:33 PM
Subject: RE: XML curiosities


 Adam,

 I'm not entirely certain why XML is so popular. XML tools are thin on the
 ground, as is any decipherable information. The spec's make little sense -
 borderline gibberish. I've tried making the XML files you refer to more
 well formed but all I get is more errors! I've tried using references of
 the nature http://somesite; rather than URI's that are absolute or system
 dependant - more errors. Does my head in - I'll stick to theoretical
physics
 :)

 The setup with LUSID (a servlet) is that there are a series of .ent files
 containing entity reference. Each entity file might also use other entity
 files. The xml documents that LUSID uses, use the DTD and the entity
files.
 I've not found *anywhere* where it says that this is valid or possible.
It
 does work with Xerces 1 but not 2.

 Thanks,

 John


 -Original Message-
 From: Dr A.C. Marshall [mailto:[EMAIL PROTECTED]]
 Sent: 19 March 2002 17:33
 To: John Wadkin
 Cc: Tomcat Users List (E-mail)
 Subject: Re: XML curiosities


 Funnily enough (as it always is!) - we've been having problems with a
 new version of xerces on the WBL project that I supervise. It just keeps
 coming back with things that arent wrong - for example, it claims an
 entity isnt defined when it quite plainly is (and the other entities in
 the same file are OK, and also theres an attempt to load local.ent by
 uising a relative path not an absolute**. the relative path is something
 like

 ../../../../../../../../ents/lusid.ent

 the parser claims that the file

 /lusid/uk/ac/liv/pages/test/../../ents/lusid.ent

 doesnt exist - well I know it doesnt thats why the path is pointing else
 where - it just seems to ignore the first part of the path. Got no idea
 at all what is going on - it works fine with abs paths - can the parser
 be full of bugs?

 What is the line which is supposed to be causing problems in cqdefs?

 Adam

 ** that reminds me the liverpool page tree that I sent had absolute
 paths to the ents files so they wont be found on your server - sorry!
 On Tue, 19 Mar 2002, John Wadkin wrote:

 |All,
 |
 |A few XML issues. Firstly, I wrongly put this in server.xml:
 |
 |Valve classname=org.apache.catalina.valves.RemoteAddrValve
 | allow=ip address, ip address /
 |
 |Instead of seeing a SAX parse exception or similar, this appeared in
 |catalina.out:
 |
 |ERROR reading /usr/local/tomcat/conf/server.xml
 |At Line 29 /Server/Service/Engine/Host/Context/Valve/
 |classname=org.apache.catalina.valves.RemoteAddrValve allow=161.112.*,
 |194.164.*
 |
 |Catalina.start: java.lang.NullPointerException
 |java.lang.NullPointerException
 | at java.lang.Class.forName0(Native Method)
 | at java.lang.Class.forName0(Compiled Code)
 | at java.lang.Class.forName(Compiled Code)
 | at org.apache.catalina.util.xml.ObjectCreate.start(Compiled Code)
 | at org.apache.catalina.util.xml.XmlMapper.matchStart(Compiled Code)
 | at
 |org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
 | at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code)
 | at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
 | at

|org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
 |Code)
 | at
 |org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled Code)
 | at

|org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(C
 o
 |mpiled Code)
 | at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
 |Code)
 | at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 | at
 |org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 | at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 | at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
 | at
 |org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
 | at 

RE: HELP! Tomcat startup error

2002-03-19 Thread Kwan, William

I figured it out.  I needed jdk1.4 because there are extra classes being
called in tomcat 4.03.

talk to you later,
Will


-Original Message-
From: Kwan, William [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:54 AM
To: Tomcat user (E-mail)
Subject: HELP! Tomcat startup error


Hi,

Here is a debug of my startup.  Could someone please help me??

C:\catalina run -debug
Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
ClassLoaderFactory:  Creating new class loader
ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
4.0\common\clas
ses
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\n
aming-common.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\n
aming-resources.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\s
ervlet.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\common\lib\t
ools.jar
ClassLoaderFactory:  Creating new class loader
ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
4.0\server\clas
ses
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\c
atalina.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\j
akarta-regexp-1.2.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-common.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-default.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-invoker.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-manager.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-snoop.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\s
ervlets-webdav.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\t
omcat-ajp.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\t
omcat-util.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\server\lib\w
arp.jar
ClassLoaderFactory:  Creating new class loader
ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT 4.0\classes
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\lib\jasper-c
ompiler.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\lib\jasper-r
untime.jar
ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
4.0\lib\naming-f
actory.jar
Bootstrap: Loading startup class
Bootstrap: Setting startup class properties
Bootstrap: Calling startup class process() method
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
org
/xml/sax/HandlerBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
sLoader.java:674)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:1093)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:992)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at
org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:
280)
at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

thanks,
Will


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

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




Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-19 Thread JavaJosh

Hello,

Tomcat 4.0.3 is apparently not reloading a recompiled servlet. According
to the docs, this should be the default behavior.

Interestingly, it WILL load a new servlet.

I have 2 questions, of the where's my fish sort and of the how do I
fish sort.

Where's my fish: why isn't Tomcat reloading my changed servlet? I have
verified that the class file has changed by checking the timestamp, so
I'm pretty sure it's not a build problem.

How do I fish: what is a reasonable way to troubleshoot this problem?

While I would love to have a fish right now, I am perfectly willing to
learn how to fish and catch my own.

Some fishing I've already done:
1) tried restarting tomcat. Picks up the new class!
2) tried restarting the browser. No go.
3) examined the tomcat logs. Nothing interesting.
4) examined the servlet class file in the webapps dir. Yup, it sure
changed.
5) tried adding a second servlet. Tomcat picks it up!
6) tried changing the second servlet. No go.

I *suspect* that in the murky depths of this problem swims an enormous
caching flounder. Is its name Tomcat 4.0.3? Is it IE 5? Either way, I
want to hook it, filet it, and have it for dinner tonight.

Thanks for your help,
Josh Rehman

Here are some more facts for you:
Hardware: Dell Inspiron 7000 Laptop - P2-366 256M/10G
OS: MS Windows 2000 (NT5) Professional SP2 1024x768x64k
Java: Sun J2SE 1.3.1_01 - c:\java\jdk131
Tomcat: 4.0.3 - c:\java\jakarta-tomcat-4.0.3
%CATALINA_HOME%\conf\web.xml is stock
%CATALINA_HOME%\conf\server.xml is stock
Environment variables: 
CATALINA_HOME=C:\java\jakarta-tomcat-4.0.3
JAVA_HOME=c:\java\jdk131_01
JIKES_HOME=c:\java\jikes114
ANT_HOME=c:\java\ant14
Project organization:
Deploy root: %CATALINA_HOME%\webapps\tomcat40
\WEB-INF\web.xml
\WEB-INF\classes\joshbrain\tomcat40\FirstServlet.class
\WEB-INF\classes\joshbrain\tomcat40\SecondServlet.class

Contents of web.xml:
!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameTomcat 4.0.3 Evaluation Application/display-name

description
  This is version 1.0 of a simple evaluation application 
  written by Josh Rehman ([EMAIL PROTECTED]).
/description

context-param
  param-namewebmaster/param-name
  param-value[EMAIL PROTECTED]/param-value
  description
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
  /description
/context-param

servlet
  servlet-namefirst/servlet-name
  servlet-classjoshbrain.tomcat.FirstServlet/servlet-class
/servlet

servlet
  servlet-namesecond/servlet-name
  servlet-classjoshbrain.tomcat.SecondServlet/servlet-class
/servlet

servlet-mapping
  servlet-namefirst/servlet-name
  url-pattern/first/url-pattern
/servlet-mapping

servlet-mapping
  servlet-namesecond/servlet-name
  url-pattern/second/url-pattern
/servlet-mapping

session-config
  session-timeout30/session-timeout!-- 30 minutes --
/session-config

/web-app

Contents of FirstServlet.java (SecondServlet similar):
/*
 * FirstServlet.java
 *
 * Created on March 18, 2002, 4:56 PM
 */

package joshbrain.tomcat;

import javax.servlet.*;
import javax.servlet.http.*;

/**
 *
 * @author  Josh Rehman
 * @version
 */
public class FirstServlet extends HttpServlet
{
public void init(ServletConfig config) throws ServletException
{
super.init(config);

}
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, java.io.IOException
{
response.setContentType(text/html);
java.io.PrintWriter out = response.getWriter();
out.println(html);
out.println(head);
out.println(titleServlet/title);
out.println(/head);
out.println(body);
out.println(bThis is the string that will change!/b);
out.println(/body);
out.println(/html);

out.close();
}

protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException
{
processRequest(request, response);
}

protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, java.io.IOException
{
processRequest(request, response);
}
}

My ant build script:

project name=Tomcat 4.0.3 Evaluation default=compile basedir=.


  property file=build.properties/
  property file=${user.home}/build.properties/


  property name=app.name  value=tomcat40/
  property name=app.version   value=1.0/
  property name=build.homevalue=build/
  !--property name=catalina.home value=../../../../  UPDATE THIS!
--
  property name=deploy.home

RE: HELP! Tomcat startup error

2002-03-19 Thread Andy Eastham

William,

Try renaming the tomcat directory so that it has no spaces in it.  This
usually breaks anything written in java.

Andy

 -Original Message-
 From: Kwan, William [mailto:[EMAIL PROTECTED]]
 Sent: 19 March 2002 19:54
 To: Tomcat user (E-mail)
 Subject: HELP! Tomcat startup error


 Hi,

 Here is a debug of my startup.  Could someone please help me??

 C:\catalina run -debug
 Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
 Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\common\clas
 ses
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\n
 aming-common.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\n
 aming-resources.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\s
 ervlet.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\t
 ools.jar
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\server\clas
 ses
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\c
 atalina.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\j
 akarta-regexp-1.2.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-common.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-default.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-invoker.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-manager.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-snoop.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-webdav.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\t
 omcat-ajp.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\t
 omcat-util.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\w
 arp.jar
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\classes
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\jasper-c
 ompiler.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\jasper-r
 untime.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\naming-f
 actory.jar
 Bootstrap: Loading startup class
 Bootstrap: Setting startup class properties
 Bootstrap: Calling startup class process() method
 Exception during startup processing
 java.lang.reflect.InvocationTargetException:
 java.lang.NoClassDefFoundError:
 org
 /xml/sax/HandlerBase
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
 1)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at
 org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
 sLoader.java:674)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
 sLoader.java:1093)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
 sLoader.java:992)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at
 org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:
 280)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

 thanks,
 Will


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





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




Re: Off Topic: Free J2EE IDE: Which one?

2002-03-19 Thread Mark

I've been using JDeveloper 9i (free) from Oracle.  I like it MUCH better
than VA Java and has some very nice features.  Here's some info...

http://www.sys-con.com/java/article2arick.cfm?id=1247count=3702tot=3page=2


At 12:37 PM 3/19/2002 -0500, you wrote:
i havent done ejb in forte community edition, however, it comes with tc 3.3
and you can debug servlets internally.  i have not tried remote debugging.

matt

- Original Message -
From: Bing Zhang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 11:34 AM
Subject: Off Topic: Free J2EE IDE: Which one?


 I am trying to use a free IDE to do J2EE development, mainly servlet and
 EJB. The development will be on Windows NT/2000. Deployment is on linux.
 Three tools come to my mind: Forte Java Community Edition (I am supprised
 that almost nobody mention this tool), Eclipse from IBM and NetBean.

 I feel short time evaluation does not give me enough insight, though I
have
 downloaded both Forte and Eclopse. Hope anyone ever used the above tools
in
 real life give me some guidance. Any of the above tools let me debug
servlet
 or even EJB locally? How about remotely? Any other server I need to set up
 beside the IDE to effectively do J2EE?



 Thanks,

 Bing Zhang


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



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



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




Re: Figuring out which Unix process is which

2002-03-19 Thread Cheng Yan

Try this:

% ps -ef | grep jre | grep java.endorsed


- Original Message - 
From: Yoav Shapira [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 15:52
Subject: Figuring out which Unix process is which


 Hi,
 We run multiple instance of tomcat using the same JAVA_HOME,
 so when we run a ps command (Solaris 2.8) we see a bunch
 of java processes, but can't tell which one is which instance
 of tomcat.  Does anyone have any ideas to help this problem?
 
 It's not possible for us to run the processes as different 
 users, and the path is too long for the different CATALINA_OPTS
 to show through.  
 
 I realize this may be more of a Unix question, but if anyone
 has suggestions, I'll be glad to hear them.  Thanks in advance,
 
 Yoav Shapira
 Millennium Pharmaceuticals
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




RE: Figuring out which Unix process is which

2002-03-19 Thread Andy Eastham

Yoav,

You could try making differently named links to the java command, then edit
your startup files so that each tomcat instance uses a different link to the
java command?

Andy

 -Original Message-
 From: Yoav Shapira [mailto:[EMAIL PROTECTED]]
 Sent: 19 March 2002 20:52
 To: [EMAIL PROTECTED]
 Subject: Figuring out which Unix process is which


 Hi,
 We run multiple instance of tomcat using the same JAVA_HOME,
 so when we run a ps command (Solaris 2.8) we see a bunch
 of java processes, but can't tell which one is which instance
 of tomcat.  Does anyone have any ideas to help this problem?

 It's not possible for us to run the processes as different
 users, and the path is too long for the different CATALINA_OPTS
 to show through.

 I realize this may be more of a Unix question, but if anyone
 has suggestions, I'll be glad to hear them.  Thanks in advance,

 Yoav Shapira
 Millennium Pharmaceuticals

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





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




RE: HELP! Tomcat startup error

2002-03-19 Thread Kwan, William

Thanks Matt.  That made me realize I downloaded the light version.  I
downloaded the full version and it works great.

Will


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 7:04 AM
To: [EMAIL PROTECTED]
Subject: Re: HELP! Tomcat startup error



Looks like you don't have xerces-j installed. You can download it here:

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

Make sure the xerces.jar file is in your classpath. $CATALINA_HOME/lib is a
good place.

Matt

 Hi,
 
 Here is a debug of my startup.  Could someone please help me??
 
 C:\catalina run -debug
 Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
 Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
 Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\common\clas
 ses
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\n
 aming-common.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\n
 aming-resources.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\s
 ervlet.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\common\lib\t
 ools.jar
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
 4.0\server\clas
 ses
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\c
 atalina.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\j
 akarta-regexp-1.2.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-common.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-default.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-invoker.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-manager.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-snoop.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\s
 ervlets-webdav.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\t
 omcat-ajp.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\t
 omcat-util.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\server\lib\w
 arp.jar
 ClassLoaderFactory:  Creating new class loader
 ClassLoaderFactory:Including directory C:\JAVA\APACHE TOMCAT
4.0\classes
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\jasper-c
 ompiler.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\jasper-r
 untime.jar
 ClassLoaderFactory:Including jar file C:\JAVA\APACHE TOMCAT
 4.0\lib\naming-f
 actory.jar
 Bootstrap: Loading startup class
 Bootstrap: Setting startup class properties
 Bootstrap: Calling startup class process() method
 Exception during startup processing
 java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError:
 org
 /xml/sax/HandlerBase
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
 1)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at
 org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
 sLoader.java:674)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
 sLoader.java:1093)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
 sLoader.java:992)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at
 org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:
 280)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
 thanks,
 Will
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



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

Struggling for one week please Help Help..................

2002-03-19 Thread Uma Munugala

Hi


I have written a servlet which implements SingleThreadModel
and used already existing public static syncronized classes to access
database.
these classes were used for standalone application.
does static synchronized has any problem with servlets

when I deployment my servlet and try to  run it gives me error, its stack
trace is below.

when login reaches to access static synchronized class member or static
synchronized class method Iam getting
problem.

Funny thing is sames servlet and same code works in java web server. Do I
need to do some thing else in
tomcat 4.0.4-b1 to make it work. I tried with tomcat 4.0.3 also.
I have seen similar problem in archives but that work around does not work
for me.

__  Error _

javax.servlet.ServletException: Invoker service() exception
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:508)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1017)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1115
)
at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal
Variable name )
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at

RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-19 Thread Dahnke, Eric


If there is a JSP page either calling the servlet or the servlet includes or
forward to a JSP page, you may want to try to touch *.jsp in the dirs
containing the jsps.

HTH

-Original Message-
From: JavaJosh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 4:08 PM
To: [EMAIL PROTECTED]
Subject: Where's my fish? How do I go fishing? (Tomcat 4.0)


Hello,

Tomcat 4.0.3 is apparently not reloading a recompiled servlet. According
to the docs, this should be the default behavior.

Interestingly, it WILL load a new servlet.

I have 2 questions, of the where's my fish sort and of the how do I
fish sort.

Where's my fish: why isn't Tomcat reloading my changed servlet? I have
verified that the class file has changed by checking the timestamp, so
I'm pretty sure it's not a build problem.

How do I fish: what is a reasonable way to troubleshoot this problem?

While I would love to have a fish right now, I am perfectly willing to
learn how to fish and catch my own.

Some fishing I've already done:
1) tried restarting tomcat. Picks up the new class!
2) tried restarting the browser. No go.
3) examined the tomcat logs. Nothing interesting.
4) examined the servlet class file in the webapps dir. Yup, it sure
changed.
5) tried adding a second servlet. Tomcat picks it up!
6) tried changing the second servlet. No go.

I *suspect* that in the murky depths of this problem swims an enormous
caching flounder. Is its name Tomcat 4.0.3? Is it IE 5? Either way, I
want to hook it, filet it, and have it for dinner tonight.

Thanks for your help,
Josh Rehman

Here are some more facts for you:
Hardware: Dell Inspiron 7000 Laptop - P2-366 256M/10G
OS: MS Windows 2000 (NT5) Professional SP2 1024x768x64k
Java: Sun J2SE 1.3.1_01 - c:\java\jdk131
Tomcat: 4.0.3 - c:\java\jakarta-tomcat-4.0.3
%CATALINA_HOME%\conf\web.xml is stock
%CATALINA_HOME%\conf\server.xml is stock
Environment variables: 
CATALINA_HOME=C:\java\jakarta-tomcat-4.0.3
JAVA_HOME=c:\java\jdk131_01
JIKES_HOME=c:\java\jikes114
ANT_HOME=c:\java\ant14
Project organization:
Deploy root: %CATALINA_HOME%\webapps\tomcat40
\WEB-INF\web.xml
\WEB-INF\classes\joshbrain\tomcat40\FirstServlet.class
\WEB-INF\classes\joshbrain\tomcat40\SecondServlet.class

Contents of web.xml:
!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameTomcat 4.0.3 Evaluation Application/display-name

description
  This is version 1.0 of a simple evaluation application 
  written by Josh Rehman ([EMAIL PROTECTED]).
/description

context-param
  param-namewebmaster/param-name
  param-value[EMAIL PROTECTED]/param-value
  description
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
  /description
/context-param

servlet
  servlet-namefirst/servlet-name
  servlet-classjoshbrain.tomcat.FirstServlet/servlet-class
/servlet

servlet
  servlet-namesecond/servlet-name
  servlet-classjoshbrain.tomcat.SecondServlet/servlet-class
/servlet

servlet-mapping
  servlet-namefirst/servlet-name
  url-pattern/first/url-pattern
/servlet-mapping

servlet-mapping
  servlet-namesecond/servlet-name
  url-pattern/second/url-pattern
/servlet-mapping

session-config
  session-timeout30/session-timeout!-- 30 minutes --
/session-config

/web-app

Contents of FirstServlet.java (SecondServlet similar):
/*
 * FirstServlet.java
 *
 * Created on March 18, 2002, 4:56 PM
 */

package joshbrain.tomcat;

import javax.servlet.*;
import javax.servlet.http.*;

/**
 *
 * @author  Josh Rehman
 * @version
 */
public class FirstServlet extends HttpServlet
{
public void init(ServletConfig config) throws ServletException
{
super.init(config);

}
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, java.io.IOException
{
response.setContentType(text/html);
java.io.PrintWriter out = response.getWriter();
out.println(html);
out.println(head);
out.println(titleServlet/title);
out.println(/head);
out.println(body);
out.println(bThis is the string that will change!/b);
out.println(/body);
out.println(/html);

out.close();
}

protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException
{
processRequest(request, response);
}

protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, java.io.IOException
{
processRequest(request, response);
}
}

My ant build script:

project name=Tomcat 

Re: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-19 Thread Peter Wieland

Hello,

I just started fishing some weeks ago and I had similar difficulties.

I don't know if there is an elegant way to catch some nice fish, but I can
explain you the way I got it to work. I think it is a problem of Tomcats
caches. (Not really a problem, because once an application is developped,
the servlets won't change very often).

Tomcat has a ${tomcat-home}\work directory, were it keeps many files of wich
I do not really understand very much. But it happens that after I deleted
this directory (or a relevant subpath - for tomcat 3.2 this is something
like work\localhost_8080%2Fmyapplication), my changes to servlets were
visible. Sometimes a simple restart helped, too.

All this fishing experiance was done with Tomcat 3.3 and 3.2 but I think it
should be similar with Tomcat 4.

Have a fine fish meal.

Peter

 Hello,

 Tomcat 4.0.3 is apparently not reloading a recompiled servlet. According
 to the docs, this should be the default behavior.

 Interestingly, it WILL load a new servlet.

 I have 2 questions, of the where's my fish sort and of the how do I
 fish sort.

 Where's my fish: why isn't Tomcat reloading my changed servlet? I have
 verified that the class file has changed by checking the timestamp, so
 I'm pretty sure it's not a build problem.

 How do I fish: what is a reasonable way to troubleshoot this problem?

 While I would love to have a fish right now, I am perfectly willing to
 learn how to fish and catch my own.

 Some fishing I've already done:
 1) tried restarting tomcat. Picks up the new class!
 2) tried restarting the browser. No go.
 3) examined the tomcat logs. Nothing interesting.
 4) examined the servlet class file in the webapps dir. Yup, it sure
 changed.
 5) tried adding a second servlet. Tomcat picks it up!
 6) tried changing the second servlet. No go.

 I *suspect* that in the murky depths of this problem swims an enormous
 caching flounder. Is its name Tomcat 4.0.3? Is it IE 5? Either way, I
 want to hook it, filet it, and have it for dinner tonight.

 Thanks for your help,
 Josh Rehman

 Here are some more facts for you:
 Hardware: Dell Inspiron 7000 Laptop - P2-366 256M/10G
 OS: MS Windows 2000 (NT5) Professional SP2 1024x768x64k
 Java: Sun J2SE 1.3.1_01 - c:\java\jdk131
 Tomcat: 4.0.3 - c:\java\jakarta-tomcat-4.0.3
   %CATALINA_HOME%\conf\web.xml is stock
   %CATALINA_HOME%\conf\server.xml is stock
 Environment variables:
   CATALINA_HOME=C:\java\jakarta-tomcat-4.0.3
   JAVA_HOME=c:\java\jdk131_01
   JIKES_HOME=c:\java\jikes114
   ANT_HOME=c:\java\ant14
 Project organization:
   Deploy root: %CATALINA_HOME%\webapps\tomcat40
   \WEB-INF\web.xml
   \WEB-INF\classes\joshbrain\tomcat40\FirstServlet.class
   \WEB-INF\classes\joshbrain\tomcat40\SecondServlet.class

 Contents of web.xml:
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 display-nameTomcat 4.0.3 Evaluation Application/display-name

 description
   This is version 1.0 of a simple evaluation application
   written by Josh Rehman ([EMAIL PROTECTED]).
 /description

 context-param
   param-namewebmaster/param-name
   param-value[EMAIL PROTECTED]/param-value
   description
 The EMAIL address of the administrator to whom questions
 and comments about this application should be addressed.
   /description
 /context-param

 servlet
   servlet-namefirst/servlet-name
   servlet-classjoshbrain.tomcat.FirstServlet/servlet-class
 /servlet

 servlet
   servlet-namesecond/servlet-name
   servlet-classjoshbrain.tomcat.SecondServlet/servlet-class
 /servlet

 servlet-mapping
   servlet-namefirst/servlet-name
   url-pattern/first/url-pattern
 /servlet-mapping

 servlet-mapping
   servlet-namesecond/servlet-name
   url-pattern/second/url-pattern
 /servlet-mapping

 session-config
   session-timeout30/session-timeout!-- 30 minutes --
 /session-config

 /web-app

 Contents of FirstServlet.java (SecondServlet similar):
 /*
  * FirstServlet.java
  *
  * Created on March 18, 2002, 4:56 PM
  */

 package joshbrain.tomcat;

 import javax.servlet.*;
 import javax.servlet.http.*;

 /**
  *
  * @author  Josh Rehman
  * @version
  */
 public class FirstServlet extends HttpServlet
 {
 public void init(ServletConfig config) throws ServletException
 {
 super.init(config);

 }
 protected void processRequest(HttpServletRequest request,
 HttpServletResponse response)
 throws ServletException, java.io.IOException
 {
 response.setContentType(text/html);
 java.io.PrintWriter out = response.getWriter();
 out.println(html);
 out.println(head);
 out.println(titleServlet/title);
 out.println(/head);
 out.println(body);
 out.println(bThis is the string that will 

  1   2   >