tomcat on HP-UX 11.00

2001-06-07 Thread Dietmar Kraume

Hi,
i'm using tomcat on HP-UX 11.00/32.
Tomcat start's correct with no error message,
but when i try to connect the following error message
appears in the command line:

PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8090]
ignored
exception:
 java.net.SocketException: Socket closed -
java.net.SocketException:
Socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
 at java.net.ServerSocket.implAccept(ServerSocket.java:240)
 at java.net.ServerSocket.accept(ServerSocket.java:224)
 at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:286)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

 at java.lang.Thread.run(Thread.java:479)

Please can someone advise.

Thanks in advance.

--
Mit freundlichen Gruessen/Yours Sincerely  -  Dietmar Kraume

Systemingenieur  -  Webmaster
mailto:[EMAIL PROTECTED]

Ihr Business Internet Provider: http://www.borgware.net
Bintec Router Shopping: http://www.borgshop.net
CAD/CAM/EDM/IT http://www.borgware.de
_

Borgware GmbH
Neusser Landstrasse 2
50735 Koeln
FON +49.(0)221.276930-0
FAX +49.(0)221.7002191
FAX an Email 0180.5052.5955.0701

HP Systempartner Gold - CoCreate Premier Partner -
___

Informationen, Tech.Tips, Termine per Email erhalten.
Sind Sie schon registriert, Borgware Infomail, einfach hier
anklicken,
absenden und Sie sind registriert.
mailto:[EMAIL PROTECTED]?body=subscribe





tomcat logging

2001-06-07 Thread Terence Kwan

I am running tomcat as a standlone web server in Windows NT. I know that
tomcat does not support access log.

I just wonder is there anyway to work around this problem without using
Windows version of Apache.

Thanks

TK




RE: tomcat logging

2001-06-07 Thread Warren Crossing

hey,

i thought tomcat had a combine logging mechanism see server.xml

you'll get more than you bargain 4 if you try apache  mod_k  tomcat on
windows ( just have a look at the list 2 c what i mean )  

=)

regards,

warren 

-Original Message-
From: Terence Kwan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: tomcat logging


I am running tomcat as a standlone web server in Windows NT. I know that
tomcat does not support access log.

I just wonder is there anyway to work around this problem without using
Windows version of Apache.

Thanks

TK



Using include from a servlet

2001-06-07 Thread Zsolt Koppany

Hi,

I need the same functionality like isp:include from a servlet. How can
I do that?

Zsolt

-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7221873 Fax: +49-711-7871017



RE: Using include from a servlet

2001-06-07 Thread Warren Crossing

you'd only need to search the mailing list to find that out..
use the servlet api context.getRequestDispatcher().forward/.include (
request,response ) 
have a look at the javadoc api javax.servlet.http.ServletContext

regards,
warren.

-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: Using include from a servlet


Hi,

I need the same functionality like isp:include from a servlet. How can
I do that?

Zsolt

-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7221873 Fax: +49-711-7871017



RE: Servlet Aliasing

2001-06-07 Thread Chris Faulkner

Hi

I was running IISand Tomcat. but the priciple should be the same here.

I just went through this one, myself. The /Servlet/ bit gets put on by a
parameter to the InvokerInterceptor class which you can find and change to
/ ( I found that a null value didn't work ).

I removed the /TomcatContext/  section by uncommenting the virtual host
section at the end of server.xml and adding a context path for the context
(TomcatContext).

Chris Faulkner

Chris Faulkner
Genawarehouse Ltd - The Genamap people
www.genaware.com

Tel :+44 (0)116 212 5059
Mobile :+44 (0)7887 562096
Email :[EMAIL PROTECTED]
--


 -Original Message-
 From: ryan [mailto:[EMAIL PROTECTED]]
 Sent: 06 June 2001 23:20
 To: [EMAIL PROTECTED]
 Subject: Servlet Aliasing


 I am running tomcat 3.22, with mod_jk, and apache 1.3.20.  Apache
 serves my
 static context and tomcat does my jsp.  All works well but I am now trying
 to migrate my old jserv set up over to my tomcat box.  In my
 jserv set up I
 have zones set up to access a package of servlets that are accessed like
 http://www..com/AServletName

 I can get it to work if called like so:
 http://www..com/TomcatContext/Servlet/AServletName
 I need to lose the TomcatContext/Servlet stuff.  I have tried
 adding entries
 to my web.xml like so:

servlet
   servlet-name
   AServletName
   /servlet-name
   servlet-class
   com.packagename.AServletClass
   /servlet-class
 /servlet
 servlet-mapping
 servlet-name
   AServletName
 /servlet-name
 url-pattern
 /AServletName
 /url-pattern
 /servlet-mapping

 to no avail.  There must be another step I am missing but I can
 find no docs
 on it anywhere. Please Help
 ryan






Starting tomcat

2001-06-07 Thread Denis Kovalkov

I installed Tomcat 3.2.2 on win2000 with jdk 1.3.1.
When I start it I get next message:

Files\Apache was unexpected at this time.

How to correct this? Apache is shuted down.




Get free email and a permanent address at http://www.netaddress.com/?N=1



Reloading changed servlets problem

2001-06-07 Thread RANDRIAMPARANY Honitriniela


Hi,

Not having received a response for my mail, I would like to send it again. It
is very significant for us to have Tomcat that is able to reload the changed 
servlets since we use it for the exercises of the students in a computer 
science course.
So, please help me. I put my original message below. We use Tomcat-3.2.1 
standalone.

-- Honitra.

 original message -Date: 
Wed, 06 Jun 2001 14:15:33 +0200
From: RANDRIAMPARANY Honitriniela [EMAIL PROTECTED]
Subject: Reloading changed servlets problem
To: [EMAIL PROTECTED]


Hi,

I use tomcat-3.2.1. I still have problem with the reloading of changed 
servlets whereas I have the following entry in the server.xml file.

Context path=/TP_genielog 
 docBase=webapps/TP_genielog 
 crossContext=false
 debug=0 
 reloadable=true  
/Context

I read this in the FAQ:
Note: Do NOT include the classes or .jar files from WEB-INF directories for
 which you want to enable automatic servlet reloading in the CLASSPATH of the
 shell that starts Tomcat. 

I followed this instruction. The reloading worked fine for a moment, and then 
the
problem arised again. 

Could somebody say me what I must do? How can one erase the cache memory of 
Tomcat?

Thanks for any help.


-- Honitra.





RE: I need an advice to make Tomcat a NT service

2001-06-07 Thread Hughes, Tim

I just spent most of yesterday trying to set Tomcat up as a service that
wouldn't die when you log off. The solution I found (with the help of others
on the list) was to use JDK1.3.1 but you have to make sure that you read
this document: http://java.sun.com/j2se/1.3/relnotes.html

There it is stated that:

Bug 4323062: Any Windows NT Service embedding Java VM aborts when user logs
out 
This bug has been fixed in J2SDK 1.3.1. ***In order to enable the fix,
the -Xrs command-line option must be passed to the JVM. The additional
command line argument is necessary because the fix necessarily disables the
J2SDK 1.3 shutdown hooks mechanism and forbids the use of the
sun.misc.Signal class***.

So you do download jdk1.3.1, do exactly what the Tomcat user guide says to
do to set up tomcat as an NT service. The only additional thing you need to
do is add the option -Xrs to the last line of wrapper.properties (as well as
changing the tomcat_home and java_home as you are instructed in the
userguide). 


Tim Hughes

Cap Gemini Ernst  Young
Sandbrugt. 5-7
Postboks 3950, Dreggen
5835  Bergen
Norway

 Tel: +47 55 90 66 24 / +47 48 10 06 38  
 Email: [EMAIL PROTECTED]
Web:   http://no.cgey.com



-Original Message-
From: Alexandre Bouchard [mailto:[EMAIL PROTECTED]]
Sent: 7. juni 2001 01:59
To: [EMAIL PROTECTED]
Subject: I need an advice to make Tomcat a NT service


At business, they were using IIS running on NT4 with ASP as the scripting
language... until I arrived :)  With the help of this mailing list's archive
and users, I set up a JDBC-ODBC bridge, and I make IIS give Tomcat the JSP
job (no more ASP ! relief !).

Now, all I have to do is to make Tomcat a NT service so that when the server
administrator logs off, the server will still run. I am using java version
1.3, and I faced the bug #4323062. I read the information available at the
url:
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html
and I saw many solutions proposed. What I need is a simple-to-setup, yet
reliable, solution. Bill Giel's solution seems good for me. Should I use it?
Is it simple enough?

So I need feedbacks from people who installed successfully Tomcat as a
service that do not die if the user logs off. How did you avoided the bug?
What solution did you used? Was that simple to setup? And how reliable is
your server now?

Thx

Alexandre Bouchard,
Intranet administrator
Bell



Re: Reloading changed servlets problem

2001-06-07 Thread Jim Cheesman

At 10:00 AM 07/06/01, you wrote:

Hi,

Not having received a response for my mail, I would like to send it again. It
is very significant for us to have Tomcat that is able to reload the changed
servlets since we use it for the exercises of the students in a computer
science course.
So, please help me. I put my original message below. We use Tomcat-3.2.1
standalone.


In server.xml:
 Context path=/admin
  docBase=d:/webapps/admin
  crossContext=true
  debug=0
  reloadable=true  -- this is the line you want
  trusted=false 
 /Context

Jim





--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   If a pig loses its 
voice is it disgruntled?





Re: Jikes and Tomcat for JSP compilation

2001-06-07 Thread chris brown

Hi Peter (and anyone else following this thread),

If it's any consolation, I've asked the same question on many mailing lists
over a long period of time, and nobody's given a working answer yet.

I have a JDK installed (hence I've got javac), plus Jikes.  When using
Jikes from the commandline, it works fine.  I've even uncommented the line
in web.xml.  But I never seemed to get it working, as in the pages still
compiled, but there was no way of knowing if it was jikes or javac that did
it  I tried renaming Jikes.exe to _jikes._exe to see if Tomcat missed
it, but it didn't complain, so I just assumed it hadn't been taken into
account anyway.

I suspected that I needed to copy all (or part) of the default web.xml into
each web-app's WEB-INF folder, uncommenting the jikes line as appropriate.
However, this didn't work at all well, as it seemed to give Tomcat a
headache.  I've already posted on this (overriding default web.xml with
custom web.xml).  Not a lot of luck there either...

Hope someone can give a clear answer as to how to do this -- and verify that
it works!

-Chris Brown

- Original Message -
From: WEST, Peter
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 8:19 PM
Subject: Jikes and Tomcat for JSP compilation



 can anybody point me to a straightforward how to get Tomcat to compile
JSPs
 with Jikes rather than JDK tutorial?

 So far I have changed web.xml server.xml (both of which made no
difference).
 I have also read that it may be necessary to change the source of a line
in
 webserver.jar I have the details of this but dont exactly believe it is
 necessary??

 Any pointers? Ideas?

 thanks,

 Pete





RE: Jakarta Tomcat NT service stopping itself

2001-06-07 Thread Andreas Lehmann

I tried the JRE 1.2.2_007 and everything works fine. You are able to logon 
and logoff without stopping the service. Today I tried the JRE 1.3.1 
because I thought the bug has been fixed (I checked this on the Beta 
Release - it works fine too).

But the Service stopped if someone logs out.

After reading a while I found a flag for the java.exe: -Xrs
This flag fixes the bug. (but you can't use the system signals anymore!)

To switch this flag on, you have to edit the wrapper.properties and add the 
-Xrs flag to the commandline at the end of the file:

[snip]--
# This is the command line that is used to start Tomcat. You can *add* 
extra
# parameters to it but you can not remove anything.
#
wrapper.cmd_line=$(wrapper.javabin) -Xrs -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) -home 
$(wrapper.tomcat_home)
[snap]--

With these changes everything works fine again - even on JRE 1.3.1

Hope this helps someone

bye
Andreas



RE: server side includes, tomcat and jsp files

2001-06-07 Thread Jann VanOver

Ross, the include format he showed was the common server side include format
that can be used in HTML with many web servers (including both apache and
IIS)

-Original Message-
From: Ross Dyson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: RE: server side includes, tomcat and jsp files


Where did you get this syntax from?
!-- #include virtual= --

jsp has 2 sorts of includes, compile time and run time.
from the jsp 1.1 spec document:
TABLE 2-1 Summary of Include Mechanisms in JSP 1.1
Syntax What Phase Spec Object Description Section
%@ include file=... % directive translation-time virtual static Content is
parsed by
JSP container.
2.7.6
jsp:include page= / action request-time virtual static
and
dynamic
Content is not parsed; it
is included in place.
2.13.4

Looks bad with no formatting, but you can figure it out :-)
Ross.

-Original Message-
From: Mick Lysejko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 8:48 AM
To: [EMAIL PROTECTED]
Subject: server side includes, tomcat and jsp files


Hi folks,

I have installed apache 1.3.17 and tomcat 1.3.3 and it all works fine.
However, I wish to do server side includes in my jsp files and this does not
work.  eg. !-- #include virtual= --

I have tried the apache directive:
adhandler server-parse .jsp

in httpd.conf. Here it stops my jsp pages getting parsed and I got server
errors (400 I think).

I then tried adding it to apache-tomcat.conf
-- here it just gets over writen

Then I tried to put it in tomcat.conf
-- here it seems to be totaly ignored.

Does anyone have any Ideas. any help welcome  :)

Thank you

Mick.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Precompile JSP files on startup

2001-06-07 Thread Pernica, Jan

Hi

Is it possible to precompile files on startup?

Thank you

Jan



__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Re: Precompile JSP files on startup

2001-06-07 Thread Krishna Kant T

yes it is
do check the faq

~krishnakant


Pernica, Jan wrote:

 Hi

 Is it possible to precompile files on startup?

 Thank you

 Jan

 __
 Tato komunikace je urcena vyhradne pro adresata a je duverna.
 This communication is intended solely for the addressee and is confidential.




running JSP, Servlet with tomcat on NT

2001-06-07 Thread anand

Hi,

I was able to successfully install tomcat on windows NT and able to go
to the index page.
But when I try to run any of the examples (Servlet/JSP) I get the
following similar kind of error. 
Error: 500
Location: /examples/servlet/HelloWorldExample
Internal Servlet Error:
java.lang.NoSuchMethodError
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
at java.lang.Thread.run(Thread.java:484)

I get the same error when I try running JSP or servlet. 
I have installed tomcat in 98 in the similar way and i am able to run it
properly without giving any error. 
Anyone, has any idea how to solve this.

Regards,
Anand
Systems Analyst
(65) 2200633
rd teamworks
Your Reliable Partner in e-Solutions
Software Development . Web Solutions . Network Management. Localisation
www.teamworks.com.sg

CONFIDENTIAL NOTE: The information contained in this email is intended
only for the use of the individual or entity named above and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited. If you have
received this message in error, please immediately notify the sender and
delete the mail.  Thank you.




please help - tomcat/virtual hosting..java.lang.ArrayIndexOutOfBoundsException

2001-06-07 Thread Frank

I've spent hours and hours trying to set up a quit simple virtual hosting 
server with apache  tomcat.
I get an error from tomcat upon requesting an example servlet from a 
virtual server.
Just finished rebuilding the whole server, reading again all available 
documents, reading again through the
newsgroup archives trying to find what the error could possible mean and 
how to get things working.
I already far over my deadline in finishing a multiple hosting platform for 
servlets and I'm getting a little
bit desperate here.
Could _please_ someone who recognize either the error or find an overlooked 
error in my config respond??
It might be simple..but I just can' t find it, don't know where to look, 
probably the workers/connectors or
something..
As sysadmin the whole servlet stuff is new...and being sysadmin alone isn't 
enough here to set up a server
like this it seems.

Any help appreciated,

Frank


Tomcat and namebase virtual hosting

apache 1.3.17/mod_ssl
tomcat 3.2.2
mod_jk.so (compiled from source)
jdk1.2.2 (sun)



Problem:
On a requesting a small example application from a virtual webserver with an
url like http://test1.zx.nl:9000/servlets/world.HelloWorld tomcat gives an
error and times out:


--begin error--

BAD packet 18245
In: : [B@99ad5912 4/21536/8192
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
java.lang.ArrayIndexOutOfBoundsException: 8192
 at 
org.apache.tomcat.service.connector.MsgBuffer.hexLine(MsgBuffer.java)
 at 
org.apache.tomcat.service.connector.MsgBuffer.dump(MsgBuffer.java:24)
 at 
org.apache.tomcat.service.connector.MsgBuffer.checkIn(MsgBuffer.java)
 at 
org.apache.tomcat.service.connector.TcpConnector.receive(TcpConnecto)
 at 
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processCo)
 at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
 at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav)
 at java.lang.Thread.run(Thread.java:479)

--end error--

When I leave the portnumber out, tomcat nicely answers with a 404.

Tomcat Example applications are working (http://test.bos.nl:8080) I created
a small (http://test.bos.nl/example.html) example application, which I
dropped in the tomcat example directory and that works fine as
(http://test.bos.nl:8080/examples/servlet/world.HelloWorld) well.

Configuration:


httpd.conf:

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /opt/zx/tomcat/conf/workers.properties
JkLogFile /opt/zx/apache/logs/mod_jk.log
JkLogLevelwarn

VirtualHost 195.81.39.24
  ServerName test1.zx.nl
  Documentroot /opt/www/test1.zx.nl/htdocs
  Errorlog /opt/www/test1.zx.nl/logs/error.log
  Customlog /opt/www/test1.zx.nl/logs/access.log Combined
  JkMount /*.jsp test01-ajp13
  JkMount /servlets/* test01-ajp13
  Location /WEB-INF/
   AllowOverride None
   order deny,allow
   deny from all
  /Location
  Location /META-INF/
AllowOverride None
deny from all
  /Location
/VirtualHost

VirtualHost 195.81.39.24
  ServerName test2.zx.nl
  Documentroot /opt/www/test2.zx.nl/htdocs
  Errorlog /opt/www/test2.zx.nl/logs/error.log
  Customlog /opt/www/test2.zx.nl/logs/access.log Combined
  JkMount /*.jsp test02-ajp13
  JkMount /servlets/* test02-ajp13
  Location /WEB-INF/
   AllowOverride None
   order deny,allow
   deny from all
  /Location
  Location /META-INF/
AllowOverride None
deny from all
  /Location
/VirtualHost


workers.properties:

worker.list=ajp12, ajp13, test01-ajp13, test02-ajp13

worker.test01-ajp13.port=9000
worker.test01-ajp13.host=test1.zx.nl
worker.test01-ajp13.type=ajp13

worker.test02-ajp13.port=9500
worker.test02-ajp13.host=test2.zx.nl
worker.test02-ajp13.type=ajp13


server.xml:

Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler 
value=org.apache.tomcat.service.connector.Ajp13Conne
ctionHandler/
  Parameter name=port value=9000/
/Connector
Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler 
value=org.apache.tomcat.service.connector.Ajp13Conne
ctionHandler/
  Parameter name=port value=9500/
/Connector

Host name=test1.zx.nl
  Context path=/servlets docBase=/opt/www/test1.zx.nl/webapz debug=0 
reloadable=true /
/Host
Host name=test2.zx.nl
  Context path=/servlets docBase=/opt/www/test2.zx.nl/htdocs/webapz 
debug=0 reloadable=true /
/Host

In both virtual webserver I created as servlet base the directory 
htdocs/webapz.
I've put the small example with adjusted text (Hello World!) in both webs.
(under htdocs/webapz/WEB-INF/classes/world/HelloWorld.java) 

RE: server side includes, tomcat and jsp files

2001-06-07 Thread Mick Lysejko

Hi Yes,

I have a plugin for apache that allows you to dynamically insert content etc 
into the content that's being delivered.

so in my normal content I have:
!-- #include virtual=f-call/attrib1=value1attrib2=value2 --

This works for my normal content but I aslo want it to work in my jsp files 
too.

What I find is that the tag is ignored in my jsp files so when I 'view 
source' I see the above string not the returned content.

As I said below I have tried the directive:
AddHandler server-parsed .jsp

but it seems to have no effect.
For each change I've done in each place I've tried I have re-started both 
tomcat and apache too.

thanks

Mick.

Ross, the include format he showed was the common server side include 
format
that can be used in HTML with many web servers (including both apache and
IIS)

-Original Message-
From: Ross Dyson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: RE: server side includes, tomcat and jsp files


Where did you get this syntax from?
!-- #include virtual= --

jsp has 2 sorts of includes, compile time and run time.
from the jsp 1.1 spec document:
TABLE 2-1 Summary of Include Mechanisms in JSP 1.1
Syntax What Phase Spec Object Description Section
%@ include file=... % directive translation-time virtual static Content 
is
parsed by
JSP container.
2.7.6
jsp:include page= / action request-time virtual static
and
dynamic
Content is not parsed; it
is included in place.
2.13.4

Looks bad with no formatting, but you can figure it out :-)
Ross.

-Original Message-
From: Mick Lysejko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 8:48 AM
To: [EMAIL PROTECTED]
Subject: server side includes, tomcat and jsp files


Hi folks,

I have installed apache 1.3.17 and tomcat 1.3.3 and it all works fine.
However, I wish to do server side includes in my jsp files and this does 
not
work.  eg. !-- #include virtual= --

I have tried the apache directive:
adhandler server-parse .jsp

in httpd.conf. Here it stops my jsp pages getting parsed and I got server
errors (400 I think).

I then tried adding it to apache-tomcat.conf
-- here it just gets over writen

Then I tried to put it in tomcat.conf
-- here it seems to be totaly ignored.

Does anyone have any Ideas. any help welcome  :)


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: Should we do moderation on this mailinglist??

2001-06-07 Thread Williamson, James
Title: RE: Should we do moderation on this mailinglist??





Please help!! 


Time to add my two cents, my thoughts are this list needs to be moderated as the pollution of utter ignorance/laziness/repeat posters/please helps is way out of control (strictly IMHO). 

So what about a moderated list with multiple moderators operating in a round robin fashion, if it's not dealt with it in say 2 hours, it gets forwarded to another moderator. As for getting people to do it, I'm sure there's a few power hungry people out there who would enjoy playing judge and jury (myself obviously excluded). Rejection could be for all the above reasons.

The alternative is to got for the elitist approach, a tomcat-users super group, 5 stupid postings and you're out... Then again I think I'm getting a bit too tongue in cheek.

Regards, 


James


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 00:19
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??



On Wed, 6 Jun 2001, Gary Dale wrote:


 I'd prefer to see a news group rather than this mailing list.
 Something like comp.infosystems.www.servers.apache.jakarta or just
 comp.infosystems.www.servers.jakarta would be appropriate. For that
 matter, there should be comp.infosystems.www.servers.apache group
 too. The ms-windows and unix subgroups of www.servers aren't very
 appropriate since many of the issues relating to Apache are common
 to multiple OSs.
[ ... ]


Seems to me, having a newsgroup is fine, but I don't see why it needs
to be an either/or thing. There is a procedure for creating
newsgroups, and if anyone wants to get the process started for a
tomcat/jakarta/apache newsgroup (or newsgroups), they're certainly
welcome to. But regardless of whether that happens (and/or succeeds,
which is certainly not a sure thing), there's no reason the mailing
list can't go on.


Regarding moderating the mailing list, I don't think that is feasible.
For one thing, as some have suggested, it would take a lot of work, so
it would be hard to find people to do it. Plus philosophically, I'm
not sure we really want to go that route. And of course, there is a
list owner (that exists as an entity, if not a person or persons, even
if they don't show themselves around here much :-), and they'd get
final say it what happens with this list. That may be the biggest
point, because there has been no input from any owner on this list
for a while on any of these issues (although they are on record as
saying a newsgroup is a bad idea, mostly because many people don't
have access to newsgroups because of firewalls, proxies, and such).


Also, no disrespect intended, but I'm not sure it's such a good idea
to try to come up with sweeping ideas to improve a mailing list
after having only been subscribed a few weeks. That's not very long
to get to know the ins and outs of a mailing list, how things ebb and
flow, what's been suggested/tried or not, etc.


Anyway, of the recent ideas suggested, I think the one that has the
best combination of merit/feasibility is dividing up the list into
sub-lists. This would have to be done carefully, of course, to
actually improve the situation. I'd be willing to give this a go
(although it might be the kind of thing where it would be good to have
more than one person involved). The first step though, would be to
try to get in contact with the list owner and see if they would go for
it. I'll try doing that.


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



any comment?

2001-06-07 Thread WEST, Peter


Having looked more into the issue of deploying tomcat without JDK I have
discovered the following. (I have read release notes, looked at Tomcat site,
read JSPC scripts, web.xml, server.xml, looked at Faqs, looked at archived
messages etc).

If you include tools.jar (part of JDK) in classpath JSPs will compile, but
we cannot deploy tools.jar since SUN will not tolerate such larks.

If we change web.xml on Tomcat 3.2.1 to say use the Jikes compiler, it does
not read it, 
this may have been fixed in Tomcat 4 or 5 but we do not wish to change to a
new version that is not well tested yet.

If we change the webserver.jar file to hack it to use the Jikes compiler it
would use it, but then we'd be left deploying a non-standard Tomcat jar
which isnt good.

People on this list have not responded which indicates either...

(a) Nobody knows the answer because they don't deploy Tomcat, and just use
the JDK 

(b) Everybody knows but considers it to obvious to say or write down

(c) The list is having its own political factions battle and will shortly
decide that Tomcat  cannot be mentioned unless you have a blue-Peter badge
and joinign the list shall be outlawed everywhere except in Malta.

Pete



___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



Re: Jikes and Tomcat for JSP compilation

2001-06-07 Thread Brett M. Bergquist

I've got Jikes working with Tomcat 3.2.2.  Tomcat 3.2.x does not read the
web.xml file that is in conf so you need to update your own web
application's web.xml.  Add the following lines:

servlet
servlet-name
jsp
/servlet-name
servlet-class
org.apache.jasper.servlet.JspServlet
/servlet-class
init-param
param-namejspCompilerPlugin/param-name

param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param
init-param
param-namejspCompilerPath/param-name

param-valued:\test\CanogaView\Jikes\win32\1.12\bin\jikes.exe/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet

changing d:\test\CanogaView\Jikes\win32\1.12\bin\jikes.exe to the path where
you have jikes installed and also

servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.jsp
/url-pattern
/servlet-mapping

Note that you will get a warning from stderr of something like:

2001-06-06 04:06:34 - Ctx( /CanogaView ): Removing duplicate servlet jsp
jsp(org.apache.jasper.servlet.JspServlet/null)
2001-06-06 04:06:34 - Ctx( /CanogaView ): Removing duplicate *.jsp -
jsp(org.apache.jasper.servlet.JspServlet/null)

This is because Tomcat has a builtin JSP servlet and mapping configuration
and you are overriding this.


- Original Message -
From: chris brown [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 4:45 AM
Subject: Re: Jikes and Tomcat for JSP compilation


 Hi Peter (and anyone else following this thread),

 If it's any consolation, I've asked the same question on many mailing
lists
 over a long period of time, and nobody's given a working answer yet.

 I have a JDK installed (hence I've got javac), plus Jikes.  When using
 Jikes from the commandline, it works fine.  I've even uncommented the line
 in web.xml.  But I never seemed to get it working, as in the pages
still
 compiled, but there was no way of knowing if it was jikes or javac that
did
 it  I tried renaming Jikes.exe to _jikes._exe to see if Tomcat missed
 it, but it didn't complain, so I just assumed it hadn't been taken into
 account anyway.

 I suspected that I needed to copy all (or part) of the default web.xml
into
 each web-app's WEB-INF folder, uncommenting the jikes line as
appropriate.
 However, this didn't work at all well, as it seemed to give Tomcat a
 headache.  I've already posted on this (overriding default web.xml with
 custom web.xml).  Not a lot of luck there either...

 Hope someone can give a clear answer as to how to do this -- and verify
that
 it works!

 -Chris Brown

 - Original Message -
 From: WEST, Peter
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 8:19 PM
 Subject: Jikes and Tomcat for JSP compilation


 
  can anybody point me to a straightforward how to get Tomcat to compile
 JSPs
  with Jikes rather than JDK tutorial?
 
  So far I have changed web.xml server.xml (both of which made no
 difference).
  I have also read that it may be necessary to change the source of a line
 in
  webserver.jar I have the details of this but dont exactly believe it is
  necessary??
 
  Any pointers? Ideas?
 
  thanks,
 
  Pete






RE: Precompile JSP files on startup

2001-06-07 Thread Pernica, Jan

I did I have not found any detail. Could you be more specific?

Thank you

Jan

On Thursday, June 07, 2001 12:13 PM, Krishna Kant T
[SMTP:[EMAIL PROTECTED]] wrote:
 yes it is
 do check the faq
 
 ~krishnakant
 
 
 Pernica, Jan wrote:
 
  Hi
 
  Is it possible to precompile files on startup?
 
  Thank you
 
  Jan
 
  __
  Tato komunikace je urcena vyhradne pro adresata a je duverna.
  This communication is intended solely for the addressee and is
confidential.


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






thanks...

2001-06-07 Thread WEST, Peter

thanks Brett that makes some sense. I'll try it out and see.
We're also looking at JSPC which claims to precompile JSPs a directory ata
time into class files and also generate the appropriate web.xml info to use
it.

at this stage we'll try anything.

Pete

-Original Message-
From: Brett M. Bergquist [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 11:58
To: [EMAIL PROTECTED]
Subject: Re: Jikes and Tomcat for JSP compilation


I've got Jikes working with Tomcat 3.2.2.  Tomcat 3.2.x does not read the
web.xml file that is in conf so you need to update your own web
application's web.xml.  Add the following lines:

servlet
servlet-name
jsp
/servlet-name
servlet-class
org.apache.jasper.servlet.JspServlet
/servlet-class
init-param
param-namejspCompilerPlugin/param-name

param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param
init-param
param-namejspCompilerPath/param-name

param-valued:\test\CanogaView\Jikes\win32\1.12\bin\jikes.exe/param-value
/init-param
load-on-startup
-2147483646
/load-on-startup
/servlet

changing d:\test\CanogaView\Jikes\win32\1.12\bin\jikes.exe to the path where
you have jikes installed and also

servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.jsp
/url-pattern
/servlet-mapping

Note that you will get a warning from stderr of something like:

2001-06-06 04:06:34 - Ctx( /CanogaView ): Removing duplicate servlet jsp
jsp(org.apache.jasper.servlet.JspServlet/null)
2001-06-06 04:06:34 - Ctx( /CanogaView ): Removing duplicate *.jsp -
jsp(org.apache.jasper.servlet.JspServlet/null)

This is because Tomcat has a builtin JSP servlet and mapping configuration
and you are overriding this.


- Original Message -
From: chris brown [EMAIL PROTECTED]
To: tomcat-user [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 4:45 AM
Subject: Re: Jikes and Tomcat for JSP compilation


 Hi Peter (and anyone else following this thread),

 If it's any consolation, I've asked the same question on many mailing
lists
 over a long period of time, and nobody's given a working answer yet.

 I have a JDK installed (hence I've got javac), plus Jikes.  When using
 Jikes from the commandline, it works fine.  I've even uncommented the line
 in web.xml.  But I never seemed to get it working, as in the pages
still
 compiled, but there was no way of knowing if it was jikes or javac that
did
 it  I tried renaming Jikes.exe to _jikes._exe to see if Tomcat missed
 it, but it didn't complain, so I just assumed it hadn't been taken into
 account anyway.

 I suspected that I needed to copy all (or part) of the default web.xml
into
 each web-app's WEB-INF folder, uncommenting the jikes line as
appropriate.
 However, this didn't work at all well, as it seemed to give Tomcat a
 headache.  I've already posted on this (overriding default web.xml with
 custom web.xml).  Not a lot of luck there either...

 Hope someone can give a clear answer as to how to do this -- and verify
that
 it works!

 -Chris Brown

 - Original Message -
 From: WEST, Peter
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 06, 2001 8:19 PM
 Subject: Jikes and Tomcat for JSP compilation


 
  can anybody point me to a straightforward how to get Tomcat to compile
 JSPs
  with Jikes rather than JDK tutorial?
 
  So far I have changed web.xml server.xml (both of which made no
 difference).
  I have also read that it may be necessary to change the source of a line
 in
  webserver.jar I have the details of this but dont exactly believe it is
  necessary??
 
  Any pointers? Ideas?
 
  thanks,
 
  Pete




___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



Re: thanks...

2001-06-07 Thread Brett M. Bergquist

Also make sure that your classpath is setup properly so that Jikes picks it
up.  If in conf\server.xml, you change the jasper logging level to DEBUG
such as:

Logger name=JASPER_LOG
 path=logs/jasper.log
 verbosityLevel = DEBUG /

You will get a trace like below.  If you are running under NT and running
Tomcat as a service using jk_nt_service.exe, make sure that you've properly
configured wrapper.properties.  I'm just in the process of migrating over
from Tomcat 3.1 to Tomcat 3.2.2 and Jikes and the new jaxp XML packages are
the areas that I've had trouble with.

Hope this helps.

2001-06-07 07:25:46 - JspEngine -- /jsp/Domain.jsp
2001-06-07 07:25:46 -   ServletPath: /jsp/Domain.jsp
2001-06-07 07:25:46 -  PathInfo: null
2001-06-07 07:25:46 -  RealPath:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\jsp\Domain.j
sp
2001-06-07 07:25:46 -RequestURI: /CanogaView/jsp/Domain.jsp
2001-06-07 07:25:46 -   QueryString: IP_CONTEXT=192.168.1.100
2001-06-07 07:25:46 -Request Params:
2001-06-07 07:25:46 -IP_CONTEXT = 192.168.1.100
2001-06-07 07:25:46 - Classpath according to the Servlet Engine is:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\WEB-INF\clas
ses
2001-06-07 07:25:46 - Package name is: jsp
2001-06-07 07:25:46 - Class file name is:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\work\localhost_8080%2FCanogaVie
w\_0002fjsp_0002fDomain_0002ejspDomain.class
2001-06-07 07:25:46 - Java file name is:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\work\localhost_8080%2FCanogaVie
w\_0002fjsp_0002fDomain_0002ejspDomain_jsp_0.java
2001-06-07 07:25:46 - Class name is:
_0002fjsp_0002fDomain_0002ejspDomain_jsp_0
2001-06-07 07:25:53 - JspEngine -- /jsp/DomainView.jsp
2001-06-07 07:25:53 -   ServletPath: /jsp/DomainView.jsp
2001-06-07 07:25:53 -  PathInfo: null
2001-06-07 07:25:53 -  RealPath:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\jsp\DomainVi
ew.jsp
2001-06-07 07:25:53 -RequestURI: /CanogaView/jsp/DomainView.jsp
2001-06-07 07:25:53 -   QueryString: IP_CONTEXT=192.168.1.100
2001-06-07 07:25:53 -Request Params:
2001-06-07 07:25:53 -IP_CONTEXT = 192.168.1.100
2001-06-07 07:25:53 - Classpath according to the Servlet Engine is:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\WEB-INF\clas
ses
2001-06-07 07:25:53 - Package name is: jsp
2001-06-07 07:25:53 - Class file name is:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\work\localhost_8080%2FCanogaVie
w\_0002fjsp_0002fDomainView_0002ejspDomainView.class
2001-06-07 07:25:53 - Java file name is:
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\work\localhost_8080%2FCanogaVie
w\_0002fjsp_0002fDomainView_0002ejspDomainView_jsp_0.java
2001-06-07 07:25:53 - Class name is:
_0002fjsp_0002fDomainView_0002ejspDomainView_jsp_0
2001-06-07 07:25:53 - Accepted org.apache.jasper.compiler.Parser$Declaration
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\jsp\DomainVi
ew.jsp(0,0)
2001-06-07 07:25:53 -
Handling Directive: include
{file=/com/canoga/canogaview/lib/jsp/CheckLogin.jsp}
2001-06-07 07:25:53 - Accepted org.apache.jasper.compiler.Parser$Directive
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\jsp\DomainVi
ew.jsp(1,0)
2001-06-07 07:25:53 - Accepted org.apache.jasper.compiler.Parser$Comment at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\com\canoga\c
anogaview\lib\jsp\CheckLogin.jsp(0,0)
2001-06-07 07:25:53 -
Handling Directive: page
{import=com.canoga.canogaview.iface.CanogaViewConstants,com.canoga.canogavie
w.lib.auth.*}
2001-06-07 07:25:53 - Accepted org.apache.jasper.compiler.Parser$Directive
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\com\canoga\c
anogaview\lib\jsp\CheckLogin.jsp(3,0)
2001-06-07 07:25:54 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\com\canoga\c
anogaview\lib\jsp\CheckLogin.jsp(4,0)
2001-06-07 07:25:54 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\jsp\DomainVi
ew.jsp(2,0)
2001-06-07 07:25:54 -
Handling Directive: include
{file=/com/canoga/canogaview/lib/jsp/ExtractChassisContext.jsp}
2001-06-07 07:25:54 - Accepted org.apache.jasper.compiler.Parser$Directive
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\jsp\DomainVi
ew.jsp(3,0)
2001-06-07 07:25:54 -
Handling Directive: page {import=com.canoga.canogaview.lib.snmp.*}
2001-06-07 07:25:54 - Accepted org.apache.jasper.compiler.Parser$Directive
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\com\canoga\c
anogaview\lib\jsp\ExtractChassisContext.jsp(0,0)
2001-06-07 07:25:54 - Accepted org.apache.jasper.compiler.Parser$Scriptlet
at
D:\test\CanogaView\Tomcat\3.1\jakarta-tomcat\webapps\CanogaView\com\canoga\c
anogaview\lib\jsp\ExtractChassisContext.jsp(1,0)
2001-06-07 07:25:54 -
Handling 

RE: Newbie Help

2001-06-07 Thread Randy Layman


They left out a step.  Somewhere around step 5 you need to set the
environment variable JAVA_HOME (and I would suggest setting TOMCAT_HOME so
that the shell script doesn't have to guess).  You can do this at the same
place where they recommend setting the PATH with the following two commands:
setenv JAVA_HOME /usr/local/jdk1.1.8 [enter]
setenv TOMCAT_HOME /home/yourusername/servlets/jakarta-tomcat-3.2.2 [enter]

And this should get you going.  Once you get this working correctly, I would
suggest contacting your hosting company and giving them the corrections.

Randy

 -Original Message-
 From: Mark Senefsky [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 7:54 PM
 To: [EMAIL PROTECTED]
 Subject: Newbie Help
 
 
 Greetings all...
 
 I recently hooked up with a new hosting company and they sent me the
 following directions for compiling and installing Jakarta and Tomcat.
 I hit a snag in the middle (please scroll to // comments) and 
 I don't know
 what to do.
 
 Solution:
 1) Open a telnet or SSH session to your Freedom server.
 2) Download the proper files to your server.
 
 You are going to need to download both the binary and source 
 versions of
 jakarta for this installation.
 
 In a web browser connect to http://jakarta.apache.org. Once 
 there click
 Binaries. Under Release Builds select Tomcat 3.2.2 or 
 similar. This will
 bring you to new screen where you will need to find the GZIP 
 compressed
 distribution, right click on it and select Copy Shortcut.
 
 Once you have this in your clip board go back in to your telnet window
 and type the following:
 cd [enter]
 mkdir servlets [enter]
 cd servlets [enter]
 Inside telnet prompt at your Freedom server type:
 lynx 
 Then paste in your URL, so you have something like the 
 following and hit
 enter:
 lynx 
 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1
 /bin/jakar
 ta-tomcat-3.2.1.tar.gz
 Select d for download
 Once prompted to save to disk hit enter
 Press enter to okay the filename.
 Then q and y to accept this quit
 
 Go back to your browser window and follow the same procedures for
 downloading the source for the same version number of tomcat. The file
 may be something like jakarta-tomcat-3.2.2-src.tar.gz.
 
 3) Once you have both of these files in your servlets 
 directory you will
 need to ucompress them.
 
 In your telnet session type:
 tar xzvf jakarta-tomcat-3.2.2.tar.gz [enter]
 tar xzvf jakarta-tomcat-3.2.2-src.tar.gz [enter]
 
 4) Next You will want to compile mod_jserv
 
 To do this first move in to the proper directory, in this case:
 cd jakarta-tomcat-3.2.2-src/src/native/apache/jserv/ [enter]
 
 Then type the command to actually compile the module:
 /www/bin/apxs -c -o mod_jserv.so *.c [enter]
 
 Once this finishes you should copy the module to a more convenient
 location:
 cp mod_jserv.so /home/yourusername/servlets/ [enter]
 
 5) Next you need to start tomcat.
 
 To make this easiest I would suggest getting in to the tcsh 
 shell first
 and making sure your PATH includes that java bin directory:
 tcsh [enter]
 setenv PATH /usr/local/jdk1.1.8:$PATH [enter]
 
 Now start jakarta tomcat:
 /home/yourusername/servlets/jakarta-tomcat-3.2.2/bin/startup.s
 h [enter]
 
 //
 -
 // I MADE IT TO HERE
 //
 // I got this message:
 //
 // Guessing TOMCAT_HOME from tomcat.sh to
 // /home/senefsky/servlets/jakarta-tomcat-3.2.2/bin/..
 // Setting TOMCAT_HOME to
 // /home/senefsky/servlets/jakarta-tomcat-3.2.2/bin/..
 // Cannot find JAVA. Please set your PATH.
 //
 //
 -
 
 
 That will generate a configuration file that you need to backup and
 modify.
 
 6) Next you will need to create and modify a backup of the 
 configuration
 file, because this config file is created with the assumption that you
 put mod_jserv in the /www/libexec directory which you do not 
 have access
 to.
 
 To create a backup of the configuration file type from you telnet
 prompt:
 cd /home/yourusername/servlets/jakarta-tomcat-3.2.2/conf/ [enter]
 cd tomcat-apache.conf my-tomcat-apache.conf [enter]
 
 Now modify the backed up file:
 pico -w my-tomcat-apache.conf [enter]
 
 Replace:
 LoadModule  jserv_module libexec/mod_jserv.so
 
 With:
 LoadModule  jserv_module /home/yourusername/servlets/mod_jserv.so
 
 Finally, type [ctrl]+x, then hit y [enter] to save the file.
 
 7) Now you want to add this new file to your apache configuration.
 
 Add the following line to the bottom of your httpd.conf file:
 Include 
 /home/yourusername/servlets/jakarta-tomcat-3.2.2/conf/my-tomca
 t-apache.c
 onf
 
 8) Enable tomcat to work through Apache
 
 Do this by restarting Apache, which can be done with the following
 command:
 apachectl restart [enter]
 
 To verify it is running try going to the following pages:
 http://www.yourdomain.com/examples/jsp/index.html
 

Why is this happening ...

2001-06-07 Thread Sac Chi

Hi,

Can someone tell me why the following exception is thrown:


HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
java.io.IOException: Stream closed prematurely
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:422)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

=
Sac_Chi_ki_Signature.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Wolle


Hello,
what's with an Forum, like phpBB http://www.phpBB.com ,
it could be moderated from a couple of persons, and a seach engine
is also included and it's Free. It uses the MySQL Database.
Greetings,
Wolle
"Williamson, James" wrote:

Please help!!
Time to add my two cents, my thoughts are this list needs
to be moderated as the pollution of utter ignorance/laziness/repeat posters/"please
helps" is way out of control (strictly IMHO).
So what about a moderated list with multiple moderators
operating in a round robin fashion, if it's not dealt with it in say 2
hours, it gets forwarded to another moderator. As for getting people to
do it, I'm sure there's a few power hungry people out there who would enjoy
playing judge and jury (myself obviously excluded). Rejection could be
for all the above reasons.
The alternative is to got for the elitist approach, a
tomcat-users super group, 5 stupid postings and you're out... Then again
I think I'm getting a bit too tongue in cheek.
Regards,
James
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 00:19
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??
On Wed, 6 Jun 2001, Gary Dale wrote:
> I'd prefer to see a news group rather than this mailing
list.
> Something like comp.infosystems.www.servers.apache.jakarta
or just
> comp.infosystems.www.servers.jakarta would be appropriate.
For that
> matter, there should be comp.infosystems.www.servers.apache
group
> too. The ms-windows and unix subgroups of www.servers
aren't very
> appropriate since many of the issues relating to Apache
are common
> to multiple OSs.
[ ... ]
Seems to me, having a newsgroup is fine, but I don't see
why it needs
to be an either/or thing. There is a procedure
for creating
newsgroups, and if anyone wants to get the process started
for a
tomcat/jakarta/apache newsgroup (or newsgroups), they're
certainly
welcome to. But regardless of whether that happens
(and/or succeeds,
which is certainly not a sure thing), there's no reason
the mailing
list can't go on.
Regarding moderating the mailing list, I don't think that
is feasible.
For one thing, as some have suggested, it would take
a lot of work, so
it would be hard to find people to do it. Plus
philosophically, I'm
not sure we really want to go that route. And of
course, there is a
list owner (that exists as an entity, if not a person
or persons, even
if they don't show themselves around here much :-), and
they'd get
final say it what happens with this list. That
may be the biggest
point, because there has been no input from any "owner"
on this list
for a while on any of these issues (although they are
on record as
saying a newsgroup is a bad idea, mostly because many
people don't
have access to newsgroups because of firewalls, proxies,
and such).
Also, no disrespect intended, but I'm not sure it's such
a good idea
to try to come up with sweeping ideas to "improve" a
mailing list
after having only been subscribed a few weeks.
That's not very long
to get to know the ins and outs of a mailing list, how
things ebb and
flow, what's been suggested/tried or not, etc.
Anyway, of the recent ideas suggested, I think the one
that has the
best combination of merit/feasibility is dividing up
the list into
sub-lists. This would have to be done carefully,
of course, to
actually improve the situation. I'd be willing
to give this a go
(although it might be the kind of thing where it would
be good to have
more than one person involved). The first step
though, would be to
try to get in contact with the list owner and see if
they would go for
it. I'll try doing that.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

**
This e-mail (including any documents which may accompany
it) contains
information which is confidential and may also be
privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note
that any form of
distribution, copying or use of this e-mail or the
information in it
or attached to it is strictly prohibited and may
be unlawful.
If you have received this e-mail in error please
notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44
(0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer
do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not
relate to the
business of Windsor plc and/or subsidiary and/or
associated companies
shall be treated as neither given or endorsed by
it.
**

--
__
Gruss,
Wolle
---

[EMAIL PROTECTED]




RE: I need an advice to make Tomcat a NT service

2001-06-07 Thread Randy Layman


Someone has already answered about the service so I will pass over
that issue and warn you of another problem in your architecture.

Sun's JDBC-ODBC bridge is not thread safe.  If you attempt two
concurrent connections then you will get a crash (Dr. Watson or GPF
depending on version of Windows).  You can read about this in the Bug Parade
(I don't have the number currently).  Sun's response is that the JDBC-ODBC
bridge is experimental and should not be used in a production environment.
I would suggest you find other drivers, either ODBC or otherwise for your
application.

Randy


 -Original Message-
 From: Alexandre Bouchard [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 7:59 PM
 To: [EMAIL PROTECTED]
 Subject: I need an advice to make Tomcat a NT service
 
 
 At business, they were using IIS running on NT4 with ASP as 
 the scripting
 language... until I arrived :)  With the help of this mailing 
 list's archive
 and users, I set up a JDBC-ODBC bridge, and I make IIS give 
 Tomcat the JSP
 job (no more ASP ! relief !).
 
 Now, all I have to do is to make Tomcat a NT service so that 
 when the server
 administrator logs off, the server will still run. I am using 
 java version
 1.3, and I faced the bug #4323062. I read the information 
 available at the
 url:
 http://developer.java.sun.com/developer/bugParade/bugs/4323062.html
 and I saw many solutions proposed. What I need is a 
 simple-to-setup, yet
 reliable, solution. Bill Giel's solution seems good for me. 
 Should I use it?
 Is it simple enough?
 
 So I need feedbacks from people who installed successfully Tomcat as a
 service that do not die if the user logs off. How did you 
 avoided the bug?
 What solution did you used? Was that simple to setup? And how 
 reliable is
 your server now?
 
 Thx
 
 Alexandre Bouchard,
 Intranet administrator
 Bell
 



RE: Starting tomcat

2001-06-07 Thread Randy Layman


Move Tomcat and Java out of directories that contain spaces.


 -Original Message-
 From: Denis Kovalkov [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 7:59 AM
 To: [EMAIL PROTECTED]
 Subject: Starting tomcat
 
 
 I installed Tomcat 3.2.2 on win2000 with jdk 1.3.1.
 When I start it I get next message:
 
 Files\Apache was unexpected at this time.
 
 How to correct this? Apache is shuted down.
 
 
 
 
 Get free email and a permanent address at 
 http://www.netaddress.com/?N=1
 



Problem in linking Tomcat 3.2.1 and Apache 1.3.19 in AIX 4.3

2001-06-07 Thread Tanveer Ahmed



Hi I have 
compiledTomcat 3.2.1onAIX 4.3.3 and the version of apache is 
1.3.19 I followed the steps specified in the apache website.
when  I am starting apache I'm getting 
following error
***Syntax error on line 274 of 
/usr/local/apache/conf/httpd.conf:Can't locate API module structure 
`jk_module' in file /usr/local/apache/libexec/mod_jk.so: Function not 
implemented (jk_module)apachectl start: httpd could not be started 


***
Note it that I have added the following lines in my 
httpd.conf
***
274 LoadModulejk_module  libexec/mod_jk.so
275 AddModule mod_jk.c
276 JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
277 JkLogFile /usr/local/apache/logs/mod_jk.log
278 JkLogLevelwarn
***
Can anybody give me a pointer in resolving this 
problem.


Extreme latency when loadbalancing servlets

2001-06-07 Thread David Lennartsson


Hi everyone,

[running IBM JDK 1.3 for linux, debian, tomcat 3.2.2, mod_jk]

I have a small, or rather large problem. We have a couple of servlets that
generates gif-images. Since that takes about 0.6 sec we cache these on
apache. This is a nifty hack where all access goes to
http://host/static/blaha.gif
This sends precached gifs. If a gif is missing, the 404 Error handler is a
perl-script that connects to http://host/webapp/blaha.gif using w3c
(from lib-www?) and writes down the result both to the static cache and
send it to the browser. (webapp is mapped using mod_jk)

Works good! But we have noticed that something is extremely slow. If we
connect to http://host:8081/webapp/blaha.gif it takes about 0.5
seconds. If we connect to http://host/webapp/blaha.gif (which is mounted
to loadbalancer consisting of two workers(pooled ajp13).. this works great
in all other tests) it takes about 17!! seconds!.

When I try to access other static documents using the loadbalancer it
works great, however this servletmapping seems realy slow.

For now I have solved it by sending all requests from the error 404 script
directly to a tomcat worker (using http) without using
loadbalancer. However, then I'll lose the redundancy I want.

Anyone who has ideas is more than welcome to mail me!

/david

ps. I have seen a lot of people requesting help on setting up simple
loadbalancers. Mail me in private if you want to know more about my
setup. I use two tomcat workers running on a single host. This gives me no
speed gain but som redundancy as well as easier maintance. One worker can
be taken down while the other continues to serve the site.





RE: Why is this happening ...

2001-06-07 Thread WEST, Peter

sounds like your web server died or was shut down while Tomcat had only
received part of the current request.

-Original Message-
From: Sac Chi [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 12:39
To: [EMAIL PROTECTED]
Subject: Why is this happening ...


Hi,

Can someone tell me why the following exception is thrown:


HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
java.io.IOException: Stream closed prematurely
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1
2ConnectionHandler.java:422)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:147)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

=
Sac_Chi_ki_Signature.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/


___
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___



Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Gary Dale

Your points are well taken. However, in defence of newsgroups, this is a 
high-volume list that I think would be better handled as a newsgroup.
1) I think a lot of people aren't able to stay in the list continually 
due to the volume. There's a lot of subscribe, unsubscribe going on for 
people who need occaisional help.
2) the process of subscribing to a listserve can be a little off-putting 
and then there's the delay in getting getting on.
3) How many firewalls block all news groups? I wouldn't want to exclude 
anyone, but surely anyone in a position to be running a java server has 
access to newsgroups somehow.
4) Threaded discussions are better handled in newsgroups than listserves.
5) You can see the (recent) history before asking the same question that 
someone else asked a couple of days ago.
6) Yes, you can keep the mailing list going but hopefully a news group 
would open things up to whole new range of people while reducing the 
mail volume to something manageable.


Milt Epstein wrote:

On Wed, 6 Jun 2001, Gary Dale wrote:

I'd prefer to see a news group rather than this mailing list.
Something like comp.infosystems.www.servers.apache.jakarta or just
comp.infosystems.www.servers.jakarta would be appropriate. For that
matter, there should be comp.infosystems.www.servers.apache group
too.  The ms-windows and unix subgroups of www.servers aren't very
appropriate since many of the issues relating to Apache are common
to multiple OSs.

[ ... ]

Seems to me, having a newsgroup is fine, but I don't see why it needs
to be an either/or thing.  There is a procedure for creating
newsgroups, and if anyone wants to get the process started for a
tomcat/jakarta/apache newsgroup (or newsgroups), they're certainly
welcome to.  But regardless of whether that happens (and/or succeeds,
which is certainly not a sure thing), there's no reason the mailing
list can't go on.

Regarding moderating the mailing list, I don't think that is feasible.
For one thing, as some have suggested, it would take a lot of work, so
it would be hard to find people to do it.  Plus philosophically, I'm
not sure we really want to go that route.  And of course, there is a
list owner (that exists as an entity, if not a person or persons, even
if they don't show themselves around here much :-), and they'd get
final say it what happens with this list.  That may be the biggest
point, because there has been no input from any owner on this list
for a while on any of these issues (although they are on record as
saying a newsgroup is a bad idea, mostly because many people don't
have access to newsgroups because of firewalls, proxies, and such).

Also, no disrespect intended, but I'm not sure it's such a good idea
to try to come up with sweeping ideas to improve a mailing list
after having only been subscribed a few weeks.  That's not very long
to get to know the ins and outs of a mailing list, how things ebb and
flow, what's been suggested/tried or not, etc.

Anyway, of the recent ideas suggested, I think the one that has the
best combination of merit/feasibility is dividing up the list into
sub-lists.  This would have to be done carefully, of course, to
actually improve the situation.  I'd be willing to give this a go
(although it might be the kind of thing where it would be good to have
more than one person involved).  The first step though, would be to
try to get in contact with the list owner and see if they would go for
it.  I'll try doing that.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]








Re: Evil ? mod_jk.conf-auto

2001-06-07 Thread Milt Epstein

On Wed, 6 Jun 2001, Jon Shoberg wrote:

 Can anyone exactly state why mod_jk.conf-auto is so evil ?  What is
 so wrong with using it ?

It's not that it's evil, it's just that it's unlikely to be 100%
complete and correct.  I guess the way that file is auto-generated is
not smart enough to figure everything out (plus there's no way to
specify some things for it).

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Will England

Good points.

1) Google now has Usenet reading and posting.  Anyone with port 80 and a
GUI browser can read / post to Usenet.

2) So, Gary, are you going to read the FAQ about creating a newsgroup and
hold the vote?  All you have to do is post a RFD, wait, post a CFV, wait,
count the votes and then (assuming it's approved), get one of the
newsadmins to start the group.

It's all there in news.anwers

Will


-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 

On Thu, 7 Jun 2001, Gary Dale wrote:

 Your points are well taken. However, in defence of newsgroups, this is a 
 high-volume list that I think would be better handled as a newsgroup.
 1) I think a lot of people aren't able to stay in the list continually 
 due to the volume. There's a lot of subscribe, unsubscribe going on for 
 people who need occaisional help.
 2) the process of subscribing to a listserve can be a little off-putting 
 and then there's the delay in getting getting on.
 3) How many firewalls block all news groups? I wouldn't want to exclude 
 anyone, but surely anyone in a position to be running a java server has 
 access to newsgroups somehow.
 4) Threaded discussions are better handled in newsgroups than listserves.
 5) You can see the (recent) history before asking the same question that 
 someone else asked a couple of days ago.
 6) Yes, you can keep the mailing list going but hopefully a news group 
 would open things up to whole new range of people while reducing the 
 mail volume to something manageable.
 
 
 Milt Epstein wrote:
 
 On Wed, 6 Jun 2001, Gary Dale wrote:
 
 I'd prefer to see a news group rather than this mailing list.
 Something like comp.infosystems.www.servers.apache.jakarta or just
 comp.infosystems.www.servers.jakarta would be appropriate. For that
 matter, there should be comp.infosystems.www.servers.apache group
 too.  The ms-windows and unix subgroups of www.servers aren't very
 appropriate since many of the issues relating to Apache are common
 to multiple OSs.
 
 [ ... ]
 
 Seems to me, having a newsgroup is fine, but I don't see why it needs
 to be an either/or thing.  There is a procedure for creating
 newsgroups, and if anyone wants to get the process started for a
 tomcat/jakarta/apache newsgroup (or newsgroups), they're certainly
 welcome to.  But regardless of whether that happens (and/or succeeds,
 which is certainly not a sure thing), there's no reason the mailing
 list can't go on.
 
 Regarding moderating the mailing list, I don't think that is feasible.
 For one thing, as some have suggested, it would take a lot of work, so
 it would be hard to find people to do it.  Plus philosophically, I'm
 not sure we really want to go that route.  And of course, there is a
 list owner (that exists as an entity, if not a person or persons, even
 if they don't show themselves around here much :-), and they'd get
 final say it what happens with this list.  That may be the biggest
 point, because there has been no input from any owner on this list
 for a while on any of these issues (although they are on record as
 saying a newsgroup is a bad idea, mostly because many people don't
 have access to newsgroups because of firewalls, proxies, and such).
 
 Also, no disrespect intended, but I'm not sure it's such a good idea
 to try to come up with sweeping ideas to improve a mailing list
 after having only been subscribed a few weeks.  That's not very long
 to get to know the ins and outs of a mailing list, how things ebb and
 flow, what's been suggested/tried or not, etc.
 
 Anyway, of the recent ideas suggested, I think the one that has the
 best combination of merit/feasibility is dividing up the list into
 sub-lists.  This would have to be done carefully, of course, to
 actually improve the situation.  I'd be willing to give this a go
 (although it might be the kind of thing where it would be good to have
 more than one person involved).  The first step though, would be to
 try to get in contact with the list owner and see if they would go for
 it.  I'll try doing that.
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 
 
 
 
 




RE: Reloading changed servlets problem

2001-06-07 Thread William Kaufman

I think the reason no one responded was, you didn't say _what_ problem you
had.

If you're getting an exception/error somewhere, post the stack trace, and
the line of code where it happened.

If it's just that the servlet didn't reload, it might be a problem with the
timestamp on the file (esp. if the directory is remotely mounted),...

-- Bill K.


 -Original Message-
 From: RANDRIAMPARANY Honitriniela
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 1:01 AM
 To: [EMAIL PROTECTED]
 Subject: Reloading changed servlets problem
 
 
 
 Hi,
 
 Not having received a response for my mail, I would like to 
 send it again. It
 is very significant for us to have Tomcat that is able to 
 reload the changed 
 servlets since we use it for the exercises of the students in 
 a computer 
 science course.
 So, please help me. I put my original message below. We use 
 Tomcat-3.2.1 
 standalone.
 
 -- Honitra.
 
  original message 
 -Date: 
 Wed, 06 Jun 2001 14:15:33 +0200
 From: RANDRIAMPARANY Honitriniela 
 [EMAIL PROTECTED]
 Subject: Reloading changed servlets problem
 To: [EMAIL PROTECTED]
 
 
 Hi,
 
 I use tomcat-3.2.1. I still have problem with the reloading 
 of changed 
 servlets whereas I have the following entry in the server.xml file.
 
 Context path=/TP_genielog 
  docBase=webapps/TP_genielog 
  crossContext=false
  debug=0 
  reloadable=true  
 /Context
 
 I read this in the FAQ:
 Note: Do NOT include the classes or .jar files from WEB-INF 
 directories for
  which you want to enable automatic servlet reloading in the 
 CLASSPATH of the
  shell that starts Tomcat. 
 
 I followed this instruction. The reloading worked fine for a 
 moment, and then 
 the
 problem arised again. 
 
 Could somebody say me what I must do? How can one erase the 
 cache memory of 
 Tomcat?
 
 Thanks for any help.
 
 
 -- Honitra.
 
 



RE: server side includes, tomcat and jsp files

2001-06-07 Thread Jason Koeninger

It would probably be best to use Java's include calls as 
identified in another e-mail, but I did find the following 
statement in the Apache documentation:

For backwards compatibility, documents with mime type 
text/x-server-parsed-html or text/x-server-parsed-html3 will 
also be parsed (and the resulting output given the mime type 
text/html).

Maybe if you modify the mime type the JSP pages generate, 
you'll get Apache to process it.  Don't really know, though.  It 
depends on how mod_jk works together with Apache and SSI.

It's important to keep in mind how Apache works with Tomcat.   
Apache doesn't serve the jsp files, it serves a data stream 
coming through ajp12 or ajp13 from Tomcat.  As a result, it 
would have to touch the data after Tomcat returns it, not the 
file before Tomcat processes it.  

Hope that helps.  I really would recommend you consider 
using the Java approach.  It would probably be less of a 
headache.

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 07 Jun 2001 10:22:24 -, Mick Lysejko wrote:

Hi Yes,

I have a plugin for apache that allows you to dynamically insert content etc 
into the content that's being delivered.

so in my normal content I have:
!-- #include virtual=f-call/attrib1=value1attrib2=value2 --

This works for my normal content but I aslo want it to work in my jsp files 
too.

What I find is that the tag is ignored in my jsp files so when I 'view 
source' I see the above string not the returned content.

As I said below I have tried the directive:
AddHandler server-parsed .jsp

but it seems to have no effect.
For each change I've done in each place I've tried I have re-started both 
tomcat and apache too.

thanks

Mick.

Ross, the include format he showed was the common server side include 
format
that can be used in HTML with many web servers (including both apache and
IIS)

-Original Message-
From: Ross Dyson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: RE: server side includes, tomcat and jsp files


Where did you get this syntax from?
!-- #include virtual= --

jsp has 2 sorts of includes, compile time and run time.
from the jsp 1.1 spec document:
TABLE 2-1 Summary of Include Mechanisms in JSP 1.1
Syntax What Phase Spec Object Description Section
%@ include file=... % directive translation-time virtual static Content 
is
parsed by
JSP container.
2.7.6
jsp:include page= / action request-time virtual static
and
dynamic
Content is not parsed; it
is included in place.
2.13.4

Looks bad with no formatting, but you can figure it out :-)
Ross.

-Original Message-
From: Mick Lysejko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 8:48 AM
To: [EMAIL PROTECTED]
Subject: server side includes, tomcat and jsp files


Hi folks,

I have installed apache 1.3.17 and tomcat 1.3.3 and it all works fine.
However, I wish to do server side includes in my jsp files and this does 
not
work.  eg. !-- #include virtual= --

I have tried the apache directive:
adhandler server-parse .jsp

in httpd.conf. Here it stops my jsp pages getting parsed and I got server
errors (400 I think).

I then tried adding it to apache-tomcat.conf
-- here it just gets over writen

Then I tried to put it in tomcat.conf
-- here it seems to be totaly ignored.

Does anyone have any Ideas. any help welcome  :)


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.






Re: Logging

2001-06-07 Thread Will England

Make sure you have:

Logger name=tc_log 
path=logs/tomcat.log
customOutput=yes /

Logger name=servlet_log 
path=logs/servlet.log
customOutput=yes /

Logger name=JASPER_LOG 
path=logs/jasper.log^
verbosityLevel = INFORMATION /^


in your server.xml.  

I know the output goes to either servlet_log or tc_log, and make a call to 

 this.getServletContext().log(msg, e);

This worked for me.

Will

-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 

On Wed, 6 Jun 2001, Jeff Gaer wrote:

 
 I am running tomcat 3.2.1 standalone on windows 2k professional  using the
 sun jdk 1.3.1.
 
 I use the Servlet.log(string) method to output diagnostics but do not see it
 appear in 
 the logs
 
 logs/jasper.log contains
 
 2001-06-06 11:28:32 - Scratch dir for the JSP engine is:
 C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fbobo
 2001-06-06 11:28:32 - IMPORTANT: Do not modify the generated servlets
 
 
 and servlet.log contains
 2001-06-06 11:28:32 - path=/bobo :jsp: init
 2001-06-06 11:28:32 - path=/admin :jsp: init
 2001-06-06 11:28:32 - path=/ClrCmrc :jsp: init
 2001-06-06 11:28:32 - path=/ClrCmrcPmtPrc :jsp: init
 2001-06-06 11:28:32 - path= :jsp: init
 2001-06-06 11:28:36 - path=/ClrCmrcPmtPrc :xsl: init
 2001-06-06 11:28:38 - path=/ClrCmrcPmtPrc :xsl2: init
 
 
 The servlet executes successfully but there are dozens of calls to log(str)
 none of which appear in the logs. Is there a configuration step I am
 missing? 
 
 Thanks in advance for any help. 
 
 
 Jeff Gaer
 ClearCommerce Corp. 
 




setting content type from servlet

2001-06-07 Thread Amos Shapira

Hello,

Out environment:
1. Tomcat 3.2.2
2. Sun JDK 1.2.2_5
3. Windows 2000

We accept requests in Servlets which set the content type then forward the
request to the JSP.

It seems that the JSP overrides the content type as part of its
initialization.

We would like to avoid adding a %@ page contentType=...% to each
JSP page both for maintenability and since we want the content type to
be configurable.

Is there a way to do that?

I read in the jGuru JSP FAQ that an include() instead of a forward() might
cause
header-setting in the JSP to be ignored, is that the right solution?  What
else would
this affect?

Thanks,

--Amos





RE: download files using ftp from browser

2001-06-07 Thread Will England

You are exactally correct.  To download a file via FTP, all you do is make
sure you have a functioning FTP server, make sure the files are available
to anonymous users on the FTP server and then make the A HREF links like
this:

ftp://ftp.yourserver.com/path/to/file.html

instead of 

http://www.yourserver.com/path/to/file.html

This tells the client interface program (web browser) to connect via the
FTP protocol instead of the HTTP protocol.

Will


-- 
  If Al Gore invented the Internet, then I invented spellcheck!
  Dan Quayle, quoted at the National Press Club, 8/3/1999 
  [EMAIL PROTECTED] 
  Recovery  : http://will.mylanders.com/ PCS:  316-371-FOAD 

On Wed, 6 Jun 2001, Ross Dyson wrote:

 What happens if you have your ftp server set up, and you have the path to a
 file in your ftp server's default path, and on your download page you have
 prefix it with ftp://
 
 I think the ftp downloads must be a function of your ftp server.
 
 -Original Message-
 From: aswath satrasala [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 6 June 2001 8:03 AM
 To: [EMAIL PROTECTED]
 Subject: download files using ftp from browser
 
 
 Hello,
 Sorry, I think I did not phrase the question properly
 or I think I am looking for alternate answers.
 
 I am looking to download files using FTP from
 my website through browser.  (This is similar to sun's
 option to provide JDK download using FTP)
 
 I have simple website (all html) which displays
 all the files in a given directory.  When the user
 click on any file, then file download is started.
 I think this is a http download and is the default
 behavior of the browser.
 
 I would like to do a ftp download instead of http download
 (This is similar to sun's
 option to provide JDK download using FTP)
 I wanted to do this, because I understand that FTP is
 a better protocol for file download. Also my file size are
 large like 1GB
 
 Thanks
 -Aswath
 
 
 
 
 
 
 
 
 
 From: William Kaufman [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: RE: download files using ftp
 Date: Tue, 5 Jun 2001 07:05:36 -0700
 
 Do you mean you're trying to do an FTP download _of_ Java _in_ Java?
 
 I wouldn't attempt this: there's one form (the license agreement) followed
 by another form (the FTP download site selection).  And Sun would probably
 consider bypassing the forms (if possible) as legally questionable,
 especially the license agreement.
 
 If you're just trying to do an FTP download in Java (of something else),
 look at
 
  http://java.sun.com/j2se/1.3/docs/api/java/net/URL.html
 
 specifically, URL.openConnection().
 
  -- Bill K.
 
 
   -Original Message-
   From: aswath satrasala [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, June 05, 2001 6:57 AM
   To: [EMAIL PROTECTED]
   Subject: download files using ftp
  
  
   Hi,
   I have seen on Sun's web site, an option to download JDK using
   ftp download.
   Are there any samples to do this.  Please
   point to the documentation.
  
   Thanks
   -Aswath
  
  
   From: François Andromaque [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: TOMCAT and APACHE
   Date: Tue, 5 Jun 2001 15:44:07 +0200
   
   I've configured separately apache to work with SSL and
   TOMCAT to establish
   a distant database connection, i would like know to make the
   both to work
   together.
   If mod_jk is really necessary, what are the steps to compile it?
  
   _
   Get your FREE download of MSN Explorer at http://explorer.msn.com
  
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 




Re: please help - tomcat/virtual hosting..java.lang.ArrayIndexOutOfBoundsException

2001-06-07 Thread Gary Dale

I'm in the same boat myself. It looks like Apache isn't fielding your 
servelet requests.  After you got the Tomcat examples running, could you 
get Apache to forward the requests to Tomcat as appropriate? That is, 
could you get the examples running using a non-virtual host with Apache?

I've gotten that far but haven't been able to get the virtual hosts to 
work either. In my case, I'm getting 500 errors which seems to indicate 
a problem with java locating the things it needs. I suspect that I need 
to reconfigure the applications to make them work but I'm groping around 
in the dark here too.


Frank wrote:

 I've spent hours and hours trying to set up a quit simple virtual 
 hosting server with apache  tomcat.
 I get an error from tomcat upon requesting an example servlet from a 
 virtual server.
 Just finished rebuilding the whole server, reading again all available 
 documents, reading again through the
 newsgroup archives trying to find what the error could possible mean 
 and how to get things working.
 I already far over my deadline in finishing a multiple hosting 
 platform for servlets and I'm getting a little
 bit desperate here.
 Could _please_ someone who recognize either the error or find an 
 overlooked error in my config respond??
 It might be simple..but I just can' t find it, don't know where to 
 look, probably the workers/connectors or
 something..
 As sysadmin the whole servlet stuff is new...and being sysadmin alone 
 isn't enough here to set up a server
 like this it seems.

 Any help appreciated,

 Frank


 Tomcat and namebase virtual hosting

 apache 1.3.17/mod_ssl
 tomcat 3.2.2
 mod_jk.so (compiled from source)
 jdk1.2.2 (sun)



 Problem:
 On a requesting a small example application from a virtual webserver 
 with an
 url like http://test1.zx.nl:9000/servlets/world.HelloWorld tomcat 
 gives an
 error and times out:


 --begin error--

 BAD packet 18245
 In: : [B@99ad5912 4/21536/8192
 47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
 
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
 java.lang.ArrayIndexOutOfBoundsException: 8192
 at 
 org.apache.tomcat.service.connector.MsgBuffer.hexLine(MsgBuffer.java)
 at 
 org.apache.tomcat.service.connector.MsgBuffer.dump(MsgBuffer.java:24)
 at 
 org.apache.tomcat.service.connector.MsgBuffer.checkIn(MsgBuffer.java)
 at 
 org.apache.tomcat.service.connector.TcpConnector.receive(TcpConnecto)
 at 
 org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processCo)
 at 
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
 at 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav)
 at java.lang.Thread.run(Thread.java:479)

 --end error--

 When I leave the portnumber out, tomcat nicely answers with a 404.

 Tomcat Example applications are working (http://test.bos.nl:8080) I 
 created
 a small (http://test.bos.nl/example.html) example application, which I
 dropped in the tomcat example directory and that works fine as
 (http://test.bos.nl:8080/examples/servlet/world.HelloWorld) well.

 Configuration:


 httpd.conf:

 LoadModulejk_module  libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /opt/zx/tomcat/conf/workers.properties
 JkLogFile /opt/zx/apache/logs/mod_jk.log
 JkLogLevelwarn

 VirtualHost 195.81.39.24
  ServerName test1.zx.nl
  Documentroot /opt/www/test1.zx.nl/htdocs
  Errorlog /opt/www/test1.zx.nl/logs/error.log
  Customlog /opt/www/test1.zx.nl/logs/access.log Combined
  JkMount /*.jsp test01-ajp13
  JkMount /servlets/* test01-ajp13
  Location /WEB-INF/
   AllowOverride None
   order deny,allow
   deny from all
  /Location
  Location /META-INF/
AllowOverride None
deny from all
  /Location
 /VirtualHost

 VirtualHost 195.81.39.24
  ServerName test2.zx.nl
  Documentroot /opt/www/test2.zx.nl/htdocs
  Errorlog /opt/www/test2.zx.nl/logs/error.log
  Customlog /opt/www/test2.zx.nl/logs/access.log Combined
  JkMount /*.jsp test02-ajp13
  JkMount /servlets/* test02-ajp13
  Location /WEB-INF/
   AllowOverride None
   order deny,allow
   deny from all
  /Location
  Location /META-INF/
AllowOverride None
deny from all
  /Location
 /VirtualHost


 workers.properties:

 worker.list=ajp12, ajp13, test01-ajp13, test02-ajp13

 worker.test01-ajp13.port=9000
 worker.test01-ajp13.host=test1.zx.nl
 worker.test01-ajp13.type=ajp13

 worker.test02-ajp13.port=9500
 worker.test02-ajp13.host=test2.zx.nl
 worker.test02-ajp13.type=ajp13


 server.xml:

 Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler 
 value=org.apache.tomcat.service.connector.Ajp13Conne
 ctionHandler/
  

Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Michael Lechner

 [...] in defence of newsgroups, this is a 
 high-volume list that I think would be better handled as a newsgroup.

I agree!! Should we start voting now ? ;-)

 1) I think a lot of people aren't able to stay in the list continually 
 due to the volume. There's a lot of subscribe, unsubscribe going on for 
 people who need occaisional help.

It's exactly my point - I have to(!) read tomcat (and other) lists only
to be informed about what's going on. In most cases it's ok
for me to just read the subject.
Note: Recieving 1000 mails a day kills my 50MB mailbox quota after
2 weeks vacation ;-)

 saying a newsgroup is a bad idea, mostly because many people don't
 have access to newsgroups because of firewalls, proxies, and such).

This might be true for a discussion list about fruits ... I would however
expect people, writing programms in JSP/JAVA or discussing webserver
issues, to have some kind of access to nntp servers. Additionally there
are a lot of public webnews gateways that work pretty well (we wrote one ;-) )
and only required http access.

A last point:
The current list is too general from my point of view. It might be a
good idea to split the group into beginners and power users or
add a specific installation-issue list/group.

Have fun
Michael






Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Milt Epstein

On Thu, 7 Jun 2001, Gary Dale wrote:

 Your points are well taken. However, in defence of newsgroups, this is a
 high-volume list that I think would be better handled as a newsgroup.
 1) I think a lot of people aren't able to stay in the list continually
 due to the volume. There's a lot of subscribe, unsubscribe going on for
 people who need occaisional help.
 2) the process of subscribing to a listserve can be a little off-putting
 and then there's the delay in getting getting on.
 3) How many firewalls block all news groups? I wouldn't want to exclude
 anyone, but surely anyone in a position to be running a java server has
 access to newsgroups somehow.
 4) Threaded discussions are better handled in newsgroups than listserves.
 5) You can see the (recent) history before asking the same question that
 someone else asked a couple of days ago.
 6) Yes, you can keep the mailing list going but hopefully a news group
 would open things up to whole new range of people while reducing the
 mail volume to something manageable.

Your points are also well taken :-).  And frankly, I am a big fan of
newsgroups, and think they have a lot of advantages.  Still, in some
ways they are not as convenient as mailing lists, and some people have
a strong preference for mailing lists over newsgroups.

More importantly, to be clearer about the feelings of the list owner
regarding changing this list to a newsgroup, it's not just that they
think it's a bad idea, but they have pretty clearly stated that it
will not happen.  (Look in the archives for some threads about
newsgroups and in particular some posts from Craig McClanahan, who may
be the closest this list has to an owner -- I know he is very busy,
and I believe he is at JavaOne right now, and is doing a presentation
there.)

And again, anyone can initiate the newsgroup creation process, the
existence of this mailing is not stopping that.  But it may not be
something that Apache will officially support/recognize.


 Milt Epstein wrote:

 On Wed, 6 Jun 2001, Gary Dale wrote:
 
 I'd prefer to see a news group rather than this mailing list.
 Something like comp.infosystems.www.servers.apache.jakarta or just
 comp.infosystems.www.servers.jakarta would be appropriate. For that
 matter, there should be comp.infosystems.www.servers.apache group
 too.  The ms-windows and unix subgroups of www.servers aren't very
 appropriate since many of the issues relating to Apache are common
 to multiple OSs.
 
 [ ... ]
 
 Seems to me, having a newsgroup is fine, but I don't see why it needs
 to be an either/or thing.  There is a procedure for creating
 newsgroups, and if anyone wants to get the process started for a
 tomcat/jakarta/apache newsgroup (or newsgroups), they're certainly
 welcome to.  But regardless of whether that happens (and/or succeeds,
 which is certainly not a sure thing), there's no reason the mailing
 list can't go on.
 
 Regarding moderating the mailing list, I don't think that is feasible.
 For one thing, as some have suggested, it would take a lot of work, so
 it would be hard to find people to do it.  Plus philosophically, I'm
 not sure we really want to go that route.  And of course, there is a
 list owner (that exists as an entity, if not a person or persons, even
 if they don't show themselves around here much :-), and they'd get
 final say it what happens with this list.  That may be the biggest
 point, because there has been no input from any owner on this list
 for a while on any of these issues (although they are on record as
 saying a newsgroup is a bad idea, mostly because many people don't
 have access to newsgroups because of firewalls, proxies, and such).
 
 Also, no disrespect intended, but I'm not sure it's such a good idea
 to try to come up with sweeping ideas to improve a mailing list
 after having only been subscribed a few weeks.  That's not very long
 to get to know the ins and outs of a mailing list, how things ebb and
 flow, what's been suggested/tried or not, etc.
 
 Anyway, of the recent ideas suggested, I think the one that has the
 best combination of merit/feasibility is dividing up the list into
 sub-lists.  This would have to be done carefully, of course, to
 actually improve the situation.  I'd be willing to give this a go
 (although it might be the kind of thing where it would be good to have
 more than one person involved).  The first step though, would be to
 try to get in contact with the list owner and see if they would go for
 it.  I'll try doing that.
 


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Ajp13 and Internal HTTP cause Heavy CPU Load

2001-06-07 Thread Shahed A Moolji

Hi,

I am using tomcat 3.2.1 with apache and ajp13.
In the same server.xml, I also have the http connector
running for requests on port 8080.
I.e the internal tomcat webserver is also running.

Now the problem I am facing is that the java process 
takes up almost 99% of CPU time and is always ticking.

I also have other tomcat instances running with ajp13 but without
the internal webserver also listening. Those java process
seem to be running ok.

Any idea whats going on ?

Thanks
Shahed




RE: load balancing help docs wrt workers.properties not sufficien t plz help

2001-06-07 Thread Chauhan, Anand

Just have a look at the attached worker.props file.. It would make things clear for 
you.. And if the problems persists let me know.. 

all the best,
-Andy

-Original Message-
From: Paul Tan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:13 PM
To: [EMAIL PROTECTED]
Subject: Re: load balancing  help docs wrt workers.properties not
sufficien t  plz help 


Would u be so kind to tell me what you placed into workers.properties to
make that work??? :)
Thks again,

Paul
- Original Message -
From: Chauhan, Anand [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 10:37 AM
Subject: RE: load balancing  help docs wrt workers.properties not
sufficien t  plz help


 Okay guyz .. I fixed it .. It is pretty easy to go for load balancing
using tomcat..

 -Original Message-
 From: Chauhan, Anand
 Sent: Wednesday, June 06, 2001 9:19 PM
 To: [EMAIL PROTECTED]
 Subject: load balancing  help docs wrt workers.properties not
 sufficien t  plz help


 Hi All:

 Please help me with the load balancing feature in Tomcat3 3.2.1

 -Andy




















 -Original Message-
 From: Chauhan, Anand
 Sent: Wednesday, June 06, 2001 8:04 PM
 To: [EMAIL PROTECTED]
 Subject: RE: LOAD BALANCING


 I tried refering to the workers.properties file, but didn't find the
information complete enough to set up my process. I have completed defining
the two workers in the workers.properties file. Secondly I have set up the
load balancer (type lb) to point to the two workers which I have removed
from the list.

 Let me know what the further steps.. I am stuck..

 Thanks in advance,
 -Andy

 -Original Message-
 From: Chauhan, Anand
 Sent: Wednesday, June 06, 2001 8:00 PM
 To: [EMAIL PROTECTED]
 Subject: LOAD BALANCING


 Hi,

 I would like to know of a good reference site for load-balancing in
Tomcat.

 -Andy

 -Original Message-
 From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 12:53 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Apache and Tomcat on different boxes


 also... if you want *MY* opinion.. I would use a PROXY statement like
this:

 PROXYPASS /javaserver
http://hostnameserver2:8080/path-for-servlets-or-jsps
 PROXYPASS /javaserver/
 http://hostnameserver2:8080/path-for-servlets-or-jsps/

 Why not keep them seperate, completely?

 -Original Message-
 From: Chauhan, Anand [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Apache and Tomcat on different boxes


 Thanks for the reply, but I am still facing the problem. I placed the
 worker.properties file in the apache/conf directory and made the http.conf
 file point to this worker.properties file. But to no avail.

 Help required.

 Thanks in advance,
 -Andy

 -Original Message-
 From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 11:54 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Apache and Tomcat on different boxes


 On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
  The idea seems great. But how would you access the worker.properties
file
 on the remote machine. Or is it that, as suggested, you would be
creating
 a  worker.properties file in the conf/worker.properties

 worker.properties exits so mod_jk can create the worker handlers.
 You will need to have worker.properties accessible to apache, however, the
 servlet engines can be in different hosts.

 hugs, rms

 --
 + No matter how much you do, you never do enough -- unknown
 + Whatever you do will be insignificant,
 | but it is very important that you do it -- Ghandi
 + So let's do it...?



 workers.properties


WebDAV extensions with tomcat/apache (using mod_jk)

2001-06-07 Thread Alex Lindgren

Hello,

I am trying to set up apache to run a servlet that uses WebDAV extensions.
mod_jk seems to not like the WebDAV extensions (such as PROPFIND).  I've
searched the archives and seem to have the same issue that Stefan Eissing
asked about recently (see below), but could not find any replies or
solutions.  Does anyone know how to get Apache to send WebDAV methods to
Tomcat?

I am using Apache 1.3.19 with the latest version of mod_jk and Tomcat 3.2.2

-Alex


From: Stefan Eissing
Subject:  mod_jk and new HTTP methods
Date:  Fri, 18 May 2001 11:19:28 +0200

Hi,

as it seems, mod_jk has a set of predefined HTTP
methods it can exchange between Apache and tomcat.
This is rather unfortunate since I am implementing
a WebDAV server and WebDAV introduces a range
of new HTTP methods.

Whom would I best talk to regarding extending mod_jk
to be able to handle unknown methods as well?

Stefan




JSPC does not work for Tomcat 4.0 b5

2001-06-07 Thread Pernica, Jan

Hi

I found that jspc does not work for Tomcat 4.0 b5.
It throws following exception:
2001-06-07 05:13:26 - ERROR-the file '\admin\projects.jsp' generated the
following general exception: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.jasper.CommandLineContext.getTldLocation(CommandLineContext.java:
365)
at
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspP
arseEventListener.java:1141)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:754)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:121)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1126)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1091)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1087)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:220)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:207)
at org.apache.jasper.JspC.parseFile(JspC.java:385)
at org.apache.jasper.JspC.parseFiles(JspC.java:651)
at org.apache.jasper.JspC.main(JspC.java:699)

Any ideas or fixes?

Thank you

Jan



__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Jim Cheesman

At 04:17 PM 07/06/01, you wrote:
Good points.

1) Google now has Usenet reading and posting.  Anyone with port 80 and a
GUI browser can read / post to Usenet.

And internet access. I don't.





--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   If a pig loses its 
voice is it disgruntled?





source code visible to world

2001-06-07 Thread Ben Carterette

I'm running Tomcat 3.2.1, and I've discovered something odd:  when I
browse to my JSP pages but leave off the .jsp extension, I see the
source code of the file.  Is this a bug or a feature?  If it's a
feature, how do I turn it off?  If it's a bug, how do I patch it?

Thanks,
Ben.




ServerSocket exception, Grenn threads available?

2001-06-07 Thread Kirsten . Gloeer



Hi,

We have a problem using jakarta-tomcat 3.2.1 / 3.2.2 standalone on HP UX
11.00 and java 1.3
We can start tomcat normally without getting any errors. The error occurs
when we try to access tomcat.
In the tomcat source the position is the call of a Java method:
ServerSocket.accept() this method starts
the listening on the specified port (8080).
We tried to use green threads, but there aren't any green threads
available.
Where can we get GREEN_THREADS for HPUX 11.00 and java 1.3??

Kirsten



The tomcat error message:

2001-03-06 05:28:49 - PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8090] ignored exception:
java.net.SocketException: Socket closed - java.net.SocketException:
Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
at java.net.ServerSocket.implAccept(ServerSocket.java:240)
at java.net.ServerSocket.accept(ServerSocket.java:224)
at
org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:286)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:479)









RE: Ajp13 and Internal HTTP cause Heavy CPU Load

2001-06-07 Thread Randy Layman


You have removed the root web context and are making a request for a
file that can't be handled.  (Look in the readme file for more details about
this bug).

Randy

 -Original Message-
 From: Shahed A Moolji [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 10:36 AM
 To: [EMAIL PROTECTED]
 Subject: Ajp13 and Internal HTTP cause Heavy CPU Load
 
 
 Hi,
 
 I am using tomcat 3.2.1 with apache and ajp13.
 In the same server.xml, I also have the http connector
 running for requests on port 8080.
 I.e the internal tomcat webserver is also running.
 
 Now the problem I am facing is that the java process 
 takes up almost 99% of CPU time and is always ticking.
 
 I also have other tomcat instances running with ajp13 but without
 the internal webserver also listening. Those java process
 seem to be running ok.
 
 Any idea whats going on ?
 
 Thanks
 Shahed
 



Win98 bad command problem

2001-06-07 Thread Misty_Garrick



Hi,

I'm getting the following error after trying to run startup:


D:\tomcat.\bin\startup
Including all jars in d:\tomcat\lib in your CLASSPATH.

Using CLASSPATH: d:\tomcat\classes;d:\tomcat\lib\SERVLET.JAR;d:\tomcat\lib\PARSE
R.JAR;d:\tomcat\lib\JAXP.JAR;d:\tomcat\lib\ANT.JAR;d:\tomcat\lib\WEBSER~1.JAR;d:
\tomcat\lib\JASPER.JAR;d:\jdk1.3.1\lib\tools.jar

Starting Tomcat in new window
Bad command or file name



From what I've seen, it might be a path problem...Here's the relevant stuff:



D:\tomcatset
PATH=C:\WINDOWS;D:\JDK1.3.1
JAVA_HOME=d:\jdk1.3.1
TOMCAT_HOME=d:\tomcat


If anybody has any advice about this problem, I would really appreciate it.


Thanks,

Misty
[EMAIL PROTECTED]









Installing Tomcat 4.0 on win2000

2001-06-07 Thread Andy C

Excuse my complete ignorance., but after having a look around I
don't seem to be able to find any documentation on how to
install Tomcat 4 !  Any pointers would be greatly received !

Ta
Andy C





RE: source code visible to world

2001-06-07 Thread Randy Layman


That's interesting.  I just tested my installation and this doesn't
happen on mine.  I'm running Tomcat 3.2.1 as well.  The file
%TOMCAT_HOME%/doc/readme starts with the line below:
$Id: readme,v 1.8.2.11 2000/12/12 21:01:41 craigmcc Exp $

indicating that my readme was made in Dec 2000, and all of my JAR files have
the same timestamp.

Perhaps you have a later (or earlier) version?  I remember that I
upgraded from 3.2 to 3.2.1 because 3.2.1. supposedly fixed a bug that
allowed the JSP source to be published (I don't remember how it was
happening, though).

Randy


 -Original Message-
 From: Ben Carterette [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 11:22 AM
 To: [EMAIL PROTECTED]
 Subject: source code visible to world
 
 
 I'm running Tomcat 3.2.1, and I've discovered something odd:  when I
 browse to my JSP pages but leave off the .jsp extension, I see the
 source code of the file.  Is this a bug or a feature?  If it's a
 feature, how do I turn it off?  If it's a bug, how do I patch it?
 
 Thanks,
 Ben.
 



tomcat 3.1 + apache 1.3.14 in win32

2001-06-07 Thread Pablo Lillia

Hi,

I found in Tomcat v3.1 (Win32) a problem: the file /conf/tomcat-apache.conf
has \ in paths, and it need / to work in apache (version 1.3.12 for win32).
I don't know if that is a well-known problem, because I don't found any
reference in doc's  faq's.

Greetings



session and url rewriting

2001-06-07 Thread Andrea Mari

Hi,

I've a web application that serves html and wml files. I used the session
handling (for the web section). I would link to handlin session also for wap
section, but wap terminals doesn't support cookies. So, can I use url
rewriting for wap section, session (cookie based) for html session having
this two sections in the same web application?

Thanks
Andrea




RE: Apache and Tomcat on different boxes

2001-06-07 Thread ptan

Thk you all for help me in this, you guys have been great help

thks,
Paul


Quoting Chauhan, Anand [EMAIL PROTECTED]:

 I am glad to hear that you got it workin' .. way to go buddy.. all the
 best.. 
 
 -Original Message-
 From: Paul Tan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 11:12 PM
 To: Chauhan, Anand
 Subject: Re: Apache and Tomcat on different boxes
 
 
 Hey hey hey!! I got it started and connected to a separate
 machine!!
 Seems that apache must not be compiled statically.
 Now i see a 404 error and it's some url problem with tomcat.will
 edit
 the server.xml file to try later
 
 
 Thks,
 Paul
 
 - Original Message -
 From: Chauhan, Anand [EMAIL PROTECTED]
 To: Paul Tan [EMAIL PROTECTED]
 Sent: Thursday, June 07, 2001 10:33 AM
 Subject: RE: Apache and Tomcat on different boxes
 
 
 
 
  I get the following error when i start apache
  my conf in httpd.conf
  ...
 
  LoadModule  jk_module  libexec/mod_jk.so
  JkMount /embrace remotetomcat
  JkWorkersFile /usr/local/apache/conf/workers.properties
  JkLogFile /usr/local/apache/logs/mod_jk.log
  JkLogLevel error
  
 
  1) Do not include the mod_jk file in the http.conf file.
  2) Include the worker handler remotetomcat in the worker.list.
 
  Better still you could attach the two files http.conf and
 worker.properties and I could check it for you in case you have any
 problems.
 
  Hope it helps,
  -Andy
 
 
 
 
 
  - Original Message -
  From: Chauhan, Anand [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, June 07, 2001 8:53 AM
  Subject: FW: Apache and Tomcat on different boxes
 
 
   Hi Paul,
  
   My thing worked just following the message attached below. All the
 best
  and let me know in case you have any problems. Have a nice nite.
  
   Regards,
   -Andy
  
   -Original Message-
   From: Jason Koeninger [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, June 06, 2001 12:21 PM
   To: [EMAIL PROTECTED]
   Subject: RE: Apache and Tomcat on different boxes
  
  
   The workers.properties file should be on the Apache machine.  The
   problem you're running into is that the documentation usually
 assumes
   Tomcat and Apache are on the same machine, and it's leading you
   to believe that workers.properties has something to do with
 Tomcat.
   workers.properties is only relevant to mod_jk running on Apache,
 not
   to Tomcat.  If you need the example file provided with Tomcat, just
 copy
   it over to the Apache machine from a distribution of Tomcat and
 point
   JkWorkersFile to the right place on the local file system.
  
   And yes, it does work.  I've run several development and
 production
   systems this way.
  
   Best Regards,
  
   Jason Koeninger
   JJ Computer Consulting
   http://www.jjcc.com
  
   On Wed, 6 Jun 2001 11:23:07 -0400, Chauhan, Anand wrote:
  
   The idea seems great. But how would you access the
 worker.properties
 file
  on the remote machine. Or is it that, as suggested, you would be
 creating
  a  worker.properties file in the conf/worker.properties
   
   Did the idea work for you ? Let me know. Thanks.
   
   -Andy
   
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, June 06, 2001 10:10 AM
   To: Jason Koeninger
   Cc: [EMAIL PROTECTED]
   Subject: Re: Apache and Tomcat on different boxes
   
   
   Thks for replying,
   
  So if i understand you correctly, i have to
 create
   a workers.properties file in my apache conf dir and have mod_jk
 look
  for it
   there?
   
   eg.
   httpd.conf contains
   
   LoadModulejk_module  libexec/mod_jk.so
   AddModule mod_jk.c
   
   JkMount /someurl remotetomcat
   
   and
   
   workers.properties file in apache/conf contains:
   
   worker.remotetomcat.type=ajp13
   worker.remotetomcat.port=8009
   worker.remotetomcat.host=www.x.com
   worker.remotetomcat.cachesize=30
   
  Is that all i have to do?
   
   Thks a Million,
   Paul
   
   
   
   Quoting Jason Koeninger [EMAIL PROTECTED]:
   
The ip address or hostname of the Tomcat machine is stored
in the workers.properties file referenced by your mod_jk setup.
I've also seen some sort of url version of the JkMount command,
but I've never used it myself and don't know if it works or
 what
versions it works on.
   
Best Regards,
   
Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com
   
On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
   
Hi all,

I tried searching to mailing list b4 posting here.
 Anyway,
what must i put into apache's http.conf for
mod_jk.so to enable a connection to a separate machine
 containing
  tomcat
3.2.2?

Placing both the Web Server and App server into
 1
machine is rather well documented. But I can't seem
to find any for separate machines.
Can someone show me where to fish? or would someone gimme a
 

Bundling Tomcat

2001-06-07 Thread Robert L. Brueckmann

Hello all...I'm not sure if I'm sending this to right place to ask this, but
you're all developers and some of you might be doing something similar...I
will be developing a piece of software that is built using servlets and JSPs
and we'll be using Tomcat as our servlet container, now, when the product is
developed and tested and ready to ship...have any of you bundled Tomcat with
your product to sell to a customer and what types of royalties and red tape
do you have to go through with Apache in order to do something like that?
Is there a section of the Jakarta site that deals with all these legal GPL
issues and limitations and what have you?  Any help is greatly appreciated.

And if this question can't be answered on this list, can someone possibly
head in me in the correct direction?

Much appreciated,
Rob Brueckmann





Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Gary Dale

Maybe I should, but Milt Epstein is correct in that it would be 
presumptious of someone who is not a regular on this listserve to try to 
make major changes to it.

I'll follow your advice about reading up on the process anyway. I've 
gotten into the habit of checking newsgroups for answers first anyway, 
and I'd hate to change this late in life. Of course, I had a difficult 
time finding comp.infosystems.www... as a source of information on 
Apache, but since that seems to be the prefered location instead of just 
comp.www, for example, I suppose it's best to leave it at that.


Will England wrote:

Good points.

1) Google now has Usenet reading and posting.  Anyone with port 80 and a
GUI browser can read / post to Usenet.

2) So, Gary, are you going to read the FAQ about creating a newsgroup and
hold the vote?  All you have to do is post a RFD, wait, post a CFV, wait,
count the votes and then (assuming it's approved), get one of the
newsadmins to start the group.

It's all there in news.anwers

Will








setting home attribute

2001-06-07 Thread Maureen Fisher

This is a comment in the server.xml of Tomcat.3.2

You can add a home attribute to represent the base for 
 all relative paths. If none is set, the TOMCAT_HOME property
 will be used, and if not set . will be used.
 webapps/, work/ and logs/ will be relative to this ( unless 
 set explicitely to absolute paths ). 

What is the syntax of this command?

Maureen Fisher, CIT/ASDT, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/
Ad astra per aspera




RE: Win98 bad command problem

2001-06-07 Thread Adrian Almenar

I have the same problem, but i think that win98 cant handle long path's so i
installed win2k and it worked fine any other sugestion ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 11:59 AM
To: [EMAIL PROTECTED]
Subject: Win98 bad command problem




Hi,

I'm getting the following error after trying to run startup:


D:\tomcat.\bin\startup
Including all jars in d:\tomcat\lib in your CLASSPATH.

Using CLASSPATH:
d:\tomcat\classes;d:\tomcat\lib\SERVLET.JAR;d:\tomcat\lib\PARSE
R.JAR;d:\tomcat\lib\JAXP.JAR;d:\tomcat\lib\ANT.JAR;d:\tomcat\lib\WEBSER~1.JA
R;d:
\tomcat\lib\JASPER.JAR;d:\jdk1.3.1\lib\tools.jar

Starting Tomcat in new window
Bad command or file name



From what I've seen, it might be a path problem...Here's the relevant stuff:



D:\tomcatset
PATH=C:\WINDOWS;D:\JDK1.3.1
JAVA_HOME=d:\jdk1.3.1
TOMCAT_HOME=d:\tomcat


If anybody has any advice about this problem, I would really appreciate it.


Thanks,

Misty
[EMAIL PROTECTED]









RE: Bundling Tomcat

2001-06-07 Thread Randy Layman


I have dealt with it.  The software license spells it out pretty
clearly - Tomcat is free to distribute.  No royalties, no permission
required.  What you do need to be aware of is that you can't freely
redistribute the JDK.  You'll need to either pre-compile your JSPs or
distribute another Java Compiler (like Jikes from IBM), or somehow get Sun's
legal department to give you permission.

Randy

 -Original Message-
 From: Robert L. Brueckmann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 2:33 PM
 To: [EMAIL PROTECTED]
 Subject: Bundling Tomcat
 
 
 Hello all...I'm not sure if I'm sending this to right place 
 to ask this, but
 you're all developers and some of you might be doing 
 something similar...I
 will be developing a piece of software that is built using 
 servlets and JSPs
 and we'll be using Tomcat as our servlet container, now, when 
 the product is
 developed and tested and ready to ship...have any of you 
 bundled Tomcat with
 your product to sell to a customer and what types of 
 royalties and red tape
 do you have to go through with Apache in order to do 
 something like that?
 Is there a section of the Jakarta site that deals with all 
 these legal GPL
 issues and limitations and what have you?  Any help is 
 greatly appreciated.
 
 And if this question can't be answered on this list, can 
 someone possibly
 head in me in the correct direction?
 
 Much appreciated,
 Rob Brueckmann
 
 



Re: In process conf with apache

2001-06-07 Thread Brenda Mijares

Are you using or want to use JNI??

Hemant Singh wrote:

 HI ALL:
 I tried conf apache with mod_jk.dll and it worked fine
 with tomcat But it runs as out process,
 and what i m looking for is that i do not need to run
 tomcat as separate program and apache module itself
 call it, that is in-process.
 Cheers
 Hemant

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/

--
Brenda Mijares
Interact Incoporated
email:[EMAIL PROTECTED]
phone:512-502-9969 ext. 120







RE: Bundling Tomcat

2001-06-07 Thread Ronald G. Louzon

Unless you need the JDK, you can distribute the Java Runtime Environment
(JRE) which Sun has made available.  One note: the JRE does not include
tools.jar...

From the JRE Readme file:
-
The Java 2 Runtime Environment is intended for software developers 
and vendors to redistribute with their applications.

The Java(TM) 2 Runtime Environment contains the Java virtual machine, 
runtime class libraries, and Java application launcher that are 
necessary to run programs written in the Java progamming language. 
It is not a development environment and does not contain development 
tools such as compilers or debuggers.  For development tools, see the 
Java 2 SDK, Standard Edition.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 2:09 PM
To: [EMAIL PROTECTED]
Subject: RE: Bundling Tomcat



I have dealt with it.  The software license spells it out pretty
clearly - Tomcat is free to distribute.  No royalties, no permission
required.  What you do need to be aware of is that you can't freely
redistribute the JDK.  You'll need to either pre-compile your JSPs or
distribute another Java Compiler (like Jikes from IBM), or somehow get Sun's
legal department to give you permission.

Randy

 -Original Message-
 From: Robert L. Brueckmann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 2:33 PM
 To: [EMAIL PROTECTED]
 Subject: Bundling Tomcat
 
 
 Hello all...I'm not sure if I'm sending this to right place 
 to ask this, but
 you're all developers and some of you might be doing 
 something similar...I
 will be developing a piece of software that is built using 
 servlets and JSPs
 and we'll be using Tomcat as our servlet container, now, when 
 the product is
 developed and tested and ready to ship...have any of you 
 bundled Tomcat with
 your product to sell to a customer and what types of 
 royalties and red tape
 do you have to go through with Apache in order to do 
 something like that?
 Is there a section of the Jakarta site that deals with all 
 these legal GPL
 issues and limitations and what have you?  Any help is 
 greatly appreciated.
 
 And if this question can't be answered on this list, can 
 someone possibly
 head in me in the correct direction?
 
 Much appreciated,
 Rob Brueckmann
 
 



IIS and Tomcat

2001-06-07 Thread Winer, Matthew

I am trying to get Tomcat 3.2.2 and IIS in Win2000 to work.  I have gone
through the registry and made sure everything is correct.  I installed JDK
1.3.1.  But I am still not getting a green arrow in IIS for the redirector.
If anybody could give me a hand it would be appreciated.  

Thank you for your help


-Matt Winer



Re: ServerSocket exception, Grenn threads available?

2001-06-07 Thread Dietmar Kraume

Hi,
i have the same problem on HP-UX 11.00/32.
I know from ApacheJserv to set   wrapper.env=THREADS_FLAG=green
but i can't fix it with tomcat.
Maybe it will help you with this information.
Let me know if you find a solution, i will do!

Dietmar

[EMAIL PROTECTED] wrote:

 Hi,

 We have a problem using jakarta-tomcat 3.2.1 / 3.2.2 standalone on HP UX
 11.00 and java 1.3
 We can start tomcat normally without getting any errors. The error occurs
 when we try to access tomcat.
 In the tomcat source the position is the call of a Java method:
 ServerSocket.accept() this method starts
 the listening on the specified port (8080).
 We tried to use green threads, but there aren't any green threads
 available.
 Where can we get GREEN_THREADS for HPUX 11.00 and java 1.3??

 Kirsten

 The tomcat error message:

 2001-03-06 05:28:49 - PoolTcpEndpoint: Endpoint
 ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8090] ignored exception:
 java.net.SocketException: Socket closed - java.net.SocketException:
 Socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418)
 at java.net.ServerSocket.implAccept(ServerSocket.java:240)
 at java.net.ServerSocket.accept(ServerSocket.java:224)
 at
 org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:286)

 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:479)

--
Mit freundlichen Gruessen/Yours Sincerely  -  Dietmar Kraume
Systemingenieur  -  Webmaster
mailto:[EMAIL PROTECTED]

Ihr Business Internet Provider: http://www.borgware.net
Bintec Router Shopping: http://www.borgshop.net
CAD/CAM/EDM/IT http://www.borgware.de
_
Borgware GmbH
Neusser Landstrasse 2
50735 Koeln
FON +49.(0)221.276930-0
FAX +49.(0)221.7002191
FAX an Email 0180.5052.5955.0701

HP Systempartner Gold - CoCreate Premier Partner -
___
Informationen, Tech.Tips, Termine per Email erhalten.
Sind Sie schon registriert, Borgware Infomail, einfach hier anklicken,
absenden und Sie sind registriert.
mailto:[EMAIL PROTECTED]?body=subscribe





Tomcat 4.0 Apache Connector

2001-06-07 Thread ryan.roemmich

I've had problems building the new mod_webapp connector.  After
installing APR which I believe is required, I build the connector with
apxs from 1.3.19.
When I try to start Apache I get a mod_webapp error about
pthread_create.  So I go back and recompile APR with threads (??).  Now
at Apache startup I get a mod_webapp shared memory error.  Back to
compile APR with shared memory.  APR won't compile.  

Can someone share a success story detailing the linkage of Tomcat 4.0b5
and Apache 1.3.19??

-Ryan




RE: IIS and Tomcat

2001-06-07 Thread Chris Faulkner

Hi

Where is the redirector - I think there is am ISAPI filters tab on the
proeprties for the jakarta virtual directory but you need to use the one on
the properties off the Internet Information Services branch of IIS (I
think). Anyway, when I had the redirector on the former it didn'twork, on
the latter it did. That was the mistake I made. Also I had to reboot the
machine to get it enabled. Restarting Tomcat and IIS wouldn't enable it.


Chris

 -Original Message-
 From: Winer, Matthew [mailto:[EMAIL PROTECTED]]
 Sent: 07 June 2001 20:01
 To: '[EMAIL PROTECTED]'
 Subject: IIS and Tomcat


 I am trying to get Tomcat 3.2.2 and IIS in Win2000 to work.  I have gone
 through the registry and made sure everything is correct.  I installed JDK
 1.3.1.  But I am still not getting a green arrow in IIS for the
 redirector.
 If anybody could give me a hand it would be appreciated.

 Thank you for your help


 -Matt Winer





Doubt about upgrading JServ to Tomcat

2001-06-07 Thread Priyanka Gupta

Hello
 I have a doubt about upgrading JServ to Tomcat. I went through the
   User's Guide for downloading Tomcat version 3.2 and it was very
   helpful.
 But I have a couple of doubts like
   1. For upgrading from JServ to Tomcat would I have to delete JServ?
   2. To run the already exsisting Servlets in JServ on Tomcat do I have
  to just copy them in the right directory?
  Thanks
  Priya

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




Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal Servlet Error on writing POST response approx. 800kb in length

2001-06-07 Thread Barry Draper



Using Tomcat 3.2.1 
on NT 4.0 SP 5, I have a servlet which sends XML-encoded strings in 
response
to POST requests. 
When the XML -encoded response is approximately  800 bytes in length (my 
test case
is 889 bytes - I 
don't know the exact threshold yet), I get the following 
error:

Error: 
500Location: /servlet/MyServlet Internal Servlet 
Error:java.lang.ArrayIndexOutOfBoundsException: 10at 
MyServlet.doPost(MyServlet.java:157)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)at 
org.apache.tomcat.core.Handler.service(Handler.java:286)at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)at 
java.lang.Thread.run(Thread.java:479)

I tried increasing 
the ServletResponse buffer size to 64kb (the default is 8kb)
and also setting 
content length as follows:

public void doPost( HttpServletRequest 
request, HttpServletResponse 
response) 
throws ServletException, IOException{...
response.setContentType("text/plain");response.setBufferSize(64 * 
1024);
PrintWriter 
out = response.getWriter();

...
String result 
= null;
// do 
processing which sets result string

int len = 
result.length();response.setContentLength(len);
...
out.println(result);

I verified that the 
response buffer size was increased to 64kb and the content length was set 
correctly.

Still, I get the 
error on writing the response.

Is this a known 
problem with a fix? Am I doing something wrong?
Please 
advise.

Thanks.
Barry 
Draper
[EMAIL PROTECTED]



RE: Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal Servlet E rror on writing POST response approx. 800kb in length

2001-06-07 Thread William Kaufman

 Location: /servlet/MyServlet Internal Servlet 
 Error:java.lang.ArrayIndexOutOfBoundsException: 10
  at MyServlet.doPost(MyServlet.java:157)

This isn't a Tomcat issue: _your_ code is throwing an
ArrayOutOfBoundsException, at line 157.

Moreover, the code you posted doesn't look like it'd throw such an
exception; line 157 must be a line you didn't post.

-- Bill K.

-Original Message-
From: Barry Draper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 12:55 PM
To: [EMAIL PROTECTED]
Subject: Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal Servlet E
rror on writing POST response approx.  800kb in length


Using Tomcat 3.2.1 on NT 4.0 SP 5, I have a servlet which sends XML-encoded
strings in response
to POST requests. When the XML -encoded response is approximately  800
bytes in length (my test case
is 889 bytes - I don't know the exact threshold yet), I get the following
error:

Error: 500
Location: /servlet/MyServlet Internal Servlet
Error:java.lang.ArrayIndexOutOfBoundsException: 10
 at MyServlet.doPost(MyServlet.java:157)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:479)


I tried increasing the ServletResponse buffer size to 64kb (the default is
8kb)
and also setting content length as follows:

public void doPost( HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
 ...
 response.setContentType(text/plain);
 response.setBufferSize(64 * 1024);
 PrintWriter out = response.getWriter();

...
 String result = null;
 // do processing which sets result string

 int len = result.length();
 response.setContentLength(len);
...
out.println(result);

I verified that the response buffer size was increased to 64kb and the
content length was set correctly.

Still, I get the error on writing the response.

Is this a known problem with a fix? Am I doing something wrong?
Please advise.

Thanks.
Barry Draper
[EMAIL PROTECTED]



JSP's mapping to URL

2001-06-07 Thread Andreas Loehr

Hi folks !

I have a bunch of JSP's

xxx is the applications name and its location is added to the context
path.
Suppose that I have a JSP under xxx/myjsp.jsp
I want it to be hit when I type in the URL /xxx/myjsp, so for that I
put in the web.xml the following lines:

servlet
servlet-nameAdminDefault/servlet-name
jsp-filemyjsp.jsp/jsp-file
/servlet
servlet-mapping
servlet-nameAdminDefault/servlet-name
url-pattern/myjsp/url-pattern
/servlet-mapping

This all works perfectly under another engine, BEA Weblogic.
Using TomCat I get the following message:



Location: /xxx/myjsp
Internal Servlet Error:

java.lang.NullPointerException
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:398)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)


Does anybody know what I make wrong?

Thanks a lot !!

Andy



RE: Tomcat 4.0 Apache Connector

2001-06-07 Thread Winer, Matthew

OK well nevermind my last post.  I have given up with IIS.  I have no use
for it.  (I hope)  I got everything work except...   

I am trying to get tomcat to respond to a different IP other then localhost
or the localhost address.  I know this can be done in IIS but I am looking
for a way to get by that.  

Thanks
Matt Winer



Tomcat dies when window closes

2001-06-07 Thread Brock Barber

Hi all

Experienced odd problem with Tomcat shutting down when the window that
is used to start it is closed. 

We have been happily running Apache 1.3.12/Tomcat 3.2.1/SSL on SunOS 5.6
for several months. The machine is located elsewhere so I telnet on to
it, su to root and run the startup script using

/usr/local/jakarta-tomcat-3.2.1/bin/startup.sh -f
/web/sitename/java/conf/server.xml

startup.sh and tomcat.sh are the ones included with the binary
distribution and were not modified. 

My understanding is that startup.sh sends a start parameter to
tomcat.sh which then starts tomcat as a background process.  I close the
telnet window and the process continues merrily on.  Or it used to.

A few days ago I restarted Tomcat/Apache to fix a log file problem.
Tomcat first, then apache.  Started fine, tested fine.  When I checked
later Tomcat was dead.  Repeated the process several times before I
figured out that Tomcat was dying when I closed the window I started it
in.

I was able to fix this by editing tomcat.sh so that run also starts it
in the background. 

Anyone have an idea why tomcat.sh might be getting run rather than
start and why is it behaving this was now when it wasn't before?

Any thoughts would be appreciatted.

thanks

brock

**
Brock Barber
Applications Group
MBD (McNair Business Development Inc.)

Direct: 789-0019
Fax: 789-7630
E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.mcnairbd.com

A head for business.
**




Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Milt Epstein

On Thu, 7 Jun 2001, Gary Dale wrote:

 Maybe I should, but Milt Epstein is correct in that it would be
 presumptious of someone who is not a regular on this listserve to
 try to make major changes to it.

Actually this brings up an issue: What constitutes being a regular
on this list, and how many are there?  And how does that affect the
problems on the list and what should be done about them?  I think by
the nature of the list, many people are very transient on it --
e.g. they come here to get their configuration problems solved, and
once they do they're gone (nothing wrong with that, BTW).  I've been
on it for several months, and although there are many names I
recognize as regulars, I've also seen a lot of people come and go.


 I'll follow your advice about reading up on the process anyway. I've
 gotten into the habit of checking newsgroups for answers first
 anyway, and I'd hate to change this late in life. Of course, I had a
 difficult time finding comp.infosystems.www... as a source of
 information on Apache, but since that seems to be the prefered
 location instead of just comp.www, for example, I suppose it's best
 to leave it at that.

Note the distinction between Big Eight newsgroups (of which comp.*
is one), and others, such as alt.  The procedures for getting a Big
Eight newsgroup started are more rigid, getting an alt group started
is relatively easy.  But Big Eight newsgroups are more widespread, and
considered more legitimate/serious.  As to existing apache
newsgroups, I could only find one, alt.apache.configuration (that
seems surprising, considering apache is by far the most commonly used
server).

And FWIW, someone just recently went through the process of trying to
create two new server related newsgroups in the comp.lang.java.*
hierarchy (comp.lang.java.server-side, comp.lang.java.servlet were the
names).  Unfortunately, that failed.  It was quite close, and if more
people had voted, it probably would've passed.


 Will England wrote:

 Good points.
 
 1) Google now has Usenet reading and posting.  Anyone with port 80 and a
 GUI browser can read / post to Usenet.
 
 2) So, Gary, are you going to read the FAQ about creating a newsgroup and
 hold the vote?  All you have to do is post a RFD, wait, post a CFV, wait,
 count the votes and then (assuming it's approved), get one of the
 newsadmins to start the group.
 
 It's all there in news.anwers

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Tomcat IP change (sorry about wrong Subject)

2001-06-07 Thread Winer, Matthew

I am sorry about my last post with the wrong subject.

OK well nevermind my last post.  I have given up with IIS.  I have no use
for it.  (I hope)  I got everything work except...   

I am trying to get tomcat to respond to a different IP other then localhost
or the localhost address.  I know this can be done in IIS but I am looking
for a way to get by that.  

Thanks
Matt Winer



Automaticaly update the servlets

2001-06-07 Thread Pablo Morillas

Hello all.

I'm starting to use Tomcat and I have seen that I have to restart the server
when I update a servlet. Is it true? Is there any way to avoid it?

Thanks all.

==
Pablo Morillas
http://www.sortes.com
[EMAIL PROTECTED]
==




RE: Number of threads running

2001-06-07 Thread Filip Hanik

The VM in itself starts up with 6 something threads.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: Mark Himsley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 3:42 PM
To: [EMAIL PROTECTED]
Subject: Number of threads running


Hi,

I'm running tomcat 3.2.2 connecting through Apache using AJP12 on RedHat
6.2 with jdk1.3.1 and not much memory (a development system).

I am wondering about the number of threads I see running - looking at the
output of `ps aux` I can see 18 threads. I have two connectors setup, an
HttpConnectionHandler with Parameter name=max_threads value=2/ and
an Ajp12ConnectionHandler with Parameter name=max_threads value=5/.

I'm just wondering why there are an extra 11 threads, and what they might
be doing (and yes I do know I could dump the HttpConnectionHandler but
occasionally it is useful to check that Apache and Tomcat are setup
correctly).

Thanks.

--
Mark Himsley
In Acton




Re: Tomcat IP change (sorry about wrong Subject)

2001-06-07 Thread Tim O'Neil

At 04:24 PM 6/7/2001 -0400, you wrote:
  OK well nevermind my last post.  I have given up with IIS.
  I have no use for it.

Welcome to the club man...




SEC: UNCLASSIFIED - RE: Win98 bad command problem

2001-06-07 Thread McAuliffe, Robert

Could it be that your path references the Java home instead of JDK1.3.1\bin
?  
I'm pretty sure it's meant to reference \bin (to find the Java executable).

Rob McAuliffe
[EMAIL PROTECTED]


-Original Message-

I'm getting the following error after trying to run startup:

...

From what I've seen, it might be a path problem...Here's the relevant stuff:


D:\tomcatset
PATH=C:\WINDOWS;D:\JDK1.3.1
JAVA_HOME=d:\jdk1.3.1
TOMCAT_HOME=d:\tomcat


...

Misty
[EMAIL PROTECTED]








Server.xml

2001-06-07 Thread Brenda Mijares

Can anyone send me a copy of their server.xml file that works
as far as turning tomcat on...
I was messing with it and I think I deleted something...


thanks





tomcat + IIS 5

2001-06-07 Thread Francisco Areas Guimaraes



I have win2k, tomcat 3.2, and IIS5. I have 
done everything that the "IIS-tomcat-Howto" says, including the "Filter DLLs" 
option, got the "green arrow" in the IIS ISAPI filters, but when I open a page, 
it simply doesn´t compile the code.
Here´s what has been writen in the log 
file:

[jk_isapi_plugin.c (408)]: HttpFilterProc 
started[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/jakarta/teste.jsp[jk_uri_worker_map.c (345)]: Into 
jk_uri_worker_map_t::map_uri_to_worker[jk_uri_worker_map.c (435)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a 
match[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/teste.jsp] is not a 
servlet url[jk_isapi_plugin.c (461)]: HttpFilterProc check if 
[/jakarta/teste.jsp] is points to the web-inf directory
Anyone have a clue on what´s happening? Please, 
help me, because i´m tottaly clueless...

thanks,
Francisco
[EMAIL PROTECTED]


/lib /WEB-INF/lib

2001-06-07 Thread eric ng

Hi,
In tomcat or other servlet engine implements the spec.
 there are 2 place to put JAR files:

1) d:/tomcat/lib
2) d:/tomcat/webapps/abc/WEB-INF/lib

I wonder what's the difference putting JAR in the 2
directory? any performance difference? Should I always
put JAR into web apps's own lib?

thanks.


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: INSTALLATION PROBLEM FOR MORE THAN A MONTH

2001-06-07 Thread Jann VanOver

If you have SERVLET.JAR in your classpath, but the file is really
servlet.jar this COULD BE your problem.  Try putting them in the same
case.  Tomcat/Java are VERY VERY VERY case sensitive.

-Original Message-
From: subhi adam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 2:59 PM
To: [EMAIL PROTECTED]
Subject: INSTALLATION PROBLEM FOR MORE THAN A MONTH


THIS MY AUTOEXEC.BAT FILE

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BIN
SET 
CLASSPATH=.;C:\JDK1.3\JRE\LIB\RT.JAR;C:\JDK1.3\LIB\TOOLS.JAR;C:\TOMCAT\LIB\S
ERVLET.JAR
SET TOMCAT_HOME=C:\TOMCAT;
SET JAVA_HOME=C:\JDK1.3;
SET ANT_HOME=C:\JAKARTA-ANT;

AND GET THE FOLLOWING WHEN I START TOMCAT

C:\tomcat\binTOMCAT START
Unable to locate servlet.jar, check the value of TOMCAT_HOME.


WHEN I CHECK  THE SETTING I GET FOLLOWING
C:\tomcat\binSET
TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
BLASTER=A220 I5 D1
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BI
JAVA_HOME=C:\JDK1.3;
ANT_HOME=C:\JAKARTA-ANT;
CMDLINE=EDIT TOMCAT.BAT
TOMCAT_HOME=C:\TOMCAT;

DO I NEED TO SET SOMETHING ELSE . WIN98 /TOMCAT3.2.2

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



Re: Tomcat IP change (sorry about wrong Subject)

2001-06-07 Thread Francisco Areas Guimaraes

Hi Matthew,
Do managed to do an error handling like IIS outside of IIS? Sorry to
intrude, but i´ve looked almost everywhere about this but couldn´t find
it...

thanks,
Francisco
[EMAIL PROTECTED]


- Original Message -
From: Winer, Matthew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 5:24 PM
Subject: Tomcat IP change (sorry about wrong Subject)


 I am sorry about my last post with the wrong subject.

 OK well nevermind my last post.  I have given up with IIS.  I have no use
 for it.  (I hope)  I got everything work except...

 I am trying to get tomcat to respond to a different IP other then
localhost
 or the localhost address.  I know this can be done in IIS but I am looking
 for a way to get by that.

 Thanks
 Matt Winer





RE: tomcat + IIS 5

2001-06-07 Thread Randy Layman


First, I would suggest that you only post using Plain Text email
messages.  A number of readers on this list don't have HTML enabled email
readers and will simply skip your message because its to difficult to
decipher, which you probably don't want.

Your issue seems to be that the URL requested (/jakarta/teste.jsp)
doesn't match anything in your uriworkermap.properties file.  I would
suggest you look at the file to verify that it matches some mapping in
there.  Also, changes to this file are not reloaded until the inetinfo
process is restarted (in other words, you must use the Services control
panel and not the Internet Manager application).

Randy

-Original Message-
From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 5:04 PM
To: Lista tomcat User
Subject: tomcat + IIS 5


I have  win2k, tomcat 3.2, and IIS5. I have done everything that the
IIS-tomcat-Howto says, including the Filter DLLs option, got the green
arrow in the IIS ISAPI filters, but when I open a page, it simply doesn´t
compile the code.
Here´s what has been writen in the log file:
 
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/jakarta/teste.jsp
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/teste.jsp] is not a
servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/teste.jsp] is
points to the web-inf directory

Anyone have a clue on what´s happening? Please, help me, because i´m tottaly
clueless...
 
thanks,
Francisco
[EMAIL PROTECTED]



Question about startup...

2001-06-07 Thread Skidmore, Walt
Title: Question about startup...





I'm trying to start Tomcat 3.2.2 up without using the included batch files, but instead using the following line:


java -Dtomcat.home=/usr/local/tomcat org.apache.tomcat.startup.Tomcat -start 


I'm getting this error, though:


Exception in thread main java.lang.VerifyError: (class: org/apache/tomcat/request/InvokerInterceptor, method: requestMap signature:(Lorg/apache/tomcat/core/Request;)I) Incompatible object argument for function call

 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.java:453)
 at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:314)
 at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:68)
 . . .


Any ideas? It starts up flawlessly when I use the scripts...





default page

2001-06-07 Thread Chris Huisman
Title: default page





I would like to have the login page of my webapp show up when the user enters the url http://localhost (or whatever the machine name is). I would also like the login page to appear when the user types in http://localhost/web-app-name . I am able to do this using Tomcat 3.1, but I need to do it in 3.2 as well.

Any suggestions would be helpful. 


Thank you



Chris Huisman B.Sc. Specialization in Computing Science 
mailto:[EMAIL PROTECTED]
Software Developer   http://www.matrikon.com 
Matrikon   Phone: (780) 448-1010 (ext. 4601)
Suite 1800 10405 Jasper Avenue Fax: (780) 448-9191
Edmonton, Alberta, Canada, T5J 3N4 





RE: Tomcat IP change

2001-06-07 Thread Winer, Matthew

Tim,

Please say it can be done you just don't know how.  

-Matt Winer

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat IP change (sorry about wrong Subject)


At 04:24 PM 6/7/2001 -0400, you wrote:
  OK well nevermind my last post.  I have given up with IIS.
  I have no use for it.

Welcome to the club man...



Apache can't load mod_jk

2001-06-07 Thread Steve Doerr

Hello.

I can't get Apache to start when I uncomment the mod_jk load line.

I have the module in the proper directory, but Apache (1.3.19) will not
start if I try to load this module.

Here's what I've tried in httpd.conf:

#LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so

IfModule mod_jk.c
#The following line is for apacheconfig - DO NOT REMOVE!
JkWorkersFile /etc/apache/mod_jk/workers.properties
Include /etc/apache/mod_jk/tomcat-auto
/IfModule

Does anyone have any ideas about what might be wrong, or what I might
check?

Thanks,
Steve






RE: Tomcat IP change

2001-06-07 Thread Tim O'Neil

At 05:02 PM 6/7/2001 -0400, you wrote:
Tim,

Please say it can be done you just don't know how.

???... Forget that. IIS is just too painful to
use. Seems like the people that really need it
are people that need to use activex stuff. Well,
ok, I'm not going to say Forget about activex.
That's a simplistic answer, I know that. But I have
to say that if you keep beating your head against a
wall without making any progress then SOMETHING in
the mix should be examined. And every project I've
been tasked to accomplish that I undertook using
open source has been taken to completion, more or
less. I simply can't say that with the proprietary
stuff. So you tell me, what should I REALLY be saying?




RE: Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal Servl et E rror on writing POST response approx. 800kb in length

2001-06-07 Thread Barry Draper

You are correct. I found the problem at specified line.
I _somehow_ didn't see it until you pointed it out.
I didn't mean to improperly post. I just didn't see it.
Thanks much.
Barry

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 12:59 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal
Servl et E rror on writing POST response approx.  800kb in length


 Location: /servlet/MyServlet Internal Servlet 
 Error:java.lang.ArrayIndexOutOfBoundsException: 10
  at MyServlet.doPost(MyServlet.java:157)

This isn't a Tomcat issue: _your_ code is throwing an
ArrayOutOfBoundsException, at line 157.

Moreover, the code you posted doesn't look like it'd throw such an
exception; line 157 must be a line you didn't post.

-- Bill K.

-Original Message-
From: Barry Draper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 12:55 PM
To: [EMAIL PROTECTED]
Subject: Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal Servlet E
rror on writing POST response approx.  800kb in length


Using Tomcat 3.2.1 on NT 4.0 SP 5, I have a servlet which sends XML-encoded
strings in response
to POST requests. When the XML -encoded response is approximately  800
bytes in length (my test case
is 889 bytes - I don't know the exact threshold yet), I get the following
error:

Error: 500
Location: /servlet/MyServlet Internal Servlet
Error:java.lang.ArrayIndexOutOfBoundsException: 10
 at MyServlet.doPost(MyServlet.java:157)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:479)


I tried increasing the ServletResponse buffer size to 64kb (the default is
8kb)
and also setting content length as follows:

public void doPost( HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
 ...
 response.setContentType(text/plain);
 response.setBufferSize(64 * 1024);
 PrintWriter out = response.getWriter();

...
 String result = null;
 // do processing which sets result string

 int len = result.length();
 response.setContentLength(len);
...
out.println(result);

I verified that the response buffer size was increased to 64kb and the
content length was set correctly.

Still, I get the error on writing the response.

Is this a known problem with a fix? Am I doing something wrong?
Please advise.

Thanks.
Barry Draper
[EMAIL PROTECTED]



Re: /lib /WEB-INF/lib

2001-06-07 Thread Milt Epstein

On Thu, 7 Jun 2001, eric ng wrote:

 Hi,
 In tomcat or other servlet engine implements the spec.
  there are 2 place to put JAR files:

 1) d:/tomcat/lib
 2) d:/tomcat/webapps/abc/WEB-INF/lib

 I wonder what's the difference putting JAR in the 2
 directory? any performance difference? Should I always
 put JAR into web apps's own lib?

The main difference is a functional/modular one: Things in 1) will be
seen by all webapps/contexts, things in 2) will be seen only by the
one webapp/context.  In certain situations (e.g. you only have one
webapp/context), there'd be no difference.  There might be performance
differences, I don't know, but I suspect they'd be minor.

So things that need to be seen by all webapps/contexts need to be in
1).  Things that only need to be seen by one webapp/context could
conceivably go in either 1) or 2).  As a matter of clean design, I'd
suggest these latter things go in 2).

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Number of threads running

2001-06-07 Thread Mark Himsley

Hi,

I'm running tomcat 3.2.2 connecting through Apache using AJP12 on RedHat
6.2 with jdk1.3.1 and not much memory (a development system).

I am wondering about the number of threads I see running - looking at the
output of `ps aux` I can see 18 threads. I have two connectors setup, an
HttpConnectionHandler with Parameter name=max_threads value=2/ and
an Ajp12ConnectionHandler with Parameter name=max_threads value=5/.

I'm just wondering why there are an extra 11 threads, and what they might
be doing (and yes I do know I could dump the HttpConnectionHandler but
occasionally it is useful to check that Apache and Tomcat are setup
correctly).

Thanks.

--
Mark Himsley
In Acton



INSTALLATION PROBLEM FOR MORE THAN A MONTH

2001-06-07 Thread subhi adam

THIS MY AUTOEXEC.BAT FILE

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BIN
SET 
CLASSPATH=.;C:\JDK1.3\JRE\LIB\RT.JAR;C:\JDK1.3\LIB\TOOLS.JAR;C:\TOMCAT\LIB\SERVLET.JAR
SET TOMCAT_HOME=C:\TOMCAT;
SET JAVA_HOME=C:\JDK1.3;
SET ANT_HOME=C:\JAKARTA-ANT;

AND GET THE FOLLOWING WHEN I START TOMCAT

C:\tomcat\binTOMCAT START
Unable to locate servlet.jar, check the value of TOMCAT_HOME.


WHEN I CHECK  THE SETTING I GET FOLLOWING
C:\tomcat\binSET
TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
BLASTER=A220 I5 D1
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BI
JAVA_HOME=C:\JDK1.3;
ANT_HOME=C:\JAKARTA-ANT;
CMDLINE=EDIT TOMCAT.BAT
TOMCAT_HOME=C:\TOMCAT;

DO I NEED TO SET SOMETHING ELSE . WIN98 /TOMCAT3.2.2

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: I need an advice to make Tomcat a NT service

2001-06-07 Thread Alexandre Bouchard

Thx for the warning Randy (about the JDBC-ODBC)

I didn't know that JDBC-ODBC was experimental and instable. I already asked
to the mailing list which kind of driver (1,2,3 or 4) I should use for my
database accessing, and many adviced me not to use JDBC-ODBC. But in my
testing environment (tomcat is not yet deployed, i am still testing it on my
pc before risking me on the big servers of the company) I tested JDBC-ODBC
and it worked fine. I am not sure of the meaning of thread safe. Does that
mean that if 2 users try at the same time to send queries then the server
will crash? Or that if I log out and let tomcat+IIS run as a service then
the server will crash? Or both?

thx

But the more I use Access DBs, the more I want to get rid of them (I did not
chose this weak technology, it's the one i replaced that did) I think I will
replace it by SQLServer [ if I'd be alone, the architecture would be
BSD-Apache-Tomcat-mySQL, but the office is full of microsoft-certified guys
]. I've got two more questions about that:
-is it hard to install (how many hours approx) ?  //scuse me if this one is
not related to jakarta
-is it it easy to communicate from JDBC to SQLServer DBs ?


Thx (Again)


 
 Someone has already answered about the service so I will pass over
 that issue and warn you of another problem in your architecture.
 
 Sun's JDBC-ODBC bridge is not thread safe.  If you attempt two
 concurrent connections then you will get a crash (Dr. Watson or GPF
 depending on version of Windows).  You can read about this in the Bug Parade
 (I don't have the number currently).  Sun's response is that the JDBC-ODBC
 bridge is experimental and should not be used in a production environment.
 I would suggest you find other drivers, either ODBC or otherwise for your
 application.
 
 Randy
 
 
 -Original Message-
 From: Alexandre Bouchard [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 7:59 PM
 To: [EMAIL PROTECTED]
 Subject: I need an advice to make Tomcat a NT service
 
 
 At business, they were using IIS running on NT4 with ASP as
 the scripting
 language... until I arrived :)  With the help of this mailing
 list's archive
 and users, I set up a JDBC-ODBC bridge, and I make IIS give
 Tomcat the JSP
 job (no more ASP ! relief !).
 
 Now, all I have to do is to make Tomcat a NT service so that
 when the server
 administrator logs off, the server will still run. I am using
 java version
 1.3, and I faced the bug #4323062. I read the information
 available at the
 url:
 http://developer.java.sun.com/developer/bugParade/bugs/4323062.html
 and I saw many solutions proposed. What I need is a
 simple-to-setup, yet
 reliable, solution. Bill Giel's solution seems good for me.
 Should I use it?
 Is it simple enough?
 
 So I need feedbacks from people who installed successfully Tomcat as a
 service that do not die if the user logs off. How did you
 avoided the bug?
 What solution did you used? Was that simple to setup? And how
 reliable is
 your server now?
 
 Thx
 
 Alexandre Bouchard,
 Intranet administrator
 Bell
 




RE: default page

2001-06-07 Thread Filip Hanik

in server.xml (conf directory)
add your context as the root context

  Context path=/
 docBase=webapps/yourcontext
 crossContext=false
 debug=0
 reloadable=true 
/Context

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
-Original Message-
From: Chris Huisman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 4:21 PM
To: '[EMAIL PROTECTED]'
Subject: default page


I would like to have the login page of my webapp show up when the user
enters the url http://localhost (or whatever the machine name is).  I would
also like the login page to appear when the user types in
http://localhost/web-app-name .  I am able to do this using Tomcat 3.1, but
I need to do it in 3.2 as well.
Any suggestions would be helpful.
Thank you


Chris Huisman   B.Sc. Specialization in Computing Science
mailto:[EMAIL PROTECTED]
Software Developer  http://www.matrikon.com
MatrikonPhone: (780) 448-1010
(ext. 4601)
Suite 1800 10405 Jasper Avenue  Fax: (780) 448-9191
Edmonton, Alberta, Canada, T5J 3N4




RE: Server.xml

2001-06-07 Thread Filip Hanik

just download another one from the website

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: brenda [mailto:brenda]On Behalf Of Brenda Mijares
Sent: Thursday, June 07, 2001 3:17 PM
To: [EMAIL PROTECTED]
Subject: Server.xml


Can anyone send me a copy of their server.xml file that works
as far as turning tomcat on...
I was messing with it and I think I deleted something...


thanks






RE: INSTALLATION PROBLEM FOR MORE THAN A MONTH

2001-06-07 Thread Filip Hanik

SET TOMCAT_HOME=C:\TOMCAT;
SET JAVA_HOME=C:\JDK1.3;
SET ANT_HOME=C:\JAKARTA-ANT;

what are the semi colons ; doing there?

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: subhi adam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 2:59 PM
To: [EMAIL PROTECTED]
Subject: INSTALLATION PROBLEM FOR MORE THAN A MONTH


THIS MY AUTOEXEC.BAT FILE

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BIN
SET 
CLASSPATH=.;C:\JDK1.3\JRE\LIB\RT.JAR;C:\JDK1.3\LIB\TOOLS.JAR;C:\TOM
CAT\LIB\SERVLET.JAR
SET TOMCAT_HOME=C:\TOMCAT;
SET JAVA_HOME=C:\JDK1.3;
SET ANT_HOME=C:\JAKARTA-ANT;

AND GET THE FOLLOWING WHEN I START TOMCAT

C:\tomcat\binTOMCAT START
Unable to locate servlet.jar, check the value of TOMCAT_HOME.


WHEN I CHECK  THE SETTING I GET FOLLOWING
C:\tomcat\binSET
TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
BLASTER=A220 I5 D1
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BI
JAVA_HOME=C:\JDK1.3;
ANT_HOME=C:\JAKARTA-ANT;
CMDLINE=EDIT TOMCAT.BAT
TOMCAT_HOME=C:\TOMCAT;

DO I NEED TO SET SOMETHING ELSE . WIN98 /TOMCAT3.2.2

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





RE: Apache can't load mod_jk

2001-06-07 Thread Filip Hanik

does this file exist?

/usr/lib/apache/1.3/mod_jk.so

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steve Doerr
Sent: Thursday, June 07, 2001 3:06 PM
To: [EMAIL PROTECTED]
Subject: Apache can't load mod_jk


Hello.

I can't get Apache to start when I uncomment the mod_jk load line.

I have the module in the proper directory, but Apache (1.3.19) will not
start if I try to load this module.

Here's what I've tried in httpd.conf:

#LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so

IfModule mod_jk.c
#The following line is for apacheconfig - DO NOT REMOVE!
JkWorkersFile /etc/apache/mod_jk/workers.properties
Include /etc/apache/mod_jk/tomcat-auto
/IfModule

Does anyone have any ideas about what might be wrong, or what I might
check?

Thanks,
Steve







  1   2   >