Hijacked by forte demo HELP

2001-12-30 Thread Kazimir Wittig

Just ran through the TagLibsDemo in forte4j CE. Then opened up
localhost:8080 (tomcat 4 running) instead of seeing index.html @
webapps\ROOT I get the TagLibsDemo index.html. I checked cnfg files
server,web(in all directories), and the registry for references to this
coulnt find any.

Also when starting tomcat servlets are loaded then for some reason unloaded.
this causes them to be reloaded when called from the browser. Makes things
veery slow.

dont no if they are related.

WHATS GOING ON




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




RE: Help starting Tomcat 4.0 on Windows 2000

2001-12-30 Thread Rama

try to upgrade your jdk (currently 1.3).
the error shows that there are some classes missing. upgrading most
probably solves your problem.


Rama


 -Original Message-
 From: Simon Gottesman [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, December 29, 2001 7:44 PM
 To: [EMAIL PROTECTED]
 Subject: Help starting Tomcat 4.0 on Windows 2000
 
 
 Hello -
 I am trying to use tomcat as a standalone container for 
 testing and learning
 purposes.  I have installed version 4.0 on Windows 2000, but 
 I keep getting
 an error on starting up Tomcat.  The error is attached below.  I tried
 changing port 8080 in server.xml.  I have also set JAVA_HOME 
 (to C:\jdk1.2.2
 [I've this JDK installed, needless to say]), as well as 
 CATALINA_HOME (to
 C:\jakarta-tomcat-4.0).  I am also not behind a proxy and 
 have even disabled
 my firewall software for good measure.  When I try to connect to
 http://localhost:8080/ with explorer I get the cannot find 
 server error.
 If it's of any interest, I have disabled IIS a long time ago, so it no
 longer appears as a service in the Services console - i.e., it's not
 blocking up port 80. I have read through the doc A 
 Minimalist User's Guide
 as well as A Quick Guide to Installing Tomcat on Windows 
 from devx.com,
 and neither of these had an answer for me.  Here is the error message:
 
 C:\jakarta-tomcat-4.0\bin startup
 Using CATALINA_BASE: C:\jakarta-tomcat-4.0
 Using CATALINA_HOME: C:\jakarta-tomcat-4.0
 Using CLASSPATH:
 C:\jakarta-tomcat-4.0\bin\bootstrap.jar;C:\jdk1.2.2\lib\tools.jar
 Using JAVA_HOME: C:\jdk1.2.2
 Begin event threw exception
 java.lang.NoClassDefFoundError: javax/naming/directory/DirContext
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:241)
 at
 org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreat
 eRule.java:155
 )
 at 
 org.apache.commons.digester.Digester.startElement(Digester.java,
 Compiled Code)
 at 
 org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java,
 Compiled Code)
 at
 org.apache.xerces.validators.common.XMLValidator.callStartElem
 ent(XMLValidat
 or.j
 ava, Compiled Code)
 at
 org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
 DocumentScanne
 r.ja
 va, Compiled Code)
 at
 org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
 er.dispatch(XM
 LDoc
 umentScanner.java, Compiled Code)
 at
 org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
 cumentScanner.
 java
 , Compiled Code)
 at 
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at 
 org.apache.commons.digester.Digester.parse(Digester.java:1198)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at 
 org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at 
 org.apache.catalina.startup.Catalina.process(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 Catalina.start: org.xml.sax.SAXParseException: Error at (115, 65:
 javax/naming/directory/Di
 rContext
 org.xml.sax.SAXParseException: Error at (115, 65:
 javax/naming/directory/DirContext
 at
 org.apache.commons.digester.Digester.createSAXException(Digest
 er.java:1846)
 at
 org.apache.commons.digester.Digester.createSAXException(Digest
 er.java:1875)
 at 
 org.apache.commons.digester.Digester.startElement(Digester.java,
 Compiled Code)
 at 
 org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java,
 Compiled Code)
 at
 org.apache.xerces.validators.common.XMLValidator.callStartElem
 ent(XMLValidat
 or.j
 ava, Compiled Code)
 at
 org.apache.xerces.framework.XMLDocumentScanner.scanElement(XML
 DocumentScanne
 r.ja
 va, Compiled Code)
 at
 org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
 er.dispatch(XM
 LDoc
 umentScanner.java, Compiled Code)
 at
 org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
 cumentScanner.
 java
 , Compiled Code)
 at 
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at 
 org.apache.commons.digester.Digester.parse(Digester.java:1198)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at 
 org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at 
 org.apache.catalina.startup.Catalina.process(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 C:\jakarta-tomcat-4.0\bin
 
 Please help if you can understand what the problem is from this error
 string.  Please also reply if you need more info in order to 
 make a correct
 diagnosis, and I will gladly supply it.
 TIA,
 Simon Gottesman



_
Do You Yahoo!?
Get your free @yahoo.com address at 

Getting tomcat to re-compile all .jsp's

2001-12-30 Thread cam

_

Easy question, I hope.



I have a project with some files included in numerous .jsp's using

%@ include file=... %,

the problem is that I am making changes to included files,

and tomcat is not detecting changes to the including jsp's.

So, my changes are not getting propegated unless I 'touch' the

.jsp files.



Is there a better way to do this?  Is there a command to clear

tomcat's (4.0) cache of compiled .jsp's somehow?



Thanks,

Cameron Elliott






Re: Tomcat and Wap

2001-12-30 Thread Simon Mitchell bpc


I changed these two line to get it to work from my nokia.

*%@ page contentType=text/vnd.wap.wml%*

* String ss1=new String(readbyte).substring(0,charcount);*

Need to print only the charaters read into the buffer.

You will get an error if the file is zero length so you could do a test 
before String ss
E.G.
* if (charcount == -1) charcount=0;
 String ss1=new String(readbyte).substring(0,charcount);
*


You could also do other test on length of the file with

File infile=new File(C:/TextFiles/ + filename + .txt);
long strLen =  infile.length();

Regards,
Simon



Galbayar wrote:

my jsp is: I can't find any error. but WAP browser have Page Cannot be
displayed error.

%@ page contentType=text/vnd.wap.wml;charset=ISO-8859-1%
%response.setHeader(Cache-Control,no-cache);%
%@ page import=java.io.*%
?xml version=1.0?
!DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN
http://www.wapforum.org/DTD/wml_1.1.xml;

wml
card id=main title=is
p
%
 String pagenum=request.getParameter(page);
 String filename=request.getParameter(f);
 if (pagenum==null) pagenum=1;
 int skipbyte=500;
  byte[] readbyte=new byte[skipbyte];
  boolean isEnd=false;
  try
  {
   FileInputStream in=new
FileInputStream(C:\\TextFiles\\+filename+.txt);
   in.skip(skipbyte*(Integer.parseInt(pagenum)-1));
   int charcount=in.read(readbyte);
   if (charcountskipbyte) isEnd=true;
   in.close();
   String ss1=new String(readbyte);
out.println(ss1);
   out.flush();
  }
  catch(FileNotFoundException e)
  {
   out.println(File Not Found);
  }
  catch(IOException e)
  {
   out.println(IO error);
  }
%
%
 String linkstr=;

linkstr=(isEnd)?Integer.toString(Integer.parseInt(pagenum)-1):Integer.toStri
ng(Integer.parseInt(pagenum)+1);
%
 /p
 p
 a
href=ReadFileWml.jsp?page=%=linkstr%amp;f=%=filename%%=(isEnd)?Bac
k:Next%/a/p
p
do type=prev label=backprev//do
/p
/card
/wml


--
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: Problem with Tomcat 4.0.1 installer: Cannot find JDK!

2001-12-30 Thread William Tillotson

Hi. (long message)

After fiddling with environmental variables as
administrator and reinstalling the JDK i am still NO
nearer getting tomcat to install on NT4 - it is still
claiming that it cannot see the JDK. However, after
trawling USENET i did find this - albeit in German -
it seems to be saying that if you check the source
that there might be an error in the install script
meaning that if it does see the supposedly correct
values in the registry then it will throw up an error
and quit (ie. it's back to front) i've done a little
testing (by deleting the various keys in the registry)
but again no difference... and unless there are a lot
of people using NT46a and tomcat 4.0.1 binary who are
just keeping stum ahd having the same prob as me i can
only assume that most people are having no problems
getting tomcat to install. Anyway here is the message
if anyone can translate it:-

From: Nico Seessle [EMAIL PROTECTED]
Newsgroups: de.comp.lang.java
Subject: Re: Tomcat 4.0 Installation
Date: Thu, 8 Nov 2001 10:42:43 +0100

Alexander Elsholz [EMAIL PROTECTED] schrieb im
Newsbeitrag
news:newscache$1l4hmg$3s4$[EMAIL PROTECTED]...
 Morgen allerseits,

 Michael Schmidt [EMAIL PROTECTED] wrote
in message
 news:[EMAIL PROTECTED]...

  Gübbet nen Registryeintrag, der die Existenz
deines JDK beweist?


 also ich hab jetzt mal 1.3.1 draufgemacht und es
geht...

 woran kann dat liegen???


War es denn ursprünglich die Meldung aus diesem
Source? (Die mögliche
Ursache ist dann eben irgendwas in der Registry, was
nicht ganz stimmt). Es
gab da zwar wohl auch mal Probleme mit dem Installer,
die sollten aber schon
in 4.0 Final nicht mehr existiert haben.

  ReadRegStr $1 HKLM SOFTWARE\JavaSoft\Java
Development Kit
CurrentVersion
  ReadRegStr $2 HKLM SOFTWARE\JavaSoft\Java
Development Kit\$1 JavaHome
  ReadRegStr $3 HKLM SOFTWARE\JavaSoft\Java Runtime
Environment
CurrentVersion
  ReadRegStr $4 HKLM SOFTWARE\JavaSoft\Java Runtime
Environment\$3
RuntimeLib

  IfErrors 0 NoAbort
MessageBox MB_OK Couldn't find a Java Development
Kit installed on this
\
computer. Please download one from
http://java.sun.com.;
Abort

  NoAbort:
MessageBox MB_OK Using Java Development Kit
version $1 found in
$2$\r$\n
Using Java Runtime Environment version $3
found in $4
FunctionEnd

Dann wird man das jetzt wohl nicht mehr rausfinden
können, was das Problem
war... Es sei denn du würdest ein Backup von vor ein
paar Tagen haben?? :-)

Nico

 --- William Tillotson [EMAIL PROTECTED] wrote: 
Hi.
 
 I too have experienced the same problem trying to
 get
 Tomcat 4.0.1 to install on Windows when i *do* have
 a
 valid Sun SDK (d:\jdk1.3.1_02). I have already
 checked
 the registry as I suspected that this is where the
 Tomcat installer is looking and the relevant entries
 are there - yet i am still getting the same error
 message from the tomcat installer as per the orginal
 poster of this thread. The difference is that I am
 using NT4SP6a so are there any other registry
 entries
 i should be looking for?
 
 for reference here are my registry entries:-
 
 HKLM/SOFTWARE/JavaSoft/Java Development Kit
 CurrentVersion = 1.3
 HKLM/SOFTWARE/JavaSoft/Java Development Kit/1.3
 JavaHome = D:\jdk1.3.1_02
 MicroVersion = 1
 HKLM/SOFTWARE/JavaSoft/Java Development Kit/1.3.1
 JavaHome = D:\jdk1.3.1_02
 MicroVersion = 1
 HKLM/SOFTWARE/JavaSoft/Java Development Kit/1.3.1_02
 [no entries - aside from default]
 
 I have tried entering the JavaHome and Microversion
 keys to:-
 HKLM/SOFTWARE/JavaSoft/Java Development Kit/1.3.1_02
 with no effect, and also amended the CurrentVersion
 key to 1.3.1_02 again with no luck.
 
 Any other suggestions?
 
 TIA
 
 William

---
 From: Ion Larrañaga 
 Subject: RE: Problem with Tomcat 4.0.1 installer:
 Cannot find JDK! 
 Date: Fri, 28 Dec 2001 00:52:23 -0800 
 
 The Tomcat 4.0.1 installer for Windows uses register
 entries to detect the
 JDK installation directory. Check the value of
 CurrentVersion under
 HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java
 Development
 Kit. For instance, in
 my computer I have 1.4. Then, check JavaHome under
 HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java
 Development
 Kit/1.4 (in my case),
 which must point to the java directory. The error
 you
 report seems to happen
 when the installer is unable to find the current
 version value.
 
 Hope it helps
 
 Ion
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: 

developing a newsletter program on tomcat 4

2001-12-30 Thread yilmaz

Hi all,
i want to design a newsletter program either with servlets or JSP, can
someone give me some suggestions?
or do you know some urls about this?
i would appreciate if someone show me a piece of code, or program. if you
know any company gives source code free of charge or for trial could you
please show me ?
thanks for your advises in advance .
Cheers :)




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




ManagerServlet cannot be loaded

2001-12-30 Thread Ljubo Brglez

Hello!

I have a problem with tomcat manager. I use apache 1.3.9, tomcat 4.0.1 and
webapp_module. I can log in to http://localhost/manager/ but I cannot use
anything else like http://localhost/manager/list. I receive this exception:

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server 
Error) that
prevented it from fulfilling this request.
exception javax.servlet.ServletException: Error allocating a servlet 
instance

root cause

java.lang.SecurityException: Servlet of class 
org.apache.catalina.servlets.ManagerServlet
is privileged and cannot be loaded by this web application

I wrote this line in tomcat-users.xml:
user name="user" password="pass" roles="standard,manager" /

and in httpd.conf I put this:

VirtualHost *
  ServerName localhost
  ErrorLog logs/localhost-error_log
  CustomLog logs/localhost-access_log common
  IfModule mod_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy manager  conn /manager
WebAppDeploy myappconn /myapp
WebAppInfo /webapp-info
  /IfModule
/VirtualHost


A also read mail from Mark Saltzman, which had the same problem, but 
this didn't help me.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg38357.html

Please help!

Ljubo



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




Re: ManagerServlet cannot be loaded

2001-12-30 Thread Ljubo Brglez

Hello!

I figure out that if I try to access /manager/list on port 8080 so
http://localhost:8080/manager/list IT WORKS but on
port 80 through webapp_module i still get exception.

http://localhost:8080/manager/list - works fine
http://localhost/manager/list - I get SecurityException

Any idea how to solve this?

Ljubo


Ljubo Brglez wrote:

 Hello!

 I have a problem with tomcat manager. I use apache 1.3.9, tomcat 4.0.1 
 and
 webapp_module. I can log in to http://localhost/manager/ but I cannot use
 anything else like http://localhost/manager/list. I receive this 
 exception:

 Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server 
 Error) that
 prevented it from fulfilling this request.
 exception javax.servlet.ServletException: Error allocating a servlet 
 instance

 root cause

 java.lang.SecurityException: Servlet of class 
 org.apache.catalina.servlets.ManagerServlet
 is privileged and cannot be loaded by this web application

 I wrote this line in tomcat-users.xml:
 user name="user" password="pass" roles="standard,manager" /

 and in httpd.conf I put this:

 VirtualHost *
  ServerName localhost
  ErrorLog logs/localhost-error_log
  CustomLog logs/localhost-access_log common
  IfModule mod_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppDeploy manager  conn /manager
WebAppDeploy myappconn /myapp
WebAppInfo /webapp-info
  /IfModule
 /VirtualHost


 A also read mail from Mark Saltzman, which had the same problem, but 
 this didn't help me.

 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg38357.html

 Please help!

 Ljubo



 -- 
 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: R: startup.sh not recognized

2001-12-30 Thread Michael Burke

David Morsberger wrote:

 You need to remove all carriage returns.

 In vi:

 :g/^M/s///g

 Where ^M is the following sequence:

 'Ctrl v' followed by the 'return key'

 'Ctrl v' is to insert a non-printable character and return is ^M.

 I am sure there are other ways to do it in vi but this works for me.

 Hope this helps

  From: Michael Burke [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  Date: Sat, 29 Dec 2001 11:12:22 -0500
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: R: startup.sh not recognized
 
  Vercesi Paolo wrote:
 
  I've edited all the *.sh files with joe. My version of vim opens those file
  in DOS-mode and so I can't remove the CR chars. I known there are some
  switch or configuration options that makes vim operating in a binary-like or
  in a unix-mode,
  but now I don't remember which are. Look at vim man pages.
  There are also some utilities to convert textfiles from dos/win to unix, and
  reverse, generally named dos2unix.
  You also can use sed.
 
 
  Thanks for the reply Vercesi, could you explain how to
  replace the CRLF's
  with LF?
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
  I tried dos2unix and got problems converting file startup.sh not very
  helpful. I started vi -b (I think that starts it in binary mode) and got the
  message trailing characters and didn't know what to do next. The search
  continues. It shouldn't be this difficult.
 
 
  --

Dave, I did 'id' and got uid=500(mburke) gid=500(mburke) groups=500(mburke)
ls -1 startup.sh returned 'startup.sh'.
I was executing startup.sh as the owner.



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




Tomcar 4.0.1 Installation

2001-12-30 Thread Stan Levine

In the instructions for Building The Tomcat 4.0 Servlet/JSP Container, several steps 
say to download into a convenient location. I'm not sure what convenient location 
means. Where should these downloads ultimately reside? I refer to  step (3) 
xerces-x_y_z,step (4) jakarta-tomcat-4.0. and (5)jakarta-serv;etapi-4.  Thanks, Stan



Re: cloning an Enumeration - how?

2001-12-30 Thread Micael Padraig Og mac Grene

At 03:41 PM 12/30/01 +0200, you wrote:
Hi all,

Forgive what may be a stupid question:

I am trying to retrieve all the locales from the Accept-Language header
in a request. To do this I use the following call:

Enumeration locales = pageContext.getRequest().getLocales();

My problem is that once I have enumerated through this variable locales,
there is no way I can see to reset it so I can enumerate through it
again.

I also cannot seems to find a way to clone this object, as Enumeration
is not a child of java.lang.Object, but an interface.

Can anyone shed some light on the correct way to enumerate through an
Enumeration more than once?

Regards,
Graham

Take a look at the Enumeration interface, which has only the following 
methods:

 boolean hasMoreElements();
 Object nextElement();

Each component that wishes to use this interface can do so as it 
pleases.  Note that Vector uses an anonymous inner class in its elements() 
method as follows:
public Enumeration elements() {
return new Enumeration() {
   int count = 0;

   public boolean hasMoreElements() {
   return count  elementCount;
   }

   public Object nextElement() {
   synchronized (Vector.this) {
if (count  elementCount) {
return elementData[count++];
}
}
throw new NoSuchElementException(Vector Enumeration);
}
};
}

So, what you have to do, if you are using Vector, to use the Enumeration 
again is to call elements() again.  You could roll your own, if you want 
more functionality.  Usually I do the opposite, e.g., roll my own to get 
less functionality.

Hope this helps.


Re: cloning an Enumeration - how?

2001-12-30 Thread Micael Padraig Og mac Grene

At 03:41 PM 12/30/01 +0200, you wrote:
Hi all,

Forgive what may be a stupid question:

I am trying to retrieve all the locales from the Accept-Language header
in a request. To do this I use the following call:

Enumeration locales = pageContext.getRequest().getLocales();

My problem is that once I have enumerated through this variable locales,
there is no way I can see to reset it so I can enumerate through it
again.

I also cannot seems to find a way to clone this object, as Enumeration
is not a child of java.lang.Object, but an interface.

Can anyone shed some light on the correct way to enumerate through an
Enumeration more than once?

Regards,
Graham

By the way, Graham, I have no idea whether you can or cannot clone the 
object you get, but the object you get is not an instance of Enumeration 
(even though it has the type of Enumeration) but is an instance of an 
anonymous inner-subclass of Enumeration.  So, your reason for not cloning 
it are not valid.  Maybe it is cloneable.  Have you tried?  Cannot see 
right off why it would not be cloneable.  Maybe you cannot because it 
cannot be casted.  However, did I not read something about there being a 
way around casting in j2sdk1.4.0-beta3?

Why don't you wrap the class and stick in your own inner class with a 
method giving an Enumeration that allows you to reset the cursor on the 
array so that you can reuse the Enumeration object?

Micael


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




Re: Tomcar 4.0.1 Installation

2001-12-30 Thread Christopher K. St. John

Stan Levine wrote:
 
 In the instructions for Building The Tomcat 4.0 Servlet/JSP Container,
 several steps say to download into a convenient location. I'm not sure
 what convenient location means. 


 Jump forward to step (23), which is where you edit
the build.properties file to point to all the stuff
you just downloaded. So just install the packages
wherever you want and customize build.properties to 
match.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




Re: startup.sh : bad interpreter: Permission denied

2001-12-30 Thread Craig R. McClanahan



On Sat, 29 Dec 2001, Tim wrote:

 Date: Sat, 29 Dec 2001 19:12:10 -0800
 From: Tim [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: startup.sh : bad interpreter: Permission denied

 Tomcat won't start...I need some help from the experts. :-)
 Startup Error: bad interpreter: Permission denied and nothing in log files.
 Any ideas?
 Thanks,
 Tim

 - Redhat Linux 7.2
 - Java JDK 1.4.0 beta3 (latest standard release)
 - Tomcat 4.0.1
 - Apache NOT installed

 JAVA_HOME = /usr/java/j2sdk1.4.0
 CATALINA_HOME = /usr/tomcat4/jakarta-tomcat-4.0.1


 [root@localhost bin]#
 [root@localhost bin]# ./startup.sh
 bash: ./startup.sh: bad interpreter: Permission denied
 [root@localhost bin]#


That sounds like a message from your shell saying it couldn't understand
how to process the first line of the script:

  #!/bin/sh

that says to use /bin/sh as the interpreter for the script.  Do you have
a /bin/sh on your system?  Standard RH 7.2 installs do -- I know that
for a fact because it's my usual development platform -- but something
could have gotten modified in your system.

Craig


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




Re: Tomcar 4.0.1 Installation

2001-12-30 Thread Craig R. McClanahan

On Sun, 30 Dec 2001, Stan Levine wrote:

 Date: Sun, 30 Dec 2001 14:25:04 -0500
 From: Stan Levine [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Tomcar 4.0.1 Installation

 In the instructions for Building The Tomcat 4.0 Servlet/JSP
 Container, several steps say to download into a convenient location.
 I'm not sure what convenient location means. Where should these
 downloads ultimately reside? I refer to step (3) xerces-x_y_z,step (4)
 jakarta-tomcat-4.0. and (5)jakarta-serv;etapi-4.  Thanks, Stan


I keep all my Jakarta downloads in a Jakarta subdirectory under my home
directory, so convenient for me means things like:

  /home/craigmcc/Jakarta/jakarta-servletapi-4
  /home/craigmcc/Jakarta/jakarta-tomcat-4.0

and so on.  It doesn't really matter where they go -- but you'll need to
set up your build.properties file at the end of the process, and this is
more convenient if everything is loaded into one common directory (as in
the above case).

Craig



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




Re: startup.sh : bad interpreter: Permission denied

2001-12-30 Thread Tim

At 08:54 PM 12/29/01 -0500, you wrote:
Make sure the files in the bin directory have execute permission.

On Saturday 29 December 2001 10:12 pm, you wrote:
 [root@localhost bin]#
 [root@localhost bin]# ./startup.sh
 bash: ./startup.sh: bad interpreter: Permission denied
 [root@localhost bin]#

Changed the permissions in the /bin directory and everything works now.
Thanks James!


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




Examples webapp not working (Tomcat 4.0.1, OSX 10.1.2)

2001-12-30 Thread Ben Statham

Having read the archives I note that a few people seem to be having the same
problem as me. The logs show nothing unusual, Tomcat starts fine and I can
browse to http://localhosat:8080 fine, but clicking on the examples link
generates a 404 error.

Has anyone solved this yet?

BTW FYI if I add one of my own webapps it works fine!

Weird but true

Ben


-- 
Ben Statham
MIS Manager
Academic Colleges Group




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




Tomcat shutdown problems

2001-12-30 Thread Mav Rck

When I try to shutdown Tomcat I get the following error

./catalina.sh: line 234: 18818 Segmentation fault $JAVA_HOME/bin/java 
$CATALINA_OPTS -classpath $CP -Dcatalina.base=$CATALINA_BASE 
-Dcatalina.home=$CATALINA_HOME org.apache.catalina.startup.Bootstrap $@ 
stop

Can anyone help me figure out what the problem is. ANy help is greatly 
appreciated

Thanks,
Mav

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


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




tomcat-dav with mod_webapp

2001-12-30 Thread Hitesh Sharma

Hi all
I want to use dav capabilities of tomcat-4.0.1 through apache. I am using mod_webapp 
for that.
I am able to run servlets with the help of mod_webapp but haven't yet been able to get 
DAV running.
Looking into logs I see that apache is not forwarding the Options , PROPFIND etc 
DAV specific requests to tomcat.
Am I missing some configuration directive in apache , or anything else

My httpd.conf looks like

 -
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection warpConnection warp buildserver:8008
WebAppDeploy webdav warpConnection /webdav


I can open the index file residing in the webdav folder
when I point the explorer to it but I fail to add the same folder as a
webfolder on my win2000 box.

Thanks for any help.

Hitesh

PS: I 've written n number of times on this group but haven't yet gor a single reply. 
Please acknowledge the reciept of this mail to my personal id. So that I know that 
people are reading my problem and probably they don't have any idea. Otherwise I am 
getting an impression that my mails are not getting into any mail-box.







Re: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???)

2001-12-30 Thread Jeff Kilbride

Are you using Tomcat standalone or with Apache? If standalone, then yes, I
would recommend using the latest version of Tomcat 4.x. If you're using
Apache, I would stick with 3.3 until the mod_jk code is fully implemented
with the 4.x versions.

Thanks,
--jeff

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, December 29, 2001 2:09 PM
Subject: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???)




 Hi there,

 I am trying to deploy our production service on the Tomcat 3.3 platform
 (Solaris8, JDK 1.3.1) but am very often facing the instability problems.
 Somehow, the ThreadPool just runs out of steam and blocks Connectors from
 receiving any more requests.

 Looking into the source code, I have noticed some very interesting
 constructions in the ThreadPool class.  Namely, the setters for the
 maxThreads, maxSpareThreads and minSpareThreads are having very little
 influence as the start() method is resseting the values to the default
 constants ?!?!

 public ThreadPool() {
 maxThreads  = MAX_THREADS;
 maxSpareThreads = MAX_SPARE_THREADS;
 minSpareThreads = MIN_SPARE_THREADS;
 currentThreadCount  = 0;
 currentThreadsBusy  = 0;
 stopThePool = false;
 }

 public synchronized void start() {
  stopThePool=false;
 currentThreadCount  = 0;
 currentThreadsBusy  = 0;
 maxThreads  = MAX_THREADS;
 maxSpareThreads = MAX_SPARE_THREADS;
 minSpareThreads = MIN_SPARE_THREADS;

 adjustLimits();

 openThreads(minSpareThreads);
 monitor = new MonitorRunnable(this);
 }

 Also, the situation when there are no more available Threads in the pool
is being handled in a special way which JUST BLOCKS IN THE INFINITE LOOP :
 -(((

 Is the code of the Tomcat4 equaly immature or there is a fair chance to
 role a productiv system on top of it?

 Thanks in advance for any comments

 Drasko Kokic



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