***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread niv the tool


Very simple to simulate this bug :

When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib 


Ok now if ur asking why do I need it it so the answer is soap

I have a soap 2_2 context that needs to load a class in 
c:\java\my-web-app-dir\web-inf\classes


The only thing I manage to make this situation to work 
Is to put all my jars and myweb-inf\classes in the SYSTEM
CLASSPATH

But then I need to maintain this CLASSPATH when ever I am adding a new 
Jar file 


So Thanks in Advance

Niv the tool.




OT: anyone tried Oracle JSP examples?

2001-06-24 Thread Christoph Kukulies


I installed Oracle 8.1.7 recently and tried to run the JSP
examples.

Seems that I need some make utility (and compiler?).
Has anyone tried the examples successfully? What tools
are required? MSC (Visual Studio?), Cygwin?

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread Carl Rosenberger

 When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
 Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib

Hi Niv,

we have also spent 2 days last week to debug this problem, since a user of
our object database had problems to get in running.

The setup:
The jar of our engine was registered in the global CLASSPATH. The user had
his classes in ..\project-dir\web-inf\classes (not in the CLASSPATH). The
phenomena was very interesting:
The classes would work O.K. but our engine got a ClassNotFoundException
calling Class.forName() for all web-inf\classes when it was invoked from the
init() of the servlet.

Two workarounds were possible:
- ..\project-dir\web-inf\classes added to the CLASSPATH
- placing all Jars in ..\project-dir\web-inf\lib

Maybe the second solution might work our for you.

I would also consider the behaviour to be a Tomcat bug.


Kind regards,
Carl
---
Carl Rosenberger
db4o - database for objects - http://www.db4o.com





RE: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread niv the tool

Since we both consider it to be a tomcat bug 
I hope that one of tomcat guru will treat and answer this behavior

But I still cant understand why by putting my web-inf/classes in
CLASSPATH
Makes tomcat fail to find the web-inf/lib

-Original Message-
From: Carl Rosenberger [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 24, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: Re: ***ANOTHER TOMCAT CLASSPATH BUG***


 When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH Tomcat

 is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib

Hi Niv,

we have also spent 2 days last week to debug this problem, since a user
of our object database had problems to get in running.

The setup:
The jar of our engine was registered in the global CLASSPATH. The user
had his classes in ..\project-dir\web-inf\classes (not in the
CLASSPATH). The phenomena was very interesting: The classes would work
O.K. but our engine got a ClassNotFoundException calling Class.forName()
for all web-inf\classes when it was invoked from the
init() of the servlet.

Two workarounds were possible:
- ..\project-dir\web-inf\classes added to the CLASSPATH
- placing all Jars in ..\project-dir\web-inf\lib

Maybe the second solution might work our for you.

I would also consider the behaviour to be a Tomcat bug.


Kind regards,
Carl
---
Carl Rosenberger
db4o - database for objects - http://www.db4o.com




Re: how to determine if tomcat is running

2001-06-24 Thread 100520 . 2367

thanks for your response, but this method is not working on all unix 
systems because some of them only show .../java as result of the ps 
command (even with the options you mentioned).

does anybody know anything else how i can be sure if tomcat is running 
or not???

thanks,

thomas.

Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:

 You should have a java process running 
 'org.apache.tomcat.startup.Tomcat'
 when Tomcat is running. For example, when I run the 'ps' command I see 
 the
 following:

 /usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
org.apache.tomcat.startup.Tomcat

 This is all on one line, of course, and I have to use 'ps awx 
 --cols=250'
 (Linux) in order to see the entire command line.

 Hope this helps.

 Thanks,
 --jeff

 - Original Message -
 From: Thomas Fischer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 23, 2001 10:34 AM
 Subject: how to determine if tomcat is running


 i'm writing a script (on a unix-system) which should do different tasks
 wether tomcat is running or not. to do so the script has to figure out
 the status of tomcat. most daemons use .pid-files or anything similar.
 but i found nothing for tomcat.

 i've looked all through the documentation but found nothing about the
 runtime status of tomcat. how can i find out if tomcat is already
 running?

 thanks for any responses,

 thomas.





Re: how to determine if tomcat is running

2001-06-24 Thread Jeff Waugh

If tomcat is running it will be listening on the ports specified in the
Connectors in server.xml.

These will show up as listening in netstat, can be queried with lsof
or fuser. Even that is no guarantee that it is tomcat listening, but
it would be fairly trivial to retrieve a test page via a perl script
to verify if it is tomcat or not.

HTH,
-Jeff

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Thomas Fischer [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 8:10 AM
Subject: Re: how to determine if tomcat is running


 thanks for your response, but this method is not working on all unix
 systems because some of them only show .../java as result of the ps
 command (even with the options you mentioned).

 does anybody know anything else how i can be sure if tomcat is running
 or not???

 thanks,

 thomas.

 Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:

  You should have a java process running
  'org.apache.tomcat.startup.Tomcat'
  when Tomcat is running. For example, when I run the 'ps' command I see
  the
  following:
 
  /usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
 -Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
 org.apache.tomcat.startup.Tomcat
 
  This is all on one line, of course, and I have to use 'ps awx
  --cols=250'
  (Linux) in order to see the entire command line.
 
  Hope this helps.
 
  Thanks,
  --jeff
 
  - Original Message -
  From: Thomas Fischer [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 23, 2001 10:34 AM
  Subject: how to determine if tomcat is running
 
 
  i'm writing a script (on a unix-system) which should do different tasks
  wether tomcat is running or not. to do so the script has to figure out
  the status of tomcat. most daemons use .pid-files or anything similar.
  but i found nothing for tomcat.
 
  i've looked all through the documentation but found nothing about the
  runtime status of tomcat. how can i find out if tomcat is already
  running?
 
  thanks for any responses,
 
  thomas.
 
 





Re: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread Geir Magnusson Jr.

Carl Rosenberger wrote:
 
  When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
  Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
 
 Hi Niv,
 
 we have also spent 2 days last week to debug this problem, since a user of
 our object database had problems to get in running.
 
 The setup:
 The jar of our engine was registered in the global CLASSPATH. The user had
 his classes in ..\project-dir\web-inf\classes (not in the CLASSPATH). The
 phenomena was very interesting:
 The classes would work O.K. but our engine got a ClassNotFoundException
 calling Class.forName() for all web-inf\classes when it was invoked from the
 init() of the servlet.
 
 Two workarounds were possible:
 - ..\project-dir\web-inf\classes added to the CLASSPATH
 - placing all Jars in ..\project-dir\web-inf\lib
 
 Maybe the second solution might work our for you.
 
 I would also consider the behaviour to be a Tomcat bug.

Isn't this due to how the classloaders work in a servlet container?
Classloaders in Servlet 2.2 spec containers don't look down for classes,
they look 'up'.  So a class in WEB-INF/lib won't be found by a class
instantiated in an upper level loader.

That's why it works when you put everyting in WEB-INF/lib or put
/classes in teh CLASSPATH, as that makes everything accessable to the
top-level loader.

IMHO, putting things in WEB-INF/lib is the best way, as that makes your
webapp more portable - it doesn't depend upon the CLASSPATH (which is
evil :).  

geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!



Re: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread Carl Rosenberger

   When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
   Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
 
  Two workarounds were possible:
  - ..\project-dir\web-inf\classes added to the CLASSPATH
  - placing all Jars in ..\project-dir\web-inf\lib
 

 Isn't this due to how the classloaders work in a servlet container?
 Classloaders in Servlet 2.2 spec containers don't look down for classes,
 they look 'up'.  So a class in WEB-INF/lib won't be found by a class
 instantiated in an upper level loader.

Thanks for explaining how servlet classloaders work.

Do you have more information on the reason for this beviour? Why not use one
single classloader to be responsible for all levels? Is this a performance
issue? Would it take the classloader too long to scan all paths in all
directories for all possible classes that might be needed to work together?
In this case some intelligent caching could do the trick.

Kind regards,
Carl
---
Carl Rosenberger
db4o - database for objects - http://www.db4o.com





RE: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread niv the tool

Let me rephrase 

I have 2 contexts in tomcat 
1. my-web-app context
2. soap_2_2 context

In order for context2 to see my context 1 classes I must add
/my-web-app-dir/web-inf/classes
To the CLASSPATH

Adding this makes context 1 not to see the jars in
/my-web-app-dir/web-inf/lib


Weird isn't it




limiting instances of java

2001-06-24 Thread Charles Williams \(CEO\)

hey,

I just noticed that there are over 20 instances of java running when i do a
ps call.  How can I cut that down?

chuck





Re: limiting instances of java

2001-06-24 Thread Dino Ming

I have over 35+ instances...too..
Yes, how can we reduce the number of java instances ?

- Original Message - 
From: Charles Williams (CEO) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 11:29 PM
Subject: limiting instances of java


 hey,
 
 I just noticed that there are over 20 instances of java running when i do a
 ps call.  How can I cut that down?
 
 chuck
 
 
 
 



Re: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread Geir Magnusson Jr.

Carl Rosenberger wrote:
 
When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
  
   Two workarounds were possible:
   - ..\project-dir\web-inf\classes added to the CLASSPATH
   - placing all Jars in ..\project-dir\web-inf\lib
  
 
  Isn't this due to how the classloaders work in a servlet container?
  Classloaders in Servlet 2.2 spec containers don't look down for classes,
  they look 'up'.  So a class in WEB-INF/lib won't be found by a class
  instantiated in an upper level loader.
 
 Thanks for explaining how servlet classloaders work.

That's just a sketch.  I am not an expert :)

 
 Do you have more information on the reason for this beviour? Why not use one
 single classloader to be responsible for all levels? Is this a performance
 issue? Would it take the classloader too long to scan all paths in all
 directories for all possible classes that might be needed to work together?
 In this case some intelligent caching could do the trick.

The reason is that you want to be able to partition your applications in
the servlet runner, to avoid classname clashes (each webapp can have
their own classes w/o worrying if another webapp uses the same
classname).  It also means that support packages, like jdbc drivers and
other utilities your webapp may use can be upgraded or changed for one
webapp w/o affecting any others.

That's why I keep everying I possibly can in WEB-INF/lib - along with
the ability to jar up the webapp for easy deployment, I know I am safe
from changes to the CLASSPATH or other webapps.

geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!



Re: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread Carl Rosenberger


Geir Magnusson wrote:
 When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
 Tomcat is loosing the jars in my
c:\java\my-web-app-dir\web-inf\lib
   
Two workarounds were possible:
- ..\project-dir\web-inf\classes added to the CLASSPATH
- placing all Jars in ..\project-dir\web-inf\lib

 The reason is that you want to be able to partition your applications in
 the servlet runner, to avoid classname clashes (each webapp can have
 their own classes w/o worrying if another webapp uses the same
 classname).  It also means that support packages, like jdbc drivers and
 other utilities your webapp may use can be upgraded or changed for one
 webapp w/o affecting any others.

Thanks a lot for this excellent explanation. You changed my opinion. It's
not a bug, it's a feature. :-)

Kind regards,
Carl
---
Carl Rosenberger
db4o - database for objects - http://www.db4o.com





Re: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread Geir Magnusson Jr.

Carl Rosenberger wrote:
 
 Geir Magnusson wrote:
  When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
  Tomcat is loosing the jars in my
 c:\java\my-web-app-dir\web-inf\lib

 Two workarounds were possible:
 - ..\project-dir\web-inf\classes added to the CLASSPATH
 - placing all Jars in ..\project-dir\web-inf\lib
 
  The reason is that you want to be able to partition your applications in
  the servlet runner, to avoid classname clashes (each webapp can have
  their own classes w/o worrying if another webapp uses the same
  classname).  It also means that support packages, like jdbc drivers and
  other utilities your webapp may use can be upgraded or changed for one
  webapp w/o affecting any others.
 
 Thanks a lot for this excellent explanation. You changed my opinion. It's
 not a bug, it's a feature. :-)

It is by design.  However, the 'look up' or 'delegate, then find' 
aspect can be problematic.  It comes from standard Java classloader
behavior, motivated in part by security - it prevents a classloader
below you from replacing something from the JDK, for example.

I believe that in the Servlet 2.3 spec (Tomcat 4 is the RI), the
classloader behavior is modified in the case of webapps.  I think it's
'find, then delegate' model.

geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!



How do I make work tomcat 4 with apache?

2001-06-24 Thread Alejandro Arredondo

Hi,

   How do I make work tomcat 4.0 with apache 1.3.19
under linux? 

Thanks in advance
Alejandro Arredondo

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com



Re: limiting instances of java

2001-06-24 Thread Geir Magnusson Jr.

Charles Williams (CEO) wrote:
 
 hey,
 
 I just noticed that there are over 20 instances of java running when i do a
 ps call.  How can I cut that down?

Those are threads.  Linux, right?

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!



Re: how to determine if tomcat is running

2001-06-24 Thread Jeff Kilbride

Have you tried 'man ps' on the systems in question to see what the options
should be?

--jeff

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Thomas Fischer [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 5:10 AM
Subject: Re: how to determine if tomcat is running


 thanks for your response, but this method is not working on all unix
 systems because some of them only show .../java as result of the ps
 command (even with the options you mentioned).

 does anybody know anything else how i can be sure if tomcat is running
 or not???

 thanks,

 thomas.

 Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:

  You should have a java process running
  'org.apache.tomcat.startup.Tomcat'
  when Tomcat is running. For example, when I run the 'ps' command I see
  the
  following:
 
  /usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
 -Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
 org.apache.tomcat.startup.Tomcat
 
  This is all on one line, of course, and I have to use 'ps awx
  --cols=250'
  (Linux) in order to see the entire command line.
 
  Hope this helps.
 
  Thanks,
  --jeff
 
  - Original Message -
  From: Thomas Fischer [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 23, 2001 10:34 AM
  Subject: how to determine if tomcat is running
 
 
  i'm writing a script (on a unix-system) which should do different tasks
  wether tomcat is running or not. to do so the script has to figure out
  the status of tomcat. most daemons use .pid-files or anything similar.
  but i found nothing for tomcat.
 
  i've looked all through the documentation but found nothing about the
  runtime status of tomcat. how can i find out if tomcat is already
  running?
 
  thanks for any responses,
 
  thomas.
 
 





Re: limiting instances of java

2001-06-24 Thread Jeff Kilbride

Try the manual. (do a find on max_threads)

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

--jeff

- Original Message -
From: Dino Ming [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 8:53 AM
Subject: Re: limiting instances of java


 I have over 35+ instances...too..
 Yes, how can we reduce the number of java instances ?

 - Original Message -
 From: Charles Williams (CEO)
[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 24, 2001 11:29 PM
 Subject: limiting instances of java


  hey,
 
  I just noticed that there are over 20 instances of java running when i
do a
  ps call.  How can I cut that down?
 
  chuck
 
 
 
 





not cacheing jsps during dev

2001-06-24 Thread mwhitman

Is there a way to tell Tomcat to not cache
jsps?  This would be useful while developing.




Re: limiting instances of java

2001-06-24 Thread Gilli Julien

On Sunday 24 June 2001 19:59, you wrote:
 Charles Williams (CEO) wrote:
  hey,
 
  I just noticed that there are over 20 instances of java running when i do
  a ps call.  How can I cut that down?

 Those are threads.  

I thought that ps is aimed at displaying process state (see man ps).

 Linux, right?

Why do you think that the computer used is running Linux ?

Regards,

Julien Gilli.

-- 
[EMAIL PROTECTED]
http://darktigrou.free.fr/



Re: limiting instances of java

2001-06-24 Thread Geir Magnusson Jr.

Gilli Julien wrote:
 
 On Sunday 24 June 2001 19:59, you wrote:
  Charles Williams (CEO) wrote:
   hey,
  
   I just noticed that there are over 20 instances of java running when i do
   a ps call.  How can I cut that down?
 
  Those are threads.
 
 I thought that ps is aimed at displaying process state (see man ps).

Yes.  Linux does not make a distinction between 'process' and 'thread'
the way other OS's do.

 
  Linux, right?
 
 Why do you think that the computer used is running Linux ?
 

Because under linux, ps shows threads.

In the case of the orignal poster, assuming he only started Tomcat,
there aren't 20 JVMs.  There are 20 native threads running in the JVM. 
You can verify this by noting with a 'ps alx' that the PPID will be the
same for all but one, which will have that value for it's PID.  That is
the original process that spawned the other threads.

geir

-- 
Geir Magnusson Jr.   [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!



Re: JkMount in httpd.conf

2001-06-24 Thread Dmitri Colebatch

I'm not sure if this has been solved or not, but I had problems getting the 
virtual hosts to work in server.xml when the virtual host was based on port 
and not name.  Is this is what you're trying to do?

cheers
dim

On Fri, 22 Jun 2001 23:22, Richard Richter wrote:
 Hello...

 I'm using Apache with mod_jk and Tomcat for jsps and servlets. JSP is
 without problem, but servlet don't want to run. Because informations about
 absolute path of requested document is written to terminal, where Tomcat
 was started, I found out that servlet (URI:
 http://poseidon.bgs.sk:/intranet/WEB-INF/classes/Hello) is not
 translated from relative to absolute path - nothing apears on terminal.

 I think, that Apache don't redirect this request to Tomcat (or appropriate
 worker)... my httpd.conf has this section:

 VirtualHost poseidon.bgs.sk:
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /export/home/virgo/web-data
 Location /export/home/virgo/web-data
 Options Indexes FollowSymLinks
 AllowOverride None
 SetHandler default-handler
 Order allow,deny
 Allow from all
 /Location
 ServerName poseidon.bgs.sk
 JkMount /*.jsp virgo
 JkMount /intranet/* virgo
 ErrorLog
 /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/error_log TransferLog
 /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/access_ log
 /VirtualHost

 *.jsp works good, but second JkMount not... I tried many versions of second
 field of that line - but nothing. Always 404 Forbidden (Apache signed on
 the bottom of page ;-))... How I have to force Apache to redirect requests
 for servlets (eg. for URI specified upper) to Tomcat (or worker called
 virgo in my case)???

 Thanks for any suggestion

 Richard Richter ([EMAIL PROTECTED])
 Application Programmer, Business Global Systems a. s.



problem with mime type?

2001-06-24 Thread William Rosenkranz


i am using tomcat 4.0-b5 with JDK 1.3 on a windows 2000 pro system.
i removed crimson.jar and jaxp.jar and installed xalan.jar and
xerces.jar from the 2.1.0 java dist. the servlet i wrote to do
the XML-HTML thing via XSLT works fine.

i added a mime type for excel (xls) files in conf/web.xml. i did
this just after the entry for application/msword. i tried both
application/vnd.ms-excel and application/excel (the former being
the propper type, according to IANA). when i request an excel
spreadsheet (with IE5) with:

http://localhost:8080/foo/EXCEL/bar.xls

IE5 does not appear to recognize it as excel. the precise way i
am getting this is:

* webapps/foo is my app
* i ask for URL http://localhost:8080/foo/ which gives
  me index.html in the foo dir
* index.html has 3 frames which are in foo/frames
* one of the frames has a link to ../EXCEL/bar.xls
  which gets translated to the URL above.

if, instead, i use

file://%CATALINA_HOME%/webapps/foo/EXCEL/bar.xls

(where %CATALINA_HOME% is like C:/Jakarta/tomcat/4.0-b5) in the link,
it works fine (ie, IE5 opens the file as excel).

is it me or is this a bug in tomcat? i am fairly certain that
apache 1.3.x does this correctly on both NT and unix (hpux).

note: i restarted tomcat after changing conf/web.xml with a
shutdown/startup cycle.

just in case my servlet is somehow intercepting, in doGet() i do
a request.getReqestURI() and test endsWith(xls) on the string.
(as it turns out, my servlet has nothing to do with this.)

thanx

-bill



class reload

2001-06-24 Thread JeremyRayYoo

Hi, everytime I edit a JavaBean and recompile it, I have to always shutdown 
tomcat and restart it again. This seems very tedious. Can anyone help me or 
am I missing something that I should know about tomcat. Thanx



Virtual hosting . . .

2001-06-24 Thread Camilo Lopez

Hi,

I searched the archives, but did not find exactly what I was lookign for.

Here is my situation:

I need to do Java work from home. I am using Tomcat 4 b-5 on Linux RH 7.1 
and need to set up virtual hosts from a single machine with multiple JVM 
running so that I need to restart I just restart what I am working on, and 
not my own webserver.

Let's say I own www.foo.com, I need for:

1._ everything that looks like whatever.foo.com to be directed to my site. 
Example:

   prefix:  Would go to:
  projects.sillyshop.13.foo.com   sillyshop virtual machine version 13
  projects.sillyshop.foo.com  sillyshop virtual machine most current (, 
latest) version
  projects.veryimportant.404.foo.com  veryimportant virtual machine

and with this setup I would have three JVM running (/ Tomcat instances?) in 
my server, namely, foo.com 's, sillyshop.13.foo.com 's and 
projects.veryimportant.404.foo.com 's

2._ Be able to restrict from where people are getting to my host and in 
case, there are people that do not belong to a certain IP range, silently 
redirect them to my own site, www.foo.com.
  This way you can protect confidentiallity. Only people that are coming 
from certain places, can see/participate on what they are supposed to.

  Now, my questions:

  How do you do this, and please, notice that I want/need to you use one 
running JVM for each project?

  What should my ISP do to redirect all whatever.foo.com traffic to my 
site?

  What about if clients need for me to develop/test also mail, ftp servers, 
... how would redirections work in this case?

  Security isues?

  Could I use ipchains to route the request to servers other than Tomcat?

  Any other issues that I am not aware of?

  Any references, links, etc?

  I don't want to run any chances to mess it up with other projects, so that 
is why I will run multiple JVM, but what is your experience?

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




Plz help! at wits end! tomcat/mod_jk hangs when calling itself

2001-06-24 Thread Bari, Naeem

 
I had sent an email about this problem on friday, and
had some more info to add.
 
My environment:
  Solaris 8
  jdk 1.3.1, with hotspot enabled
  tomcat 3.2.2
  apache 1.3.19
 
The problem:
  I have a servlet that opens a URL connection to the
  servlet container. So if I call http://blah/blinky,
  where blinky is my servlet, it is possible under some
  situations for this servlet to open a URL such as
  http://blah/lumpy, where lumpy is some other servlet.
 
  This is part of a largish site publishing framework
  I built on top of JServ. Now, things worked great with
  JServ, but I am having a devil of a time getting this
  to work in Tomcat.
 
Observations:
  When the blinky servlet opens a URL to the same tomcat
  instance, the log entries for mod_jk go as far as making
  the call to marshal stuff before calling tomcat - as seen
  by the mod_jk.log entry:
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
  At this point, nothing happens. I *should* be seeing entries
  for the jk_open_socket function, but they never appear.
 
What I have tried:
  - I have disabled the default 8080 listener, thinking it
may be interfering.
No luck
  - I changed the cachesize of the ajp12 and ajp13 workers
to 8 from the default of 1.
No luck
  - I added the min_spare_threads parameter to the entries
for the ajp12 and ajp13 connectors in server.xml
No luck
  - switched between tomcat 3.2.1 and 3.2.2
No luck
  - upgraded apache to 1.3.19
No luck
  - Torn my hair out from the roots
No luck
 
I am at my wits end. Any help will be gratefully received.
 
TIA,
naeem



Re: Plz help! at wits end! tomcat/mod_jk hangs when calling itself

2001-06-24 Thread Dmitri Colebatch

Not sure if this is going to be of _any_ assistance whatsoever, but anyway... 
 I've seen a situation where someone was using the java.net.URL package to 
open a connection and request a page where the connection was opened but it 
appears the buffer wasn't being flushed, and the request hence wasn't being 
transmitted to the destination, hence the appearance of hanging.  Have you 
tried sniffing the traffic between the calling servlet and its target?  

Again, not sure if this will help, but a suggestion nonetheless.

cheers
dim

On Mon, 25 Jun 2001 11:43, you wrote:
 I had sent an email about this problem on friday, and
 had some more info to add.

 My environment:
   Solaris 8
   jdk 1.3.1, with hotspot enabled
   tomcat 3.2.2
   apache 1.3.19

 The problem:
   I have a servlet that opens a URL connection to the
   servlet container. So if I call http://blah/blinky,
   where blinky is my servlet, it is possible under some
   situations for this servlet to open a URL such as
   http://blah/lumpy, where lumpy is some other servlet.

   This is part of a largish site publishing framework
   I built on top of JServ. Now, things worked great with
   JServ, but I am having a devil of a time getting this
   to work in Tomcat.

 Observations:
   When the blinky servlet opens a URL to the same tomcat
   instance, the log entries for mod_jk go as far as making
   the call to marshal stuff before calling tomcat - as seen
   by the mod_jk.log entry:
 [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
   At this point, nothing happens. I *should* be seeing entries
   for the jk_open_socket function, but they never appear.

 What I have tried:
   - I have disabled the default 8080 listener, thinking it
 may be interfering.
 No luck
   - I changed the cachesize of the ajp12 and ajp13 workers
 to 8 from the default of 1.
 No luck
   - I added the min_spare_threads parameter to the entries
 for the ajp12 and ajp13 connectors in server.xml
 No luck
   - switched between tomcat 3.2.1 and 3.2.2
 No luck
   - upgraded apache to 1.3.19
 No luck
   - Torn my hair out from the roots
 No luck

 I am at my wits end. Any help will be gratefully received.

 TIA,
 naeem



The file argument '^' does not exist (while trying to run Tomcat 3.2.1)

2001-06-24 Thread Sunento Wu

Hello,

Did anyone experience with my problem ?
I have installed Tomcat 3.2.1 on my Win 98 machine,
and have followed the setup guide of how to setup the
env for Tomcat on my machine.

First day I run it, everything is fine.
From my C:\ prompt, type Tomcat (enter) and the Server
can run very well.

Second day, I tried to setup my J2EE Environment to
try my EJB and JSP.
Then, when I tried to call Tomcat server again, I hit
this following error :

==

C:\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\jdk1.3\jre\lib\rt.jar;C:\VisualW\vm
src\classes;.;C:\sunentoclass\jcrypto.jar;C:\sunentoclass\xalan;C:\sunentoclass\
xerces;C:\sunentoclass\tibrvj.jar;C:\sunentoclass\Mail.jar;C:\sunentoclass\activ
ation.jar;C:\j2sdkee1.3\lib\j2ee.jar;C:\jdk1.3\lib\tools.jar

Bad command or file name
Unable to set CLASSPATH dynamically.
Note: To set the CLASSPATH dynamically on Win9x
systems
  only DOS 8.3 names may be used in TOMCAT_HOME!
Setting your CLASSPATH statically.

Using CLASSPATH:
C:\jakarta-tomcat-3.2.1\classes;C:\jakarta-tomcat-3.2.1\lib\ant
.jar;C:\jakarta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar
;C:\jakarta-tomcat-3.2.1\lib\parser.jar;C:\jakarta-tomcat-3.2.1\lib\servlet.jar;
C:\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\jakarta-tomcat-3.2.1\classes;C:\jak
arta-tomcat-3.2.1\lib\ant.jar;C:\jakarta-tomcat-3.2.1\lib\jasper.jar;C:\jakarta-
tomcat-3.2.1\lib\jaxp.jar;C:\jakarta-tomcat-3.2.1\lib\parser.jar;C:\jakarta-tomc
at-3.2.1\lib\servlet.jar;C:\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\jdk1.3\jre
\lib\rt.jar;C:\VisualW\vmsrc\classes;.;C:\sunentoclass\jcrypto.jar;C:\sunentocla
ss\xalan;C:\sunentoclass\xerces;C:\sunentoclass\tibrvj.jar;C:\sunentoclass\Mail.
jar;C:\sunentoclass\activation.jar;C:\j2sdkee1.3\lib\j2ee.jar;C:\jdk1.3\lib\tool
s.jar;C:\jdk1.3\lib\tools.jar

2001-06-25 11:32:58 - The file argument '^' does not
exist

==

Can somebody give me solution / clue and thanks
millions.

regards,

sunento



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



problem with TOMCAT+APACHE+JETSPEED

2001-06-24 Thread Sumit Ranjan
Title: Clear Day




hi there !
 i was trying for tomcat 4.0b1 on apache on a stand-alone 
m/c(Windows NT).
 there are teo problems that i am facing
 1) the JAVA_HOME , TOMCAT_HOME variables are 
to be filled each time my system boots up
 2) if anyone has tried using Jetspeed-1.3 
a1...
 
i tried to run jetspeed but the mail server doesnot recognize my request , 
i.e. when i reach the browser with url 
 
http://localhost:8080/jetspeed/ 
i get the login page allright , but when i enter my new user id and press enter 
it takes me to the next screen (the secret code one !) and asks me to 
check my mail...but no mail has come till date...

can anyone...help me out in this.

 
thanx in anticipation.


Sumit Ranjan2861722 Ext:219



tomcat 4.0b1

2001-06-24 Thread Sumit Ranjan
Title: Clear Day



hi there !
 does anybody know of any documentation on tomcat 
4.0b1especially installation on NT with apache. ?
 
please help

Sumit RanjanDaimler chrysler Research Center India2861722 
Ext:219



RE: problem with TOMCAT+APACHE+JETSPEED

2001-06-24 Thread Emir Alikadic (ADNOC IST)

To permanently set your environment variables on WinNT 4.0, open System from
Control Panel, click on Environment tab.  In the Variable box, enter
variable name (e.g. TOMCAT_HOME) and in the Value box enter the path to
Tomcat installation folder (e.g. C:\jakarta-tomcat-3.2.1).  Click Set button
and the new env var should now appear in the lower portion of that window.
To change any existing env vars, simply click on it, change the value, click
Set and that's it.  To delete, click on var and click Delete.


Regards, 



Emir Alikadic 

-Original Message-
From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 08:46
To: [EMAIL PROTECTED]
Subject: problem with TOMCAT+APACHE+JETSPEED



hi there !
   i was trying  for tomcat 4.0b1 on apache on a stand-alone m/c(Windows
NT).
  there are teo problems that i am facing
  1) the JAVA_HOME , TOMCAT_HOME variables are to be filled each time my
system boots up
  2) if anyone has tried using Jetspeed-1.3 a1...
 i tried to run jetspeed but the mail server does not
recognize my request , i.e. when i reach the browser with url 
 http://localhost:8080/jetspeed/  i get the login page
allright , but when i enter my new user id and press enter it  takes me to
the next screen (the secret code one !) and asks me to check my mail...but
no mail has come till date...

can anyone...help me out in this.

 
thanx in anticipation.


Sumit Ranjan
2861722 Ext:219



unsubcribe

2001-06-24 Thread Alex Almero

dear moderator,
   i would like to unsubsribe to this mailing list
thanks

alex


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




Re: limiting instances of java

2001-06-24 Thread Charles Williams \(CEO\)

Actually, I believe that it's max_spare_threads.

chuck

- Original Message -
From: Jeff Kilbride [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 8:53 PM
Subject: Re: limiting instances of java


 Try the manual. (do a find on max_threads)

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

 --jeff

 - Original Message -
 From: Dino Ming [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 24, 2001 8:53 AM
 Subject: Re: limiting instances of java


  I have over 35+ instances...too..
  Yes, how can we reduce the number of java instances ?
 
  - Original Message -
  From: Charles Williams (CEO)
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, June 24, 2001 11:29 PM
  Subject: limiting instances of java
 
 
   hey,
  
   I just noticed that there are over 20 instances of java running when i
 do a
   ps call.  How can I cut that down?
  
   chuck
  
  
  
  
 





Logging System.out/err in Tomcat

2001-06-24 Thread tschwarz

Hi out there!

I've got a serious problem of logging in Tomcat 3.2.1.
When using the build-in Webserver for testing, the outputs to System.out/err
are only logged to the screen.

Is there any way to log this output to a file without some hacks like
writing a special servlet that resets the System.out/err to some own stream?


By the way: Is there anywhere a full description of the server.xml file. The
only i found is the 'Tomcat's Configuration Files' in the 'Tomcat - A
Minimalistic User's Guide' page developed with the tomcat documentation. But
neither this page or the descriptions in the file itself are really
complete.



Thanks

Thorsten