Re: How to unsubscribe?

2001-09-25 Thread Gary Dale

Søren Neigaard wrote:

Could anyone please guide me :)

goto http://jakarta.apache.org/site/mail2.html and click on the 
unsubscribe link for the list you want to stop.





Re: Multiple virtual host with individual webapp dirs , one tomcat

2001-07-19 Thread Gary Dale

Actually, if you put your hosts in webapps, Tomcat will automatically 
create contexts for them, However, these will be in the form 
http://server.domain..com/appname/. This is essentially the same as your 
.war suggesting.

Creating virtual hosts out of them is a different kettle of fish. 
However, it seems that a simple shell script would do the trick - just 
find each directory and generate a virtual host entry for it.


Will England wrote:

On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote:

Is it possible to give every single vhost his own webapp-dir where
developpers can put
new contexts, which are automatically added after restarting tomcat so no
editing of server.xml
is required.


If you want to *change* the code in a context, you can do this just by
adding the new class files under the WEB-INF directory.

If you want to add a *new* context that didn't already exist, you have to
edit the server.xml file.

One other option is to have the developers jar up the whole application
and deploy it to TOMCAT_HOME/webapps as a .war file.

Then, no changes are needed to server.xml; tomcat just reads and expands
the .war file and runs with it.  Never did this, not sure how well it
works.

Will










Re: tomcat and apache on different machines

2001-07-18 Thread Gary Dale

I'd imagine - haven't tried it myself - that you should set it up as if 
the two were running on the same machine but use the UNC paths 
everywhere you need to connect Apache to Tomcat. That includes not only 
the hosts but also the workers and references to the Tomcat server in 
general.


Nick Stoianov wrote:

 Hey guys,

  

 I have the following question. I set up a tomcat server. I have an 
 Apache server on a different machine. What should I put in the 
 configuration of Apache and Tomcat so that when apache receive a 
 request for a jsp file it will redirect the request to the Tomcat 
 server? And Apache will serve only the HTML and image files - but not 
 the jsp files.

 I'm running Apache with mod_jk

  

  

 Nick







Re: Tomcat as NT service.. problem.

2001-07-17 Thread Gary Dale

Well put. Moreover, the jk_nt_service does not require knowledge of the 
Apache directory.


Randy Layman wrote:

   I would suggest that you investigate why this is before you call it
a secret trap and stupid.  There are lots of little gottchas like this
in Tomcat (and Windows in general).  They are generally there because the
people at Microsoft couldn't be bothered to make all things work all the
time.

   Randy

PS This problem is related to the reason that on NT and 9x you system
directory has hundreds, if not thousands, of dlls.

-Original Message-
From: Bruce A. Carson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat as NT service.. problem.


Ah, you probably fell for the secret trap laid for you by the
programmers...  The stupid Tomcat jk_nt_service can't handle directories
with a space in them and the default install for Apache puts Apache in a
directory with not one, but two spaces !!
 
I will send you my install directions in a private e-mail.  If anyone else
is interested, drop me an e-mail.
 
Bruce
-Original Message-
From: Gregory Guthrie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:37 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as NT service.. problem.


I tried to setup Tomcat to start as an NT service (Win2k-Pro), as per:
  Working with the Jakarta NT Service
  http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html
  
And it seems OK:
   E:\Net\Apache\Toolsjk_nt_service -i Tomcat
e:\Net\Apache\Tomcat\conf\wrapper.properties
   Asked (and given) winsock 1.1
   The service named Tomcat was created. Now adding registry entries
   Registry values were added
   If you have already updated wrapper.properties you may start the Tomcat
service
   by executing net start Tomcat from the command prompt

But I get:
   E:\Net\Apache\Toolsnet start Tomcat
   The Tomcat service is starting.
   The Tomcat service could not be started.
   The service did not report an error.
   More help is available by typing NET HELPMSG 3534.

Apache runs fine as a service.  :-)
Tomcat runs fine by a DOS startup.
And they run fine together via mod_jk.dll.

I did edit the wrappers.properties file to point to JDK and Tomcat; seems
simple enough.
  
Any help appreciated; I don't know where to look for hints, there are no log
files or errors generated.



Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103
 







Server.xml and mod_jk.conf-auto

2001-07-17 Thread Gary Dale

Can I ask something really, really basic here? When I add a virtual host 
to Server.xml, should it show up in the conf-auto file?

Of course, I wouldn't be asking if it was, but I am getting a new 
conf-auto generated each time I stop and restart Tomcat. The only 
contexts I see however are the ones automatically generated in the 
webapps folder. The one's I specify are nowhere to be seen.

I've added ajp13 to Server.xml as well (basically just took the ajp12 
connector, copied it and made it refer to ajp13  port 8009), but I 
don't see that in the .conf-auto file. All the references in .conf-auto 
are to ajp12.

Any ideas on what I'm doing wrong?





Re: Tomcat + Apache on NT

2001-07-16 Thread Gary Dale

1) Tomcat won't start as a service if the configuration is invalid. 
However, you don't need to worry too much about the start order if the 
configuration doesn't change between restarts.

2) You don't need to include it if you have a custom config that 
includes the relevant information. Some people prefer to do this.

3) Use the Services control in NT. Set startup type to automatic.


Gregory Guthrie wrote:

 At 03:26 PM 07/09/2001 -0400, Gary Dale wrote:

 You only need to start Tomcat ahead of Apache if you have changed 
 Tomcat's configuration and are including the .conf-auto in 
 httpd.conf. What I suggest is setting them both to automatically 
 start, then if you change anything, shut them down and restart them 
 in the correct (Tomcat first) order.


 -- I don't quite get this;

 1) I didn't change tomcat's configuration,
 2) I did have httpd.conf include .conf-auto, I thought this was 
 required. (still do think this..!)
 3) How do you set them both to automatically start?

 Thanks,
 Gregory

 Emir Alikadic (ADNOC IST) wrote:


 Provided that you properly configured the Apache/Tomcat combo (with
 appropriate entry in the httpd.conf, as described in Tomcat docs), 
 you'll
 have to start Tomcat first and then start Apache. Manually.

 -Original Message-
 From: Gregory Guthrie [mailto:[EMAIL PROTECTED] ]
 Sent: Saturday, July 07, 2001 7:57 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat + Apache on NT

 It is not clear (to me) that I have to manually start both Tomcat and
 Apache servers on  NT (Win2K Pro). I expected Apache to start Tomcat
 as/if needed, but that fails, but everything works fine for Tomcat
 standalone, or if it is manually runing, and then Apache just connects
 to it.

 Is this correct? Is this documented somewhere? The closest thing I found
 was in the Tomcat-Apache HowTo setup where it says:  This step sets 
 various JServ internal parameters, in order:
   Instruct JServ not to start the Tomcat process. Automatically
 starting
   Tomcat is not implemented yet. 

 And then does:ApJServManual  on

 Is this correct understanding?

 Thanks.
 [EMAIL PROTECTED]

 
 *Dr. Gregory Guthrie
 *[EMAIL PROTECTED] (641)472-1125Fax: -1103
Computer Science Department
School of Computing and Information Science
Maharishi University of Management
   (Maharishi International University 1971-1995)
 http://www.mum.edu/cs_dept
 







Re: Tomcat + Apache on NT

2001-07-09 Thread Gary Dale

You only need to start Tomcat ahead of Apache if you have changed 
Tomcat's configuration and are including the .conf-auto in httpd.conf. 
 What I suggest is setting them both to automatically start, then if you 
change anything, shut them down and restart them in the correct (Tomcat 
first) order.


Emir Alikadic (ADNOC IST) wrote:

Use mod_jk rather than mod_jserv.

Provided that you properly configured the Apache/Tomcat combo (with
appropriate entry in the httpd.conf, as described in Tomcat docs), you'll
have to start Tomcat first and then start Apache. Manually.


-Original Message-
From: Gregory Guthrie [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 07, 2001 7:57 AM
To: [EMAIL PROTECTED]
Subject: Tomcat + Apache on NT


It is not clear (to me) that I have to manually start both Tomcat and
Apache servers on  NT (Win2K Pro). I expected Apache to start Tomcat
as/if needed, but that fails, but everything works fine for Tomcat
standalone, or if it is manually runing, and then Apache just connects
to it.

Is this correct? Is this documented somewhere? The closest thing I found
was in the Tomcat-Apache HowTo setup where it says: 
  This step sets various JServ internal parameters, in order:
   Instruct JServ not to start the Tomcat process. Automatically
starting
   Tomcat is not implemented yet. 

And then does: 
ApJServManual  on

Is this correct understanding?

Thanks.
[EMAIL PROTECTED]







Re: Tomcat works as NT service when logging off in JDK1.3.1

2001-07-09 Thread Gary Dale

The problem I've found however is that when you stop the Tomcat service, 
it takes longer to shut down than Windows expects. You get an annoying 
error message telling you it couldn't stop the service about half a 
minute or so before the service actually stops.

Holden, Mark wrote:

Tomcat can work as an NT service and doesn't die when logging off when using
JDK1.3.1 and using the -Xrs switch.

I checked my tomcat running as a service and it definately had the problem
of dying when logging off.
Then I change the line in my wrapper.properties to have the -Xrs switch like
this.

wrapper.cmd_line=$(wrapper.javabin) -Xrs -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) -home
$(wrapper.tomcat_home)

The problem then went away.
I am running windows 2000 sp2 on a dual P3 550.

I noticed that the documention for tomcat reads as this.
Notice for JDK 1.3 users: There is a known problem
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html in JDK
1.3 that affects Java applications being run as Windows NT services. The bug
causes the service to terminate when the currently logged in user logs out.
The simplest way to work around this problem is to use JDK 1.2. If your
application requires JDK 1.3 features then you may want to look into
javaserv http://www.kcmultimedia.com/javaserv/ or JavaService
http://www.alexandriasc.com/software/JavaService/. Users have reported
success with both of these packages but there may be others that work as
well. 

The bug was fixed in JDK1.3.1.  
You may want to update the documentation so that others can use this switch.



Here is some documentation that came with JDK1.3.1...
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.
For more background, please see at least the last section of the evaluation
on the Bug Parade: 
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html 

Mark Holden
[EMAIL PROTECTED]
952-324-0410







virtual hosts with Tomcat 3.2.2 Apache 1.3.20

2001-07-09 Thread Gary Dale

I've got 3.2.2 to work and I've integrated it with Apache. I can run the 
example applications as either http://server:8080/ or http://server/ and 
they work.

Some consultants have developed some java applications that I need to 
install on this server. They don't seem to have followed the standards 
however. There are no web.xml files for the applications, for example. 
Instead the application files are just stored in subdirectories of 
webapps, except for shared components which are in subdirectories of 
tomcat_home/classes.

The applications work when I run them as http://server/appname/ but I 
need to get them to run as http://appname.domain.dom/. When I set up the 
virtual hosts for these applicaitons however, I run into problems. I get 
the error message:


  Error: 500


Location: /index.jsp

*Internal Servlet Error:*

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at 
org.apache.tomcat.facade.ServletContextFacade.getRealPath(ServletContextFacade.java:136)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:490)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
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.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
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)

Any idea on what is going wrong?




Re: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )

2001-07-06 Thread Gary Dale

Are you sure there are no problems with jdk1.3.1?  The main problem I 
found with 1.3.0 was that it shut down when you logged off. I found the 
same problem in 1.3.1. The fix is to add -Xsa to the execution line 
that starts Java in Tomcat.

As for making Tomcat a service, I found the jk_nt_service.exe (zipped 
up) in the jakarta downloads. I thought that was the standard way of 
making it into a service. Is this what is causing the shutdown problem? 
ShouldI be using a different method?



Randy Layman wrote:

   1.  No quotes and no spaces in filenames allowed.  Use one backslash
(\) in your paths.  The examples that come in the conf directory are
correctly formatted, but probably for the wrong directories.
   2.  Sun fixed the problem for JDK 1.3.1.  All 1.3.0 versions have
problems.  Also, all versions of the 1.2.1, 1.2.2, 1.1.8, and 1.1.7 line
that I have worked with have been fine, although rumor has it that some
versions of 1.2.0 had the same problem.  Also, rumor has it that beta 1.4
works fine as a service (but has other issues).

   Randy

-Original Message-
From: Russell, Steve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 2:48 PM
To: '[EMAIL PROTECTED]'
Subject: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )


Hi;
 
I found some instructions at jakarta.apache.org for making tomcat a service:
 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
 
It didn't answer some questions I would like to know before I begin.
 
1. The instructions mention setting TOMCAT_HOME in wrapper.properties.
Lets say this is c:\tomcat.do I put it inq uotes?  Do I use the \
as a path seperator or a /?
 
2. The instructions mention that there is a bug in jdk1.3 that if you follow
thei nstructions to make
tomcat a service and you stop the service no clean up will happen.  Is
there anything bad about
that?  What will not happen?   Does this bug also exist in jdk1.3.0_02
?
 
Thanks in advance

Steve Russell 
Web Developer III 
ValueOptions - Lifescape 
703-205-6589 
[EMAIL PROTECTED] 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**







Re: jk_nt_service is not shutting down

2001-07-06 Thread Gary Dale

I'm getting the same error (2186). It started when I added the -Xsa 
parameters to the Java startup, which seems to be necessary to keep the 
service from shutting down on logout. The problem seems to be that the 
service takes, as you noted, about 20 seconds too long to shut down. I'm 
ignoring it for now but would also like a solution.


Jochen Wiedmann wrote:


 Hi,

 I am using TC 3.2.2 on several machines, all configured to
 be running as an NT service with jk_nt_service. This works
 fine, with the exception of a single machine: If I try
 to stop the service there, I receive an error message 2168
 from the service manager.

 Moreover, I can see that TomCat is running for about 15-20
 seconds more, which can easily be verified by deleting the
 log files. (They cannot be deleted until TomCat is actually
 stopped.)

 Any ideas what might be the reason?


 Thanks,

 Jochen








Re: Problem with stopping Tomcat

2001-07-06 Thread Gary Dale

I thought 3.2.2 could use AJP13 instead? Am I wrong on that?


Randy Layman wrote:

   Tomcat uses AJP12 to shutdown.

-Original Message-
From: Richard Richter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Problem with stopping Tomcat


Hi all...

When I tried to minimize my configuration I reach a state 
when tomcat.sh stop 
ends with this message. Only Classpath information was before it.

Stop tomcat
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.doConnect(Compiled Code)
at java.net.PlainSocketImpl.connectToAddress(Compiled Code)
at java.net.PlainSocketImpl.connect(Compiled Code)
at java.net.Socket.init(Compiled Code)
at java.net.Socket.init(Compiled Code)
at org.apache.tomcat.task.StopTomcat.execute(Compiled Code)
at org.apache.tomcat.startup.Tomcat.stopTomcat(Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(Compiled Code)
at org.apache.tomcat.startup.Tomcat.main(Compiled Code)

I've got only one worker defined in server.xml on port 8444. 
What can I miss in 
my config-files? I really don't know when this started to 
occure, so I can't say 
which file is siner. But httpd.conf is not. I tried older 
version and it 
doesn't help me. I changed tomcat-configs without backin them 
up... so. :-)))

What connection is tried when tomcat goes down?

Thanks

Virgo

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








Re: apache not able to access jsp files

2001-07-06 Thread Gary Dale

I've found that setting a host to the tomcat webapps directory sort of 
works except that you don't get the ROOT folder. I can get to the 
examples via http://hostname.dom/examples/ however. I just don't get the 
Tomcat start page. Moreover, going ot http://hostname.dom/ROOT/ brings 
up the start page but the examples won't run because it's looking for 
them in webapps/ROOT/examples/. I'm still trying to get this to work myself!


Alberto Torna Jr. wrote:

 I ran into something similar.  I set the default page for Apache to 
 the Tomcat JSP page.

 From: Ramkumar Manoharan Reply-To: [EMAIL PROTECTED] 
 To: [EMAIL PROTECTED] Subject: apache not able to 
 access jsp files Date: Fri, 29 Jun 2001 17:03:27 -0700  Hi,  
 OS-red hat 7.0, apache 1.3, tomcat 3.2  I currently have Apache on 
 port 80, Tomcat port 8080 with mod_jk adapter. The servlets and jsp 
 examples work off of localhost:8080, but they do not work off 
 localhost:80. I have the Tomcat User Guide, the Tomcat-Apache HOWTO, 
 and the Working with Mod-JK Manual for reference. I am using the auto 
 generated mod_jk.auto and basically just want Apache to serve the 
 static content and Tomcat the dynamic jsp and servlets. Unless, I'm 
 missing something the static html pages and the .jsp pages should be 
 off of port 80 and then the jk adapter should transfer the .jsp 
 request to Tomcat via port 8007 using the apj12 protocol.   But i 
 get the following message:   Forbidden  You don't have permission 
 to access /examples/jsp/index.html on this server.  I have 755 
 access to the examples folder and also to the super folder 
 webapps.Any reason why this problem?  Thanks Ram 
 _ 
 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: Apache - Tomcat - Servlet Mapping

2001-07-06 Thread Gary Dale

It would probably help if the mod_jk howto contained an example showing 
how to run the examples through Apache. For example, I have Tomcat 3.2.2 
running nicely and get the examples to run using http://servername:8080/ 
to launch the examples. When I connect Apache to Tomcat, using 
http://servername/ doesn't recognize that the / context should go to 
ROOT. And going into http://servername/ROOT/ gets you into trouble when 
it tries to go to the examples context.


Eitan Ben Noach wrote:

I had the same servlet-mapping problems and the right ApJServMount command
is:

ApJServMount /context_path/myServlet /context_path/myServlet

( You must omit the 'servlet' string from the mount command ! )

In that way Apache knows to redirect /myServlet URL to Tomcat.

You can make it more straight foreword and redirect every thing under
context_path
to Tomcat by:

ApJServMount /context_path /context_path

But then also static files ( like HTMLs and GIFs ) will be directed as well
to Tomcat ( which usually you don't want )

You are right, and I don't have the answer for this, that in order to
redirect only servlets from Apache to Tomcat we need to write specifically
the servlets url-pattern in a special ApJServMount command, which actually
duplicates the information in the web.xml file. 

Very bad!!. Does any body have the answer for it?

I have some thoughts that the using Jk_mod maybe more flexible, but didn't
yet check it.

Eitan Ben-Noach



-Original Message-
From: Colin Hawkett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 9:19 AM
To: [EMAIL PROTECTED]
Subject: Apache - Tomcat - Servlet Mapping


Hi all,

This question seems to be popping up pretty regularly, 
but I couldn't
extract a solution to my problem - namely: getting apache to recognise
servlet-mappings. I am running tomcat 3.2.2 and apache 1.3.11 
on win98.

I have a web application packaged up as a war file and deployed to the
webapps directory.  The web.xml file contains (among other things)

servlet
servlet-nametheServlet/servlet-name
servlet-classcom.myco.test.TheServlet/servlet-class
/servlet

servlet-mapping
servlet-nametheServlet/servlet-name
url-pattern/myServlet/url-pattern
/servlet-mapping

Now, I've confirmed that the mapping is correct by accessing 
it using the
URL

http://myserver:8080/context_path/myServlet- This is 
fine, no problems

As I understand it, this is connecting to the tomcat web 
server (on port
8080), which is aware of the servlet mapping because it has 
read the web.xml
file for application.  And this is how I would expect it to 
work.  Cool.

However, I don't want Tomcat to be my web server.  I want 
apache to be my
webserver.  So I try to access the application using the URL

http://myserver/context_path/myServlet-  This fails!

everything about the web-app works with apache except the 
servlet mapping,
so I assume Apache is unaware of it.  The closest thing to a 
solution I have
found is that I need to add a line to 'tomcat-apache.conf' that looks
something like -

ApJServMount/context_path/myServlet
/context_path/servlet/theServlet

which seems like a really annoying thing to have to do.  The 
whole point of
web-apps is that you define everything you need to in 
web.xml, so that you
don't have to change configuration files on the deployment 
system.  If this
is necessary, then what is the point of the servlet-mapping?  
Surely tomcat
should generate the necessary ApJServMount lines in
tomcat-apache.conf when it starts up and reads web.xml?

So, the big question is -

* Is it possible to get apache to recognise servlet mappings 
defined in a
web-app's web.xml without explicitly making a modification to 
an apache
config file? If so, how?

* If not can someone give a concrete example of a servlet 
mapping, and the
corresponding ApJServMount line that will get apache to recognise that
mapping?

I hope this all makes sense - appreciation in advance,

Colin









Re: How do i test tomcat

2001-06-12 Thread Gary Dale

Or if you are testing from another machine, http://ipaddress:8080/ where 
ipaddress is the actual IP address or the DNS name for the server. In 
either case you should see the Tomcat test page.


Dmitri Colebatch wrote:

root wrote:

I think tomcat is running, how do i test it?


if you've done the straight up install, look at http://localhost:8080 -
you should have a tomcat page.

cheers
dim







more Newbie Contexts

2001-06-12 Thread Gary Dale

How do you set up a virtual host for say the admin programs so that you 
could simply ask for http://admin.domain.dom/ rather than 
http://server.domain.dom/admin/ (assuming that the appropriate DNS 
entries have been created)?





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








Re: How to connect Apache and Tomcat?

2001-06-06 Thread Gary Dale

Have you considered using mod_jk instead? It's supposedly more uptodate 
and has some nice features if you're doing virtual hosting. Read the 
mod_jk-howto file in the tomcat docs.


Tomeu Bennàssar wrote:

Hi everybody:
I'm new in Apache and I'm trying to integrate Tomcat as an
in-process servlet container of Apache but I can't. I have a SUN ULTRA 1
running solaris 5.7, Apache 1.3.4 and Tomcat 3.2.2. I'm following the
Minimalistic User's Guide of Apache, and I'm trying to compile the Jserv
module (mod_jserv) but it doesn't work. When I execute the build command
apxs:

apxs -c -o mod_jserv.so *.c

I get the next error:

apxs: Error: Sorry no shared object support for Apache
apxs: Error: available under your platform. Make sure
apxs: Error: the apache module mod_so is compiled into
apxs: Error: your server binary /usr/local/apache/bin/httpd


I know that this error is not a compilation one, but I don't know to
correct it.
Could anyone help me, please?

PD: The Apache that I´m running on my system is one that I have found
compiled on the web, because after weeks of works i was unable to
compile it. Could the fact that I´m using an Apache compiled by someone
else be part of the problem?









how do I test the Apache-Tomcat mod_jk connection?

2001-06-06 Thread Gary Dale

Sorry for this newbie type question but I'm not a Java programmer. I am 
required however to give advice on this subject. I believe I have the 
connection set up properly but from what I've been reading about running 
jsp applications, it appears that you need to build them for a 
particular location.

For example, I can run the examples OK by simply going to 
http://servername:8080/examples/ if Apache isn't running, or to 
http://servername/examples/ if it is. I also can get at various 
applications that were set to run in subdirectories of webapps as 
http://servername/appx/. And I can view html pages through dns entries I 
have set up as http://appx.domain.dom/. The Java pages however give me a 
long string of type 500 error messages.

The point is, it looks like I have the Apache-Tomcat connector working 
and I may even have the virtual hosting (through ajp13  mod_jk)  set up 
properly. Is there something simple I can do to verify this? Is there a 
.jsp page that will run anywhere, for example, or is there a simple 
change I can make to the examples to get them to run in a virtual host?




Re: Should we do moderation on this mailinglist??

2001-06-06 Thread Gary Dale

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.


Swart, James (Jim) ** CTR ** wrote:

wowsers.  That's a good idea.

-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Should we do moderation on this mailinglist??


Umm, wouldn't dividing the groups just give us MORE off topic problems?

If someone WANTS the job of moderating the hundreds of post in this list
they can, but I am not going to volunteer.

I think some kind of canned footer that is added to mail through the list
can be very helpful.  It should have links to FAQ, info on unsubscribing,
and list archives.  This sounds much less labor intensive than moderating.

-Original Message-
From: Hemant Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??


HI Jeff:
I agree with your idea
When after downloading most of the files are asking
how to unsubscribe, duplicate mails, lab, lab
it really pains
How abt dividing this group into several parts,
Like one for tomcat configuration
- Servlet prblems, etc


--- Jeff Waugh [EMAIL PROTECTED] wrote:

Unfortunately, we are dealing with 'people' here.
It is a shame that there is not a 'filter' to
eliminate
'stupid' people, but as hard as I've tried, I just
can't
program it. If someone else can, please make it an
Opensource project

But, then again, we would probably get 'stupid'
people
contributing, so those filters would be invalidated.

Man, it looks like we're screwed.

As an example, *I* use a bicycle as my primary
means of transportation, and have had similar
ideas about 'people' who drive cars.
I decided *I* was screwed quite some time ago.

Delete is a wonderful thing!!!

(If only it was as effective on motorists)

(Hmmm, probably 98% of the people reading this
are motorists...)

(Sorry, but if the shoe (wheel) fits...)

-Jeff


- Original Message -
From: Martin van den Bemt [EMAIL PROTECTED]
To: jakarta-tomcat-user
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 4:18 PM
Subject: Should we do moderation on this
mailinglist??


Hi to everybody who is actually trying to get some

information on this

mailing list, or to help others,


The 2 weeks I've been a member here, just trying

to get new ideas and help

others out with tomcat issues, I would say, were

pretty horrible. about
50%

of the mail is actually rubbish (which means

double mails, requests for

unsuscribing and other SPAM. This can have a

couple of couses :

irritated mode on
- Most people cannot read
- Most people cannot think logically
- Most people should not be able to subscribe to

this list

- Most people shouldn't wast other people's time,

so they still want to
help

people.
irritated mode off
solution mode on
- members with no active e-mail address should

be deleted right away
(who

has the rights to do that?), so people don't

resend messages again. (I

mailed the owner of the mailinglist, but haven't

had a reply yet..)

- Don't allow misuse of the mailinglist anymore :

block those senders

immidiately from the mailinglist (that's what they

want it seems) == are

there any facilities for that.
- Don't reply to misuse of the mailinglist
- Off topic messages can be nicely redirected to

the appropiate area.

- Let everyone state clearly what they are using

(rh 7.1, windows 2000,

which version of tomcat, etc). A lot of replies

are pretty useless if they

have another version of the product. Also the

probability that the correct

people (the people actually using tomcat on a

rh7.1 box, will reply..)

- Send a rules e-mail to subscribers.
- Send stuff that's not interesting (like someone

suggested in the list

today), directly to the sender of the mail. (If I

have made a commercial

solution for a problem or question, I mail to

peoples private e-mail

address, as an example..)

The common goal should be :

Users helping users!!

Just trying to get some improvement here.. I think

a lot of people are

currently giving up on this list and that's not

good for tomcat (at least

that's what I think)

Mvgr,
Martin van den Bemt





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







Re: jdk1.3.0_02 tomcat 3.2.1 jdbc problem

2001-06-06 Thread Gary Dale

Could be one of two problems. When you run it as a service, it probably 
is running as system but when you run it as an app, it runs with your 
user id. Check the privieleges!

Or it could be the jdk1.3 problem. It won't run as a service - shuts 
down when you log off! I'm not sure it is fixed in jdk 1.3.2 but I'm 
using 1.2.x which doesn't have this problem.



rohit kamath wrote:

 when I run tomcat as a nt service, I have problems connecting to the 
 database.  It gives me jdbc not found error.  But if I stop the 
 service and run it as an application it has no problems connecting to 
 the database.

 can anyone help.

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








Re: Should we do moderation on this mailinglist??

2001-06-06 Thread Gary Dale

IMHO: Unfortunately the online documentation isn't always that good. 
e.g., trying to get a good doc on setting up Apache  Tomcat using 
mod_jk requires digging through a lot of stuff that is out of date or 
wrong. Too much of the online docs refer to mod_jserve or haven't been 
properly updated for mod_jk.

For example, the Tomcat User Guide makes no mention of mod_jk even 
though this seems to be an important step forward in configuring virtual 
hosts. The Tomcat-Apache howto mentions mod_jk but manages to be totally 
useless because it fails to give the the correct sample code for the 
server.xml file (it repeats the httpd.conf code by mistake - this has 
been going on for a long time and has never been fixed). It also is 
hoelessly interwoven with mod_jserve examples so that it's next to 
impossible to figure out anyway.

The mod_jk howto gets things right, I believe, but isn't very clear on 
the apparent need to repeat stuff that is also in mod_jk.conf-auto.

Then of course there is the problem of finding online docs in the first 
place.  As far as I can see, there is no link from the Jakarta page to 
online docs. You need to go through the Tomcat subproject to get there.


Jann VanOver wrote:

Yeah, but at least with a footer, we can all say RTFF and leave it at that.

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Should we do moderation on this mailinglist??


FYI: I just sent a message to [EMAIL PROTECTED] to
suggest that such a footer be added.  We'll see what happens.


JMHO, but back in the good 'ole dayz there was a footer and I haven't
seen any perceivable volume increase on the list since it was removed.

It all boils down to there are a lot of people out there, you know who
you are;), who are just plain lazy and want to be given their answer
and don't want to search for themselves.  Whether it be a 3 line msg
footer or an 8*{ {0 -1}, 
 {1  0} } message archive;).


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