Re: Request parameters not coming through correctly [Tomcat 4.1.12]

2002-10-09 Thread Remy Maucherat

Nikola Milutinovic wrote:
String searchFields[] = request.getParameterValues(searchField);
String searchFieldValue = searchFields[1]; 

I should be able to just do:
String searchFieldValue = request.getParameter(searchField);


Why would I be getting an array with two values?  I was able to get the form
to work if it was the only thing in the jsp, so I believe there is something
external to the form being picked up as an additional parameter, but I can't
figure it out.  Any ideas?

Yes, the spec was undefined about that, and there was no test in the 
reference test suite either. It got standardized on Tomcat 4.1, in the 
end (as I understand it).
 
 
 So, just to clarify, it is getParameterValues giving *values*, wich is a plural 
and thus returned as an array? You can have several fields with the same name, so I 
guess it should be an array...

Yes, if the request was containing multiple headers with the same name, 
like:

HeaderA: foo
HeaderB: bar, blah

will return { foo, bar, blah }

No comma parsing is done anymore (this is back to what was done by 
Tomcat 3.3, AFAIK).

Remy


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




Re: Cannot get mod_jk to work

2002-10-09 Thread Henri Gomez

 I am unable to get mod_jk to work.

 The following line in httpd.conf:
 LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
 results in this error message:
 Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into server:
 /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
 ap_ctx_get

 What is going wrong?

Thanks to give more information on your os, gcc and apache settings please.

The shared lib was built under Redhat 7.2, kernel 2.4.9-34, with
gcc 2.96 against glibc 2.2.4-30 and Redhat Apache 1.3.22-6 and 
mod_ssl-2.8.5-6.

Regards


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




Re: Cannot get mod_jk to work

2002-10-09 Thread sonam singh

how u compile the mod_jk ,have u get the latest source
of mod_jk from cvs . look  at the compilation option
of libtool when mod_jk is compiling .also check the
home of apache/build/config_var_mk  file the option
EXTRA_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE it shoul
be EXTRA_CPPFLAGS = -D_REENTRANT 
because mod_jk uses the apxs for  compilation 

regards
Sonam Singh


--- Henri Gomez [EMAIL PROTECTED] wrote:
  I am unable to get mod_jk to work.
 
  The following line in httpd.conf:
  LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
  results in this error message:
  Cannot laod
 /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into
 server:
  /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so:
 undefined symbol:
  ap_ctx_get
 
  What is going wrong?
 
 Thanks to give more information on your os, gcc and
 apache settings please.
 
 The shared lib was built under Redhat 7.2, kernel
 2.4.9-34, with
 gcc 2.96 against glibc 2.2.4-30 and Redhat Apache
 1.3.22-6 and 
 mod_ssl-2.8.5-6.
 
 Regards
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: [ANNOUNCEMENT] JK2 Released as 2.0.1

2002-10-09 Thread Veniamin Fichin

Mladen Turk wrote:

 The Jakarta-Tomcat-Connector team is pleased to announce the 
 availability of JK2 2.0.1.
 
 Binaries and source versions of the release are available and can be 
 downloaded from :
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/

May be a stupid question, but I'm new to Tomcat, and don't even know what a 
connector is. :-(

I can't compile jakarta-tomcat-connectors-jk2-2.0.1-src.tar.gz from 
jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/src/ , because 
it has not some directories in this archive, as ant said.
So I additionally have downloaded 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jakarta-tomcat-connectors-4.1.12-src.tar.gz
 and found it more consistent.
Should I merge both distributions in order to compile it?
Is the jakarta-tomcat-connectors-4.1.12-src.tar.gz just an API declaration, and 
jakarta-tomcat-connectors-jk2-2.0.1-src.tar.gz a concrete implementation of one of the 
connection protocols? Am I right?



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




RE: One Context - two diffenrnt URLs

2002-10-09 Thread sonam singh


--- Matthew Smith [EMAIL PROTECTED] wrote:
 If you want your GREAT app to be available from
 www.foo.com/ (the default
 app) then your server.xml entry should look like
 this:
 
 Context path= ...
 
 Make sure that no other context (eg ROOT) has an
 empty path attribute.
 
 -Original Message-
 From: Bala [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 8 October 2002 9:43 PM
 To: [EMAIL PROTECTED]
 Subject: One Context - two diffenrnt URLs
 
 
 I am Balu, working as a software engineer, I am
 having
 a problem in tomcat - apache configuration. If time
 permits
  , please help me. Here is the problem(UNIX). 
 
 one context named GREAT is in TOMCAT 3.2.3. Apache
 1.3.9 
 should service urls of two types. 
 
 The URL types are
 
 1) http://www.foo.com/servlet/MyServlet
 2) http://www.foo.com/defservlet/YourServlet
 
 I am having all servlet classes file in the dir
 
 webapps/GREAT/WEB-INF/classes 
 
 My web.xml file looks like bellow.
 
   servlet
 servlet-nameMyServlet/servlet-name
 servlet-classMyServlet/servlet-class
 /servlet
 
   servlet
 servlet-nameYourServlett/servlet-name
 servlet-classYourServlet/servlet-class
 /servlet
 
 servlet-mapping
 servlet-nameMyServlet/servlet-name

 url-pattern/servlet/MyServlet/url-pattern

it should be like that 
url-pattern/MyServlet/url-pattern
access like 
http://www.foo.com/GREAT/MyServlet
in order to access the any servlet follow these steps
1) type http://u'r domain/u'context/servlet(if u have
not done any url mapping for particular servlet)/u'r
servlet
2)http://u'r domain/servlet/u'r serlvet ( u can't
access in this way ) why beacuse if u are using apache
with tomcat apache does not about ur' /servlet dir in
the url . for this u have use context/serlvet/u'r
servlet. which type of connector u;r usinh in order to
connct apache with tomcat mod_jk or mod_webapp or
mod_jserv look at the docs of mentioned connector

regards
Sonam Singh












 /servlet-mapping
 
 servlet-mapping
 servlet-nameYourServlet/servlet-name

 url-pattern/defservlet/YourServlet/url-pattern
 /servlet-mapping
 
 My server.xml file part lokes like
 Context path=What I have to put 
  docBase=webapps/GREAT 
  crossContext=false
  debug=0 
  reloadable=false  
 /Context
 --
 [ I placed two context 
 named servlet and defservlet in server.xml.
 But one Httpsession created in defservlet context
 not
 visible in servlet context.]
 Please let me know What are all the changes
  have to make in server.xml file, tomcat.conf
  file and tomcat-apache.conf file?
 
 Expecting your reply
 Balachandar
 
 
 
 =
 One important key to success is self-confidence. 
  An important key to self-confidence is preparation
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: error with doUpload() in bean

2002-10-09 Thread jon wingfield

It's a ClassNotFoundException wrapped by a ServletException then a
JasperException. The classloader can't find
com.oreilly.servlet.MultipartRequest class (and probably the o'reilly jar)
at runtime.

-Original Message-
From: Sam Seaver [mailto:[EMAIL PROTECTED]]
Sent: 08 October 2002 22:46
To: [EMAIL PROTECTED]
Subject: error with doUpload() in bean


im using tomcat 4.1.12 on RHLinux 7.2,

the JSP page works fine, as I've done it with several other parameters etc.
but when it came to using the com.oreilly.servlet package in the bean for
the file upload, i get this error message in my log file(below), the bean's
function doUpload is here:

package com.jguru;

import java.io.*;
import java.util.*;
import javax.servlet.http.*;
import javax.servlet.*;

import com.oreilly.servlet.*;

public class SimpleBean {

private String fileName;
private String name;
private String type;

...

public void doUpload(HttpServletRequest request) throws IOException{
MultipartRequest mpRequest = new
MultipartRequest(request, /home/seaver/web);
Enumeration enum = mpRequest.getFileNames();
while (enum.hasMoreElements()){
setName((String)enum.nextElement());
setFileName(mpRequest.getFilesystemName(name));
setType(mpRequest.getContentType(name));
}
}

anyone?
S


2002-10-08 16:39:54 StandardContext[/sam]: Reloading this Context has
started
2002-10-08 16:39:54 WebappLoader[/sam]: Deploying class repositories to work
directory /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/sam
2002-10-08 16:39:54 WebappLoader[/sam]: Deploy class files /WEB-INF/classes
to /usr/local/jakarta-tomcat-4.1.12/webapps/sam/WEB-INF/classes
2002-10-08 16:39:54 WebappLoader[/sam]: Reloading checks are enabled for
this Context
2002-10-08 16:39:54 StandardWrapper[/sam:default]: Loading container servlet
default
2002-10-08 16:39:54 StandardWrapper[/sam:invoker]: Loading container servlet
invoker
2002-10-08 16:39:54 StandardManager[/sam]: Seeding random number generator
class java.security.SecureRandom
2002-10-08 16:39:54 StandardManager[/sam]: Seeding of random number
generator has been completed
2002-10-08 16:39:54 StandardContext[/sam]: Reloading this Context is
completed
2002-10-08 16:39:55 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: com/oreilly/servlet/MultipartRequest
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 

Re: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win 2k

2002-10-09 Thread sonam singh

get the latest jakarta-tomcat connectors from cvs 
compile mod_jk or mod_jk2 for apache2 .
regards
Sonam Singh
--- none none [EMAIL PROTECTED] wrote:
 Hi all,
 I am trying to make working 
  Apache 2.0.42 or 2.0.43 and
  Tomcat 4.1.10 or 4.1.12 with
  mod_jk or mod_jk2 on
  Windows 2K
 since last friday with no results !!!
 I don't know if is me, but i found really hard setup
 that enviroment lately, before was easy (until
 Apache 2.0.3x and Tomcat 4.0.4).
 
 Apache installation OK,
 Tomcat installation OK,
 Apache running on port 80 OK,
 Tomcat running on port 8080 OK,
 
 I followed the HOW-TO guide step by step, but
 Apache-Tomcat togheter are  NOT WORKING  , both
 cases mod_jk and mod_jk2.
 JK: 
 http://localhost:8080/examples  - running 
 http://localhost/examples - NOT RUNNING !!!
 the error i get in the apache log is:
 ...File not Found:
 C:/servers/apache2/htdocs/examples
 
 JK2:
 same as above.
 + really hard to setup all the parameters.
 
 why it is going in the htdocs folder?
 I know i could set 'htdocs' to point to
 'tomcat/webapps' , but even if i do it will not
 work, this time i have a 404 error from Tomcat.
 Also the auto-conf file contain the alias +
 directory definition inside, so should be not
 necessary, right? 
 
 Please help, it's driving me crazy.
 thank you.
 
 
 


 Watch a championship game with Elway or McGwire.
 Enter Now at http://champions.lycos.com 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: Request parameters not coming through correctly [Tomcat 4.1.12]

2002-10-09 Thread sonam singh

u can access the reuest in this way 
Map obj=new HashMap();

Enumeration objEnum=req.getParameterNames();
boolean st=false;

while(objEnum.hasMoreElements())
{

String name=(String)objEnum.nextElement();
String value=req.getParameter(name);

regards
Sonam Singh



--- Remy Maucherat [EMAIL PROTECTED] wrote:
 Russ Bonsall wrote:
  I am having a problem in Tomcat 4.1.12 that I did
 not have in Tomcat 4.0.4.
  I have a jsp that has two forms.  Both forms have
 the same name and use most
  of the same parameters.  The first form has a
 drop-down(searchField) and a
  textfield(searchString).  In Tomcat 4.0.4 these
 values came through fine.
  In Tomcat 4.1.12 the values are coming through in
 the request, but they are
  the second element in a String array.  In other
 words, to get the values out
  I have to do something like the following:
  
  String searchFields[] =
 request.getParameterValues(searchField);
  String searchFieldValue = searchFields[1]; 
  
  I should be able to just do:
  String searchFieldValue =
 request.getParameter(searchField);
  
  
  Why would I be getting an array with two values? 
 I was able to get the form
  to work if it was the only thing in the jsp, so I
 believe there is something
  external to the form being picked up as an
 additional parameter, but I can't
  figure it out.  Any ideas?
 
 Yes, the spec was undefined about that, and there
 was no test in the 
 reference test suite either. It got standardized
 on Tomcat 4.1, in the 
 end (as I understand it).
 
 Remy
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: RE: RE: JK2 Installation

2002-10-09 Thread Robert L Sowders

Once upon a time I got JDSK 1.3.1 and Apache 1.3.x and mod_jk to work just 
fine.  Maybe you should fall back to using these. 

But to answer you questions,

The linux binaries for mod_jk2 are at 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/linux/i386/
linux rpm here
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/rpms/

Have you checked the freebsd-java mailing list for some answers.  You 
might get something working faster by going to the source for freebsd-java
http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=UTF-8group=mailing.freebsd.java

You should be able to get them to work under linux emulation, no matter 
what package you use native or emulated.  You might have to check the 
handbook on branding elf, I don't remember right now.

You might also try not using mod_jk and instead use mod_rewrite to 
redirect all queries for the webapps to your tomcat installation on port 
8080.  This was a common work around for those who didn't really want to 
handle the mod_jk setup if they just have one or two apps.

As I said, I laid off the whole concept of integrating a servlet container 
on my freebsd boxes.  I'm hoping that with the advent of FreeBSD 5 this 
fall the whole porting attempt at a native installation will be further 
along.  Back when I got it all installed it turned out to be too buggy for 
a production operation at that time.  So I went with Solaris.  Now I'm 
doing it on (horror of horrors) windows.  If they ever do get the bugs 
worked out then I'll be the first to move to that platform.

rls





Malachi de AElfweald [EMAIL PROTECTED]
10/07/2002 08:41 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: RE: RE: JK2 Installation

I am using 4.6-STABLE I found something online, and did 'man pthread',
and it said I just have to do 'gcc -pthread' to enable pthread support
So, I am confused about it not being threaded???  How would I verify if it
is?

You're right about the JDK thing. I noticed there was a port collection 
for
the 1.4 docs, but, no binary.  Tomcat/Apache seem to both work fine in
Standalone mode Apache was installed from the Ports Collection, and 
Tomcat
from Source. I honestly didn't even consider getting the linux version...

The only jk2 binary listed right now is for win32
( http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/ ),
thus the reason I was trying the src.

Due to your comment, I did download the previous linux version
(2.0.42 from the 2.0.0 directory)... When trying it, I got the error 
message
that Shared object libc.so.6 not found... Guess it doesn't like a linux 
mod on a bsd build.

I might have to uninstall everything and reinstall the linux versions, but 
that
really isn't the correct answer, I don't think -- since I would never be 
able to use
the Port Collections to upgrade the server after that...

Have you successfully built the new jk2 on BSD? Do you have any clue how?

Mal


10/7/2002 2:02:42 PM, Robert L Sowders [EMAIL PROTECTED] wrote:

Unless you're using the -current version of FreeBSD, it's not threaded. 
Apache2 should really only be used on Operating systems that are threaded 

or you don't realize any gain from it other than some new mods.

You're running the linux version of the JDK because there is no native 
port for 1.4 for FreeBSD, yet.  Why not use the linux binary version of 
Tomcat together with the linux version of apache and the linux binary 
version of mod_jk2?The linux emulation layer runs out of the kernel 
so 
it should not be too much overhead.

I wish FreeBSD did have a native port for JDK 1.4.

rls




Malachi de AElfweald [EMAIL PROTECTED]
10/07/2002 01:30 PM
Please respond to Tomcat Users List

 
To: tomcat-list [EMAIL PROTECTED]
cc: 
Subject:Re: RE: RE: JK2 Installation

I'm sorry if that seemed a bit harsh -- it was not meant to be.  I had 
just read
a LOT of emails from you, and that was how it came across.

Originally, the problem I was having with FreeBSD was that if I tried to 
LoadModule
the mod_jk2.so, it said that pthread_mutex_unlock was unknown.  I did a 
lot of
investigation, and came to the conclusion that '-pthread' had to be added 

to the
CC flags.  In doing so, I have, as of yet, not been able to build 
mod_jk2.so anymore.
Not sure why. Can't figure it out.

Regarding the example you've shown.  I have seen that one repeatedly, and 

it only
applies to sockets. It does not apply to using the inprocess JNI, which I 

am trying
to use because Tomcat is REALLY slow, even locally on the LAN. That is 
supposed to
speed it up. but, there is no example of configuring for it...

I might have to subscribe to the dev list.  I haven't, because I don't 
have the time
to spend on it...  I had previously been actively on the Ant development 
list, and it
was very time consuming.  I don't 

Re: I need to run a servlet periodically

2002-10-09 Thread Raj Saini

To need the servlet run periodically you need a client calling the 
servlet periodically. Make your client to run periodically and it will 
cause the servlet to run.

We can suggest you a solution if you let us know what exactly you want 
your servlet to do.

Raj Saini
Filip Rachunek wrote:
 Hello,
 is it possible to have a servlet in Tomcat container
 which is invoked automatically each gived time period?
 [e.g. each 10 minutes]  And I would also need this
 special servlet to access other resources of my web
 application [connection pool, ...].
 
 Thanks.
 Filip Rachunek
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 




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




Re: Error using ajp13 protocol

2002-10-09 Thread Raj Saini

Hi Marc,

Telnet to the port 8009 shows that your JK connecter is listening on 
port 8009. You won't get any output.

Now there can be the conflict of host now. What is the defaulthost 
attribute of your Engine tag and name attribute of the Host tag in your 
server.xml? Are they both set to localhost?

Can you post your complete server.xml file?

BTW, are you running apache and tomcat on the same host?

Raj

Marc wrote:
 Hi Raj (and thank you for your help yesterday)...
 I tried to connect using telenet to localhost 8009 and... there wasn't
 connection
 refused, but the connection wasn't accepted (showed the Escape character
 ... ),
 finally I killed the telnet process because no response was given.
 I think that the ajp13 connector (tomcat) is not running in the rigth
 way,
 because, seems that apache finds the worker (the worker name is ok):
 
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (187)]:
   wc_create_worker, done
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (238)]:
   build_worker_map, removing old local_pt1 worker
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (250)]:
   build_worker_map, done
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (111)]: wc_open,
   done 1
 
 My workers.properties is:
 ps=/
 
 worker.list=local_pt1
 
 worker.local_pt1.port=8009
 worker.local_pt1.host=localhost
 worker.local_pt1.type=ajp13
 
 worker.local_pt1.lbfactor=1
 
 My server.xml:
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 
 And, in catalina_log, seems that the connector starts all threads:
 
 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all
 host IP
 addresses
 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread
 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread
 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread
 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread
 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread
 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread
 
 
 Any ideas?
 
 Regards!
 
 Marc
 
 Raj Saini wrote:
 
 
Hi Marc,

Though I am not expert in the JK Connectors, But it is very clear that
mod_jk part at apache is not able to connect to the tomcat process.

There may be three reason for this:-

1. Your JK connector on tomcat is not listening on port 8009.
2. The host name of the worker in worker.properties and tomcat does
 
 not
 
match.
3. Tomct is not running at all.

Pleas double check your JK connector configuration in server.xml.
 
 Check
 
the default host name in tomcat and worker.properties for the
 
 local_pt1
 
match.

Try telneting to the host and port you have configured in
 
 worker.properties.
 
Raj

Marc Vila Pérez wrote:

Hi!
I'm trying to connect apache with tomcat, using jk (ajp13), in my
mod_jk.log (debug log level), I can read this:

[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (299)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule

 /.jsp=local_pt1
 
was added
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (222)]: Into

 build_worker_map,
 
creating 1 workers
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (228)]: build_worker_map,
creating worker local_pt1
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (148)]: Into

 wc_create_worker
 
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (162)]: wc_create_worker,

 about
 
to create instance local_pt1 of ajp13
[Tue Oct 08 02:49:20 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (171)]: wc_create_worker,

 about
 
to validate and init local_pt1
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1206)]: Into
jk_worker_t::validate
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1226)]: In
jk_worker_t::validate for worker local_pt1 contact is localhost:8009
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1254)]: Into
jk_worker_t::init
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1274)]: In
jk_worker_t::init, setting socket timeout to 0
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (187)]: wc_create_worker,

 done
 
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (238)]: build_worker_map,
removing old local_pt1 worker
[Tue Oct 08 02:49:20 2002]  

Re: Error using ajp13 protocol

2002-10-09 Thread sonam singh

whih verison of mod_jk u'r using specify . when u try
to run the apache is it showing  any error . try to
connect the tomcat directly nto through apache +
tomcat . 

regards
Sonam Singh

--- Raj Saini [EMAIL PROTECTED] wrote:
 Hi Marc,
 
 Telnet to the port 8009 shows that your JK connecter
 is listening on 
 port 8009. You won't get any output.
 
 Now there can be the conflict of host now. What is
 the defaulthost 
 attribute of your Engine tag and name attribute of
 the Host tag in your 
 server.xml? Are they both set to localhost?
 
 Can you post your complete server.xml file?
 
 BTW, are you running apache and tomcat on the same
 host?
 
 Raj
 
 Marc wrote:
  Hi Raj (and thank you for your help yesterday)...
  I tried to connect using telenet to localhost 8009
 and... there wasn't
  connection
  refused, but the connection wasn't accepted
 (showed the Escape character
  ... ),
  finally I killed the telnet process because no
 response was given.
  I think that the ajp13 connector (tomcat) is not
 running in the rigth
  way,
  because, seems that apache finds the worker (the
 worker name is ok):
  
 [Tue Oct 08 02:49:21 2002] 
 [jk_worker.c (187)]:
wc_create_worker, done
 [Tue Oct 08 02:49:21 2002] 
 [jk_worker.c (238)]:
build_worker_map, removing old local_pt1
 worker
 [Tue Oct 08 02:49:21 2002] 
 [jk_worker.c (250)]:
build_worker_map, done
 [Tue Oct 08 02:49:21 2002] 
 [jk_worker.c (111)]: wc_open,
done 1
  
  My workers.properties is:
  ps=/
  
  worker.list=local_pt1
  
  worker.local_pt1.port=8009
  worker.local_pt1.host=localhost
  worker.local_pt1.type=ajp13
  
  worker.local_pt1.lbfactor=1
  
  My server.xml:
  !-- Define an AJP 1.3 Connector on port 8009 --
  Connector
 className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5
 maxProcessors=75
 acceptCount=10 debug=0/
  
  And, in catalina_log, seems that the connector
 starts all threads:
  
  2002-10-08 02:35:06 Ajp13Connector[8009] Opening
 server socket on all
  host IP
  addresses
  2002-10-08 02:35:06 Ajp13Connector[8009] Starting
 background thread
  2002-10-08 02:35:06 Ajp13Processor[8009][0]
 Starting background thread
  2002-10-08 02:35:06 Ajp13Processor[8009][1]
 Starting background thread
  2002-10-08 02:35:06 Ajp13Processor[8009][2]
 Starting background thread
  2002-10-08 02:35:06 Ajp13Processor[8009][3]
 Starting background thread
  2002-10-08 02:35:06 Ajp13Processor[8009][4]
 Starting background thread
  
  
  Any ideas?
  
  Regards!
  
  Marc
  
  Raj Saini wrote:
  
  
 Hi Marc,
 
 Though I am not expert in the JK Connectors, But
 it is very clear that
 mod_jk part at apache is not able to connect to
 the tomcat process.
 
 There may be three reason for this:-
 
 1. Your JK connector on tomcat is not listening on
 port 8009.
 2. The host name of the worker in
 worker.properties and tomcat does
  
  not
  
 match.
 3. Tomct is not running at all.
 
 Pleas double check your JK connector configuration
 in server.xml.
  
  Check
  
 the default host name in tomcat and
 worker.properties for the
  
  local_pt1
  
 match.
 
 Try telneting to the host and port you have
 configured in
  
  worker.properties.
  
 Raj
 
 Marc Vila Pérez wrote:
 
 Hi!
 I'm trying to connect apache with tomcat, using
 jk (ajp13), in my
 mod_jk.log (debug log level), I can read this:
 
 [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c
 (172)]: Into
 jk_uri_worker_map_t::uri_worker_map_alloc
 [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c
 (375)]: Into
 jk_uri_worker_map_t::uri_worker_map_open
 [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c
 (396)]:
 jk_uri_worker_map_t::uri_worker_map_open, rule
 map size is 1
 [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c
 (299)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, suffix
 rule
 
  /.jsp=local_pt1
  
 was added
 [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c
 (408)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, there
 are 1 rules
 [Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c
 (422)]:
 jk_uri_worker_map_t::uri_worker_map_open, done
 [Tue Oct 08 02:49:20 2002]  [jk_worker.c (88)]:
 Into wc_open
 [Tue Oct 08 02:49:20 2002]  [jk_worker.c (222)]:
 Into
 
  build_worker_map,
  
 creating 1 workers
 [Tue Oct 08 02:49:20 2002]  [jk_worker.c (228)]:
 build_worker_map,
 creating worker local_pt1
 [Tue Oct 08 02:49:20 2002]  [jk_worker.c (148)]:
 Into
 
  wc_create_worker
  
 [Tue Oct 08 02:49:20 2002]  [jk_worker.c (162)]:
 wc_create_worker,
 
  about
  
 to create instance local_pt1 of ajp13
 [Tue Oct 08 02:49:20 2002]  [jk_ajp13_worker.c
 (108)]: Into
 ajp13_worker_factory
 [Tue Oct 08 02:49:20 2002]  [jk_worker.c (171)]:
 wc_create_worker,
 
  about
  
 to validate and init local_pt1
 [Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c
 (1206)]: Into
 
=== message truncated ===


__
Do you Yahoo!?
Faith Hill - 

Re: DBMS access denied with Jakarta NT Service

2002-10-09 Thread Cinzia S

I've solved the problem. It was a setting in the Jakarta NT service, the
LogOnAs which limited access to the LocalSystem only.

Thanks

- Original Message -
From: Sexton, George [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 1:42 PM
Subject: RE: DBMS access denied with Jakarta NT Service


 Don't you think the name and version number of the DBMS would be of the
 least bit help in solving your issue?

 -Original Message-
 From: Cinzia S [mailto:[EMAIL PROTECTED]]
 Sent: 08 October, 2002 2:10 AM
 To: [EMAIL PROTECTED]
 Subject: DBMS access denied with Jakarta NT Service


 Hi all,

 I'm having database access denied when running Jakarta as an NT Service,
 while no db access problems when running as a standalone program.

 This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp
requested
 by IIS through isapi_redirect.dll, Windows 2000 Server.

 Thanks for any suggestion



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


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



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




Re: java.lang.OutOfMemoryError

2002-10-09 Thread Raj Saini

Hi,

I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with 
apache using warp connector. I used to have the same problem you have 
now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load 
balancing with two instances of tomcat on the same server.

Memory usages which used to shoot upto 200 MB in a single day is now 
restricted to 3-4 MBs a day.

I cant not say surely my problem was due to warp or tomcat 4.0.3. Your 
can try upgrading to tomcat 4.1.12.

Raj

  earlier is now
 Hi all,
 
 I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris
 8 machines using mod_jk. I have two instances of tomcat running, each
 serving different jsp/servlet/bean application. I see lot of OutOfMemory
 errors in tomcat logs after few hours, some times tomcat totally
 crashes, if I do not restart. I am pretty much monitor java process
 using prstat and if the memory reaches maximum value, I am restarting
 tomcat.
 
 here is my jdk version...
 
 java version 1.3.1
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
 Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
 
 I have increased the heap size from 128M to 256M, it didn't help much
 other than running for few more hours.
 
 and currently I have set up 256M min and 256M max values for heap size.
 
 I am wondering, is there any known issues with running tomcat4.0.4 under
 jdk1.3.1(build 1.3.1-b24, mixed mode). ?
 
 Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ?
 
 thanks in advance
 
 Raj
 



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




Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-09 Thread Robert L Sowders

If you still want an easy install and configuration for windows, try this 
one.
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.zip

In short here are 7 easy steps to get it working.  The jk2.prop and 
workers2.prop files are attached.  Remove .txt from each and use as is.

1.  Take all the defaults during installation, except for the install 
paths.  Install apache to c:\ this will install it to c:\Apache2, and 
tomcat to c:\Tomcat, Java to c:\Java.

2.  Stop Apache and place mod_jk2.dll in the APACHE_HOME/modules 
directory.

3.  Edit httpd.conf, add LoadModule jk2_module modules/mod_jk2.dll to the end of the 
LoadModules section.

4.  Add system environment variables and modify system PATH. 
CATALINA_HOME=c:\Tomcat 
JAVA_HOME=c:\Java 
TOMCAT_HOME=c:\Tomcat 
Add to system PATH c:\Java;c:\Java\bin

5.  Add a jk2.properties file to TOMCAT_HOME\conf and edit paths. 

6.  Add a workers2.properties file to APACHE2_HOME\conf and edit paths.

7.  Create three empty files in the APACHE2_HOME\conf directory
stdout.log
stderr.log
jk2.shm

8.  Reboot system.

9.  Give it a whirl http://localhost/examples

works for me

rls



## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=c:/Apache2/logs/jk2.shm

# In order to enable jni use any channelJni directive
channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess


[logger]
level=DEBUG

[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

#[lb:lb_1]
#info=A second load balancer.
#debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0

#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\Program Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read from registry)
OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
#alias=myVirtualHost:8003

#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
#context=/ex
#group=lb_1

[uri:/examples]
info=Example webapp in the default context. 
context=/examples
debug=0

#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0

[uri:/examples/servlets/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10



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


Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-09 Thread Robert L Sowders

Point of fact the mod_jk2.dll binaries compiled against Apache 2.0.42 at 
the jakarta builds site also work with 2.0.43.  If you're just want 
something working right now you might try mod_jk2 instead.




Jacob Kjome [EMAIL PROTECTED]
10/07/2002 08:50 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not 
 clear


The problem is you are using the 2.0.42 mod_jk dll with Apache 2.0.43. You 

need a mod_jk that was compiled specifically for version 2.0.43 of Apache.

This site is usually up-to-date with the binaries, but only have 2.0.42 
binaries right now:
http://www.acg-gmbh.de/mod_jk/

Check back for updated ones.

Jake

At 08:19 PM 10/7/2002 -0700, you wrote:
I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
2000 Advanced server

I have succesfuly installed
Apache 2.0.43
j2sdk-1_4_1-windows
Tomcat 4.1

I'm having trouble connecting Tomcat and Apache.

I've read all the documents and everytime I think I know were to go to 
edit
a file or look for a auto created file its not there.

I would like to use the Apache auto-configure or any other method that is
easy so I can begin the learning process.

What I've try so far:
*Installed applications
-Apache 2.0.43
-j2sdk-1_4_1-windows
-Tomcat 4.1

*Edited httpd.conf
Just addedInclude C:\Program Files\Apache Group\Tomcat
4.1/conf/jk/mod_jk.conf-auto

*Copied mod_jk-2.0.42.dll
Into  C:\Program Files\Apache Group\Apache2\modules

*Edit server.xml looked for AutoWebApp in C:\Program Files\Apache
Group\Tomcat 4.1\conf\server.xml
I could not find any line with AutoWebApp in it.
So I just added ApacheConfig /  just above the final /server

Here is an exerpt from the manual
To configure Tomcat to generate the Apache auto-configuration add the
following block to your TOMCAT_HOME/conf/server.xml file after 
AutoWebApp
... /.
ApacheConfig /

This is were I get lost. Also I'm not sure I'm copying the dll into the
right directory. All the other files in the module directory are of the 
.so
extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
specif were to put the dll. or at least the path is not refference the 
same
as my instalation.

Thanks in advance for any and all support

You can reach me at [EMAIL PROTECTED] or the board.






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




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




Re: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win 2k

2002-10-09 Thread Robert L Sowders

Try this one,

If you still want an easy install and configuration for windows, try this 
one.
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.zip

In short here are 7 easy steps to get it working.  The jk2.prop and 
workers2.prop files are attached.  Remove .txt from each and use as is. 
This also assumes that you have the latest of each, Java, Tomcat4.1.x, 
Apache, mod_jk2.

1.  Take all the defaults during installation, except for the install 
paths.  Install apache to c:\ this will install it to c:\Apache2, and 
tomcat to c:\Tomcat, Java to c:\Java.

2.  Stop Apache and place mod_jk2.dll in the APACHE_HOME/modules 
directory.

3.  Edit httpd.conf, add LoadModule jk2_module modules/mod_jk2.dll to the end of the 
LoadModules section.

4.  Add system environment variables and modify system PATH. 
CATALINA_HOME=c:\Tomcat 
JAVA_HOME=c:\Java 
TOMCAT_HOME=c:\Tomcat 
Add to system PATH c:\Java;c:\Java\bin

5.  Add a jk2.properties file to TOMCAT_HOME\conf and edit paths. 

6.  Add a workers2.properties file to APACHE2_HOME\conf and edit paths.

7.  Create three empty files in the APACHE2_HOME\conf directory
stdout.log
stderr.log
jk2.shm

8.  Reboot system.

9.  Give it a whirl http://localhost/examples

works for me

rls






none none [EMAIL PROTECTED]
10/08/2002 12:27 PM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Help :  Apache 2.0.43 , Tomcat 4.1.12 , jk  and/or  jk2 , win 
2k

Hi all,
I am trying to make working 
 Apache 2.0.42 or 2.0.43 and
 Tomcat 4.1.10 or 4.1.12 with
 mod_jk or mod_jk2 on
 Windows 2K
since last friday with no results !!!
I don't know if is me, but i found really hard setup that enviroment 
lately, before was easy (until Apache 2.0.3x and Tomcat 4.0.4).

Apache installation OK,
Tomcat installation OK,
Apache running on port 80 OK,
Tomcat running on port 8080 OK,

I followed the HOW-TO guide step by step, but
Apache-Tomcat togheter are  NOT WORKING  , both cases mod_jk and mod_jk2.
JK: 
http://localhost:8080/examples  - running 
http://localhost/examples - NOT RUNNING !!!
the error i get in the apache log is:
...File not Found: C:/servers/apache2/htdocs/examples

JK2:
same as above.
+ really hard to setup all the parameters.

why it is going in the htdocs folder?
I know i could set 'htdocs' to point to 'tomcat/webapps' , but even if i 
do it will not work, this time i have a 404 error from Tomcat.
Also the auto-conf file contain the alias + directory definition inside, 
so should be not necessary, right? 

Please help, it's driving me crazy.
thank you.




Watch a championship game with Elway or McGwire.
Enter Now at http://champions.lycos.com 

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





## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=c:/Apache2/logs/jk2.shm

# In order to enable jni use any channelJni directive
channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess


[logger]
level=DEBUG

[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

#[lb:lb_1]
#info=A second load balancer.
#debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0

#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the 

Re: AW: jk2 uri mapping of SSL vhost

2002-10-09 Thread Robert L Sowders

I've been using it for sometime now.  It doesn't feel any slower that no 
using it.  No testing has been done.

rls




Malachi de AElfweald [EMAIL PROTECTED]
10/08/2002 01:17 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: AW: jk2 uri mapping of SSL vhost

is jk2 still slow with inprocess-JNI, cuz that is why I want to use it.

Malachi


10/8/2002 11:50:35 AM, Michael Riess [EMAIL PROTECTED] wrote:

Thanks for the advice, but that doesn't work. I guess it's a bug, not a
feature ;-). For now I will use mod_jk until jk2 is stable. jk2 seemed a 
bit
slow anyway ... but it will definitely be faster than mod_jk as soon as 
the
unix sockets and 1.4 NIO are working.

Mike

-Ursprungliche Nachricht-
Von: Mladen Turk [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Oktober 2002 20:38
An: 'Tomcat Users List'; [EMAIL PROTECTED]
Betreff: RE: jk2 uri mapping of SSL vhost




 -Original Message-
 From: Michael Riess [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 8:34 PM
 To: Tomcat Users List
 Subject: AW: jk2 uri mapping of SSL vhost


 Just for clarity: I have an webapp that should work with or
 without SSL, so I need a way to map URIs to that webapp
 without regard of the virtual host it comes from.
 Alternatively, I could use two mappings for the two vhosts
 (the default and the SSL host), but anyway: I would
 appreciate for any suggestion for the right wk2.properties
 definitions.


Then just use the default mapping

[uri:/xyz/*]

Without any host definitions.


 Here's my guess #1 (doesn't work)

 [uri:192.168.42.42:*/xyz/*]

 and guess #2 (doesn't work either)

 [uri:192.168.42.42:80/xyz/*]
 [uri:192.168.42.42:443/xyz/*]

 Tried using * instead of IP (you guessed right ... doesn't work).


 Mike

 -Ursprungliche Nachricht-
 Von: Mladen Turk [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 8. Oktober 2002 20:11
 An: 'Tomcat Users List'; [EMAIL PROTECTED]
 Betreff: RE: jk2 uri mapping of SSL vhost




  -Original Message-
  From: Michael Riess [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 08, 2002 12:52 PM
  To: [EMAIL PROTECTED]
  Subject: jk2 uri mapping of SSL vhost
 
 
  If anyone knows how to map requests from a virtual host
  (*:443) to a context ... I would be very thankful for any hint.
 
  I use mod_jk2 2.0.0 with Apache 2.0.43, mapping via [uri:/xyz/*]
  works, but mapping via [uri:*:443] doesn't do anything ...
 
  question: shouldn't [uri:/xyz/*] map uris from any virtual
 host, not
  just the default one?

 If you declared host with
 [uri:*:443]
 Meaning any (virtual)hostname having port 443 then you have
 to specify the mapping for such host.


 Use the
 [uri:*:443/xyz/*]

 Since you have declared host:port combination all the uri
 mappings needs to be prefixed by that host:port. This
 behavior is intentional cause you may wish not to map any
 context on that host:port combination.


 MT.



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





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






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





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







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





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




AW: AW: jk2 uri mapping of SSL vhost

2002-10-09 Thread Michael Riess

I can just say that jk2 seemed to be less responsive than jk, but that was
mainly because I couldn't use the UNIX socket communication (didn't work),
and because it's unreleased software without optimization.

IMO jk2 should be used as soon as it is final and supports JDK 1.4 NIO with
unix sockets, or if you really need the inprocess stuff (kinda magic to me).

Mike

P.S.: My apologies to the jk2/apache/tomcat developers I may have offended
by my original post, keep up the good work! However you should continue
improving the documentation until it gives a  definite guidance about which
connectors are worth looking into for production usage. As long as people
like me run into these problems, the documentation needs to be improved (I'm
a quite experienced Java developer and used to searching the net for
software documentation, but this was the first time I felt it necessary to
actively ask a mailing list for advice. As for my own software I accept
users' claims about bad documentation, because the fact they're complaining
proves they're right).

 -Ursprungliche Nachricht-
 Von: Robert L Sowders [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Oktober 2002 11:16
 An: Tomcat Users List
 Betreff: Re: AW: jk2 uri mapping of SSL vhost


 I've been using it for sometime now.  It doesn't feel any slower that no
 using it.  No testing has been done.

 rls




 Malachi de AElfweald [EMAIL PROTECTED]
 10/08/2002 01:17 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: AW: jk2 uri mapping of SSL vhost

 is jk2 still slow with inprocess-JNI, cuz that is why I want to use it.

 Malachi


 10/8/2002 11:50:35 AM, Michael Riess [EMAIL PROTECTED] wrote:

 Thanks for the advice, but that doesn't work. I guess it's a bug, not a
 feature ;-). For now I will use mod_jk until jk2 is stable. jk2 seemed a
 bit
 slow anyway ... but it will definitely be faster than mod_jk as soon as
 the
 unix sockets and 1.4 NIO are working.
 
 Mike
 
 -Ursprungliche Nachricht-
 Von: Mladen Turk [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 8. Oktober 2002 20:38
 An: 'Tomcat Users List'; [EMAIL PROTECTED]
 Betreff: RE: jk2 uri mapping of SSL vhost
 
 
 
 
  -Original Message-
  From: Michael Riess [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 08, 2002 8:34 PM
  To: Tomcat Users List
  Subject: AW: jk2 uri mapping of SSL vhost
 
 
  Just for clarity: I have an webapp that should work with or
  without SSL, so I need a way to map URIs to that webapp
  without regard of the virtual host it comes from.
  Alternatively, I could use two mappings for the two vhosts
  (the default and the SSL host), but anyway: I would
  appreciate for any suggestion for the right wk2.properties
  definitions.
 
 
 Then just use the default mapping
 
 [uri:/xyz/*]
 
 Without any host definitions.
 
 
  Here's my guess #1 (doesn't work)
 
  [uri:192.168.42.42:*/xyz/*]
 
  and guess #2 (doesn't work either)
 
  [uri:192.168.42.42:80/xyz/*]
  [uri:192.168.42.42:443/xyz/*]
 
  Tried using * instead of IP (you guessed right ... doesn't work).
 
 
  Mike
 
  -Ursprungliche Nachricht-
  Von: Mladen Turk [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 8. Oktober 2002 20:11
  An: 'Tomcat Users List'; [EMAIL PROTECTED]
  Betreff: RE: jk2 uri mapping of SSL vhost
 
 
 
 
   -Original Message-
   From: Michael Riess [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, October 08, 2002 12:52 PM
   To: [EMAIL PROTECTED]
   Subject: jk2 uri mapping of SSL vhost
  
  
   If anyone knows how to map requests from a virtual host
   (*:443) to a context ... I would be very thankful for any hint.
  
   I use mod_jk2 2.0.0 with Apache 2.0.43, mapping via [uri:/xyz/*]
   works, but mapping via [uri:*:443] doesn't do anything ...
  
   question: shouldn't [uri:/xyz/*] map uris from any virtual
  host, not
   just the default one?
 
  If you declared host with
  [uri:*:443]
  Meaning any (virtual)hostname having port 443 then you have
  to specify the mapping for such host.
 
 
  Use the
  [uri:*:443/xyz/*]
 
  Since you have declared host:port combination all the uri
  mappings needs to be prefixed by that host:port. This
  behavior is intentional cause you may wish not to map any
  context on that host:port combination.
 
 
  MT.
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For
  additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
  --
  To
  unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For
  additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 




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





 --
 

Multiple certificates in virtual host setup

2002-10-09 Thread Donie Kelly

Hi all

I have a server hosting multiple sites and each wants to use ssl. Can I use
a single keystore for all sites? How do I get each site to extract the
correct certificate from the keystore?

Any help is appreciated.
Donie


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




global variables from server.xml

2002-10-09 Thread Donie Kelly

Hi all
I want to set a variable in server.xml which can be read by all webapps. How
do I do this?
Donie


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




RE: Jasper and java source package problem

2002-10-09 Thread John Trollinger

That is the correct behavior.  When you goto a JSP page through the
browser it will do the same thing.

The spec leaves the package naming to the implementation

 -Original Message-
 From: Khamsouk Souvanlasy [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, October 08, 2002 9:34 PM
 To: Tomcat Users List
 Subject: Jasper and java source package problem
 
 
  Hi, 
 
 Couldn't see this in the archives but I am sure someone has 
 come across this before.
 
 When trying to pre-compile my pages using Jasper (tomcat 
 4.1.12) with Ant 1.5.1 I have problems getting it to put in 
 the proper package names for the source files it generates.
 
 i.e. my jsp pages are in the following directories:
 /
 /mail
 /messageboard
 /admin
 
 And I want Jasper to create packages for the file in the 
 following manner: com.mycompany.jsp com.mycompany.jsp.mail 
 com.mycompany.jsp.messageboard com.mycompany.jsp.admin
 
 Is this possible? So far, Jasper creates the Java source 
 directory structures in the correct manner but the package 
 names in the source file is always com.mycompany.jsp
 
 I am using the following ant command (taken pretty much from the Jspc
 javadoc):
 jasper2 verbose=0 package=com.mycompany.jsp 
 uriroot=${web.dir} webXmlFragment=${build.dir}/webinc.xml 
 outputDir=${src.dir}/
 
 I also tried using ant's jspc command but it has the same 
 problem, actually a lot more broken since it can't even 
 output the web xml fragment.
 
 Thanks in advance,
 
 Kam
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: connector between tomcat apache

2002-10-09 Thread Raj Saini

You can use use the ajp13 with tomcat. (mod_jk at apache end). Warp 
connecter is not reliable and what I learnt is no more actively 
developed. There are loadbalancing and fault tolerance features in ajp 
which are not in warp (mod_webapp)

Raj
unplug wrote:
 Hi all,
 
   I want to confirm the following.
 I have read the document about the connector between tomcat  apache. 
 But I am confused what connector to use.  As document said, we can use
 mod_jk2 for apache2.0+tomcat4.  How about apache1.3+tomcat4?  The
 document doesn't mention about it.  Is mod_webapp the only way to be a
 connector between them?
 
 Thanks,
 unplug
 
 
 --
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: Error using ajp13 protocol

2002-10-09 Thread Marc

Hi,
here I attach my conf files: I've modified server.xml and workers.properties
(submitted by Raj), just creating a new context on the server.xml to support my
default application, at the root path. I can connect to this page, located in
/var/www/html using
- Tomcat, on port 8080
- Apache, on port 80 (before configuring the ajp13 worker)

I'm using the mod_jk, no eapi version, provided in the last jk1.2 release.

Seems that the connector is running, because in catalina_log.2002-10-08.txt:
2002-10-08 21:26:34 Ajp13Connector[8009] Opening server socket on all host IP
addresses
2002-10-08 21:26:34 Ajp13Connector[8009] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][0] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][1] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][2] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][3] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][4] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][5] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][6] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][7] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][8] Starting background thread
2002-10-08 21:26:34 Ajp13Processor[8009][9] Starting background thread

When I start apache (after tomcat starts), seems that all is ok:
[Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
[Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (299)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added
[Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
[Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (222)]: Into build_worker_map, creating
1 workers
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (228)]: build_worker_map, creating
worker local_pt1
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance local_pt1 of ajp13
[Tue Oct 08 21:29:24 2002]  [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init local_pt1
[Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1206)]: Into jk_worker_t::validate
[Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1226)]: In jk_worker_t::validate
for worker local_pt1 contact is localhost:8009
[Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1254)]: Into jk_worker_t::init
[Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1274)]: In jk_worker_t::init,
setting socket timeout to 0
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (238)]: build_worker_map, removing old
local_pt1 worker
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (250)]: build_worker_map, done
[Tue Oct 08 21:29:24 2002]  [jk_worker.c (111)]: wc_open, done 1

(I don't know why the previos actions are repeated, seems that mounts the worker
two times)

[Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
[Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (299)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added
[Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
[Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Oct 08 21:29:25 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Oct 08 21:29:25 2002]  [jk_worker.c (222)]: Into build_worker_map, creating
1 workers
[Tue Oct 08 21:29:25 2002]  [jk_worker.c (228)]: build_worker_map, creating
worker local_pt1
[Tue Oct 08 21:29:25 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Oct 08 21:29:25 2002]  [jk_worker.c (162)]: wc_create_worker, about to
create instance local_pt1 of ajp13
[Tue Oct 08 21:29:25 2002]  [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Tue Oct 08 21:29:25 2002]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init local_pt1
[Tue Oct 08 21:29:25 2002]  [jk_ajp_common.c (1206)]: Into jk_worker_t::validate
[Tue Oct 08 21:29:25 2002]  [jk_ajp_common.c (1226)]: In jk_worker_t::validate
for 

Re: Jasper and java source package problem

2002-10-09 Thread Khamsouk Souvanlasy

But surely if you have two files with the same name in different directories
they will conflict and cause a compilation error if they have the same
package name?

I.e.

/messageboard/search.jsp
/mail/search.jsp

Will create the .java files:

com/mycompany/jsp/messageboard/search.java with package com.mycompany.jsp
com/mycompany/jsp/mail/search.java with package com.mycompany.jsp

When you compile the compiler will throw an Exception.  Surely this is not
correct behaviour?  Or at the least this should not be allowed.  But it does
happen.

Regards,

kam

On 10/9/02 20:09, John Trollinger [EMAIL PROTECTED] wrote:

 That is the correct behavior.  When you goto a JSP page through the
 browser it will do the same thing.
 
 The spec leaves the package naming to the implementation
 
 -Original Message-
 From: Khamsouk Souvanlasy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 9:34 PM
 To: Tomcat Users List
 Subject: Jasper and java source package problem
 
 
  Hi, 
 
 Couldn't see this in the archives but I am sure someone has
 come across this before.
 
 When trying to pre-compile my pages using Jasper (tomcat
 4.1.12) with Ant 1.5.1 I have problems getting it to put in
 the proper package names for the source files it generates.
 
 i.e. my jsp pages are in the following directories:
 /
 /mail
 /messageboard
 /admin
 
 And I want Jasper to create packages for the file in the
 following manner: com.mycompany.jsp com.mycompany.jsp.mail
 com.mycompany.jsp.messageboard com.mycompany.jsp.admin
 
 Is this possible? So far, Jasper creates the Java source
 directory structures in the correct manner but the package
 names in the source file is always com.mycompany.jsp
 
 I am using the following ant command (taken pretty much from the Jspc
 javadoc):
 jasper2 verbose=0 package=com.mycompany.jsp
 uriroot=${web.dir} webXmlFragment=${build.dir}/webinc.xml
 outputDir=${src.dir}/
 
 I also tried using ant's jspc command but it has the same
 problem, actually a lot more broken since it can't even
 output the web xml fragment.
 
 Thanks in advance,
 
 Kam
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands,
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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




RE: Index.jsp page in apache and tomcat config....

2002-10-09 Thread Turner, John


OK, if you have things separated like that, then all of your static content
is on the apache server, and all of your dynamic content is on the tomcat
server.  Right?

In that scenario, /online has only dynamic content, since /online/index.jsp
needs to go to Tomcat.  My guess is you have static and dynamic content in
/online, which means you should probably add a JkMount mapping for
/online/*.jsp, not just /*.jsp.

If /online has only dynamic content, then add a JkMount for /online/* to
Tomcat and setup a welcome file of index.jsp in your web.xml, because in
that scenario (/online = Tomcat server) Apache has no way of finding the
file.

John

 -Original Message-
 From: Raj Mettai [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 4:44 PM
 To: [EMAIL PROTECTED]
 Subject: Index.jsp page in apache and tomcat config
 
 
 Hi all,
 
 I have apache(2.0.39) and tomcat(4.0.4) configured on 
 different solaris 8 machines using mod_jk such that apache 
 servers all html and images while tomcat servers jsp and servlets.
 
 Here is my jkMount from httpd.conf 
 JkMount /*.jsp tomcat1
 JkMount /servlet/* tomcat1
 
 I want to configure apache to default to index.jsp page when 
 I try to access the directory (ex :  
 http://www.apacheserver.com/online/  should go to 
 http://www.apacheserver.com/online/index.jsp). How can I 
 achieve this, the apache documentroot directory does not have 
 any index.jsp's,so how can you make apache to defualt to index.jsp.
 
 I have modified DirectoryIndex also to include index.jsp, 
 still apache gives 403(Access forbidden).
 
 I have lot of links in the site that are just linking to 
 directory without index.jsp, I have to modify them all otherwise.
 
 any thoughts 
 
 thanks
 
 -Raj
 

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




RE: Jasper and java source package problem

2002-10-09 Thread John Trollinger

Not if they are called via a JSP page call.. But if you try and deploy
the compiled classes as servlets then yes you will have a problem.

The 2 jsp pages work fine because they each have their own class loader.

 -Original Message-
 From: Khamsouk Souvanlasy [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 09, 2002 7:45 AM
 To: Tomcat Users List
 Subject: Re: Jasper and java source package problem
 
 
 But surely if you have two files with the same name in 
 different directories they will conflict and cause a 
 compilation error if they have the same package name?
 
 I.e.
 
 /messageboard/search.jsp
 /mail/search.jsp
 
 Will create the .java files:
 
 com/mycompany/jsp/messageboard/search.java with package 
 com.mycompany.jsp com/mycompany/jsp/mail/search.java with 
 package com.mycompany.jsp
 
 When you compile the compiler will throw an Exception.  
 Surely this is not correct behaviour?  Or at the least this 
 should not be allowed.  But it does happen.
 
 Regards,
 
 kam
 
 On 10/9/02 20:09, John Trollinger [EMAIL PROTECTED] wrote:
 
  That is the correct behavior.  When you goto a JSP page through the 
  browser it will do the same thing.
  
  The spec leaves the package naming to the implementation
  
  -Original Message-
  From: Khamsouk Souvanlasy [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 08, 2002 9:34 PM
  To: Tomcat Users List
  Subject: Jasper and java source package problem
  
  
   Hi,
  
  Couldn't see this in the archives but I am sure someone has come 
  across this before.
  
  When trying to pre-compile my pages using Jasper (tomcat
  4.1.12) with Ant 1.5.1 I have problems getting it to put in the 
  proper package names for the source files it generates.
  
  i.e. my jsp pages are in the following directories:
  /
  /mail
  /messageboard
  /admin
  
  And I want Jasper to create packages for the file in the following 
  manner: com.mycompany.jsp com.mycompany.jsp.mail 
  com.mycompany.jsp.messageboard com.mycompany.jsp.admin
  
  Is this possible? So far, Jasper creates the Java source directory 
  structures in the correct manner but the package names in 
 the source 
  file is always com.mycompany.jsp
  
  I am using the following ant command (taken pretty much 
 from the Jspc
  javadoc):
  jasper2 verbose=0 package=com.mycompany.jsp 
 uriroot=${web.dir} 
  webXmlFragment=${build.dir}/webinc.xml
  outputDir=${src.dir}/
  
  I also tried using ant's jspc command but it has the same problem, 
  actually a lot more broken since it can't even output the web xml 
  fragment.
  
  Thanks in advance,
  
  Kam
  
  
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands, 
 e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Multiple certificates in virtual host setup

2002-10-09 Thread Wolfgang Stein

Hi Donie,

AFAIK you may have only cert per Tomcat,
identified by alias 'tomcat'. More certs 
selected by differing aliases would not work
due restrictions of the ssl-protocol (as some guys
stated in this list).

Did you already try wildcard certs, e.g. '*.subdomain.tld' 
or even '*.tld' ?
They might be expensive, but maybe they fit your needs.

Good luck,
Wolfgang Stein

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 12:03 PM
 To: 'Tomcat Users List'
 Subject: Multiple certificates in virtual host setup
 
 
 Hi all
 
 I have a server hosting multiple sites and each wants to use 
 ssl. Can I use
 a single keystore for all sites? How do I get each site to extract the
 correct certificate from the keystore?
 
 Any help is appreciated.
 Donie
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]


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




RE: java -server

2002-10-09 Thread Shapira, Yoav

Hi,
For our apps, which are big, long-running, server-side apps, running
with 
-server consistently reduced stability.  We were getting internal JVM
crashes every now and then.  Dropping the -server argument made those go
away.  All other JVM args (we have a lot) stayed the same, and we
experimented with dropping and modifying them.  This is for JDK 1.3.1
and 1.4.0.  Haven't tried this with 1.4.1, yet.

I would vote against making -server the default mode.  Let people choose
their own JAVA_OPTS, just as we've been doing.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Frank Liu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 12:56 AM
To: Tomcat Users List
Subject: Re: java -server


any good docs on good/bad side of -server and -client option?
or maybe the only way is to try it?

frank

On Wed, 9 Oct 2002, David Kavanagh wrote:

 You can certainly use it if you like. Each app reacts differently to
it.
 Our app was faster where it counted. We did find that running xalan
with
 jdom was faster in client mode (can't say why, or what part was
affected
 most).

 David

 Frank Liu wrote:

 isn't tomcat a server? why we don't use the java -server option?
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
 



 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


Re: connector between tomcat apache

2002-10-09 Thread sonam singh

use mod_jk to load balncing it is more reliable 
regards
Sonam Singh


--- Raj Saini [EMAIL PROTECTED] wrotsue e:
 You can use use the ajp13 with tomcat. (mod_jk at
 apache end). Warp 
 connecter is not reliable and what I learnt is no
 more actively 
 developed. There are loadbalancing and fault
 tolerance features in ajp 
 which are not in warp (mod_webapp)
 
 Raj
 unplug wrote:
  Hi all,
  
I want to confirm the following.
  I have read the document about the connector
 between tomcat  apache. 
  But I am confused what connector to use.  As
 document said, we can use
  mod_jk2 for apache2.0+tomcat4.  How about
 apache1.3+tomcat4?  The
  document doesn't mention about it.  Is mod_webapp
 the only way to be a
  connector between them?
  
  Thanks,
  unplug
  
  
  --
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win 2k

2002-10-09 Thread Turner, John


Which HOWTO guide did you follow?  It's known to work, and the
user-submitted HOWTOs for Windows are pretty good.

You'll need to post more details to get more definite help.

John


 -Original Message-
 From: none none [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 3:28 PM
 To: [EMAIL PROTECTED]
 Subject: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 
 , win 2k 
 
 
 Hi all,
 I am trying to make working 
  Apache 2.0.42 or 2.0.43 and
  Tomcat 4.1.10 or 4.1.12 with
  mod_jk or mod_jk2 on
  Windows 2K
 since last friday with no results !!!
 I don't know if is me, but i found really hard setup that 
 enviroment lately, before was easy (until Apache 2.0.3x and 
 Tomcat 4.0.4).
 
 Apache installation OK,
 Tomcat installation OK,
 Apache running on port 80 OK,
 Tomcat running on port 8080 OK,
 
 I followed the HOW-TO guide step by step, but
 Apache-Tomcat togheter are  NOT WORKING  , both cases mod_jk 
 and mod_jk2.
 JK: 
 http://localhost:8080/examples  - running 
 http://localhost/examples - NOT RUNNING !!!
 the error i get in the apache log is:
 ...File not Found: C:/servers/apache2/htdocs/examples
 
 JK2:
 same as above.
 + really hard to setup all the parameters.
 
 why it is going in the htdocs folder?
 I know i could set 'htdocs' to point to 'tomcat/webapps' , 
 but even if i do it will not work, this time i have a 404 
 error from Tomcat.
 Also the auto-conf file contain the alias + directory 
 definition inside, so should be not necessary, right? 
 
 Please help, it's driving me crazy.
 thank you.
 
 
 
 
 Watch a championship game with Elway or McGwire.
 Enter Now at http://champions.lycos.com 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Error using ajp13 protocol

2002-10-09 Thread Raj Saini

Hi Marc,

I had a look you on your server.xml.

Do you have a ROOT directory in your server.xml? If yes, move it out of 
the webapps and they restart your Tomcat and test.

Alternativly, try giving a context name other then root to your context 
in server.xml.

In server.xml

Context path=/foo docBase=/var/www/html debug=9/

in httpd.conf

JkMount /foo local_pt1
JkMount /foo/*.jsp local_pt1

Let me know if it works.

Raj
Marc wrote:
 Hi,
 here I attach my conf files: I've modified server.xml and workers.properties
 (submitted by Raj), just creating a new context on the server.xml to support my
 default application, at the root path. I can connect to this page, located in
 /var/www/html using
 - Tomcat, on port 8080
 - Apache, on port 80 (before configuring the ajp13 worker)
 
 I'm using the mod_jk, no eapi version, provided in the last jk1.2 release.
 
 Seems that the connector is running, because in catalina_log.2002-10-08.txt:
 2002-10-08 21:26:34 Ajp13Connector[8009] Opening server socket on all host IP
 addresses
 2002-10-08 21:26:34 Ajp13Connector[8009] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][0] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][1] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][2] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][3] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][4] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][5] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][6] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][7] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][8] Starting background thread
 2002-10-08 21:26:34 Ajp13Processor[8009][9] Starting background thread
 
 When I start apache (after tomcat starts), seems that all is ok:
 [Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (172)]: Into
 jk_uri_worker_map_t::uri_worker_map_alloc
 [Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (375)]: Into
 jk_uri_worker_map_t::uri_worker_map_open
 [Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (396)]:
 jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
 [Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (299)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added
 [Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (408)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
 [Tue Oct 08 21:29:24 2002]  [jk_uri_worker_map.c (422)]:
 jk_uri_worker_map_t::uri_worker_map_open, done
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (88)]: Into wc_open
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (222)]: Into build_worker_map, creating
 1 workers
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (228)]: build_worker_map, creating
 worker local_pt1
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (148)]: Into wc_create_worker
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (162)]: wc_create_worker, about to
 create instance local_pt1 of ajp13
 [Tue Oct 08 21:29:24 2002]  [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (171)]: wc_create_worker, about to
 validate and init local_pt1
 [Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1206)]: Into jk_worker_t::validate
 [Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1226)]: In jk_worker_t::validate
 for worker local_pt1 contact is localhost:8009
 [Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1254)]: Into jk_worker_t::init
 [Tue Oct 08 21:29:24 2002]  [jk_ajp_common.c (1274)]: In jk_worker_t::init,
 setting socket timeout to 0
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (187)]: wc_create_worker, done
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (238)]: build_worker_map, removing old
 local_pt1 worker
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (250)]: build_worker_map, done
 [Tue Oct 08 21:29:24 2002]  [jk_worker.c (111)]: wc_open, done 1
 
 (I don't know why the previos actions are repeated, seems that mounts the worker
 two times)
 
 [Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (172)]: Into
 jk_uri_worker_map_t::uri_worker_map_alloc
 [Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (375)]: Into
 jk_uri_worker_map_t::uri_worker_map_open
 [Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (396)]:
 jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
 [Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (299)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added
 [Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (408)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
 [Tue Oct 08 21:29:25 2002]  [jk_uri_worker_map.c (422)]:
 jk_uri_worker_map_t::uri_worker_map_open, done
 [Tue Oct 08 21:29:25 2002]  [jk_worker.c (88)]: Into wc_open
 [Tue Oct 08 21:29:25 2002]  [jk_worker.c (222)]: Into build_worker_map, creating
 1 workers
 [Tue Oct 08 21:29:25 2002]  [jk_worker.c (228)]: build_worker_map, creating
 worker local_pt1
 [Tue Oct 08 

Re: java.lang.OutOfMemoryError

2002-10-09 Thread sonam singh

modify the catalina.sh because tomcat run with default
memory u have to increase it manually in the
catalina.sh as below

[ $1 = start ] ; then

  shift
  touch $CATALINA_BASE/logs/catalina.out
  if [ $1 = -security ] ; then
echo Using Security Manager
shift
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Djava.security.manager \
 
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
\
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  else
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  fi

change TO ...

[ $1 = start ] ; then

  shift
  touch $CATALINA_BASE/logs/catalina.out
  if [ $1 = -security ] ; then
echo Using Security Manager
shift
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Djava.security.manager \
 
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
\
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  else
$_RUNJAVA -Xmx400m...  $JAVA_OPTS
$CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  fi

then it will not give u Error in then run the tomcat
sh catalina.sh start 

regards
Sonam Singh



--- Raj Saini [EMAIL PROTECTED] wrote:
 Hi,
 
 I was using the tomcat 4.0.3 with JDK 1.4. Tomcat
 was integrated with 
 apache using warp connector. I used to have the same
 problem you have 
 now. I recently upgraded to Tomcat 4.1.12 and warp
 to mod_jk with load 
 balancing with two instances of tomcat on the same
 server.
 
 Memory usages which used to shoot upto 200 MB in a
 single day is now 
 restricted to 3-4 MBs a day.
 
 I cant not say surely my problem was due to warp or
 tomcat 4.0.3. Your 
 can try upgrading to tomcat 4.1.12.
 
 Raj
 
   earlier is now
  Hi all,
  
  I have apache(2.0.39) and tomcat(4.0.4) configured
 on different solaris
  8 machines using mod_jk. I have two instances of
 tomcat running, each
  serving different jsp/servlet/bean application. I
 see lot of OutOfMemory
  errors in tomcat logs after few hours, some times
 tomcat totally
  crashes, if I do not restart. I am pretty much
 monitor java process
  using prstat and if the memory reaches maximum
 value, I am restarting
  tomcat.
  
  here is my jdk version...
  
  java version 1.3.1
  Java(TM) 2 Runtime Environment, Standard Edition
 (build 1.3.1-b24)
  Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed
 mode)
  
  I have increased the heap size from 128M to 256M,
 it didn't help much
  other than running for few more hours.
  
  and currently I have set up 256M min and 256M max
 values for heap size.
  
  I am wondering, is there any known issues with
 running tomcat4.0.4 under
  jdk1.3.1(build 1.3.1-b24, mixed mode). ?
  
  Is there any preferred jdk version(less memory
 leaks) for tomcat 4.0.4 ?
  
  thanks in advance
  
  Raj
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: Cannot get mod_jk to work

2002-10-09 Thread jcosta


I think he just grabbed the binary version build for a non-SSL Apache
server. Is that correct? I experienced the same problem trying to integrate
the binary.


|-+
| |   sonam singh  |
| |   sonam_singh_s@ya|
| |   hoo.com |
| ||
| |   10/09/2002 03:24 |
| |   AM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   Tomcat Users List [EMAIL PROTECTED] 
  |
  |   cc:  
  |
  |   Subject:  Re: Cannot get mod_jk to work  
  |
  
--|




how u compile the mod_jk ,have u get the latest source
of mod_jk from cvs . look  at the compilation option
of libtool when mod_jk is compiling .also check the
home of apache/build/config_var_mk  file the option
EXTRA_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE it shoul
be EXTRA_CPPFLAGS = -D_REENTRANT
because mod_jk uses the apxs for  compilation

regards
Sonam Singh


--- Henri Gomez [EMAIL PROTECTED] wrote:
  I am unable to get mod_jk to work.

  The following line in httpd.conf:
  LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
  results in this error message:
  Cannot laod
 /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into
 server:
  /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so:
 undefined symbol:
  ap_ctx_get

  What is going wrong?

 Thanks to give more information on your os, gcc and
 apache settings please.

 The shared lib was built under Redhat 7.2, kernel
 2.4.9-34, with
 gcc 2.96 against glibc 2.2.4-30 and Redhat Apache
 1.3.22-6 and
 mod_ssl-2.8.5-6.

 Regards


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



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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








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


RE: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win 2k

2002-10-09 Thread Turner, John


Actually, you have more problems than that.  I looked at your httpd.conf and
workers.properties, and frankly it is hard for me to see how you got
anything working at all.

Your workers.properties only has an entry for localhost, not any of the
VirtualHosts you have setup in httpd.conf.

You server.xml has other hosts setup, but there is only an entry for one of
them in workers.properties.

Your httpd.conf is auto-generated (and hard to read).  My advice would be to
try it with just one host at a time, step-by-step, keeping it simple.  Get
it working for localhost, or one virtual host, then simply duplicate that
config for that working virtual host to the others, changing hostname and
paths as appropriate.

Basically, getting mod_jk to work is fairly easy...you just have to make the
right links between httpd.conf, workers.properties, and server.xml.

First, in server.xml, change the Host element so that the name parameter
equals the desired hostname, like this:

 Host name=www.host.com debug=0 appBase=webapps unpackWARs=true

Then, workers.properties:

== begin workers.properties ==

# Setup for apache system
#
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/j2sdk1.4.0_01
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
worker.ajp13.port=8009
worker.ajp13.host=www.host.com
worker.ajp13.type=ajp13

== end workers.properties ==

Then, the basic commands for httpd.conf:

== begin httpd.conf ==

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log

JkLogLevel emerg

VirtualHost www.host.com

ServerName www.host.com

 www.host.com:/examples 

# Static files
Alias /examples /usr/local/jakarta-tomcat-4.0.4/webapps/examples

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory

# Deny direct access to WEB-INF and META-INF
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13

/VirtualHost

== end httpd.conf ==

This is for the /examples URL of www.host.com, like this:
http://www.host.com/examples

I don't know how to make it any clearer than that.  This is a working
configuration.  Nothing else was changed, except to add the Listener
elements to server.xml so that the httpd.conf commands are auto-generated.
This is for Tomcat 4 and Apache 2.  Adding additional hosts is simply a
matter of duplicating the configuration for the first virtual host.  Adding
additional URI mappings for JkMount is left up to you.  I can't speak for
any sort of auto-generation helpers for Apache, which you seem to be
using...they may or may not munge up any manual configuration you do.

Hope this helps.

John

 -Original Message-
 From: Paul Gregoire [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 1:01 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or 
 jk2 , win
 2k 
 
 
 I have a similar problem, but the only thing i cant get 
 working is any url
 in which a servlet is being called..
 
 x.x.44.54 - - [08/Oct/2002:21:29:21 -0800] GET /servlet/test 
 HTTP/1.1
 404 -
 
 The tomcat access log always reports a 404 no matter which 
 port the servlet
 is called on 80 or 8080.
 
 I have tried both mod_jk as well as mod_jk2 and neither work. 
 I am running
 Apache 2.0.42 and Tomcat 4.1.12 on win2k/sp1 w/ jdk1.4.1 fcs.
 
 Here is my setup:
 
 APACHE2_HOME=C:\Program Files\Apache Group\Apache2
 CATALINA_HOME=e:\tomcat
 JAVA_HOME=c:\jdk1.4
 Path=C:\Program Files\Apache Group\Apache2\bin;C:\Program 
 Files\Apache
 Group\
 Apache2\modules;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
 TOMCAT_HOME=e:\tomcat
 
 C:\Program Files\Apache Group\Apache2\conf\httpd.conf
 C:\Program Files\Apache Group\Apache2\modules\mod_jk.dll
 C:\Program Files\Apache Group\Apache2\modules\mod_jk2.dll
 C:\Program Files\Apache Group\Apache2\modules\jkjni.dll
 C:\Program Files\Apache Group\Apache2\modules\jni_connect.dll
 E:\tomcat\conf\workers.properties
 E:\tomcat\conf\server.xml
 
 conf files are attached.. maybe someone on this list can help 
 us both. :)
 
 - Original Message -
 From: none none [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 08, 2002 12:27 PM
 Subject: Help : Apache 2.0.43 , Tomcat 4.1.12 , jk and/or jk2 , win 2k
 
 
  Hi all,
  

RE: connector between tomcat apache

2002-10-09 Thread Turner, John


Mod_jk (AJP13).  Don't use WARP/mod_webapp.

Mod_jk2 is beta, workable, but use at your own risk.  Mod_jk is stable and
well-supported at this time.

John

 -Original Message-
 From: unplug [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 10:09 PM
 To: tomcat-user
 Subject: connector between tomcat  apache
 
 
 Hi all,
 
   I want to confirm the following.
 I have read the document about the connector between tomcat  apache. 
 But I am confused what connector to use.  As document said, we can use
 mod_jk2 for apache2.0+tomcat4.  How about apache1.3+tomcat4?  The
 document doesn't mention about it.  Is mod_webapp the only way to be a
 connector between them?
 
 Thanks,
 unplug
 
 
 --
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




SV: I need to run a servlet periodically

2002-10-09 Thread Cato, Christopher

What you really need to do is to design your periodical servlet to implement
Runnable. Add another servlet that starts the periodical servlet and load
that servlet during startup. The periodical then does its thing and sleeps
for x amount of time. Then wakes up and so on...

/Christopher

-Ursprungligt meddelande-
Fran: Raj Saini
Till: Tomcat Users List
Skickat: 2002-10-07 23:24
Amne: Re: I need to run a servlet periodically

To need the servlet run periodically you need a client calling the 
servlet periodically. Make your client to run periodically and it will 
cause the servlet to run.

We can suggest you a solution if you let us know what exactly you want 
your servlet to do.

Raj Saini
Filip Rachunek wrote:
 Hello,
 is it possible to have a servlet in Tomcat container
 which is invoked automatically each gived time period?
 [e.g. each 10 minutes]  And I would also need this
 special servlet to access other resources of my web
 application [connection pool, ...].
 
 Thanks.
 Filip Rachunek
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 




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



Re: Cannot get mod_jk to work

2002-10-09 Thread Raj Saini

Pls build the mod_jk from source. These some thing wrong with the 
binary. I faced the same problem one week ago.

Raj
Richard Pfeil wrote:
 I am unable to get mod_jk to work.
 
 The following line in httpd.conf:
 LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
 results in this error message:
 Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into server:
 /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
 ap_ctx_get
 
 What is going wrong?
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




RE: Cannot get mod_jk to work

2002-10-09 Thread Turner, John


Are you sure there is something wrong with the binary?  If so, the binary
maintainers (like Henri Gomez) would probably appreciate and email message
from you with details.  There's no point in having binaries if they aren't
usable.  As far as I know, this exact problem (same exact error message) was
covered by Henri last week.

John


 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 8:59 AM
 To: Tomcat Users List
 Subject: Re: Cannot get mod_jk to work
 
 
 Pls build the mod_jk from source. These some thing wrong with the 
 binary. I faced the same problem one week ago.
 
 Raj
 Richard Pfeil wrote:
  I am unable to get mod_jk to work.
  
  The following line in httpd.conf:
  LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
  results in this error message:
  Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so 
 into server:
  /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
  ap_ctx_get
  
  What is going wrong?
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




java -server vs classic and servlet src from jsp compiler errors

2002-10-09 Thread Hanasaki JiJi

Has anyone had errors show up in the Servlet source generated from a JSP 
  under the following? or any combo?
- J2SE 1.4.1
- any OS
- Tomcat 4.04 or Tomcat 4.1.x

Thank you.

-- 

=   http://www.sun.com/service/sunps/jdc/javacenter.pdf=
=www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone   =
=  =
= Noone wants advice - only corroboration - John Steinbeck   =
====
= Pawns can become Royalty in Life or in Chess   =
= Life, the only game where Royalty can be a pawn,=
=and not even know it =
= Chess, the only game where pawns really are pawns  =



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




Re: Cannot get mod_jk to work

2002-10-09 Thread Raj Saini

Yes, there was a problem with binary one week ago. I am not sure if 
binaries are updated after that. The error message was the same as in 
this post.

Raj

Turner, John wrote:
 Are you sure there is something wrong with the binary?  If so, the binary
 maintainers (like Henri Gomez) would probably appreciate and email message
 from you with details.  There's no point in having binaries if they aren't
 usable.  As far as I know, this exact problem (same exact error message) was
 covered by Henri last week.
 
 John
 
 
 
-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 8:59 AM
To: Tomcat Users List
Subject: Re: Cannot get mod_jk to work


Pls build the mod_jk from source. These some thing wrong with the 
binary. I faced the same problem one week ago.

Raj
Richard Pfeil wrote:

I am unable to get mod_jk to work.

The following line in httpd.conf:
LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
results in this error message:
Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so 

into server:

/usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
ap_ctx_get

What is going wrong?


--
To unsubscribe, e-mail:   

mailto:[EMAIL PROTECTED]

For additional commands, e-mail: 

mailto:[EMAIL PROTECTED]



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

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



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




Re: java.lang.OutOfMemoryError

2002-10-09 Thread Raj Mettai

Hi Sonam Singh,
 
currently, I am passing the max and min values for the memory thru CATALINA_OPTS in 
catalina.sh (CATALINA_OPTS=-Xms256M -Xmx256M; export CATALINA_OPTS)

I think this will increase the default memory right ?

thanks 
Raj


 [EMAIL PROTECTED] 10/09/02 08:39AM 
modify the catalina.sh because tomcat run with default
memory u have to increase it manually in the
catalina.sh as below

[ $1 = start ] ; then

  shift
  touch $CATALINA_BASE/logs/catalina.out
  if [ $1 = -security ] ; then
echo Using Security Manager
shift
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Djava.security.manager \
 
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
\
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  else
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  fi

change TO ...

[ $1 = start ] ; then

  shift
  touch $CATALINA_BASE/logs/catalina.out
  if [ $1 = -security ] ; then
echo Using Security Manager
shift
$_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Djava.security.manager \
 
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
\
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  else
$_RUNJAVA -Xmx400m...  $JAVA_OPTS
$CATALINA_OPTS \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
-classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start
\
   $CATALINA_BASE/logs/catalina.out 21 
  fi

then it will not give u Error in then run the tomcat
sh catalina.sh start 

regards
Sonam Singh



--- Raj Saini [EMAIL PROTECTED] wrote:
 Hi,
 
 I was using the tomcat 4.0.3 with JDK 1.4. Tomcat
 was integrated with 
 apache using warp connector. I used to have the same
 problem you have 
 now. I recently upgraded to Tomcat 4.1.12 and warp
 to mod_jk with load 
 balancing with two instances of tomcat on the same
 server.
 
 Memory usages which used to shoot upto 200 MB in a
 single day is now 
 restricted to 3-4 MBs a day.
 
 I cant not say surely my problem was due to warp or
 tomcat 4.0.3. Your 
 can try upgrading to tomcat 4.1.12.
 
 Raj
 
   earlier is now
  Hi all,
  
  I have apache(2.0.39) and tomcat(4.0.4) configured
 on different solaris
  8 machines using mod_jk. I have two instances of
 tomcat running, each
  serving different jsp/servlet/bean application. I
 see lot of OutOfMemory
  errors in tomcat logs after few hours, some times
 tomcat totally
  crashes, if I do not restart. I am pretty much
 monitor java process
  using prstat and if the memory reaches maximum
 value, I am restarting
  tomcat.
  
  here is my jdk version...
  
  java version 1.3.1
  Java(TM) 2 Runtime Environment, Standard Edition
 (build 1.3.1-b24)
  Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed
 mode)
  
  I have increased the heap size from 128M to 256M,
 it didn't help much
  other than running for few more hours.
  
  and currently I have set up 256M min and 256M max
 values for heap size.
  
  I am wondering, is there any known issues with
 running tomcat4.0.4 under
  jdk1.3.1(build 1.3.1-b24, mixed mode). ?
  
  Is there any preferred jdk version(less memory
 leaks) for tomcat 4.0.4 ?
  
  thanks in advance
  
  Raj
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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



AW: java.lang.OutOfMemoryError

2002-10-09 Thread Michael Riess

try using export (with standard linux shells)

export CATALINA_OPTS=-ms200m -mx400m



 -Ursprungliche Nachricht-
 Von: Raj Mettai [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Oktober 2002 15:15
 An: [EMAIL PROTECTED]
 Betreff: Re: java.lang.OutOfMemoryError
 
 
 Hi Sonam Singh,
  
 currently, I am passing the max and min values for the memory 
 thru CATALINA_OPTS in catalina.sh (CATALINA_OPTS=-Xms256M 
 -Xmx256M; export CATALINA_OPTS)
 
 I think this will increase the default memory right ?
 
 thanks 
 Raj
 
 
  [EMAIL PROTECTED] 10/09/02 08:39AM 
 modify the catalina.sh because tomcat run with default
 memory u have to increase it manually in the
 catalina.sh as below
 
 [ $1 = start ] ; then
 
   shift
   touch $CATALINA_BASE/logs/catalina.out
   if [ $1 = -security ] ; then
 echo Using Security Manager
 shift
 $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
   -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
 -classpath $CLASSPATH \
   -Djava.security.manager \
  
 -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
 \
   -Dcatalina.base=$CATALINA_BASE \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$CATALINA_TMPDIR \
   org.apache.catalina.startup.Bootstrap $@ start
 \
$CATALINA_BASE/logs/catalina.out 21 
   else
 $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
   -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
 -classpath $CLASSPATH \
   -Dcatalina.base=$CATALINA_BASE \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$CATALINA_TMPDIR \
   org.apache.catalina.startup.Bootstrap $@ start
 \
$CATALINA_BASE/logs/catalina.out 21 
   fi
 
 change TO ...
 
 [ $1 = start ] ; then
 
   shift
   touch $CATALINA_BASE/logs/catalina.out
   if [ $1 = -security ] ; then
 echo Using Security Manager
 shift
 $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
   -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
 -classpath $CLASSPATH \
   -Djava.security.manager \
  
 -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy
 \
   -Dcatalina.base=$CATALINA_BASE \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$CATALINA_TMPDIR \
   org.apache.catalina.startup.Bootstrap $@ start
 \
$CATALINA_BASE/logs/catalina.out 21 
   else
 $_RUNJAVA -Xmx400m...  $JAVA_OPTS
 $CATALINA_OPTS \
   -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS
 -classpath $CLASSPATH \
   -Dcatalina.base=$CATALINA_BASE \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$CATALINA_TMPDIR \
   org.apache.catalina.startup.Bootstrap $@ start
 \
$CATALINA_BASE/logs/catalina.out 21 
   fi
 
 then it will not give u Error in then run the tomcat
 sh catalina.sh start 
 
 regards
 Sonam Singh
 
 
 
 --- Raj Saini [EMAIL PROTECTED] wrote:
  Hi,
  
  I was using the tomcat 4.0.3 with JDK 1.4. Tomcat
  was integrated with 
  apache using warp connector. I used to have the same
  problem you have 
  now. I recently upgraded to Tomcat 4.1.12 and warp
  to mod_jk with load 
  balancing with two instances of tomcat on the same
  server.
  
  Memory usages which used to shoot upto 200 MB in a
  single day is now 
  restricted to 3-4 MBs a day.
  
  I cant not say surely my problem was due to warp or
  tomcat 4.0.3. Your 
  can try upgrading to tomcat 4.1.12.
  
  Raj
  
earlier is now
   Hi all,
   
   I have apache(2.0.39) and tomcat(4.0.4) configured
  on different solaris
   8 machines using mod_jk. I have two instances of
  tomcat running, each
   serving different jsp/servlet/bean application. I
  see lot of OutOfMemory
   errors in tomcat logs after few hours, some times
  tomcat totally
   crashes, if I do not restart. I am pretty much
  monitor java process
   using prstat and if the memory reaches maximum
  value, I am restarting
   tomcat.
   
   here is my jdk version...
   
   java version 1.3.1
   Java(TM) 2 Runtime Environment, Standard Edition
  (build 1.3.1-b24)
   Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed
  mode)
   
   I have increased the heap size from 128M to 256M,
  it didn't help much
   other than running for few more hours.
   
   and currently I have set up 256M min and 256M max
  values for heap size.
   
   I am wondering, is there any known issues with
  running tomcat4.0.4 under
   jdk1.3.1(build 1.3.1-b24, mixed mode). ?
   
   Is there any preferred jdk version(less memory
  leaks) for tomcat 4.0.4 ?
   
   thanks in advance
   
   Raj
   
  
  
  
  --
  To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


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




Re: java.lang.OutOfMemoryError - JDK1.3.1

2002-10-09 Thread Raj Mettai

Hi,

what version of mod_jk you are using with tomcat 4.1.12 ? 

thanks 
Raj

 [EMAIL PROTECTED] 10/09/02 04:07AM 
Hi,

I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with 
apache using warp connector. I used to have the same problem you have 
now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load 
balancing with two instances of tomcat on the same server.

Memory usages which used to shoot upto 200 MB in a single day is now 
restricted to 3-4 MBs a day.

I cant not say surely my problem was due to warp or tomcat 4.0.3. Your 
can try upgrading to tomcat 4.1.12.

Raj

  earlier is now
 Hi all,
 
 I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris
 8 machines using mod_jk. I have two instances of tomcat running, each
 serving different jsp/servlet/bean application. I see lot of OutOfMemory
 errors in tomcat logs after few hours, some times tomcat totally
 crashes, if I do not restart. I am pretty much monitor java process
 using prstat and if the memory reaches maximum value, I am restarting
 tomcat.
 
 here is my jdk version...
 
 java version 1.3.1
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
 Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
 
 I have increased the heap size from 128M to 256M, it didn't help much
 other than running for few more hours.
 
 and currently I have set up 256M min and 256M max values for heap size.
 
 I am wondering, is there any known issues with running tomcat4.0.4 under
 jdk1.3.1(build 1.3.1-b24, mixed mode). ?
 
 Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ?
 
 thanks in advance
 
 Raj
 



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



Re: I need to run a servlet periodically

2002-10-09 Thread Wolfgang Stein

Hi Filip,

i think this it is a bad idea, to invoke 
a (Runnable) servlet via start().

In what state will be the servlet context, 
what about the ServletRequest or the log()
method for example ? 
I think the result will depend on server implementation
details, but it is very likely to get IllegalStateExceptions
at least.

As already being said:
a) If you need servlet functionality periodically 
   let a cron job do servlet requests periodically 
b) If you don't need servlet functionality
   just let a cron job do the job

Greetings
Wolfgang Stein



 -Original Message-
 From: Cato, Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 3:04 PM
 To: '[EMAIL PROTECTED]'
 Subject: SV: I need to run a servlet periodically
 
 
 What you really need to do is to design your periodical 
 servlet to implement
 Runnable. Add another servlet that starts the periodical 
 servlet and load
 that servlet during startup. The periodical then does its 
 thing and sleeps
 for x amount of time. Then wakes up and so on...
 
 /Christopher
 
 -Ursprungligt meddelande-
 Fran: Raj Saini
 Till: Tomcat Users List
 Skickat: 2002-10-07 23:24
 Amne: Re: I need to run a servlet periodically
 
 To need the servlet run periodically you need a client calling the 
 servlet periodically. Make your client to run periodically 
 and it will 
 cause the servlet to run.
 
 We can suggest you a solution if you let us know what exactly 
 you want 
 your servlet to do.
 
 Raj Saini
 Filip Rachunek wrote:
  Hello,
  is it possible to have a servlet in Tomcat container
  which is invoked automatically each gived time period?
  [e.g. each 10 minutes]  And I would also need this
  special servlet to access other resources of my web
  application [connection pool, ...].
  
  Thanks.
  Filip Rachunek
  


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




Re: java.lang.OutOfMemoryError - JDK1.3.1

2002-10-09 Thread Raj Saini

Raj Mettai wrote:
 Hi,
 
 what version of mod_jk you are using with tomcat 4.1.12 ? 
 
 thanks 
 Raj

I am using JK 1.2.0. (not jk2). This is the latest JK release.

Raj
 
 
[EMAIL PROTECTED] 10/09/02 04:07AM 

 Hi,
 
 I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with 
 apache using warp connector. I used to have the same problem you have 
 now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load 
 balancing with two instances of tomcat on the same server.
 
 Memory usages which used to shoot upto 200 MB in a single day is now 
 restricted to 3-4 MBs a day.
 
 I cant not say surely my problem was due to warp or tomcat 4.0.3. Your 
 can try upgrading to tomcat 4.1.12.
 
 Raj
 
   earlier is now
 
Hi all,

I have apache(2.0.39) and tomcat(4.0.4) configured on different
 
 solaris
 
8 machines using mod_jk. I have two instances of tomcat running, each
serving different jsp/servlet/bean application. I see lot of
 
 OutOfMemory
 
errors in tomcat logs after few hours, some times tomcat totally
crashes, if I do not restart. I am pretty much monitor java process
using prstat and if the memory reaches maximum value, I am restarting
tomcat.

here is my jdk version...

java version 1.3.1
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

I have increased the heap size from 128M to 256M, it didn't help much
other than running for few more hours.

and currently I have set up 256M min and 256M max values for heap
 
 size.
 
I am wondering, is there any known issues with running tomcat4.0.4
 
 under
 
jdk1.3.1(build 1.3.1-b24, mixed mode). ?

Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4
 
 ?
 
thanks in advance

Raj

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



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




Cocoon 2.1 + Tomcat 4.1 + reloadable=true

2002-10-09 Thread Barbara Post

Hi and sorry for the cross-posting, this might interest both lists although
I think it may be purely a Tomcat-specific problem.

Tomcat 4.1.12 - CATALINA_OPTS allow 128 MB of RAM (out of 512 physical),
with catalina run command to see more console log.
Cocoon 2.1-dev from CVS.
JDK 1.3.1
Windows NT4 SP6
Few other apps running, at least memory is not fully used.
Eclipse 2.0.1 to edit and compile java code.
reloadable=true for my webapp (other webapps are defined in server.xml and
also reloadable but I don't call their URI.

Issue :

I change some code in a java class, save so that it compiles automaticaly.
After a few (3 to 6) compiles/reloads my webapp dies with
ClassCastException, IllegalStateException, or Tomcat dies with
OutOfMemoryError.

When I was using Tomcat 4.0.5 and JBuilder 6 I had few problems with
automatic reloads, at least not so many errors...

Barbara


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




want to show a message to the user before issuing shutdown command

2002-10-09 Thread shoban kumar

Hi there,
I want to show a message to the END USER'S before shutting down the tomcat. 
How can i achive this.
thanks in advance
shoban
Mascon

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Jack Li

Hi, How to validate email address in JSP by using javax.mail?

 

Thanks,

Jack Li




RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John


Typically, there is no way to validate an email address.  For various
reasons, any mail administrator with half a brain turns off the VRFY command
on their mailserver, which is the only 100% guaranteed way to validate an
email address without sending a message and looking for a bounce or other
error.  

Other than that, you can take some precautions on the processing end, like
checking for minimum length, the presence of '@', and a valid MX lookup on
the domain name, and even a valid connection to port 25 of the host listed
in that MX record.  All of that stuff, though, is regular Java, with nothing
to do with javax.mail.

You can always try and send the message, then look for SendFailedException,
but you'd have to do the send first.

John


 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 9:54 AM
 To: '[EMAIL PROTECTED]'
 Subject: How to validate email address in JSP by using javax.mail?
 
 
 Hi, How to validate email address in JSP by using javax.mail?
 
  
 
 Thanks,
 
 Jack Li
 
 

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




Re: want to show a message to the user before issuing shutdown command

2002-10-09 Thread Padhu Vinirs


U want to show a message to the client ? If so, The server cannot 
instantiate a session on the client. If you want to send a email, then 
the ServletContextListener's contextDestroyed might help.  

-- pady



shoban kumar wrote:

 Hi there,
 I want to show a message to the END USER'S before shutting down the 
 tomcat. How can i achive this.
 thanks in advance
 shoban
 Mascon

 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx


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





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




Re: want to show a message to the user before issuing shutdown command

2002-10-09 Thread Kent Perrier

On Wed, Oct 09, 2002 at 06:41:57AM -0700, shoban kumar wrote:
 Hi there,
 I want to show a message to the END USER'S before shutting down the tomcat. 
 How can i achive this.
 thanks in advance
 

man wall, it will answer all of your questions, assuming by END USERS you mean
people logged into the server with interactive terminal sessions.

Kent

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




AW: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Ralph Einfeldt

Not completly true. You can use JavaMail to check 
the syntax of the address against RFC822. (at least 
a subset of it) The constructor of 
javax.mail.internet.InternetAddress will throw a 
ParseException if it recognises an syntax error.

To verify if the domain has an mx record have a 
look at: http://www.xbill.org/dnsjava/

 -Ursprüngliche Nachricht-
 Von: Turner, John [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Oktober 2002 16:03
 An: 'Tomcat Users List'
 Betreff: RE: How to validate email address in JSP by using javax.mail?
 
 Typically, there is no way to validate an email address.  
 For various reasons, any mail administrator with half a 
 brain turns off the VRFY command on their mailserver, 
 which is the only 100% guaranteed way to validate an 
 email address without sending a message and looking for 
 a bounce or other error.  
 
 Other than that, you can take some precautions on the 
 processing end, like checking for minimum length, the
 presence of '@', and a valid 
 MX lookup on the domain name, and even a valid connection 
 to port 25 of the host listed in that MX record.  All of 
 that stuff, though, is regular Java, with nothing
 to do with javax.mail.
 
snip/
 All of that stuff, though, is regular Java, with nothing
 to do with javax.mail.
snip/

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




RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John


Cool, thanks for the tip.  That's just address syntax, though, not whether
there is actually a mailbox available to receive mail at that address,
right?

John


 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 10:25 AM
 To: Tomcat Users List
 Subject: AW: How to validate email address in JSP by using javax.mail?
 
 
 Not completly true. You can use JavaMail to check 
 the syntax of the address against RFC822. (at least 
 a subset of it) The constructor of 
 javax.mail.internet.InternetAddress will throw a 
 ParseException if it recognises an syntax error.
 
 To verify if the domain has an mx record have a 
 look at: http://www.xbill.org/dnsjava/
 
  -Ursprüngliche Nachricht-
  Von: Turner, John [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 9. Oktober 2002 16:03
  An: 'Tomcat Users List'
  Betreff: RE: How to validate email address in JSP by using 
 javax.mail?
  
  Typically, there is no way to validate an email address.  
  For various reasons, any mail administrator with half a 
  brain turns off the VRFY command on their mailserver, 
  which is the only 100% guaranteed way to validate an 
  email address without sending a message and looking for 
  a bounce or other error.  
  
  Other than that, you can take some precautions on the 
  processing end, like checking for minimum length, the
  presence of '@', and a valid 
  MX lookup on the domain name, and even a valid connection 
  to port 25 of the host listed in that MX record.  All of 
  that stuff, though, is regular Java, with nothing
  to do with javax.mail.
  
 snip/
  All of that stuff, though, is regular Java, with nothing
  to do with javax.mail.
 snip/
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Jack Li

Thanks, John. I see what you mean. But we got the email address from our
web pages. Some people are sending disgusting messages with fake email
addresses. So, we don't want to reply to those invalid email addresses.
I tried to validate the email address by sending a confirmation mail. I
am trying to catch SendFailedException to validate the address. But it
did not generate the exception. What else can I do?

Thanks,
Jack Li

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 10:03 AM
To: 'Tomcat Users List'
Subject: RE: How to validate email address in JSP by using javax.mail?


Typically, there is no way to validate an email address.  For various
reasons, any mail administrator with half a brain turns off the VRFY
command
on their mailserver, which is the only 100% guaranteed way to validate
an
email address without sending a message and looking for a bounce or
other
error.  

Other than that, you can take some precautions on the processing end,
like
checking for minimum length, the presence of '@', and a valid MX lookup
on
the domain name, and even a valid connection to port 25 of the host
listed
in that MX record.  All of that stuff, though, is regular Java, with
nothing
to do with javax.mail.

You can always try and send the message, then look for
SendFailedException,
but you'd have to do the send first.

John


 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 9:54 AM
 To: '[EMAIL PROTECTED]'
 Subject: How to validate email address in JSP by using javax.mail?
 
 
 Hi, How to validate email address in JSP by using javax.mail?
 
  
 
 Thanks,
 
 Jack Li
 
 

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


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




Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Catalin Constantin

you could use a small java code and do the validation via regexp

here is a DEMO:

import java.lang.*;
import java.util.*;
import org.apache.oro.text.regex.*;

public final class isEmail
{
 public static boolean check(String email)
 {
  PatternMatcher matcher;
  PatternCompiler compiler;
  Pattern p1 = null;
  PatternMatcherInput input;
  MatchResult result;

  compiler = new Perl5Compiler();
  matcher = new Perl5Matcher();

  String r1=^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*$;

  try
  {

   p1 =
compiler.compile(r1,Perl5Compiler.MULTILINE_MASK+Perl5Compiler.CASE_INSENSIT
IVE_MASK);
  } catch (MalformedPatternException e)
  {
   return true;
  }

  input = new PatternMatcherInput(email);

  return matcher.contains(input,p1);
 }
}

see: http://jakarta.apache.org/oro/index.html
for more details regarding regexp !


Catalin

- Original Message -
From: Jack Li
To: '[EMAIL PROTECTED]'
Sent: Wednesday, October 09, 2002 3:53 PM
Subject: How to validate email address in JSP by using javax.mail?


Hi, How to validate email address in JSP by using javax.mail?



Thanks,

Jack Li


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




RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John


The typical way to validate email addresses is to send an email to that
address.  In the contents of that email message is a link back to your site,
a unique link generated on the fly, unique to each email address submitted.

The user can only see the link if they got the email message.  If they click
on the link, the page they go to causes a flag to be flipped in the database
showing that the email address was valid, since it received a message and
someone was able to read it, and responded by clicking.  Periodically, you
can go into the database and remove any confirmation numbers/URLs that
haven't received a click back and are over a certain age.  

Then, on the back end, your reporting engine or query page showing comments
or feedback or whatever was submitted by the person only shows those
messages where the from email address was validated.  Though, from a
customer service point of view, you typically want to see a message that
says your site sucks for this reason, even if the email address isn't
valid, because it may be an indicator that something is actually wrong with
the site.  The submitter's reluctance to submit a valid email address
wouldn't change that, and you would want to fix it in either case.

John


 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 10:28 AM
 To: 'Tomcat Users List'
 Subject: RE: How to validate email address in JSP by using javax.mail?
 
 
 Thanks, John. I see what you mean. But we got the email 
 address from our
 web pages. Some people are sending disgusting messages with fake email
 addresses. So, we don't want to reply to those invalid email 
 addresses.
 I tried to validate the email address by sending a 
 confirmation mail. I
 am trying to catch SendFailedException to validate the address. But it
 did not generate the exception. What else can I do?
 
 Thanks,
 Jack Li
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 09, 2002 10:03 AM
 To: 'Tomcat Users List'
 Subject: RE: How to validate email address in JSP by using javax.mail?
 
 
 Typically, there is no way to validate an email address.  For various
 reasons, any mail administrator with half a brain turns off the VRFY
 command
 on their mailserver, which is the only 100% guaranteed way to validate
 an
 email address without sending a message and looking for a bounce or
 other
 error.  
 
 Other than that, you can take some precautions on the processing end,
 like
 checking for minimum length, the presence of '@', and a valid 
 MX lookup
 on
 the domain name, and even a valid connection to port 25 of the host
 listed
 in that MX record.  All of that stuff, though, is regular Java, with
 nothing
 to do with javax.mail.
 
 You can always try and send the message, then look for
 SendFailedException,
 but you'd have to do the send first.
 
 John
 
 
  -Original Message-
  From: Jack Li [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 09, 2002 9:54 AM
  To: '[EMAIL PROTECTED]'
  Subject: How to validate email address in JSP by using javax.mail?
  
  
  Hi, How to validate email address in JSP by using javax.mail?
  
   
  
  Thanks,
  
  Jack Li
  
  
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Tomcat 4.0.4 on OS/390?

2002-10-09 Thread B

I had tried to get Tomcat 4.0 working on os390 under omvs. After working on
it for a couple of days, I decided that it was more than my timetable cud
handle at that time (I am a pc man)

If you do get Tomcat 4.0.4 working under os390, wud u be kind enuf to
distribute the process that u went thru to get it work and if possible the
modified binaries/source that u had to use.

Thanks.

B.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 08, 2007 6:04 PM
Subject: Tomcat 4.0.4 on OS/390?



 I've been looking into getting Tomcat 4.0.4 running on
 OS/390 for a day or so now.  I've found various references
 to doing this, but nothing conclusive yet.

 Could someone please let me know if they have it running
 themself and/or know what would be involved in doing this.

 I've also been working on getting Tomcat 3.3.1 running on
 the same machine (just in case I can't get 4.0.4 going).
  So information on 3.3.1 on OS/390 would he helpful as
 well.

 Current notes:
 - may have to convert certain files such as
 catalina.policy/tomcat.policy, tomcat.conf, and
 tomcat.propeties... from ascii to EBCDIC.
 - I'm under the impression that all served up files should
 remain in ascii.

 I'm currently (today) focussing on even getting Tomcat
 3.3.1 going.  All of the JSP examples run great, but I'm
 running into the following error when I run the servlet
 examples:
 Error: 500
 Location: /examples/servlet/HelloWorldExample
 Internal Servlet Error:

 java.util.MissingResourceException: Can't find resource
 for bundle java.util.PropertyResourceBundle, key
 helloworld.title
 at
 java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled
 Code))
 at
 java.util.ResourceBundle.getString(ResourceBundle.java:342)
 at HelloWorldExample.doGet(Unknown Source)
 etc...

 The properties file, LocalStrings.properties, is in the
 default location and seems fine.  It is stored in ascii,
 which I'm assuming is correct, just like all the other
 files.

 I've looked on the web via google and through this list's
 archives and unfortiontely still haven't found solid
 information regarding this Tomcat on OS/390.  I couldn't
 even tell if this scenario is officially supported by the
 Tomcat group. Tomcat has rocked for me, I'm using it at
 work and for personal projects at home.

 Any input would be greatly appreciated. Thank you so much!

 Cheers,
 Rich

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


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




RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John


You would also want to check length, not just characters used.  The minimum
length for a valid Internet email address is 6: [EMAIL PROTECTED]

You would also want to check for at least 2 characters to the right of the
last ., as one would be invalid.  There are other checks you would want to
do, as well, like are the characters to the right of the last period a
valid TLD, etc.

John

 -Original Message-
 From: Catalin Constantin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: How to validate email address in JSP by using javax.mail?
 
 
 you could use a small java code and do the validation via regexp
 
 here is a DEMO:
 
 import java.lang.*;
 import java.util.*;
 import org.apache.oro.text.regex.*;
 
 public final class isEmail
 {
  public static boolean check(String email)
  {
   PatternMatcher matcher;
   PatternCompiler compiler;
   Pattern p1 = null;
   PatternMatcherInput input;
   MatchResult result;
 
   compiler = new Perl5Compiler();
   matcher = new Perl5Matcher();
 
   String 
 r1=^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*$;
 
   try
   {
 
p1 =
 compiler.compile(r1,Perl5Compiler.MULTILINE_MASK+Perl5Compiler
 .CASE_INSENSIT
 IVE_MASK);
   } catch (MalformedPatternException e)
   {
return true;
   }
 
   input = new PatternMatcherInput(email);
 
   return matcher.contains(input,p1);
  }
 }
 
 see: http://jakarta.apache.org/oro/index.html
 for more details regarding regexp !
 
 
 Catalin
 
 - Original Message -
 From: Jack Li
 To: '[EMAIL PROTECTED]'
 Sent: Wednesday, October 09, 2002 3:53 PM
 Subject: How to validate email address in JSP by using javax.mail?
 
 
 Hi, How to validate email address in JSP by using javax.mail?
 
 
 
 Thanks,
 
 Jack Li
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




setting the verbosity level of stderr/stdout?

2002-10-09 Thread Christine . Just

Hi,

I'm running Tomcat 4.0.6 standalone as service on a nt4 box. Is there a way
of explicitly setting the verbosity level for the stderr and stdout logs? 
Any help is greatly appreciated.

regards,
Christine

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




Does Tomcat 3.2.4 use a thread pool by default

2002-10-09 Thread rsequeira


Does Tomcat 3.2.4 use a thread pool by default? If I'm not mistaken, it
does according to the documentation (
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html).
Could someone please confirm this. I think it does using the
PoolTcpConnector class. I believe even if you do not explicitly specify
max_threads, max_spare_threads, min_spare_threads it uses the default that
is specified in the documentation. I wanted someone to confirm this.
We are having problems with our website.The CPU and load on the machine
keeps increasing and never comes down unless we restart Tomcat.
 We use JDK1.3.1, Apache, Tomcat 3.2.4, Linux 7.2.

Thanks in advance,
RS




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




non-static method cannot be referenced from static context error

2002-10-09 Thread hugo

Hi

I would like to implement an interface called FileRenamePolicy from the 
oreilly package for uploading files, and I am creating a class which 
does the implementation.

Here is the relevant code:

%@ page session=true%
%@ page import=java.sql.* %
%@ page import=java.io.* %
%@ page import=java.net.* %
%@ page import=java.text.* %
%@ page import=java.util.* %
%@ page import=com.oreilly.servlet.* %
%@ page import=com.oreilly.servlet.multipart.* %

%
abstract class reName implements FileRenamePolicy {
  public File changename (File oldname) {
  DefaultFileRenamePolicy dfrp = new DefaultFileRenamePolicy();
   FileRenamePolicy frp = (FileRenamePolicy) dfrp;
   File savename = frp.rename(oldname);
  return savename;
  }
}
%

Apparently this class needed to be abstract for the jsp to compile.

Later on in the code, I would like to rename the file. First I create a 
MultipartRequest object:

MultipartRequest mr = new 
MultipartRequest(request,/var/www/projects_data/);

Then I upload the file object:

File oldn = mr.getFile(mr.getParameter(audit_doc));

And then I rename the file:

File newname = reName.changename(oldn);

But here is when I get the error:

non-static method changename(java.io.File) cannot be referenced from a 
static context

What does this mean and what am I doing wrong?

After I rename the file, I would still like do download it (using the 
new filename) to /var/www/projects_data/.

I think I have to use a method from the oreilly package named 
FilePart.writeTo().

Would anyone be able to give me a hint on how to use this?

Any help, especially code examples, will be greatly appreciated.

Thanks

Hugo

-- 
Dr Hugo Bouckaert
Systems and Programming Engineer

GeoInformatics Exploration Australia P/L
57 Havelock St
West Perth, WA 6005
PO Box 1675, West Perth 6872

Ph:   61 08 9420 7400
Fax:  61 08 9226 1299

www.geoinformex.com


This email and any attachments may be confidential or legally 
privileged. If you received this message in error or are not the 
intended recipient, you should destroy the e-mail message and any 
attachments or copies, and you are prohibited from retaining, 
distributing, disclosing or using any information contained herein. 
Please inform us of the erroneous delivery by return e-mail. Thank you 
for your cooperation.



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

tsdok

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




AW: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Ralph Einfeldt

As I said, it's just a syntactical check.

 -Ursprüngliche Nachricht-
 Von: Turner, John [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Oktober 2002 16:27
 An: 'Tomcat Users List'
 Betreff: RE: How to validate email address in JSP by using javax.mail?
 
 
 
 Cool, thanks for the tip.  That's just address syntax, 
 though, not whether there is actually a mailbox 
 available to receive mail at that address, right?
 

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




Coyote ArrayIndexOutOfBounds exception

2002-10-09 Thread Shapira, Yoav

Hi,
I moved an existing app from Tomcat 4.0.4 to 4.1.12-LE yesterday, and
started getting these errors sometimes.  I'm not sure why they happen,
and I haven't been able to reproduce them on demand.

Obviously, 4.1.x uses Coyote as the default http connector, whereas
4.0.4 was using the older http connector.  I wonder if this is related?
Does coyote have some sort of internal buffer limit, and if so, is it
configurable?  Or is this a known bug?  I couldn't find it on bugzilla.

This is using JDK 1.4.1 on Solaris 8.

Stack trace:

java.lang.ArrayIndexOutOfBoundsException: 32000
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
.java:615)
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
.java:567)
at
org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputB
uffer.java:450)
at
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor
.java:897)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471
)
at org.apache.coyote.Response.action(Response.java:214)
at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff
er.java:516)
at org.apache.coyote.Response.doWrite(Response.java:508)
at
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:
380)
at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
at
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:346)
at
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.j
ava:273)
at
sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:334)
at
sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:40
2)
at
sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:406)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:150)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
at
org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:222)
at
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:16
5)
at
org.apache.coyote.tomcat4.OutputBuffer.realWriteChars(OutputBuffer.java:
576)
at
org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388)
at
org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:376)
at
org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:522)
at java.io.PrintWriter.write(PrintWriter.java:230)
at java.io.PrintWriter.write(PrintWriter.java:247)
at
org.apache.coyote.tomcat4.CoyoteWriter.write(CoyoteWriter.java:107)
at java.io.PrintWriter.newLine(PrintWriter.java:254)
at java.io.PrintWriter.println(PrintWriter.java:405)
at java.io.PrintWriter.println(PrintWriter.java:516)
snip

Any insight appreciated ;)  Thanks,

Yoav Shapira
Millennium ChemInformatics




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


What are the advantages and disadvantages of using the -server option(CATALINA_OPTS) when starting Tomcat????

2002-10-09 Thread Francom, Kodie

I was just wondering when the -server option should be used and when it
should be avoided when starting Tomcat.

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




AW: What are the advantages and disadvantages of using the -server option(CATALINA_OPTS) when starting Tomcat????

2002-10-09 Thread Ralph Einfeldt


If you don't have a problem with the default (client),
you should stick with it. I would recommend -server 
only if you experience performance problems.

 -Ursprüngliche Nachricht-
 Von: Francom, Kodie [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 9. Oktober 2002 17:48
 An: [EMAIL PROTECTED]
 Betreff: What are the advantages and disadvantages of using 
 the -server
 option(CATALINA_OPTS) when starting Tomcat
 
 
 I was just wondering when the -server option should be used 
 and when it
 should be avoided when starting Tomcat.
 

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




Odd Exception at Startup

2002-10-09 Thread Chuck Carson


I am getting the following exception at startup, however, the server
starts and appears to function correctly:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 443
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
jb-ref*,ejb-local-ref*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error
HandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav
a:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:362)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:296)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValida
tor.java:1953)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.ja
va:878)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(X
MLDocumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML
DocumentFragmentScannerImpl.java:987)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
24)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
80)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1169)
at
org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] Digester - -Parse Error at line 22 column 11: The content of
element type web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
jb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of
element type web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
jb-ref*,ejb-local-ref*).
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 80
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 443
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] JkMain - -Jk running ID=0 time=1/27
config=/usr/local/jakarta-tomcat-4.1.12/conf/jk2.properties


Anyone have any ideas?

Thanks,
CC


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender

TOMCAT AIX and JDK

2002-10-09 Thread CouasPhilippe

Hi,

It seems it's better to install Tomcat 4.0.4 with JDK 1.3.1
Can i install it With JDK 1.3.0 or JDK 1.2.
Can i install it on AIX 4.1.5 Or on AIX 4.3.0

Thanks
Philippe
.


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




Re: java -server

2002-10-09 Thread Craig R. McClanahan



On Wed, 9 Oct 2002, Frank Liu wrote:

 Date: Wed, 9 Oct 2002 04:56:23 + (GMT)
 From: Frank Liu [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: java -server


 any good docs on good/bad side of -server and -client option?
 or maybe the only way is to try it?


The latter option (try it yourself) is the only sane option on something
like this.  The only valid benchmark for your application is your
application :-).

 frank

Craig


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




Re: What are the advantages and disadvantages of using the -serverop tion(CATALINA_OPTS) when starting Tomcat????

2002-10-09 Thread Craig R. McClanahan



On Wed, 9 Oct 2002, Francom, Kodie wrote:

 Date: Wed, 9 Oct 2002 09:48:26 -0600
 From: Francom, Kodie [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: What are the advantages and disadvantages of using the -server
 op tion(CATALINA_OPTS)  when starting Tomcat

 I was just wondering when the -server option should be used and when it
 should be avoided when starting Tomcat.


If you are using Tomcat for development (where you're doing a lot of
recompiles and reloads), you probably don't want to use -server.  The
extra optimizations that are performed by -server mode don't help you when
you continually throw away the optimized classes.

If you are using Tomcat for production, your best choice is to benchmark
your app both ways, to see which works better.

Craig


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




Re: Coyote ArrayIndexOutOfBounds exception

2002-10-09 Thread Remy Maucherat

Shapira, Yoav wrote:
 Hi,
 I moved an existing app from Tomcat 4.0.4 to 4.1.12-LE yesterday, and
 started getting these errors sometimes.  I'm not sure why they happen,
 and I haven't been able to reproduce them on demand.
 
 Obviously, 4.1.x uses Coyote as the default http connector, whereas
 4.0.4 was using the older http connector.  I wonder if this is related?
 Does coyote have some sort of internal buffer limit, and if so, is it
 configurable?  Or is this a known bug?  I couldn't find it on bugzilla.
 
 This is using JDK 1.4.1 on Solaris 8.
 
 Stack trace:
 
 java.lang.ArrayIndexOutOfBoundsException: 32000
   at
 org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
 .java:615)

Well, the max size of the HTTP header on output is about 32 kbytes.
As always, the HTTP spec doesn't set any limits, but Coyote does. I have 
no idea what you're doing to get over that. I suppose a ton of cookies 
or something ...

An option will probably be added eventually to allow configuring that. 
Right now, it's not (except by hacking the code; there's a constant in 
org.apache.coyote.http11.Constants: DEFAULT_HTTP_HEADER_BUFFER_SIZE).

Remy


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




Re: Odd Exception at Startup

2002-10-09 Thread Craig R. McClanahan



On Wed, 9 Oct 2002, Chuck Carson wrote:

 Date: Wed, 9 Oct 2002 08:54:52 -0700
 From: Chuck Carson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Odd Exception at Startup


 I am getting the following exception at startup, however, the server
 starts and appears to function correctly:

 [INFO] Registry - -Loading registry information
 [INFO] Registry - -Creating new Registry instance
 [INFO] Registry - -Creating MBeanServer
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 443
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.12
 org.xml.sax.SAXParseException: The content of element type web-app
 must match
 (icon?,display-name?,description?,distributable?,context-param*,filter*
 ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
 e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
 urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
 jb-ref*,ejb-local-ref*).

The order of elements in a web.xml file must be in the order specified
above.  Your's is not.

Craig


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




RE: Coyote ArrayIndexOutOfBounds exception

2002-10-09 Thread Shapira, Yoav

Hi,
Thanks for the quick response.

 java.lang.ArrayIndexOutOfBoundsException: 32000
  at

org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
 .java:615)

Well, the max size of the HTTP header on output is about 32 kbytes.
As always, the HTTP spec doesn't set any limits, but Coyote does. I
have
no idea what you're doing to get over that. I suppose a ton of cookies
or something ...

So this limit is for the header, not the body?  I'm pretty sure not much
is happening in the header.  A couple of small cookies, not much more.  

But the body in this case is fairly big (~300KB), and I do output it via
a bunch of println() statements without a flush().  Could that prove a
problem with Coyote?

Thanks again,

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


Re: Coyote ArrayIndexOutOfBounds exception

2002-10-09 Thread Remy Maucherat

Shapira, Yoav wrote:
 Hi,
 Thanks for the quick response.
 
 
java.lang.ArrayIndexOutOfBoundsException: 32000
 at


 org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
 
.java:615)

Well, the max size of the HTTP header on output is about 32 kbytes.
As always, the HTTP spec doesn't set any limits, but Coyote does. I
 
 have
 
no idea what you're doing to get over that. I suppose a ton of cookies
or something ...
 
 
 So this limit is for the header, not the body?  I'm pretty sure not much
 is happening in the header.  A couple of small cookies, not much more.  
 
 But the body in this case is fairly big (~300KB), and I do output it via
 a bunch of println() statements without a flush().  Could that prove a
 problem with Coyote?

I don't know, but that stack trace refers to the header output. The body 
is output by different code. Nobody ever reported that problem, so 
either you have a big HTTP header, or you;re doing something really 
weird, or running into some weird bug (which you'll have to debug 
further, because I definitely can't reproduce it at this point).

Remy


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




RE: Odd Exception at Startup

2002-10-09 Thread Chuck Carson


Ahhh. Cool thanks.

-Chuck


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 09, 2002 9:14 AM
 To: Tomcat Users List
 Subject: Re: Odd Exception at Startup
 
 
 
 
 On Wed, 9 Oct 2002, Chuck Carson wrote:
 
  Date: Wed, 9 Oct 2002 08:54:52 -0700
  From: Chuck Carson [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Odd Exception at Startup
 
 
  I am getting the following exception at startup, however, 
 the server 
  starts and appears to function correctly:
 
  [INFO] Registry - -Loading registry information
  [INFO] Registry - -Creating new Registry instance
  [INFO] Registry - -Creating MBeanServer
  [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80 
  [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 443 
  Starting service Tomcat-Standalone Apache Tomcat/4.1.12
  org.xml.sax.SAXParseException: The content of element type web-app
  must match
  
 (icon?,display-name?,description?,distributable?,context-para
m*,filter*
  
 ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-c
 onfig?,mim
  
 e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env
 -ref*,reso
  
 urce-ref*,security-constraint*,login-config?,security-role*,en
 v-entry*,e
  jb-ref*,ejb-local-ref*).
 
 The order of elements in a web.xml file must be in the order 
 specified above.  Your's is not.
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




LOGGER: Disable timestamping but no effect

2002-10-09 Thread Chuck Carson


I configured my Logger entires in server.xml so that the logs appear as
logfile name.log with no timestamping. Here is one such example:

Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=localhost suffix=.log timestamp=false/

However, the log is being created as follows:
logs/localhost2002-10-09.log

I am running the binary dist of 4.1.2 on Linux and Solaris 8.

Anyone have any ideas?

Thc,
CC

 

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




Problem with JK 1.2.0 docs?

2002-10-09 Thread Ben Ricker

I am confused by the build process for mod_jk 1.2.0 on a Redhat 7.3
server. From the 'BUILDING' text file, it says:

use configure and indicate Apache 1.3 apxs location (--with-apxs)
use make
copy the mod_jk binary to the apache modules location

Now, after doing a 'make' there is no binary in the top-level directory
with the configure script (i.e.,
jakarta-tomcat-connectors-jk-1.2.0-src/jk/native). So I went into
jakarta-tomcat-connectors-jk-1.2.0-src/jk/native/apache-1.3 and I see
the following files:

[root@javatest2 apache-1.3]# ls  -l
total 1556
-rw-r--r--1 root root  120 Sep 26 04:34 libjk.module
-rw-r--r--1 root root 2350 Oct  9 11:27 Makefile
-rw-r--r--1 root root  659 Oct  9 11:27 Makefile.apxs
-rwxr-xr-x1 root root  582 Sep 26 04:34 Makefile.apxs.in
-rwxr-xr-x1 root root 2234 Sep 26 04:34 Makefile.in
-rw-r--r--1 root root  252 Sep 26 04:34 Makefile.libdir
-rw-r--r--1 root root  827 Sep 26 04:34 Makefile.tmpl
-rw-r--r--1 root root   920456 Oct  9 11:28 mod_jk.a
-rw-r--r--1 root root66958 Sep 26 04:34 mod_jk.c
-rw-r--r--1 root root 7326 Sep 26 04:34 mod_jk.dsp
-rw-r--r--1 root root   11 Sep 26 04:34 mod_jk.exp
-rw-r--r--1 root root  713 Oct  9 11:28 mod_jk.la
-rw-r--r--1 root root   103752 Oct  9 11:28 mod_jk.lo
-rw-r--r--1 root root   101844 Oct  9 11:28 mod_jk.o
lrwxrwxrwx1 root root   15 Oct  9 11:28 mod_jk.so - mod_jk.so.0.0.0
lrwxrwxrwx1 root root   15 Oct  9 11:28 mod_jk.so.0 - mod_jk.so.0.0.0
-rwxr-xr-x1 root root   326225 Oct  9 11:28 mod_jk.so.0.0.0

So which is the binary? Mod_jk.so is a symlink. Should I just move
mod_jk.so.0.0.0 to the apache directory as mod_jk.so? The documentation
is very vague on this point. I get around it by doing a 'make install'
in the native directory and it installs a symlink to the the libexec
directory of Apache.

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




3.2.x inprocess 405 error

2002-10-09 Thread Michael Finney

I have set tomcat 3.2.4 to work with IIS 5.0 as
inprocess.  

The html pages seem fine (all ISS).  However, the JSP
pages do not work.  The browser gets:

HTTP 405 - Resource not allowed
Internet Information Services

I looked up the status code on Microsoft site and all
I saw was 405 - Method not allowed.  I assume they
mean GET, POST, DELETE, PUT

IIS logs were not helpful.

Any ideas?

I also see the ISAPI filter showing red now.  Is that
because Jakarta is not running out-of-proc now?  In
other words, the isapi-redirect.dll is not a player in
the in-proc stuff.  Right?  I cannot remember what
makes the ISAPI filter red vs. green.

=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




obtaining servlet classname

2002-10-09 Thread Jason Novotny


Hi,

I can successfully get the servlet name using 
ServletConfig.getServletName() but how do I get the class expressed in 
the web.xml file? e.g. I have the following:

servlet id=login
servlet-nameLogin/servlet-name

servlet-classorg.gridlab.gridsphere.portlets.core.LoginPortlet/servlet-class
init-param
param-nameportletID/param-name

param-valueorg.gridlab.gridsphere.portlets.core.LoginPortlet.129/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

How do I get servlet-class ? Also, how could I get other web app 
deployment descriptor info such as the id expressed in servlet id=xxx?

Thanks, Jason



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




Re: obtaining servlet classname

2002-10-09 Thread Craig R. McClanahan

You'd need to parse the web.xml file yourself in order to do this.  The
easiest way would be to use ServletContext.getResourceAsStream() to get an
InputStream to the /WEB-INF/web.xml resource, and feed it to your XML
parser via JAXP APIs.

Tomcat itself uses a package called commons-digester for this sort of
thing, and you might find it useful as well.  See:

  http://jakarta.apache.org/commons/digester/

for more info.

Craig


On Wed, 9 Oct 2002, Jason Novotny wrote:

 Date: Wed, 09 Oct 2002 18:58:01 +0200
 From: Jason Novotny [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: obtaining servlet classname


 Hi,

 I can successfully get the servlet name using
 ServletConfig.getServletName() but how do I get the class expressed in
 the web.xml file? e.g. I have the following:

 servlet id=login
 servlet-nameLogin/servlet-name

 servlet-classorg.gridlab.gridsphere.portlets.core.LoginPortlet/servlet-class
 init-param
 param-nameportletID/param-name

 param-valueorg.gridlab.gridsphere.portlets.core.LoginPortlet.129/param-value
 /init-param
 load-on-startup3/load-on-startup
 /servlet

 How do I get servlet-class ? Also, how could I get other web app
 deployment descriptor info such as the id expressed in servlet id=xxx?

 Thanks, Jason



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




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




RE: Cannot get mod_jk to work

2002-10-09 Thread Milt Epstein

On Wed, 9 Oct 2002, Turner, John wrote:

 Are you sure there is something wrong with the binary?  If so, the
 binary maintainers (like Henri Gomez) would probably appreciate and
 email message from you with details.  There's no point in having
 binaries if they aren't usable.  As far as I know, this exact
 problem (same exact error message) was covered by Henri last week.

I don't think that there's something wrong with the binary in the
sense that it's broken, but rather that the particular binary they're
trying to use was built for/to/with a different version of Apache, and
hence won't work with it.  The error message seems to indicate it's
trying to call an Apache function, ap_ctx_get, that doesn't exist in
the Apache libraries they have.  So they either need a different
mod_jk binary, or a different Apache.


  -Original Message-
  From: Raj Saini [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 09, 2002 8:59 AM
  To: Tomcat Users List
  Subject: Re: Cannot get mod_jk to work
 
 
  Pls build the mod_jk from source. These some thing wrong with the
  binary. I faced the same problem one week ago.
 
  Raj
  Richard Pfeil wrote:
   I am unable to get mod_jk to work.
  
   The following line in httpd.conf:
   LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
   results in this error message:
   Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so
  into server:
   /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
   ap_ctx_get
  
   What is going wrong?
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

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


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: Cannot get mod_jk to work

2002-10-09 Thread Milt Epstein

On Wed, 9 Oct 2002, Raj Saini wrote:

 Yes, there was a problem with binary one week ago. I am not sure if
 binaries are updated after that. The error message was the same as
 in this post.

Or maybe there really was something wrong with the binary :-).


 Turner, John wrote:
  Are you sure there is something wrong with the binary?  If so, the binary
  maintainers (like Henri Gomez) would probably appreciate and email message
  from you with details.  There's no point in having binaries if they aren't
  usable.  As far as I know, this exact problem (same exact error message) was
  covered by Henri last week.
 
  John
 
 
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 8:59 AM
 To: Tomcat Users List
 Subject: Re: Cannot get mod_jk to work
 
 
 Pls build the mod_jk from source. These some thing wrong with the
 binary. I faced the same problem one week ago.
 
 Raj
 Richard Pfeil wrote:
 
 I am unable to get mod_jk to work.
 
 The following line in httpd.conf:
 LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
 results in this error message:
 Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so
 
 into server:
 
 /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
 ap_ctx_get
 
 What is going wrong?
 
 
 --
 To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Redirect Valve - contribution

2002-10-09 Thread Jens Andersen

Hi all,

I would like to contribute a Redirct Valve to Tomcat for the next 
release or so - but how do I do that? Whom do I contact?

Best regards,

Jens Andersen



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




Re: Redirect Valve - contribution

2002-10-09 Thread Jean-Francois Arcand

Hi,

read : http://jakarta.apache.org/site/getinvolved.html

-- Jeanfrancois

Jens Andersen wrote:

 Hi all,

 I would like to contribute a Redirct Valve to Tomcat for the next 
 release or so - but how do I do that? Whom do I contact?

 Best regards,

 Jens Andersen



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




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




RE: Cannot get mod_jk to work

2002-10-09 Thread jcosta


Methinks it would be a good idea to maintain the binaries compiled to the
latest, greatest version of Apache (namely 1.3.27).


|-+
| |   Milt Epstein |
| |   [EMAIL PROTECTED]|
| |   u   |
| ||
| |   10/09/2002 01:16 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   Tomcat Users List [EMAIL PROTECTED] 
  |
  |   cc:  
  |
  |   Subject:  RE: Cannot get mod_jk to work  
  |
  
--|




On Wed, 9 Oct 2002, Turner, John wrote:

 Are you sure there is something wrong with the binary?  If so, the
 binary maintainers (like Henri Gomez) would probably appreciate and
 email message from you with details.  There's no point in having
 binaries if they aren't usable.  As far as I know, this exact
 problem (same exact error message) was covered by Henri last week.

I don't think that there's something wrong with the binary in the
sense that it's broken, but rather that the particular binary they're
trying to use was built for/to/with a different version of Apache, and
hence won't work with it.  The error message seems to indicate it's
trying to call an Apache function, ap_ctx_get, that doesn't exist in
the Apache libraries they have.  So they either need a different
mod_jk binary, or a different Apache.


  -Original Message-
  From: Raj Saini [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 09, 2002 8:59 AM
  To: Tomcat Users List
  Subject: Re: Cannot get mod_jk to work
 
 
  Pls build the mod_jk from source. These some thing wrong with the
  binary. I faced the same problem one week ago.
 
  Raj
  Richard Pfeil wrote:
   I am unable to get mod_jk to work.
  
   The following line in httpd.conf:
   LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
   results in this error message:
   Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so
  into server:
   /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
   ap_ctx_get
  
   What is going wrong?
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

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


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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








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


RE: XMLMapper:Can't find resource for entity error

2002-10-09 Thread jon wingfield

your web.xml file for the xsltExample webapp refers to the servlet 2.3
specification dtd and you are running tomcat 3.x which is an implementation
of the servlet 2.2 specification. Tomcat has a cached version of the dtd in
one of the jar files that are part of the distribution. This is in case the
machine running tomcat cannot access the internet version of the dtd. Sounds
like your server can't find the url http://java.sun.com/dtd/web-app_2_3.dtd.
If the xsltExample webapp uses 2.3 features then you will need to upgrade to
tomcat 4.x for it to work...

-Original Message-
From: Sharifuddin Ahmed [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 11:15
To: [EMAIL PROTECTED]
Subject: XMLMapper:Can't find resource for entity error


Could somebody help me and reply to my e-mail .

I have the following :

jakarta-tomcat-3.2.4
Win2K

On startup i get the following error:

2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /examples )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /FormProcess )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /gino )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /GinoTest )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /GinoTest2 )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /GraphService )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /jspBeanExample )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /myapp )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /postsearch )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /postsearch2 )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /registration )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /regXML )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx(  )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /test )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /UserReg )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /UserReg_old )
2002-09-25 09:34:13 - ContextManager: Adding context Ctx( /xsltExample )
XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD
Web Ap
plication 2.3//EN -- http://java.sun.com/dtd/web-app_2_3.dtd null
2002-09-25 09:34:21 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2002-09-25 09:34:21 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007

I have checked the web.xml file checking for versions

My
Could someone please help me

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



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




Re: Cannot get mod_jk to work

2002-10-09 Thread Raj Saini

I tried to use the binary on Apache Server version 1.3.23. I am using 
Redhat 7.2 Kernal version 2.4.7

Raj

Milt Epstein wrote:
 On Wed, 9 Oct 2002, Turner, John wrote:
 
 
Are you sure there is something wrong with the binary?  If so, the
binary maintainers (like Henri Gomez) would probably appreciate and
email message from you with details.  There's no point in having
binaries if they aren't usable.  As far as I know, this exact
problem (same exact error message) was covered by Henri last week.
 
 
 I don't think that there's something wrong with the binary in the
 sense that it's broken, but rather that the particular binary they're
 trying to use was built for/to/with a different version of Apache, and
 hence won't work with it.  The error message seems to indicate it's
 trying to call an Apache function, ap_ctx_get, that doesn't exist in
 the Apache libraries they have.  So they either need a different
 mod_jk binary, or a different Apache.
 
 
 
-Original Message-
From: Raj Saini [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 8:59 AM
To: Tomcat Users List
Subject: Re: Cannot get mod_jk to work


Pls build the mod_jk from source. These some thing wrong with the
binary. I faced the same problem one week ago.

Raj
Richard Pfeil wrote:

I am unable to get mod_jk to work.

The following line in httpd.conf:
LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
results in this error message:
Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so

into server:

/usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
ap_ctx_get

What is going wrong?


--
To unsubscribe, e-mail:

mailto:[EMAIL PROTECTED]

For additional commands, e-mail:

mailto:[EMAIL PROTECTED]



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

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

 
 Milt Epstein
 Research Programmer
 Integration and Software Engineering (ISE)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: Cannot get mod_jk to work

2002-10-09 Thread Luciano Kiniti Issoe

Hi all,

I'm using the apache 1.3.26 and  SuSE Linux 7.2 (i386) - Kernel 2.4.4-4GB
(0). Had the same problem yesterday.
To solve this I compiled mod_jk from source.
Maybe there's really a problem with the binaries.

miagi


- Original Message -
From: Raj Saini [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 2:31 PM
Subject: Re: Cannot get mod_jk to work


 I tried to use the binary on Apache Server version 1.3.23. I am using
 Redhat 7.2 Kernal version 2.4.7

 Raj

 Milt Epstein wrote:
  On Wed, 9 Oct 2002, Turner, John wrote:
 
 
 Are you sure there is something wrong with the binary?  If so, the
 binary maintainers (like Henri Gomez) would probably appreciate and
 email message from you with details.  There's no point in having
 binaries if they aren't usable.  As far as I know, this exact
 problem (same exact error message) was covered by Henri last week.
 
 
  I don't think that there's something wrong with the binary in the
  sense that it's broken, but rather that the particular binary they're
  trying to use was built for/to/with a different version of Apache, and
  hence won't work with it.  The error message seems to indicate it's
  trying to call an Apache function, ap_ctx_get, that doesn't exist in
  the Apache libraries they have.  So they either need a different
  mod_jk binary, or a different Apache.
 
 
 
 -Original Message-
 From: Raj Saini [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 8:59 AM
 To: Tomcat Users List
 Subject: Re: Cannot get mod_jk to work
 
 
 Pls build the mod_jk from source. These some thing wrong with the
 binary. I faced the same problem one week ago.
 
 Raj
 Richard Pfeil wrote:
 
 I am unable to get mod_jk to work.
 
 The following line in httpd.conf:
 LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
 results in this error message:
 Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so
 
 into server:
 
 /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
 ap_ctx_get
 
 What is going wrong?
 
 
 --
 To unsubscribe, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
  Milt Epstein
  Research Programmer
  Integration and Software Engineering (ISE)
  Campus Information Technologies and Educational Services (CITES)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



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






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




Exception starting filter Security Filter

2002-10-09 Thread Dan Payne

I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my commons-logging to
1.0.2 to see if that helps, but to no avail (although it did change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an exception is thrown
when I try to boot up the tomcat instance. It apears in the localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]: Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]: Loading container
servlet invoker
2002-10-09 12:16:35 invoker: init
2002-10-09 12:16:35 jsp: init
2002-10-09 12:16:35 WebappLoader[]: Deploying class repositories to work
directory C:\contexts\sotx\work\Standalone\localhost\_
2002-10-09 12:16:35 WebappLoader[]: Deploy JAR /WEB-INF/lib/adrotate.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\adrotate.jar
2002-10-09 12:16:35 WebappLoader[]: Deploy JAR /WEB-INF/lib/catalina.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\catalina.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-collections.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-digester.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-logging.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR /WEB-INF/lib/dbtags.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\dbtags.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar
to C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
/WEB-INF/lib/jakarta-regexp.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\jakarta-regexp.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/mailer.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\mailer.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/pager-taglib.jar
to C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\pager-taglib.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
/WEB-INF/lib/securityfilter.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\securityfilter.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/struts.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\struts.jar
2002-10-09 12:16:38 WebappLoader[]: Reloading checks are enabled for this
Context
2002-10-09 12:16:38 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2002-10-09 12:16:38 StandardManager[]: Seeding of random number generator
has been completed
2002-10-09 12:16:39 ContextConfig[]: Added certificates - request attribute
Valve
2002-10-09 12:16:39 StandardContext[]: Exception starting filter Security
Filter
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.commons.digester.Digester.init(Digester.java:310)
at
org.securityfilter.config.SecurityConfig.loadConfig(SecurityConfig.java:206)
at org.securityfilter.filter.SecurityFilter.init(SecurityFilter.java:206)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:254)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:314)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon
fig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:30
77)
at

Error with multipartParser

2002-10-09 Thread Sam Seaver

I cannot work this out as I get no more in my error messages despite trying 
to use the usual ways of debugging the bean.  Basically I'm using a bean 
that extends HttpServlet and uses Hunter's MultipartParser, and the error 
ALWAYS occurs when I try to create an instance of the parser...

Error:

root cause

javax.servlet.ServletException: 
com/oreilly/servlet/multipart/MultipartParser
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)

Code:

import java.io.*;
import java.util.*;
import javax.servlet.http.*;
import javax.servlet.*;

import com.oreilly.servlet.*;
import com.oreilly.servlet.multipart.*;

public class SimpleBean extends HttpServlet {

private String fileName;
private String name;
private String type;
private String output;

public SimpleBean(){
fileName=;
name=;
type=;
output=;
}

public void setFileName(String x){
fileName=x;
}

public void setName(String x){
name=x;
}

public void setType(String x){
type=x;
}

public void setOutput(String x){
output=x;
}

public void appendOutput(String x){
output=output+x;
}

public String getFileName(){
return fileName;
}

public String getName(){
return name;
}

public String getType(){
return type;
}

public String getOutput(){
return output;
}

public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException{
setOutput(Demo Parser Upload Bean);
res.setContentType(text/html);
ServletOutputStream out = res.getOutputStream();

try{
MultipartParser mpParser = new MultipartParser(req, 10*1024*1024);
}catch (Exception e){
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);

}



}
}



JC Rules

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




top-level mappings

2002-10-09 Thread Bruce W. Perry

hello all,

  I wondered if someone could clarify the role of the top-level deployment
descriptor ( Tomcat4.0/conf/web.xml , given that Tomcat4.0 is the Tomcat
installation directory), or tell me if this is inaccurate. When Tomcat
starts up, it first establishes default servlet mappings from
Tomcat4.0/conf/web.xml for all web applications loaded into that Tomcat
instance, such as the invoker servlet. Individual deplyment descriptors
from other web applications cannot use the same servlet names, such as
invoker. However, you can override the url-patterns mapped to those
default servlets, and your own url-patterns (such as
url-pattern/servlet/*/url-pattern) will supercede the default patterns.
Is this correct? thanks,

Bruce P


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




JNDI Initial Context, outside webapp

2002-10-09 Thread Luca Zago

Hi,
I noticed that is pratically impossible to retrieve a JNDI resource
outside a webapp.If I need to access my resourse in some classes
istantiated outside a single webapp, I always get an exception.

Name jdbc/myDS is not bound in this Context

I read the docs. If I understand well, the initialContext is read-only,
(for this reason I cannot published a resource there), then the only
context available is java:comp/env, available only insdie a webapp.
I think that a solution could be: since initialContext for sure is
initialized before webapps, if I can publish a resource there, then I
can access this resource outside a webapp. have I understood well, is it
so impossible to publish in the initialContext, like in other
Application servers?
is there a way to access a JNDI resource outside a webapp?
or is it a limitation of the JNDI implementation in Tomcat?

Thank you in advance for suggestions or explanation.


-- 
Luca Zago
Senior IT Developer
_

E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
phone +39.0422.3107
fax   +39.0422.310888
http://www.e-tree.com  http://www.webanana.com
_



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




RE: Cannot get mod_jk to work

2002-10-09 Thread Milt Epstein

On Wed, 9 Oct 2002 [EMAIL PROTECTED] wrote:

 Methinks it would be a good idea to maintain the binaries compiled
 to the latest, greatest version of Apache (namely 1.3.27).

Yes, that makes sense, but it's only part of the equation.  For
example, we don't know what version the person who was having the
problem was using.  And the Apache version is only one of the
variables, what about whether it's EAPI or not, or whether it's built
with mod_ssl, etc.  And I'm guessing it's not feasible for the
Apache/Tomcat/Connectors people to have built versions for all
possible permutations.

Anyway, I was just pointing out where the problem may potentially lie.
(And apparently the possibility that there was indeed something wrong
with the binary hasn't been ruled out either.)


 On Wed, 9 Oct 2002, Turner, John wrote:

  Are you sure there is something wrong with the binary?  If so, the
  binary maintainers (like Henri Gomez) would probably appreciate and
  email message from you with details.  There's no point in having
  binaries if they aren't usable.  As far as I know, this exact
  problem (same exact error message) was covered by Henri last week.

 I don't think that there's something wrong with the binary in the
 sense that it's broken, but rather that the particular binary they're
 trying to use was built for/to/with a different version of Apache, and
 hence won't work with it.  The error message seems to indicate it's
 trying to call an Apache function, ap_ctx_get, that doesn't exist in
 the Apache libraries they have.  So they either need a different
 mod_jk binary, or a different Apache.


   -Original Message-
   From: Raj Saini [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 09, 2002 8:59 AM
   To: Tomcat Users List
   Subject: Re: Cannot get mod_jk to work
  
  
   Pls build the mod_jk from source. These some thing wrong with the
   binary. I faced the same problem one week ago.
  
   Raj
   Richard Pfeil wrote:
I am unable to get mod_jk to work.
   
The following line in httpd.conf:
LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
results in this error message:
Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so
   into server:
/usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
ap_ctx_get
   
What is going wrong?

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Calling session beans from tomcat

2002-10-09 Thread Hanasaki JiJi

How can tomcat call a session bean from BEA or iAS on another physical 
server?

-- 

=   http://www.sun.com/service/sunps/jdc/javacenter.pdf=
=www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone   =
=  =
= Noone wants advice - only corroboration - John Steinbeck   =
====
= Pawns can become Royalty in Life or in Chess   =
= Life, the only game where Royalty can be a pawn,=
=and not even know it =
= Chess, the only game where pawns really are pawns  =



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




RE: Cannot get mod_jk to work

2002-10-09 Thread jcosta


I agree--you could get into a quagmire this way. At this point, I would
just settle for a version compiled against a plain-vanilla Apache 1.3.27
build.


|-+
| |   Milt Epstein |
| |   [EMAIL PROTECTED]|
| |   u   |
| ||
| |   10/09/2002 02:17 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   Tomcat Users List [EMAIL PROTECTED] 
  |
  |   cc:  
  |
  |   Subject:  RE: Cannot get mod_jk to work  
  |
  
--|




On Wed, 9 Oct 2002 [EMAIL PROTECTED] wrote:

 Methinks it would be a good idea to maintain the binaries compiled
 to the latest, greatest version of Apache (namely 1.3.27).

Yes, that makes sense, but it's only part of the equation.  For
example, we don't know what version the person who was having the
problem was using.  And the Apache version is only one of the
variables, what about whether it's EAPI or not, or whether it's built
with mod_ssl, etc.  And I'm guessing it's not feasible for the
Apache/Tomcat/Connectors people to have built versions for all
possible permutations.

Anyway, I was just pointing out where the problem may potentially lie.
(And apparently the possibility that there was indeed something wrong
with the binary hasn't been ruled out either.)


 On Wed, 9 Oct 2002, Turner, John wrote:

  Are you sure there is something wrong with the binary?  If so, the
  binary maintainers (like Henri Gomez) would probably appreciate and
  email message from you with details.  There's no point in having
  binaries if they aren't usable.  As far as I know, this exact
  problem (same exact error message) was covered by Henri last week.

 I don't think that there's something wrong with the binary in the
 sense that it's broken, but rather that the particular binary they're
 trying to use was built for/to/with a different version of Apache, and
 hence won't work with it.  The error message seems to indicate it's
 trying to call an Apache function, ap_ctx_get, that doesn't exist in
 the Apache libraries they have.  So they either need a different
 mod_jk binary, or a different Apache.


   -Original Message-
   From: Raj Saini [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, October 09, 2002 8:59 AM
   To: Tomcat Users List
   Subject: Re: Cannot get mod_jk to work
  
  
   Pls build the mod_jk from source. These some thing wrong with the
   binary. I faced the same problem one week ago.
  
   Raj
   Richard Pfeil wrote:
I am unable to get mod_jk to work.
   
The following line in httpd.conf:
LoadModule jk_module libexec/mod_jk-1.3-noeapi.so
results in this error message:
Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so
   into server:
/usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol:
ap_ctx_get
   
What is going wrong?

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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








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


Too Many Sessions!

2002-10-09 Thread Cindy Ballreich

I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been watching my logs and I'm 
noticing a lot of sessions being created for no apparent reason when there is no user 
activity on the system and no activity (as far as I can tell) in my servlet. Here's a 
sample from the logs...

2002-10-09 11:05:15 SessionListener: sessionCreated('3A797C529EA64DFE2835FC163C808C74')
2002-10-09 11:06:15 SessionListener: sessionCreated('62DB4B6BBFD87BD901CD67925BB7BA95')
2002-10-09 11:07:15 SessionListener: sessionCreated('35769A4EDF71CA68BAA0B14F6B64348B')
2002-10-09 11:08:15 SessionListener: sessionCreated('D6A1C6EC234A30520747F2F5B09DD202')
2002-10-09 11:09:15 SessionListener: sessionCreated('8B0C9B610F981455C3FE6AA2F91E21E7')
2002-10-09 11:10:15 SessionListener: sessionCreated('A1E38AF2FD1205E17D50FF3076AF5321')
2002-10-09 11:11:16 SessionListener: sessionCreated('86F7A09B20EFE4543C616B06CEC466A5')
2002-10-09 11:12:16 SessionListener: sessionCreated('D412A5666498AC7AB6BF399528ECEAE3')
2002-10-09 11:13:16 SessionListener: sessionCreated('C0BE7ED4A39351037FFD3195F2FF')
2002-10-09 11:14:16 SessionListener: sessionCreated('3A0636F5D4D9792046D34A93B73C0ACC')
2002-10-09 11:15:16 SessionListener: sessionCreated('E88FF2298D7B759935645E9C1C42DC12')
2002-10-09 11:16:16 SessionListener: sessionCreated('F7AC12D14074EA64011E68B6F172D11E')
2002-10-09 11:17:16 SessionListener: sessionCreated('E92ECABF368D493D153C47C226FF866F')
2002-10-09 11:18:16 SessionListener: sessionCreated('E9F98E0A3EA854651E1B0D4CCF733FC2')
2002-10-09 11:19:16 SessionListener: sessionCreated('F801FDE7AEEBEE752557FB3643508588')
2002-10-09 11:20:16 SessionListener: sessionCreated('97C59E7E75185C5827FA884FA11F61FC')
2002-10-09 11:21:16 SessionListener: sessionCreated('EF50BAF04FE94D93A24F5CD4520BC613')

So you can see that about once per minute a new session is being created. I can't see 
(from the listeners) that any of these sessions are ever destroyed. Can anyone give me 
an idea of why this is happening and if it's part of a normal Tomcat process, or might 
be the result of something stupid I might be doing in my servlet.

I'd be happy to provide more info.

Thanks

Cindy

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




Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Catalin

you could use a small java code and do the validation via regexp

here is a DEMO:

import java.lang.*;
import java.util.*;
import org.apache.oro.text.regex.*;

public final class isEmail
{
 public static boolean check(String email)
 {
  PatternMatcher matcher;
  PatternCompiler compiler;
  Pattern p1 = null;
  PatternMatcherInput input;
  MatchResult result;

  compiler = new Perl5Compiler();
  matcher = new Perl5Matcher();

  String r1=^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*$;

  try
  {

   p1 =
compiler.compile(r1,Perl5Compiler.MULTILINE_MASK+Perl5Compiler.CASE_INSENSIT
IVE_MASK);
  } catch (MalformedPatternException e)
  {
   return true;
  }

  input = new PatternMatcherInput(email);

  return matcher.contains(input,p1);
 }
}

see: http://jakarta.apache.org/oro/index.html
for more details regarding regexp !


Catalin

- Original Message -
From: Jack Li
To: '[EMAIL PROTECTED]'
Sent: Wednesday, October 09, 2002 3:53 PM
Subject: How to validate email address in JSP by using javax.mail?


Hi, How to validate email address in JSP by using javax.mail?



Thanks,

Jack Li


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




Re: JNDI Initial Context, outside webapp

2002-10-09 Thread Craig R. McClanahan

Please don't cross-post to both TOMCAT-DEV and TOMCAT-USER (especially on
a question like this, which is more user oriented).

On Wed, 9 Oct 2002, Luca Zago wrote:

 Date: Wed, 09 Oct 2002 20:19:18 +0200
 From: Luca Zago [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: JNDI Initial Context, outside webapp

 Hi,
 I noticed that is pratically impossible to retrieve a JNDI resource
 outside a webapp.If I need to access my resourse in some classes
 istantiated outside a single webapp, I always get an exception.

 Name jdbc/myDS is not bound in this Context


This is by design -- webapps are supposed to be designed to be
self-contained.

 I read the docs. If I understand well, the initialContext is read-only,
 (for this reason I cannot published a resource there), then the only
 context available is java:comp/env, available only insdie a webapp.
 I think that a solution could be: since initialContext for sure is
 initialized before webapps, if I can publish a resource there, then I
 can access this resource outside a webapp. have I understood well, is it
 so impossible to publish in the initialContext, like in other
 Application servers?
 is there a way to access a JNDI resource outside a webapp?
 or is it a limitation of the JNDI implementation in Tomcat?

 Thank you in advance for suggestions or explanation.


If you're using Tomcat 4.1, one strategy would be to define your shared
data source in the GlobalJNDIResources section of server.xml, and create
a ResourceLink for each webapp that needs access to that data source.

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html


 --
 Luca Zago
 Senior IT Developer

Craig


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




Re: I need to run a servlet periodically

2002-10-09 Thread Rick Fincher

Hi Filip,

Your servlet can call a class (doesn't have to be a servlet) that sets up a
java.util.timer to run your code as a timerTask.  The servlet can get
parameters from the web.xml file (like how often to execute) and pass that
to your class that controls the timer.

The servlet can pass your class the connection pool info and other needed
session info.

Rick

- Original Message -
From: Cato, Christopher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 9:04 AM
Subject: SV: I need to run a servlet periodically


 What you really need to do is to design your periodical servlet to
implement
 Runnable. Add another servlet that starts the periodical servlet and load
 that servlet during startup. The periodical then does its thing and sleeps
 for x amount of time. Then wakes up and so on...

 /Christopher

 -Ursprungligt meddelande-
 Fran: Raj Saini
 Till: Tomcat Users List
 Skickat: 2002-10-07 23:24
 Amne: Re: I need to run a servlet periodically

 To need the servlet run periodically you need a client calling the
 servlet periodically. Make your client to run periodically and it will
 cause the servlet to run.

 We can suggest you a solution if you let us know what exactly you want
 your servlet to do.

 Raj Saini
 Filip Rachunek wrote:
  Hello,
  is it possible to have a servlet in Tomcat container
  which is invoked automatically each gived time period?
  [e.g. each 10 minutes]  And I would also need this
  special servlet to access other resources of my web
  application [connection pool, ...].
 
  Thanks.
  Filip Rachunek
 
 


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




Which versions ????

2002-10-09 Thread Jean-Baptiste Onofré

Hello all,

i use Tomcat 4.0.4 with Apache 1.3.26 using mod_jk.

On a new developpement computer, can i install Tomcat 4.1.12 with Apache
1.3.26 using mod_jk2 ?
What's the differences/improves between Tomcat 4.0.4 and Tomcat 4.1.12
and between mod_jk and mod_jk2 ?

Thanks for your help,
Best regards
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://lug-beziers.org
[EMAIL PROTECTED]

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




  1   2   >