RE: Tomcat 5.0.18: Error 1053: The service did not respond to...

2004-01-28 Thread SAG - Jose Antonio Tarifa
I have the same situation also on Win 2k.  I tried to uninstall the
service and reinstall it with service.bat in bin directory, but didn't
work.

It depends on JVM parameters? I have J2SE 1.4.2, the last one.


-Mensaje original-
De: Joshi, Vikas [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 27 de enero de 2004 18:01
Para: 'Tomcat Users List'
Asunto: Tomcat 5.0.18: Error 1053: The service did not respond to...

I installed Tomcat 5.0.18 on Win 2K.

When I try to start the service Get following error:

   Could not start Apache Tomcat Service on local computer
   Error 1053: The service did not respond to start or control request
in a
timely manner.

Any ideas ?  Can start tomcat by running startup.bat in a cmd window but
cannot start the service.

-V

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


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



Warning on Tomcat5 Clustering

2004-01-28 Thread muimi admin
Dear All

I try Clustering between 2 hosts using Tomcat5.
When I access one host, I would wait for a moment 
and then get following message.


2004/01/28 16:49:03 org.apache.catalina.cluster.tcp.SocketSender waitForAck
Warning: Wasn't able to read acknowledgement from server in 15000 ms. 
Disconnecting
 socket, and trying again.


What would I do for avid this warning ?
Any advise will welcome.

(Sorry bad English...)


[environment]
+ Fedora1
+ JDK 1.4_2.03
+ Tomcat 5.0.18


[p.s.]
I maybe done that get tcp socket sending between clustering servers.
because I check tcp packet sending using tcpdump.
(or anything bad? I don't know detail for these messages...)


[EMAIL PROTECTED] hoge]# tcpdump port 4001
tcpdump: listening on eth0
17:16:41.114593 192.168.1.21.32865  localhost.localdomain.4001: P 1948109306:19
48109731(425) ack 2688246754 win 5840 nop,nop,timestamp 1372911 627953 (DF)
17:16:41.154382 localhost.localdomain.4001  192.168.1.21.32865: . ack 425 win 7
504 nop,nop,timestamp 630617 1372911 (DF)
17:16:56.124494 192.168.1.21.32865  localhost.localdomain.4001: F 425:425(0) ac
k 1 win 5840 nop,nop,timestamp 1374412 630617 (DF)
17:16:56.124669 192.168.1.21.32866  localhost.localdomain.4001: S 1987471568:19
87471568(0) win 5840 mss 1460,sackOK,timestamp 1374412 0,nop,wscale 0 (DF)
17:16:56.124723 localhost.localdomain.4001  192.168.1.21.32866: S 2731628734:27
31628734(0) ack 1987471569 win 5792 mss 1460,sackOK,timestamp 632114 1374412,no
p,wscale 0 (DF)
17:16:56.124851 192.168.1.21.32866  localhost.localdomain.4001: . ack 1 win 584
0 nop,nop,timestamp 1374412 632114 (DF)
17:16:56.125052 192.168.1.21.32866  localhost.localdomain.4001: P 1:426(425) ac
k 1 win 5840 nop,nop,timestamp 1374412 632114 (DF)
17:16:56.125085 localhost.localdomain.4001  192.168.1.21.32866: . ack 426 win 6
432 nop,nop,timestamp 632114 1374412 (DF)
17:16:56.128685 localhost.localdomain.4001  192.168.1.21.32866: P 1:4(3) ack 42
6 win 6432 nop,nop,timestamp 632114 1374412 (DF)
17:16:56.128848 192.168.1.21.32866  localhost.localdomain.4001: . ack 4 win 584
0 nop,nop,timestamp 1374412 632114 (DF)
17:16:56.164355 localhost.localdomain.4001  192.168.1.21.32865: . ack 426 win 7
504 nop,nop,timestamp 632118 1374412 (DF)



---
Shinji Miyamoto
[EMAIL PROTECTED]


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



Deactivating StandardManager persistence of sessions

2004-01-28 Thread STOCKHOLM, Raymond
Whenever I stop Tomcat (4.1.18), it tries to persist all the sessions currently active.
I am not interrested in this feature,
and since many of the objects stored in the session are not Serializable,
I get a lot of error messages in localhost_log.-mm-dd.txt.

Does anybody know how to deactivate the persistence of sessions done by the 
StandardManager ?


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



RE: tomcat5 in-process (more info for you guys)

2004-01-28 Thread Yiannis Mavroukakis
That's just saying that it tried to guess the path to your JVM shared
library and could not find it.
Make sure that in your [vm:] section you have the following
JVM=/opt/j2sdk1.4.2_03/jre/lib/i386/server/libjvm.so

Of course this is for my JVM, adjust accordingly for yours.

Yiannis

-Original Message-
From: Hamilton Andrew [mailto:[EMAIL PROTECTED]
Sent: 27 January 2004 17:40
To: Tomcat Users List
Subject: RE: tomcat5 in-process (more info for you guys)


I tried that, I ended up with this:

  INFO:  APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError:
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjkjni.so:
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjkjni.so:  undefined symbol:
apr_md5_final

I put the apr libs in my LD_LIBRARY_PATH along with my libjvm.so and I got a
bunch of vm path information (see below a snippet) in my logs that just kept
cycling over and over and filling the logs up, and the process would neither
startup nor shutdown, I had to kill it process by process to get it to
finally stop.  I then just went back to using channelSocket, it works just
fine.

 This just keeps cycling and cycling through the error_log **
[Fri Jan 23 15:29:22 2004] [notice] jk2_init() Found child 18657 in
scoreboard slot 1
[Fri Jan 23 15:29:22 2004] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2_03/jre/bin/classic/libjvm.so
[Fri Jan 23 15:29:22 2004] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2_03/jre/bin/client/jvm.so
[Fri Jan 23 15:29:22 2004] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2_03/jre/lib/i386/classic/libjvm.so
[Fri Jan 23 15:29:22 2004] [notice] jni.guessJvmDll() trying
/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so
[Fri Jan 23 15:29:22 2004] [notice] jni.guessJvmDll() found
/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so in
/usr/java/j2sdk1.4.2_03/jre/lib.
[Fri Jan 23 15:29:22 2004] [notice] vm.init(): Jni lib:
/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so

Then I get this in my catalina.out
***
Jan 23, 2004 3:28:44 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 23, 2004 3:28:44 PM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError:
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjkjni.so:
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjkjni.so: undefined symbol:
apr_md5_final
Jan 23, 2004 3:28:44 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/87  config=/www/apache2/conf/jk2.properties
Jan 23, 2004 3:28:44 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5284 ms


Thanks for taking the time to help me with this...

Drew
-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 12:06 PM
To: 'Tomcat Users List'
Subject: RE: tomcat5 in-process (more info for you guys)


NP. As far as your error is concerned, you can rectify this by adding the
following
option under your [vm:] section:

OPT=-Djava.library.path=/path/to/jkjni.so

And see what other errors it spits back at you :)

-Original Message-
From: Hamilton Andrew [mailto:[EMAIL PROTECTED]
Sent: 27 January 2004 15:33
To: Tomcat Users List
Subject: RE: tomcat5 in-process (more info for you guys)


Thanks, Yiannis.  I'll stop waisting my time trying to figure out why it
won't work.  I was beginning to think I was too ignorant...

Drew

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 4:38 AM
To: 'Tomcat Users List'
Subject: RE: tomcat5 in-process (more info for you guys)


JNI will only work for a single worker model, from my questions to Mladen
Turk,if memory serves me 
right, so JNI won't work on Linux (yet). The good people involved on the
connectors project
however will probably come up with something.

Yiannis

-Original Message-
From: Hamilton Andrew [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 19:30
To: Tomcat Users List
Subject: RE: tomcat5 in-process (more info for you guys)


I'm attempting this on a Linux machine and I keep getting this:

INFO:  APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

I followed the install directions and put the jkjni.so file in
$APACHE_HOME/modules.  Can anyone help me with this?

Thanks,

Drew

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 12:53 PM
To: Tomcat Users List
Subject: Re: tomcat5 in-process (more info for you guys)


now that I have apache started without error
and it would appear that it has tomcat started in-process  (maybe)
I went to a cmd line to start tomcat and received an error that port 8005
is already in use, which a netstat proves to be true.
the only place that port 8005 is configured to be used is in server.xml
for tomcat.   therefore, this lends some credence to 

Help: problem using Tomcat Administrator

2004-01-28 Thread amit varshney
I am using JDBCRealm to store the username and password in the Oracle database. The 
problem is that the user created through Admin are being stored in the 
Tomcat-users.xml instead in the database.How can I store thenm in the database?

Thanx in advance
Amit Varshney

-
Still single? Click here to find the perfect match.

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

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



JspC problem

2004-01-28 Thread Massimo Ferrari
Hello,
I'm trying to precompile my jsps with the JspC ant task.
The problem ist that jspc ignores my jsps directory structure when it
generates the servlet files: the files are flattened.

taskdef classname=org.apache.jasper.JspC name=jasper2
classpathref=jspc.classpath
/taskdef

jasper2
  package=jsps
 validateXml=false
 uriroot=${app.home}/web
 webXmlFragment=${app.home}/generated_web.xml
 outputDir=${app.home}/jsps /

All the jsps are generated to ${app.home}/jsps. Jsps with the same name
but originally in different folders are overwritten.
Thank you for any help!
Massimo


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



deploying parameters using catalina.ant

2004-01-28 Thread Hernani Mourão
hi,

I am trying to use the command org.apache.catalina.ant.DeployTask in ANT to
deploy an application into TomCat using a context xml file. It seems it is
mandatory to issue the path parameter but with a context xml file that
should not be necessary.

I looked on the Tomcat site and I could not find anything on this topic. Can
anyone help me?
Where can I find information about the catalina-ant.jar?


my best regards,
Hernâni


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



Re: Tomcat + Hibernate2 + Security Manager

2004-01-28 Thread Webmaster
Hi !


On Tue, 27 Jan 2004 12:14:16 -0500, Jeanfrancois Arcand [EMAIL PROTECTED] escreveu:

 De: Jeanfrancois Arcand [EMAIL PROTECTED]
 Data: Tue, 27 Jan 2004 12:14:16 -0500
 Para: Tomcat Users List [EMAIL PROTECTED]
 Assunto: Re: Tomcat + Hibernate2 + Security Manager
 
 
 
 Webmaster wrote:
 
 Hi all,
 
 I know this is a little bit out of topic, but the general concept is useful for 
 everybody.
 
 I run tomcat with security manager for a dozen users. Recently, people started to 
 use the hibernate 2 which requires some funky permissions.
 
 I had to put these lines in the 'global' permission to make it work:
 
 grant {
 
 ...
 
   permission java.lang.RuntimePermission accessDeclaredMembers;
   permission java.lang.reflect.ReflectPermission suppressAccessChecks;
   permission java.lang.RuntimePermission defineCGLIBClassInJavaPackage;
 
 ...
 }
 
 Note: I DID test using a codebase like:
 
 grant codeBase file:/home//client/public_html/WEB-INF/lib/hibernate2.jar!/- { 
 
 
 but the classes hibernate creates after reflection stop obeying the security 
 manager.
   
 
 Do you have the exception? Which Tomcat version are you using?

I'm using 4.1.29. The classes that hibernate creates dinamically are the ones that 
don't follow the codebase anymore, it's like they have a 'null' codebase after they 
are created.

 Are there any security risks on a security setup with those 3 lines for all classes 
 in the JVM ?
   
 
 
 Yes. It will now allow a Servlet to load tomcat internal classes and 
 maybe do malicious things. 

Right now, my clients don't have permissions to read the classes in /server/lib 
directory ( I don't give file io permission to this directory, only to /common/lib ). 
Would that be enough to stop these malicious things ?

 -- Jeanfrancois
 
 
 Thanks
 Renato.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

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



How to get two version of xalan/xerces together in Tomcat?

2004-01-28 Thread Salvador Santander Gutierrez
Hello.
I've to install a web application wich uses a xalan/xerces version different
of the installed in Tomcat. I don´t want to replace the libraries in
endorsed directories because other applications only can use the installed
version of xerces/xalan in Tomcat.
Is there any way to do that this application take the new libraries of
xalan/xerces from other directories?
We've Tomcat 4.1.27
Thanks.


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



RE: mod_jk problem

2004-01-28 Thread garaz_user
Hello,

I put the test.jsp in ROOT folder, and I put JKMount in
the mod_jk.conf file, which I probably shound't do but
all is working now (except apache integration :'( ) so
I'm sataisfied with the tomcat setup. Now if I just
could get it to intergrate with apache it would make my
day. Becuase port 8080 is blocked by my firewall and I
can't open that port until atleast a week from now. So
right now I'm using links to do all my jsp test ^^.

./Lukas


 Guy Rouillier [EMAIL PROTECTED]:

 Lukas Larsson wrote:
  Thx for the replies. I'm using 4.1.29. I haven't played
  anything with the structure at all. The strange
thing is that
  when I put the test.jsp file in the examples folder in
  webapps I can display it and it works like a charm,
but if I
  put it anywhere else it wont work. Putting it in
ROOT does
  not help this at all.
  
  So what permissions do I need to have on the file?
  
  this is my web.xml file
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app PUBLIC -//Sun Microsystems,
Inc.//DTD Web
  Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app display-nameWelcome to
Tomcat/display-name
description
   Welcome to Tomcat
/description
  /web-app
  
  I haven't changed anything in it.
  
  Adding JkMount /*.jsp aj13 to my mod_jk.conf had
the wanted
  effect. I can now see
http://localhost:8080/test.jsp . But
  there's still no formatation on test.jsp on port 80 :(,
  atleast now we know that tomcat is working properly.
  
  Guy Rouillier said before that I have to make sure that
  'tomcat is set up properly by going directly to it
for the
  JSP page, bypassing Apache', how would I check
this? And how
  do I set it up?
 
 You accomplished that when you went to :8080.  So now
you know Tomcat is
 working.  Where did you put test.jsp when you
successfully viewed it at
 http://localhost:8080/test.jsp?  If you have an
unaltered Tomcat
 installation, you would have had to place test.jsp in
the ROOT
 directory.
 
 How are you including those JkMount's into Apache's
httpd.conf?
 
  
  ./Lukas
  
  - Original Message -
  From: Jeff Tulley [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, January 26, 2004 11:25 PM
  Subject: Re: mod_jk problem
  
  
  Lukas,
 I haven't been following this thread too
closelyso maybe I've
  missed some of your earlier explanation... If you
are going through
  port 8080, there is no mod_jk or mod_jk2 involved,
and the problem is
  probably elsewhere - for instance maybe your web
application is not
  set up properly(wrong directory structure?), or
there are file
  permission problems on your directories or your
web.xml file.  I have
  a coworker who had these type of file permission
problems twice in
  the last few weeks, and it was not immediately
obvious that this was
  the problem.  Or maybe your web.xml is not valid.
  
  When you go back to using mod_jk, be aware that
the command in
  apache for mod_jk is more like: 
  
  JkMount /*.jsp ajp13
  
  You do not embed this in a location tag necessarily.
  
  But get things working through port 8080 first
before tackling Apache
  integration.  Like you said you just want to get
started with JSP
  without the battle. 
  
  
  [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
  Ok, now I'm really getting confused, I put the
test.jsp file in
  $CATALINE_HOME/webapps/test.jsp and when doing
  http://localhost:8080/test.jsp in links (can't
open my 8080 port
  yet...) I get a file cannot be found message, but
when I look at the
  example folder they show as they should. Anyone
who knows what I'm
  doing wrong? 
  
  Also when adding
  
  Location /*.jsp
  JkUriSet worker ajp13:localhost:8009
  /Location
  
  to my http.conf file I got an error message that
said that apache
  couldn't recongnixe JkUriSet. Is that because
JkUriSet is only
  availabel in jk2 or??? 
  
  ./Lukas
  
  - Original Message -
  From: Guy Rouillier [EMAIL PROTECTED]
  To: Tomcat Users List
[EMAIL PROTECTED]
  Sent: Monday, January 26, 2004 9:39 PM
  Subject: RE: mod_jk problem
  
  
  Lukas Larsson wrote:
  Thx for the reply. I folloes your second link and
found this site
 
(http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
  tml) on how to configure mod_jk but I still get
the same problem.
  Apache says that it is working with mod_jk, but
it does not
  translate *.jsp pages (see
  http://garazdawi.homeftp.net/test.jsp for
  an  example
  of what I mean). Can someone please tell me what I'm
  doing wrong. I would really want to get started
with jsp without
  having to battle with mod_jk.
  
  Make sure your Tomcat is set up properly by going
directly to it for
  the JSP page, bypassing Apache, e.g.,
  http://garazdawi.homeftp.net:8080/test.jsp
(assuming you left Tomcat
  on the default HTTP port.)  If that doesn't work,
then the problem
  is in Tomcat configuration not in mod_jk.
  
  Jeff Tulley  ([EMAIL PROTECTED])
  (801)861-5322
  Novell, Inc., The Leading Provider of Net 

JK: Empty parameters stripped from the request

2004-01-28 Thread jmorace
Hi,

I've noticed that empty request parameters are being stripped as they
go through the JK connector.

For example, if I use the URL http://localhost/Test.jsp?a=1b=c=3, the
parameter b will be null.  When not going through the connector, the
parameter b is empty string.  I've tested this with iplanet using the JK
1.2.4 connector and on both Apache 1.3 and IIS using the JK 2.0.2
connector.

Has anyone else seen this problem?  Is there a way to prevent these
parameters from being stripped?

I've included a sample JSP page to demonstrate this error below.

Thanks,

Jonathan


 Test.jsp 

%-- Try going to this page with the URL http://localhost/Test.jsp?a=1b=c=3 --%
%@ page import=java.util.Enumeration %
html
%
  Enumeration parameterNames = request.getParameterNames();
  while (parameterNames.hasMoreElements()) {
  String parameterName = (String)parameterNames.nextElement();
  String[] parameterValues = request.getParameterValues(parameterName);
  String parameterValueString = parameterValues[0];
  for (int i = 1; i  parameterValues.length; i++) {
  parameterValueString += , ;
  parameterValueString += parameterValues[i];
  }
  out.println(parameterName +  =  + parameterValueString + br);
  }
%
/html

--

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



Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem

2004-01-28 Thread Tim Funk
Does the servlet ever set the character encoding? If so that might be your 
problem.

-Tim

David Li wrote:
The code here fixed the Coyote Response object but the real problem 
seems to be in the Catalina BaseResponse object which the charset is 
appended.

David

On Jan 26, 2004, at 9:39 PM, Tim Funk wrote:

Its a fixed bug.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970

-Tim

David Li wrote:

Hi,
  I don't subscribe to the list so direct reply to [EMAIL PROTECTED] 
would be greatly appreciated.
  We recently detect a problem with sending generated PDF to Acrobat 
6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset 
is automatically appended to it. This causes problem with Acrobat 
6.0.1's IE plug-in. So far, we have summarize the following conditions:
1. ContentType: application/pdf
This works fine.
2. ContentType: application/pdf;
This shows blank pages
3. ContentType: application/pdf;charset=UTF-8
This shows error message of corrupted PDF file. However, if we 
download it, it can be open correctly with Arcobat 6.0.1. Only 
plug-in complaining the problem.
  I have tried to contact Adobe about this but, of course, get no 
response. I think this is more of a problem of Adobe's plug-in 
implementation rather then Tomcat's problem. I have check the source 
codes, there is no way to disable appending charset if setContentType 
is called.
  Any suggestion is appreciated.


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


RE: How does JNDI work if i dont have directory server?

2004-01-28 Thread Shapira, Yoav

Howdy,
Tomcat has an internal JNDI provider as mandated by the Servlet Specification.  That's 
a directory server for internal services listed in tomcat's server.xml file.  If you 
need something more, e.g. a directory or JNDI server accessible from outside clients, 
you need to look elsewhere like a full-fledged J2EE container or a stand-alone JNDI 
provider.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 1:29 PM
To: '[EMAIL PROTECTED]'
Subject: How does JNDI work if i dont have directory server?

Hi guys,
often, where have to work with JNDI whenever any app needs to use
Datasource. But, where is the directory server at TomCat environment?
Thanks in advance,

José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social
Dataprev - 21-2528-7901



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: error-page for exception-code

2004-01-28 Thread Merrill Cornish
Ankur

Replace the exception-code with the error-code tag and you'll be in
business.
 

Agh!  (But thanks.)

Merrill

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


RE: jk_nt_service.exe

2004-01-28 Thread Krell, Andrew
The file you are looking for is Tomcat.exe in the bin directory.  You have
to run it from the command line as tomcat.ext -install and then add
service_name JVM_Library (JVM_Option) replace those items with the proper
instructions.  Browse to the directory in the command line and type
tomcat.exe -h to get the full list of commands.  You can do a internet
search to find common JVM options to include.  But if you don't know what
you are doing, it really is easier to just get the binary installer and
check the NT Service option during the install process.

Regards
Andrew

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 11:14 PM
To: [EMAIL PROTECTED]
Subject: Re: jk_nt_service.exe


Jeff Godin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I am having a terrible time finding this file. I am currently using 
 Tomcat version 4.1.29 and would like to set it up as an NT service. 
 Any help locating this file would be greatly appreciated.



It in the /bin/win32/i386/ directory for the Tomcat 3.3 downloads.  However,
I'd strongly recommend using procrun (the Service daemon for TC 5) instead.

 Jeff




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

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



RE: Off Topic - RequestDispatcher

2004-01-28 Thread Shapira, Yoav

Howdy,
Read their JavaDoc carefully: their base for name resolution is
different.  When you use just finyear.jsp without a leading / or another
path indicator, you're looking relatively.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: N.B.Bopanna [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 7:36 AM
To: [EMAIL PROTECTED]
Subject: Off Topic - RequestDispatcher

Hi all ,
i want to forward the control from a servlet to a jsp file using
RequestDispatcher.

the following code works:-

RequestDispatcher rd=request.getRequestDispatcher(finyear.jsp);
rd.forward(request,response);

and this does not work:-

RequestDispatcher rd=getServletConfig().getServletContext
().getRequestDispatcher(finyear.jsp);
rd.forward(request,response);

can any one please tell me why?
Thanks in advance
Bopanna



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: design issue .....

2004-01-28 Thread Graham Reeds
We have a issue.  Solved by having Oracle store all 155 million images and
serve them as required.  However, we don't use Tomcat instead having a
custom app get them from the database on the clients pc.

--

Graham Reeds,
[EMAIL PROTECTED] | http://omnieng.co.uk


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



Mail Transaction Failed

2004-01-28 Thread drweb
Message sent from [EMAIL PROTECTED]
infected by virus and has not been delivered.
Viruses:
infected with Win32.HLLM.MyDoom.32768

Original message was stored in the archive.
To receive original message please contact postmaster:
[EMAIL PROTECTED]

Archive record: archive.msg.uMqC4A
Antivirus service provided by Dr.Web Daemon (www.sald.com)

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



!!! Virus alerT !!!

2004-01-28 Thread Mail Antivirus System
  VIRUS ALERT   
==
The following message had attachment(s) which contained suspicious objects:

Sender : [EMAIL PROTECTED]
Recipients : [EMAIL PROTECTED]
Date   : Wed, 28 Jan 2004 17:01:35 +0300
Subject: hello
Message-ID : not present


For recipients protection, the original message has been
destroyed. The originator of the message has been notified.
SENDER, PLEASE CHECK YOUR COMPUTER WITH RELIABLE ANTIVIRUS SOFTWARE!

   VIRUS REPORT 

document.zip/document.pif   infected: I-Worm.Novarg
disinfection failed: I-Worm.Novarg

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



RE: Deactivating StandardManager persistence of sessions

2004-01-28 Thread Shapira, Yoav

Howdy,

Does anybody know how to deactivate the persistence of sessions done by
the
StandardManager ?

Anybody who's read the Manager configuration reference documentation
knows:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ZUSTELLUNGSFEHLER: Virus im Dateianhang

2004-01-28 Thread Automatische Verständigung
GROUP securiQ.Watchdog
Server: ATRVSI50/RVS/Raiffeisen Sbg.
---

Ein Virus wurde im Dateianhang gefunden. Versuchen Sie, den virenfreien
Dateianhang erneut an Ihr Mail anzuhängen und zu versenden.
---
Mail-Info

From:   [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Rec.: [EMAIL PROTECTED]
Date:   28.01.2004 14:31:24
Subject:

---
Datei enthaelt Viren body.scr






Re: design issue .....

2004-01-28 Thread Graham Reeds
 We have a issue.  Solved by having Oracle store all 155 million images and
 serve them as required.  However, we don't use Tomcat instead having a
 custom app get them from the database on the clients pc.

Correction: We've had that issue.

Looks like I lost the power of speech momentarily:-)

Point of the post was to say that Oracle does a very good job of holding a
large number of images and serving them up in a timely fashion.  I think we
managed something like 12mbytes a second for a single user.

G.


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



RE: jk2 and ip-based vhosts

2004-01-28 Thread Cox, Charlie
You need to specify each path you want to map for each virtual host in your
workers2.properties. 

i.e.
[uri:10.1.2.3/jkstatus/*]

Charlie

 -Original Message-
 From: Brennon Obst [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 27, 2004 7:56 PM
 To: 'Tomcat Users List'
 Subject: RE: jk2 and ip-based vhosts
 
 This is a current issue, there is little documentation for jk2 right
 now. I had some luck with this tutorial;
 
 Tutorial for mod_jk-2.0.42 (aka JK)
 -
 http://raibledesigns.com/tomcat/
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
 (Official )
 
 Also if you post to Bill Barker, he is very helpful.
 
 Regards,
 
 
 
 Brennon Obst
 
 
 Java Security Programmer
 iEnergy Main Branch
 39 Melbourne St. / Brisbane
 p. (617) 3846-
 [EMAIL PROTECTED]
 
 
 
 
 
 -Original Message-
 From: Jim Hopp [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 28 January 2004 5:09 AM
 To: Tomcat Users List
 Subject: jk2 and ip-based vhosts
 
 
 I'm attempting to set up apache 2.0 and jk2 to use IP-based virtual
 hosts, with no success.  I'd love it if someone on the list could point
 out what I'm doing wrong (or point me to some doc that shows how to do
 this - I've had no luck googling).
 
 I've got apache up and running on a machine with two IP addresses.  I'd
 like to run two tomcat instances, with exactly the same URI mapping, one
 
 for each IP address.  The problem is that jk2 doesn't appear to take the
 
 IP address of the request into account - it simply routes the request to
 
 the JkUriSet defined last in the httpd.conf file.
 
 Google searches show examples of this working for jk, but I cannot find
 any examples of this for jk2.  If I can't figure this out I may have to
 go back to jk.
 
 Below are my jk2.conf, workers2.properties, and ssl.conf (which is
 included into httpd.conf) files.
 
 I'm running Apache 2.0.45, Tomcat 4.1.24, and jk2 from
 jakarta-tomcat-connectors-4.1.24-src on RedHat 9.
 
 jk2.conf:
 JkOptions -ForwardKeySize -ForwardDirectories -ForwardURICompat
 +ForwardURICompatUnparsed
 JkWorkersFile conf/workers2.properties
 JkLogFile /var/log/httpd/jk2.log
 JkLogLevel debug
 JkLogStampFormat [%d/%b/%Y %H:%M:%S] 
 # JkRequestLogFormat set the request format
 JkRequestLogFormat %w %V %T
 
 workers2.properties:
 [logger]
 level=DEBUG
 
 [shm:]
 info=Scoreboard.  Required for reconfig info and status
 file=/var/log/httpd/jk2.shm size=100 debug=0 disabled=0
 
 [workerEnv:]
 info=Global Server options
 timing=0
 debug=1
 
 [channel.socket:68.166.222.75:8019]
 info=Ajp13 forwarding over socket for nywdev
 debug=1
 host=68.166.222.75
 tomcatId=dev1:8019
 
 [channel.socket:68.166.222.77:8029]
 info=Ajp13 forwarding over socket for nywdev2
 debug=1
 host=68.166.222.77
 tomcatId=dev2:8029
 
 [status:]
 info=Status worker, displays runtime info
 
 ssl.conf vhost defns:
 
 VirtualHost 68.166.222.77:443
 TransferLog /var/log/httpd/dev.access_log
 
 SSLEngine on
 SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:!SSLv2
 SSLCertificateFile /usr/local/etc/httpd/conf/httpd.crt
 SSLCertificateKeyFile /usr/local/etc/httpd/conf/httpd.key
 
 SetEnvIf User-Agent .*MSIE.* \
   nokeepalive ssl-unclean-shutdown \
   downgrade-1.0 force-response-1.0
 
 CustomLog /var/log/httpd/ui.ssl_request_log \
%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b
 
 Directory /
Order Deny,Allow
Deny from All
 /Directory
 
 Location /jkstatus/*
SSLRequireSSL
Order Allow,Deny
Allow from All
JkUriSet worker status:
 /Location
 
 Location /
SSLRequireSSL
Order Allow,Deny
Allow from All
JkUriSet worker ajp13:68.166.222.77:8029
 /Location
 
 /VirtualHost
 
 VirtualHost 68.166.222.75:443
 TransferLog /var/log/httpd/ui.access_log
 
 SSLEngine on
 SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:!SSLv2
 SSLCertificateFile /usr/local/etc/httpd/conf/httpd.crt
 SSLCertificateKeyFile /usr/local/etc/httpd/conf/httpd.key
 
 SetEnvIf User-Agent .*MSIE.* \
   nokeepalive ssl-unclean-shutdown \
   downgrade-1.0 force-response-1.0
 
 CustomLog /var/log/httpd/ui.ssl_request_log \
%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b
 
 Directory /
Order Deny,Allow
Deny from All
 /Directory
 
 Location /jkstatus/*
SSLRequireSSL
Order Allow,Deny
Allow from All
JkUriSet worker status:
 /Location
 
 Location /
SSLRequireSSL
Order Allow,Deny
Allow from All
JkUriSet worker ajp13:68.166.222.75:8019
 /Location
 
 /VirtualHost
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem with cc-gcc compiling mod_jk in Solaris 9

2004-01-28 Thread Mauricio Cadima
Mark
I really appreciate your help.
I execute the steps you describe before send my question, I was using
Apache 1.3, so I updated to 2.0 and I did not have any problem. 

Anyway I have a doubt, you said that is needed add laprutil-0 to
JK_LDFLAGS before run make, but I was able to compile the mod_jk2.so
with and without this option, what is this for?

Thanks




-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 4:46 PM
To: Tomcat Users List
Subject: Re: Problem with cc-gcc compiling mod_jk in Solaris 9 

Mauricio,

Are you trying to compile mod_jk, or mod_jk2?

Instead of creating a symbolic link, do the following:

1. Make sure that gcc is in your path (it's usually
installed in /opt/something if I remember
correctly).

2. Set an environment variable:

setenv CC=gcc  (C shell)
export CC=gcc (Bash shell)

3. If you compiled apache yourself, use the same
CPPFLAGS environment variable for this compilation.

4. The configure script will attempt to find java, so
set the JAVA_HOME environment variable to point to
your desired location.

5. For mod_jk2, download the 2.0.2 source, gunzip, and
untar it.

6. Go to the jk/native2 directory and run the
following configure command:

./configure --with-apxs2=path_to_your_apxs_file \
--with-tomcat41=path_to_your_tomcat \
--with-jni

6i. If you have the Perl regular expresions library
installed, use the following configure command

./configure --with-apxs2=path_to_your_apxs_file \
--with-tomcat41=path_to_your_tomcat \
--with-jni --with-pcre

7. Fix a line in server/apache2/Makefile.  The line:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix

should read:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix -laprutil-0

8. Run make

9. The module (mod_jk2.so) and jkjni.so should be in 

../build/jk2/apache2/

5a. For mod_jk, download the 1.25 source, gunzip it,
and untar it.

6a. Go to the jk/native directory and run the
following configure command:

./configure --with-apxs=path_to_your_apxs_file \
--with-jni

7a. Run make

8a. The module (mod_jk.so) should be in apache2/

9a. The jni component (jkjni_cb.so) should be in jni/

That all being said, I've not used the mod_jk.so or
jni component much.  I use mod_jk2.so and jkjni.so on
Linnux, and mod_jk2.dll and jkjni.dll on Windows/2000.

Hope this helps you get started.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



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



Re: JspC problem

2004-01-28 Thread David Ramsey
I don't claim to be an Ant master but from first look, Ant appears
doing exactly what you have told it to do. You may want to look at the
jspC task documentation in the Ant manual. Additionally, I believe
destdir attribute is required, even if you specify uribase attribute.


See: http://ant.apache.org/manual/OptionalTasks/jspc.html


--- Massimo Ferrari [EMAIL PROTECTED] wrote:
 Hello,
 I'm trying to precompile my jsps with the JspC ant task.
 The problem ist that jspc ignores my jsps directory structure when it
 generates the servlet files: the files are flattened.
 
 taskdef classname=org.apache.jasper.JspC name=jasper2
 classpathref=jspc.classpath
 /taskdef
 
 jasper2
   package=jsps
  validateXml=false
  uriroot=${app.home}/web
  webXmlFragment=${app.home}/generated_web.xml
  outputDir=${app.home}/jsps /
 
 All the jsps are generated to ${app.home}/jsps. Jsps with the same
 name
 but originally in different folders are overwritten.
 Thank you for any help!
 Massimo
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



JDBC/DBCP problems

2004-01-28 Thread Burgess, Jay S
I'm obviously missing something important with regards to moving our
database/JDBC connectivity to use JNDI DataSource/DBCP.  I've read and
re-read the docs, looked at every related message in the archive, and
Google'd every set of keywords I can think of, but still no luck.
Here's the issue:

Tomcat version is 4.1.29 on Windows XP.  I'm attempting to connect to
SQL Server.  The JDBC driver JARs are in CATALINA_HOME\common\lib, and
since everything works fine if I manually load the driver via
Class.forName(), I don't think my problem is related to my driver files
location.  When attempting to use getConnection(), however, I get the
dreaded Cannot create JDBC driver of class '' for connect URL 'null',
cause: No suitable driver error.  The highlights of my configuration
are below.

-
SERVER.XML
-
GlobalNamingResources
Resource name=jdbc/mydb auth=Container type=javax.sql.DataSource
description=The database. /
ResourceParams name=jdbc/mydb
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameurl/name
valuejdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB/va
lue
/parameter
parameter
namedriverClassName/name
valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
nameusername/name
valueMyUsername/value
/parameter
parameter
namepassword/name
valueMyPassword/value
/parameter
...
/GlobalNamingResources

-
WEB.XML
-
resource-ref
descriptionSome description. /description
res-ref-namejdbc/mydb/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

-
In my servlet's init():
-
Context initialContext = new InitialContext();
Context envContext = (Context) initialContext.lookup(java:comp/env);
DataSource dataSource = (DataSource) envContext.lookup(jdbc/mydb);
Connection conn = dataSource.getConnection(); // throws exception

-
Further info:
-
Adding the following line after acquiring dataSource above, I get class

org.apache.commons.dbcp.BasicDataSource:

System.out.println(dataSource.getClass());

And if I add the following, I get
[EMAIL PROTECTED]:

System.out.println((org.apache.commons.dbcp.BasicDataSource)
dataSource);

So, since it looks like a valid BasicDataSource object, I tried the
following, but get null back:

System.out.println(((org.apache.commons.dbcp.BasicDataSource)
dataSource).getUrl());

This seems to indicate that the object isn't initialized?

Turning on debug for the relevant listeners (NamingContextListener and
GlobalResourcesLifecycleListener), I see the following related info in
my Tomcat console window, which looks good from what I understand:

Jan 28, 2004 9:06:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
NamingContextListener[/]: Creating JNDI naming context
NamingContextListener[/]: Resource parameters for mydb =
ResourceParams[name=mydb, parameters=
{url=jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB,
maxIdle=4,
maxActive=8, 
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver, 
maxWait=1, 
removeAbandoned=true, 
username=MyUsername, 
factory=org.apache.commons.dbcp.BasicDataSourceFactory, 
logAbandoned=true, 
removeAbandonedTimeout=60, 
password=MyPassword}]
NamingContextListener[/]: Adding resource ref mydb
NamingContextListener[/]: ResourceRef[
className=javax.sql.DataSource,
factoryClassLocation=null,
factoryClassName=org.apache.naming.factory.ResourceFactory,
{type=description,content=The database.},
{type=scope,content=Shareable},
{type=auth,content=Container},
{type=url,content=
jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB},
{type=maxIdle,content=4},
{type=maxActive,content=8},
{type=driverClassName,content=com.microsoft.jdbc.sqlserver.SQLServerDriv
er},{type=maxWait,content=1},
{type=removeAbandoned,content=true},
{type=username,content=MyUsername},
{type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},
{type=logAbandoned,content=true},
{type=removeAbandonedTimeout,content=60},
{type=password,content=MyPassword}]
GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI
Resources in Context '' [EMAIL PROTECTED]
GlobalResourcesLifecycleListener: Processing resource mydb
java.lang.String
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29

Any help would be much appreciated.

Jay

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



RE: JDBC/DBCP problems

2004-01-28 Thread Chris Ward

Hi Jay,

I don't know if it's of any help at all, but I went through
something similar.

What I found to be my problem was that my URLs for invoking
JSPs/servlets did not always specify my Tomcat Context and
all the DataSource stuff was set up in my context (in server.xml
and the associated web.xml).

Since I had pointed the default Context / to my Context
(/hal) by setting it's docBase in server.xml most of the requests
appeared to be working.

For example, if I asked for 
{host}/jsp/myJSP.jsp 
I would get in fact reach the JSP at...
{host}/hal/jsp/myJSP.jsp) 
but the JNDI stuff did not get picked up.  Leaving the /hal
out of my request meant it never saw the /hal stuff in server.xml
which is where my DataSource stuff lives.

I cleaned up my URL in links/forms etc. and seemed to get on okay.

Hope it helps a bit.


Best regards
Chris


 -Original Message-
 From: Burgess, Jay S [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 28, 2004 3:36 PM
 To: [EMAIL PROTECTED]
 Subject: JDBC/DBCP problems
 
 
 I'm obviously missing something important with regards to 
 moving our database/JDBC connectivity to use JNDI 
 DataSource/DBCP.  I've read and re-read the docs, looked at 
 every related message in the archive, and Google'd every set 
 of keywords I can think of, but still no luck. Here's the issue:
 
 Tomcat version is 4.1.29 on Windows XP.  I'm attempting to 
 connect to SQL Server.  The JDBC driver JARs are in 
 CATALINA_HOME\common\lib, and since everything works fine if 
 I manually load the driver via Class.forName(), I don't think 
 my problem is related to my driver files location.  When 
 attempting to use getConnection(), however, I get the dreaded 
 Cannot create JDBC driver of class '' for connect URL 'null',
 cause: No suitable driver error.  The highlights of my 
 configuration are below.
 
 -
 SERVER.XML
 -
 GlobalNamingResources
 Resource name=jdbc/mydb auth=Container 
 type=javax.sql.DataSource description=The database. /
 ResourceParams name=jdbc/mydb
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 nameurl/name 
 valuejdbc:microsoft:sqlserver://###.###.###.###:1433;Databas
 e=MyDB/va
 lue
 /parameter
 parameter
 namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
 nameusername/name
 valueMyUsername/value
 /parameter
 parameter
 namepassword/name
 valueMyPassword/value
 /parameter
 ...
 /GlobalNamingResources
 
 -
 WEB.XML
 -
 resource-ref
 descriptionSome description. /description
 res-ref-namejdbc/mydb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 -
 In my servlet's init():
 -
 Context initialContext = new InitialContext();
 Context envContext = (Context) initialContext.lookup(java:comp/env);
 DataSource dataSource = (DataSource) 
 envContext.lookup(jdbc/mydb); Connection conn = 
 dataSource.getConnection(); // throws exception
 
 -
 Further info:
 -
 Adding the following line after acquiring dataSource above, I 
 get class
 
 org.apache.commons.dbcp.BasicDataSource:
 
 System.out.println(dataSource.getClass());
 
 And if I add the following, I get
 [EMAIL PROTECTED]:
 
 System.out.println((org.apache.commons.dbcp.BasicDataSource)
 dataSource);
 
 So, since it looks like a valid BasicDataSource object, I 
 tried the following, but get null back:
 
 System.out.println(((org.apache.commons.dbcp.BasicDataSource)
 dataSource).getUrl());
 
 This seems to indicate that the object isn't initialized?
 
 Turning on debug for the relevant listeners 
 (NamingContextListener and GlobalResourcesLifecycleListener), 
 I see the following related info in my Tomcat console window, 
 which looks good from what I understand:
 
 Jan 28, 2004 9:06:11 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 NamingContextListener[/]: Creating JNDI naming context
 NamingContextListener[/]: Resource parameters for mydb = 
 ResourceParams[name=mydb, parameters= 
 {url=jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB,
 maxIdle=4,
 maxActive=8, 
 driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver, 
 maxWait=1, 
 removeAbandoned=true, 
 username=MyUsername, 
 factory=org.apache.commons.dbcp.BasicDataSourceFactory, 
 logAbandoned=true, 
 removeAbandonedTimeout=60, 
 password=MyPassword}]
 NamingContextListener[/]: Adding resource ref mydb
 NamingContextListener[/]: ResourceRef[ 
 className=javax.sql.DataSource, factoryClassLocation=null, 
 factoryClassName=org.apache.naming.factory.ResourceFactory,
 

Problem whit connector ajp13

2004-01-28 Thread Abimelec
I am using tomcat 4.01 on winXP with ajp13 connector. and too i am using IIS
5.0, my problem is when open page on IIS, in the tomcat console show a
message [ajp13] bad read:-103.

what it is significant of this error?.
what could be the soluction?.

thanks.


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



RE: JDBC/DBCP problems

2004-01-28 Thread Burgess, Jay S
Thanks for the feedback.  Maybe my problem does have something to do
with context visibility, but since I'm defining the resource within
SERVER.XML's GlobalNamingResources, I was under the impression that
these resources were available to all contexts.   

I'll keep plugging away at it with your comments in mind, see if I can
uncover anything further, and see if anyone else replies.

Thanks.

Jay

-Original Message-
From: Chris Ward [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 10:00 AM
To: Tomcat Users List
Subject: RE: JDBC/DBCP problems


Hi Jay,

I don't know if it's of any help at all, but I went through
something similar.

What I found to be my problem was that my URLs for invoking
JSPs/servlets did not always specify my Tomcat Context and
all the DataSource stuff was set up in my context (in server.xml
and the associated web.xml).

Since I had pointed the default Context / to my Context
(/hal) by setting it's docBase in server.xml most of the requests
appeared to be working.

For example, if I asked for 
{host}/jsp/myJSP.jsp 
I would get in fact reach the JSP at...
{host}/hal/jsp/myJSP.jsp) 
but the JNDI stuff did not get picked up.  Leaving the /hal
out of my request meant it never saw the /hal stuff in server.xml
which is where my DataSource stuff lives.

I cleaned up my URL in links/forms etc. and seemed to get on okay.

Hope it helps a bit.


Best regards
Chris


 -Original Message-
 From: Burgess, Jay S [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 28, 2004 3:36 PM
 To: [EMAIL PROTECTED]
 Subject: JDBC/DBCP problems
 
 
 I'm obviously missing something important with regards to 
 moving our database/JDBC connectivity to use JNDI 
 DataSource/DBCP.  I've read and re-read the docs, looked at 
 every related message in the archive, and Google'd every set 
 of keywords I can think of, but still no luck. Here's the issue:
 
 Tomcat version is 4.1.29 on Windows XP.  I'm attempting to 
 connect to SQL Server.  The JDBC driver JARs are in 
 CATALINA_HOME\common\lib, and since everything works fine if 
 I manually load the driver via Class.forName(), I don't think 
 my problem is related to my driver files location.  When 
 attempting to use getConnection(), however, I get the dreaded 
 Cannot create JDBC driver of class '' for connect URL 'null',
 cause: No suitable driver error.  The highlights of my 
 configuration are below.
 
 -
 SERVER.XML
 -
 GlobalNamingResources
 Resource name=jdbc/mydb auth=Container 
 type=javax.sql.DataSource description=The database. /
 ResourceParams name=jdbc/mydb
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 nameurl/name 
 valuejdbc:microsoft:sqlserver://###.###.###.###:1433;Databas
 e=MyDB/va
 lue
 /parameter
 parameter
 namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
 nameusername/name
 valueMyUsername/value
 /parameter
 parameter
 namepassword/name
 valueMyPassword/value
 /parameter
 ...
 /GlobalNamingResources
 
 -
 WEB.XML
 -
 resource-ref
 descriptionSome description. /description
 res-ref-namejdbc/mydb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 -
 In my servlet's init():
 -
 Context initialContext = new InitialContext();
 Context envContext = (Context) initialContext.lookup(java:comp/env);
 DataSource dataSource = (DataSource) 
 envContext.lookup(jdbc/mydb); Connection conn = 
 dataSource.getConnection(); // throws exception
 
 -
 Further info:
 -
 Adding the following line after acquiring dataSource above, I 
 get class
 
 org.apache.commons.dbcp.BasicDataSource:
 
 System.out.println(dataSource.getClass());
 
 And if I add the following, I get
 [EMAIL PROTECTED]:
 
 System.out.println((org.apache.commons.dbcp.BasicDataSource)
 dataSource);
 
 So, since it looks like a valid BasicDataSource object, I 
 tried the following, but get null back:
 
 System.out.println(((org.apache.commons.dbcp.BasicDataSource)
 dataSource).getUrl());
 
 This seems to indicate that the object isn't initialized?
 
 Turning on debug for the relevant listeners 
 (NamingContextListener and GlobalResourcesLifecycleListener), 
 I see the following related info in my Tomcat console window, 
 which looks good from what I understand:
 
 Jan 28, 2004 9:06:11 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 NamingContextListener[/]: Creating JNDI naming context
 NamingContextListener[/]: Resource parameters for mydb = 
 ResourceParams[name=mydb, parameters= 
 

Re: JDBC/DBCP problems

2004-01-28 Thread Philipp Taprogge
Hi!

Burgess, Jay S wrote:
Thanks for the feedback.  Maybe my problem does have something to do
with context visibility, but since I'm defining the resource within
SERVER.XML's GlobalNamingResources, I was under the impression that
these resources were available to all contexts.   
I had a similar problem. It seems, that if you auto-deploy a context by 
dropping a .war into tomcat's webapps, this context does not see the 
JNDI-Resources defined in the GlobalNamingResources section of the 
server.xml. I had to specify them explicitly in it's own Context 
section for my webapp.
This problem seems to be limited to tomcat 4.x, since it vanished after 
I upgraded to tomcat5.

HTH

		Phil

--
And on the seventh day, He exited from append mode.
(Book of create(2), line 255)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JDBC/DBCP problems

2004-01-28 Thread Michael Duffy

I think it's a better idea to make those app resources
local instead of global.  If your app is the only one
that needs that data source, by all means it should
not be global.  That's the way I prefer to do it. 
Keep those apps uncoupled and isolated from each
other. - MOD


--- Philipp Taprogge [EMAIL PROTECTED] wrote:
 Hi!
 
 Burgess, Jay S wrote:
  Thanks for the feedback.  Maybe my problem does
 have something to do
  with context visibility, but since I'm defining
 the resource within
  SERVER.XML's GlobalNamingResources, I was under
 the impression that
  these resources were available to all contexts.   
 
 I had a similar problem. It seems, that if you
 auto-deploy a context by 
 dropping a .war into tomcat's webapps, this context
 does not see the 
 JNDI-Resources defined in the GlobalNamingResources
 section of the 
 server.xml. I had to specify them explicitly in it's
 own Context 
 section for my webapp.
 This problem seems to be limited to tomcat 4.x,
 since it vanished after 
 I upgraded to tomcat5.
 
 HTH
 
   Phil
 
 -- 
 And on the seventh day, He exited from append mode.
 (Book of create(2), line 255)
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Re: Problem With 3rd Party App Running Under Tomcat 4.1.29

2004-01-28 Thread Michael Duffy

Problem solved.  Just add tools.jar to the classpath
for the service and all is well.  (d'oh!) 

I didn't expect it, because Tomcat itself wasn't
complaining.  - MOD


--- Michael Duffy [EMAIL PROTECTED] wrote:
 I'm having a problem with a 3rd party app running
 under Tomcat 4.1.29 on a Windows 2000 server and
 Sun's
 
 JDK 1.4.1.
 
 The 3rd party app has been running just fine for
 months under Tomcat 4.0.6, which they included in
 their install CD with JRE 1.4.1.
 
 I asked them if we could move the app to run under
 Tomcat 4.1.29, so they provided instructions on how
 to
 accomplish this.
 
 I installed Tomcat 4.1.29 as a Windows service using
 an install script that I've been successful with
 many
 times before.  Tomcat 4.1.29 runs fine.  I can log
 in
 as manager and run all the servlet and JSP examples.
 
 (That's a key point.)  I've got JAVA_HOME,
 CATALINA_HOME, and TOMCAT_HOME environment variables
 set properly.  These values are identical to the
 ones
 used in the service install script.
 
 Now when I try to invoke the 3rd party app running
 under Tomcat 4.1.29, I get this exception:
 
 java.lang.RuntimeException: No compiler found in
 your
 classpath. Make sure you added 'tools.jar'
 
 Cocoon is looking for com.sun.tools.javac.Main and
 not
 finding it.  But tools.jar is right there in
 JAVA_HOME/lib, as it should be.
 
 Why am I getting this exception?  Why does the 3rd
 party app not see tools.jar?  Wouldn't the example
 JSPs fail to compile if tools.jar were not visible? 
 Thanks - MOD
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool.
 Try it!
 http://webhosting.yahoo.com/ps/sb/
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



not write in log files

2004-01-28 Thread thuret olivier
hello,

i have a problem with the log files ... i have install the tomcat 5.1.18 as a service 
NT, i have specified the option --Java C:\j2sdk1.4.2_03\jre\bin\server\jvm.dll because 
--Java java do not start (why ?)...

With this configuration i have no write in my log files (stdout.log or stdout and 
another created by me with Log4j), why i have not write ?

the parameter --StdErrorFile and --StdOutputFile is correctly configured beacause when 
my server start the log files are created.

thanks a lot.
Olivier

Re: Starting tomcat using ant

2004-01-28 Thread Keshav Sarin
It works, thanks for your help.

 [EMAIL PROTECTED] 01/27/04 04:57PM 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Keshav Sarin wrote:
| Does anyone know how to start tomcat 5 using ant target?

I do this:

~   target name=server.start depends=init
~   exec dir=${tool.tomcat}
executable=${basedir}/${tool.tomcat}/bin/startup.sh
~ os=Linux failonerror=yes
~   env key=CATALINA_OPTS
value=-Dfile.encoding=UTF-8/
~   env key=JAVA_OPTS value=-Xmx256m/
~   /exec
~   /target

target name=server.stop depends=init
~   exec dir=${tool.tomcat}
executable=${basedir}/${tool.tomcat}/bin/shutdown.sh
~ os=Linux failonerror=yes/
~   /target

YMMV, but it seems to work really well.

Seth
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org 

iD8DBQFAFvrU5EIB1scRes8RAi6GAJ479A4EyWd4PBGHcEOmiWJC8cwEzQCeN0Tg
9bY7anZGajh+5tCNG832VVk=
=Ydh+
-END PGP SIGNATURE-


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




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



rmi performance under tomcat

2004-01-28 Thread Johan Coens
Hello all,

I have an application which heavily uses rmi. Because the poor performance
under tomcat, i tried some other app servers to compare. I came up with the
following results:

- tomcat 4.0.6
- websphere 5.0
- orion 2.0.2
- jetty 4.2.15

orion 1.2 sec
websphere 1.2 sec
tomcat 8.4 sec
jetty 1.1 sec

All tests ran under the same jdk (1.3.1_06), same machine, same
configuration, default install etc. I know I use old jdk's and old tomcat
version, but I have tried newer tomcat (4.1.28, 5.0) and newer jdk's
(1.4.2), but that only showed slight performance gain.

I used JProbe to find out what the bottleneck would be, it showed that 67%
off all method time goes to java.rmi.server.RemoteRef.invoke and 20% goes to
java.rmi.Registry.Lookup.

Is it a known issue or known configuration issue, is there a way to speed up
this performance? The test machine running is WinXp 1.8Ghz, 512Mb mem.

Cheers,
Johan



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



RE: rmi performance under tomcat

2004-01-28 Thread Shapira, Yoav

Howdy,
Why do you think tomcat has its own RMI implementation?  Was there
anything tomcat-specific that showed up in your profiler?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Johan Coens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 11:24 AM
To: Tomcat Users List
Subject: rmi performance under tomcat

Hello all,

I have an application which heavily uses rmi. Because the poor
performance
under tomcat, i tried some other app servers to compare. I came up with
the
following results:

- tomcat 4.0.6
- websphere 5.0
- orion 2.0.2
- jetty 4.2.15

orion 1.2 sec
websphere 1.2 sec
tomcat 8.4 sec
jetty 1.1 sec

All tests ran under the same jdk (1.3.1_06), same machine, same
configuration, default install etc. I know I use old jdk's and old
tomcat
version, but I have tried newer tomcat (4.1.28, 5.0) and newer jdk's
(1.4.2), but that only showed slight performance gain.

I used JProbe to find out what the bottleneck would be, it showed that
67%
off all method time goes to java.rmi.server.RemoteRef.invoke and 20%
goes
to
java.rmi.Registry.Lookup.

Is it a known issue or known configuration issue, is there a way to
speed
up
this performance? The test machine running is WinXp 1.8Ghz, 512Mb mem.

Cheers,
Johan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rmi performance under tomcat

2004-01-28 Thread Tim Funk
There was a bugzilla report about this in 4.1.??. It turned out there was a 
lot of calls to something or lack of caching or something else. (Or maybe is 
was a tomcat-dev discussion) In either case - it was many months ago.

I don't know if this got fixed in 4.1 or if the root cause was just exposed. 
Whatever it was, it won't be fixed in 4.0.X

Thats all the details I can remember.

-Tim

Johan Coens wrote:

Hello all,

I have an application which heavily uses rmi. Because the poor performance
under tomcat, i tried some other app servers to compare. I came up with the
following results:
- tomcat 4.0.6
- websphere 5.0
- orion 2.0.2
- jetty 4.2.15
orion 1.2 sec
websphere 1.2 sec
tomcat 8.4 sec
jetty 1.1 sec
All tests ran under the same jdk (1.3.1_06), same machine, same
configuration, default install etc. I know I use old jdk's and old tomcat
version, but I have tried newer tomcat (4.1.28, 5.0) and newer jdk's
(1.4.2), but that only showed slight performance gain.
I used JProbe to find out what the bottleneck would be, it showed that 67%
off all method time goes to java.rmi.server.RemoteRef.invoke and 20% goes to
java.rmi.Registry.Lookup.
Is it a known issue or known configuration issue, is there a way to speed up
this performance? The test machine running is WinXp 1.8Ghz, 512Mb mem.
Cheers,
Johan


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


RE: mod_jk problem

2004-01-28 Thread Guy Rouillier
garaz_user wrote:
 Hello,
 
 I put the test.jsp in ROOT folder, and I put JKMount in
 the mod_jk.conf file, which I probably shound't do but
 all is working now (except apache integration :'( ) so
 I'm sataisfied with the tomcat setup. Now if I just
 could get it to intergrate with apache it would make my
 day. Becuase port 8080 is blocked by my firewall and I
 can't open that port until atleast a week from now. So
 right now I'm using links to do all my jsp test ^^.

In order to integrate with Apache, you've got to get the JkMount
commands into Apache's httpd.conf.  There are two ways to do this:

(1) Just type them in directly
(2) Put them in some file in the Tomcat directory, then in httpd.conf,
add an include directive like this:

Include TOMCAT_HOME/conf/auto/mod_jk.conf

Just putting the JkMount's in mod_jk.conf, without putting the include
directive in httpd.conf, won't accomplish anything.  Apache is the one
who needs the JkMount command, not Tomcat.

 
 ./Lukas
 
 
  Guy Rouillier [EMAIL PROTECTED]:
 
 Lukas Larsson wrote:
 Thx for the replies. I'm using 4.1.29. I haven't played anything
 with the structure at all. The strange thing is that
 when I put the test.jsp file in the examples folder in webapps I can
 display it and it works like a charm,
 but if I
 put it anywhere else it wont work. Putting it in ROOT does
 not help this at all.
 
 So what permissions do I need to have on the file?
 
 this is my web.xml file
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app display-nameWelcome to Tomcat/display-name  
  description Welcome to Tomcat
   /description
 /web-app
 
 I haven't changed anything in it.
 
 Adding JkMount /*.jsp aj13 to my mod_jk.conf had the wanted
 effect. I can now see
 http://localhost:8080/test.jsp . But
 there's still no formatation on test.jsp on port 80 :(, atleast now
 we know that tomcat is working properly.
 
 Guy Rouillier said before that I have to make sure that 'tomcat is
 set up properly by going directly to it
 for the
 JSP page, bypassing Apache', how would I check this? And how
 do I set it up?
 
 You accomplished that when you went to :8080.  So now you know
 Tomcat is working.  Where did you put test.jsp when you successfully
 viewed it at http://localhost:8080/test.jsp?  If you have an
 unaltered Tomcat installation, you would have had to place test.jsp
 in the ROOT directory. 
 
 How are you including those JkMount's into Apache's httpd.conf?
 
 
 ./Lukas
 
 - Original Message -
 From: Jeff Tulley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 11:25 PM
 Subject: Re: mod_jk problem
 
 
 Lukas,
I haven't been following this thread too closelyso maybe
 I've missed some of your earlier explanation... If you are going
 through port 8080, there is no mod_jk or mod_jk2 involved, and the
 problem is probably elsewhere - for instance maybe your web
 application is not set up properly(wrong directory structure?), or
 there are file permission problems on your directories or your
 web.xml file.  I have a coworker who had these type of file
 permission problems twice in the last few weeks, and it was not
 immediately obvious that this was the problem.  Or maybe your
 web.xml is not valid. 
 
 When you go back to using mod_jk, be aware that the command in
 apache for mod_jk is more like:
 
 JkMount /*.jsp ajp13
 
 You do not embed this in a location tag necessarily.
 
 But get things working through port 8080 first before tackling
 Apache integration.  Like you said you just want to get started
 with JSP without the battle. 
 
 
 [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
 Ok, now I'm really getting confused, I put the test.jsp file in
 $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080 port
 yet...) I get a file cannot be found message, but when I look at
 the example folder they show as they should. Anyone who knows what
 I'm doing wrong? 
 
 Also when adding
 
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 to my http.conf file I got an error message that said that apache
 couldn't recongnixe JkUriSet. Is that because JkUriSet is only
 availabel in jk2 or??? 
 
 ./Lukas
 
 - Original Message -
 From: Guy Rouillier [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 9:39 PM
 Subject: RE: mod_jk problem
 
 
 Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same problem.
 Apache says that it is working with mod_jk, but it does not
 translate *.jsp pages (see
 http://garazdawi.homeftp.net/test.jsp for
 an  example
 of what I mean). Can someone please tell me what I'm
 doing wrong. I would really want to get started with 

can't save file using tomcat's WebDAV

2004-01-28 Thread Wind --
Currently I'm trying to use webDAV feature on tomcat
4.1.1, but I'm unable to save files directly from
applications although I'm able to create folder from
application's save dialog. Is this a bug or just a
matter of configuration ?
fyi, i've tried openoffice 1.1.0 and adobe photoshop
7.0.

thanks


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: How does JNDI work if i dont have directory server?

2004-01-28 Thread Yansheng Lin
Sorry, I am not very familiar with the JNDI server...

When you say a JNDI server accessible from outside clients, what do you mean
exactly?  Are you saying with a JNDI server(properly configured), you can access
a DataSource or any files within the container? Because based on Servlet
specification, no resource within the WEB-INF directory can be served directly
to a client. Are you talking about files outside of WEB-INF directory but with
the web-app?

Thanks!

-Yan

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 6:56 AM
To: Tomcat Users List
Subject: RE: How does JNDI work if i dont have directory server?



Howdy,
Tomcat has an internal JNDI provider as mandated by the Servlet Specification.
That's a directory server for internal services listed in tomcat's server.xml
file.  If you need something more, e.g. a directory or JNDI server accessible
from outside clients, you need to look elsewhere like a full-fledged J2EE
container or a stand-alone JNDI provider.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 1:29 PM
To: '[EMAIL PROTECTED]'
Subject: How does JNDI work if i dont have directory server?

Hi guys,
often, where have to work with JNDI whenever any app needs to use
Datasource. But, where is the directory server at TomCat environment?
Thanks in advance,

José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social
Dataprev - 21-2528-7901



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Warning on Tomcat5 Clustering

2004-01-28 Thread Filip Hanik \(lists\)
What OS are you on, if you run redhat 9, make sure you have the

LD_ASSUME_KERNEL=2.4

set. this means that the system wasn't able to read the acknowledgement that
the second server got the session.

Filip

-Original Message-
From: muimi admin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 12:23 AM
To: [EMAIL PROTECTED]
Subject: Warning on Tomcat5 Clustering


Dear All

I try Clustering between 2 hosts using Tomcat5.
When I access one host, I would wait for a moment
and then get following message.


2004/01/28 16:49:03 org.apache.catalina.cluster.tcp.SocketSender waitForAck
Warning: Wasn't able to read acknowledgement from server in 15000 ms.
Disconnecting
 socket, and trying again.


What would I do for avid this warning ?
Any advise will welcome.

(Sorry bad English...)


[environment]
+ Fedora1
+ JDK 1.4_2.03
+ Tomcat 5.0.18


[p.s.]
I maybe done that get tcp socket sending between clustering servers.
because I check tcp packet sending using tcpdump.
(or anything bad? I don't know detail for these messages...)


[EMAIL PROTECTED] hoge]# tcpdump port 4001
tcpdump: listening on eth0
17:16:41.114593 192.168.1.21.32865  localhost.localdomain.4001: P
1948109306:19
48109731(425) ack 2688246754 win 5840 nop,nop,timestamp 1372911 627953
(DF)
17:16:41.154382 localhost.localdomain.4001  192.168.1.21.32865: . ack 425
win 7
504 nop,nop,timestamp 630617 1372911 (DF)
17:16:56.124494 192.168.1.21.32865  localhost.localdomain.4001: F
425:425(0) ac
k 1 win 5840 nop,nop,timestamp 1374412 630617 (DF)
17:16:56.124669 192.168.1.21.32866  localhost.localdomain.4001: S
1987471568:19
87471568(0) win 5840 mss 1460,sackOK,timestamp 1374412 0,nop,wscale 0 (DF)
17:16:56.124723 localhost.localdomain.4001  192.168.1.21.32866: S
2731628734:27
31628734(0) ack 1987471569 win 5792 mss 1460,sackOK,timestamp 632114
1374412,no
p,wscale 0 (DF)
17:16:56.124851 192.168.1.21.32866  localhost.localdomain.4001: . ack 1 win
584
0 nop,nop,timestamp 1374412 632114 (DF)
17:16:56.125052 192.168.1.21.32866  localhost.localdomain.4001: P
1:426(425) ac
k 1 win 5840 nop,nop,timestamp 1374412 632114 (DF)
17:16:56.125085 localhost.localdomain.4001  192.168.1.21.32866: . ack 426
win 6
432 nop,nop,timestamp 632114 1374412 (DF)
17:16:56.128685 localhost.localdomain.4001  192.168.1.21.32866: P 1:4(3)
ack 42
6 win 6432 nop,nop,timestamp 632114 1374412 (DF)
17:16:56.128848 192.168.1.21.32866  localhost.localdomain.4001: . ack 4 win
584
0 nop,nop,timestamp 1374412 632114 (DF)
17:16:56.164355 localhost.localdomain.4001  192.168.1.21.32865: . ack 426
win 7
504 nop,nop,timestamp 632118 1374412 (DF)



---
Shinji Miyamoto
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004


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



RE: JDBC/DBCP problems

2004-01-28 Thread Burgess, Jay S
Yes, that appears to be my issue.  Thank you very much for the input.  

By the way, I just queried the bug database, and see that there are a
number of similar reports out there.  They all seem to reference your
suggestion of using a Context element though, and since we didn't have
an explicit Context element at first, I'm going to look further into
whether this is truly a bug, or just my misunderstanding of the
relationships.  And I'll pay more attention to the bug database next
time I run across an issue like this.

Thanks again.

Jay

-Original Message-
From: Philipp Taprogge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 11:36 AM
To: Tomcat Users List
Subject: Re: JDBC/DBCP problems

Hi!

Burgess, Jay S wrote:
 Thanks for the feedback.  Maybe my problem does have something to do
 with context visibility, but since I'm defining the resource within
 SERVER.XML's GlobalNamingResources, I was under the impression that
 these resources were available to all contexts.   

I had a similar problem. It seems, that if you auto-deploy a context by 
dropping a .war into tomcat's webapps, this context does not see the 
JNDI-Resources defined in the GlobalNamingResources section of the 
server.xml. I had to specify them explicitly in it's own Context 
section for my webapp.
This problem seems to be limited to tomcat 4.x, since it vanished after 
I upgraded to tomcat5.

HTH

Phil

-- 
And on the seventh day, He exited from append mode.
(Book of create(2), line 255)


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



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



RES: How does JNDI work if i dont have directory server?

2004-01-28 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thank you Shap!!! 
You mean something like an external LDAP server, if outside clients will
need to lookup any resource... Isnt it? But, if just my context( app ) needs
it, then i can just work with the Tomcat's JNDI internal service.
If i am right, its nice to me...
Good luck,
José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social


-Mensagem original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 28 de janeiro de 2004 11:56
Para: Tomcat Users List
Assunto: RE: How does JNDI work if i dont have directory server?



Howdy,
Tomcat has an internal JNDI provider as mandated by the Servlet
Specification.  That's a directory server for internal services listed in
tomcat's server.xml file.  If you need something more, e.g. a directory or
JNDI server accessible from outside clients, you need to look elsewhere like
a full-fledged J2EE container or a stand-alone JNDI provider.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 1:29 PM
To: '[EMAIL PROTECTED]'
Subject: How does JNDI work if i dont have directory server?

Hi guys,
often, where have to work with JNDI whenever any app needs to use
Datasource. But, where is the directory server at TomCat environment?
Thanks in advance,

José Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplicações corporativas da Previdência Social
Dataprev - 21-2528-7901



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: How does JNDI work if i dont have directory server?

2004-01-28 Thread Shapira, Yoav

Howdy,

When you say a JNDI server accessible from outside clients, what do
you
mean exactly?

I mean you can't have another JVM or another process use tomcat's JNDI
services.

Are you saying with a JNDI server(properly configured), you can
access a DataSource or any files within the container? Because based on
Servlet specification, no resource within the WEB-INF directory can be
served directly
to a client. Are you talking about files outside of WEB-INF directory
but
with the web-app?

Yes, and no, respectively ;)  I'm familiar with the servlet
specification and its restrictions on resources within WEB-INF, but
that's not relevant.  The resources defined and accessed via JNDI
services rarely reside as static content within the WEB-INF directory:
they're usually remote beans, databases, or things like mail and JMS
sessions, queues, topics.

With a JNDI server that supports external connections, other processes
including remote ones can connect to the server and access whatever JNDI
services are defined, e.g. the database or JMS queue above.  This
provides an abstraction layer in that the remote app doesn't have to
know the database URL or connection information, just the JNDI's
server's location and the JNDI name for the resource.

This is pretty basic JNDI stuff.  There are ample resources on the web
to help with JNDI.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How does JNDI work if i dont have directory server?

2004-01-28 Thread Shapira, Yoav

Howdy,

Thank you Shap!!!
You mean something like an external LDAP server, if outside clients
will
need to lookup any resource... Isnt it? But, if just my context( app )
needs
it, then i can just work with the Tomcat's JNDI internal service.
If i am right, its nice to me...

You're right, you got it, and I'm glad to help.

Yoav Shapira




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JkCoyoteHandler action INFO: RESET

2004-01-28 Thread Matt Raible
I realize asking this question is like beating a dead horse, but I couldn't
seem to find the answer in any of the mail archives.  I have IIS and Apache
both pointing at the same Tomcat server using jk2 2.0.2.  Everything works
great as far as the connection is concerned.  The problem is the useless
information that shows up in my catalina.out file.  All I want to know is how
to turn these messages OFF?  They aren't causing me any issues, so I don't
want them to be logged.  I'm the only one on the server, and the client is not
killing the request (by hitting stop), so they seem to be just plain wrong.

The errors are below.  

Thanks,

Matt

With the Apache/Tomcat and IIS/Tomcat combo, I get:

Jan 28, 2004 11:34:50 AM org.apache.jk.server.JkCoyoteHandler action
INFO: RESET

With the IIS/Tomcat combo, I an additional error message:

SEVERE: Error in action code
java.net.SocketException: Software caused connection abort: socket write error
...
Jan 28, 2004 11:34:50 AM org.apache.jk.common.ChannelSocket processConnection

I was able to turn this off for Apache/Tomcat by adding keepalive=0, but this
didn't work for IIS.



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



Re: JkCoyoteHandler action INFO: RESET

2004-01-28 Thread Matt Raible
Sorry, forgot to include version numbers:

JDK 1.4.2
Tomcat 4.1.12 and 4.1.27 (tested on both)
IIS 5.0 on Windows 2000 Server
Apache 2.0.47
JK 2.0.2

 I realize asking this question is like beating a dead horse, but I couldn't
 seem to find the answer in any of the mail archives.  I have IIS and 
 Apache both pointing at the same Tomcat server using jk2 2.0.2.  
 Everything works great as far as the connection is concerned.  The 
 problem is the useless information that shows up in my catalina.out 
 file.  All I want to know is how to turn these messages OFF?  They 
 aren't causing me any issues, so I don't want them to be logged. 
  I'm the only one on the server, and the client is not killing the 
 request (by hitting stop), so they seem to be just plain wrong.
 
 The errors are below.  
 
 Thanks,
 
 Matt
 
 With the Apache/Tomcat and IIS/Tomcat combo, I get:
 
 Jan 28, 2004 11:34:50 AM org.apache.jk.server.JkCoyoteHandler action
 INFO: RESET
 
 With the IIS/Tomcat combo, I an additional error message:
 
 SEVERE: Error in action code
 java.net.SocketException: Software caused connection abort: socket 
 write error...
 Jan 28, 2004 11:34:50 AM org.apache.jk.common.ChannelSocket processConnection
 
 I was able to turn this off for Apache/Tomcat by adding keepalive=0, 
 but this didn't work for IIS.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


--
Open WebMail Project (http://openwebmail.org)

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



Re: JDBC/DBCP problems

2004-01-28 Thread Julio César Aguilar

Tomcat version is 4.1.29 on Windows XP.  I'm attempting to connect to
SQL Server.  The JDBC driver JARs are in CATALINA_HOME\common\lib, and
since everything works fine if I manually load the driver via
Class.forName(), I don't think my problem is related to my driver files
location.  When attempting to use getConnection(), however, I get the
dreaded Cannot create JDBC driver of class '' for connect URL 'null',
cause: No suitable driver error.  The highlights of my configuration
are below.
Two comments:

1. You don't mention a ResourceLink. When you define a Resource as global, you 
need to use a ResourceLink in the definition of the context of the application. 
In your case, something like

ResourceLink global=jdbc/mydb name=jdbc/mydb type=javax.sql.DataSource /

inside the Context tag of the server.xml COULD work.

2. I'm saying COULD in the previous comment because I had the same problem and 
could not solve it with Tomcat 4.1.29.
Using 5.0.16 or 5.0.18 everything works fine.

I have something like:


server.xml

GlobalNamingResources
Resource name=GlobalDataSource auth=Container type=javax.sql.DataSource
description=The database. /
ResourceParams name=GlobalDataSource
...
/ResourceParams
/GlobalNamingResources
---
Catalina/host/myapp.xml
---
Context ...
ResourceLink global=GlobalDataSource name=jdbc/mydb 
type=javax.sql.DataSource /
/Context

Note that there's no need of using a resource-ref in web.xml.

---
Julio César Aguilar Cabrera
[EMAIL PROTECTED]
Proyecto SIGC3, LANIA
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JDBC/DBCP problems

2004-01-28 Thread Burgess, Jay S
You've identified part of my problem, I think.  From what I found, none of the 
documentation that talks about DataSource configuration mentions that ResourceLink 
is required (e.g. JNDI Datasource HOW-TO).  They talk about using resource-ref in 
WEB.XML instead.  I assumed that if you had a Context element in SERVER.XML, then 
you could also add a ResourceLink within your Context.  If you don't have an 
explicit Context element (as we didn't), or you don't want to define a 
ResourceLink, then you could use resource-ref in WEB.XML.

Now that I've got it working, I can at least try the various configurations and decide 
what the option(s) are and whether there's truly a bug in 4.1.29.

Thanks for the info.

Jay

-Original Message-
From: Julio César Aguilar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 1:23 PM
To: Tomcat Users List
Subject: Re: JDBC/DBCP problems


 Tomcat version is 4.1.29 on Windows XP.  I'm attempting to connect to
 SQL Server.  The JDBC driver JARs are in CATALINA_HOME\common\lib, and
 since everything works fine if I manually load the driver via
 Class.forName(), I don't think my problem is related to my driver files
 location.  When attempting to use getConnection(), however, I get the
 dreaded Cannot create JDBC driver of class '' for connect URL 'null',
 cause: No suitable driver error.  The highlights of my configuration
 are below.

Two comments:

1. You don't mention a ResourceLink. When you define a Resource as global, you 
need to use a ResourceLink in the definition of the context of the application. 
In your case, something like

ResourceLink global=jdbc/mydb name=jdbc/mydb type=javax.sql.DataSource /

inside the Context tag of the server.xml COULD work.

2. I'm saying COULD in the previous comment because I had the same problem and 
could not solve it with Tomcat 4.1.29.
Using 5.0.16 or 5.0.18 everything works fine.

I have something like:


server.xml

GlobalNamingResources
Resource name=GlobalDataSource auth=Container type=javax.sql.DataSource
description=The database. /
 ResourceParams name=GlobalDataSource
 ...
 /ResourceParams
/GlobalNamingResources


---
Catalina/host/myapp.xml
---
Context ...
ResourceLink global=GlobalDataSource name=jdbc/mydb 
type=javax.sql.DataSource /
/Context


Note that there's no need of using a resource-ref in web.xml.

---
Julio César Aguilar Cabrera
[EMAIL PROTECTED]
Proyecto SIGC3, LANIA

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



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



how can I change a variable on the fly with shutting down tomcat

2004-01-28 Thread tom ly
I have a variable stored in memory which will be returned for certain xml-rpc requests 
in tomcat/axis, it needs a initial value upon startup of tomcat.  But then I need to 
be able to change this variable on the fly without shutting down tomcat and then have 
it be permanently changed afterwards.  What can I do? I've though about using a text 
file.  But I want to read from this text file once only during startup of tomcat, 
store the value in memory for fast access but then be able to change the value in 
memory as well as the text file on the fly.  What can i use to do this? or is there a 
better way?
Regards,
Tom Ly



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Are there problems/issues running tomcat with dual Xeon processors and Redhat?

2004-01-28 Thread tom ly
My company might have dual Xeon processors and Linux Redhat during production, are 
there issues/problem I should be aware of?


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

RE: how can I change a variable on the fly with shutting down tomcat

2004-01-28 Thread Shapira, Yoav

Howdy,

afterwards.  What can I do? I've though about using a text file.  But I
want to read from this text file once only during startup of tomcat,
store
the value in memory for fast access but then be able to change the
value in
memory as well as the text file on the fly.  What can i use to do this?
or
is there a better way?

There are many ways ;)  Do you HAVE to write out to the file, or can you
just change the value in memory?

Typically when you want to do something once on startup you do it in a
ServletContextListener.  Make the variable static and add static
accessors for your variable in your context listener implementation.
You can specify the configuration file location in web.xml as a
context-param, or you can specify the starting variable value itself if
you don't need a text file.  If you are using a text file and want to
write out the final value when your app/server is shutting down, you can
do so in the contextDestroyed method of the listener.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Are there problems/issues running tomcat with dual Xeon proce ssors and Redhat?

2004-01-28 Thread Hamilton Andrew
I run it on Dual Xeons and Redhat.  No problems.


-Original Message-
From: tom ly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 2:58 PM
To: [EMAIL PROTECTED]
Subject: Are there problems/issues running tomcat with dual Xeon
processors and Redhat?


My company might have dual Xeon processors and Linux Redhat during
production, are there issues/problem I should be aware of?


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


Differences betwen Tomcat 5 and 4 writing to output stream?

2004-01-28 Thread Jake Alley
Hi,
 I just upgraded to TC 5 from TC 4 running on RH linux 9.  I had a servlet 
that acted as a downloader for file requests to a restriced directory.  It 
worked very well in 4, but now it doesn't work in 5.  In 5 it adds a small 
number of bytes in the output stream.  It doesn't have to do with adding a 
CR every time it sees an LF or anything like that.  It adds about 10 bytes 
at the beginning and then nothing else.  Weird.

Here's my code.  I did have some other problems with using the wrong 
servlet-api version to compile, but those are fixed I think.  Thanks.

public void doGet(HttpServletRequest request, HttpServletResponse response) 
throws ServletException, IOException
{

int i = request.getRequestURI().lastIndexOf(/);
String fileName = request.getRequestURI().substring(i+1);
Downloader dl = new Downloader();
if (dl.checkContactInfo(request, fileName) == false)
{
response.sendRedirect(/sysforms/dlcontact.jsp?filename= + fileName);
return;
}
	response.setContentType(application/octet-stream);

   response.setHeader(Content-Disposition,filename= + 
fileName);

String path = manager.getBaseDir() + /  + request.getRequestURI();
File file = new File(path);
	response.setContentLength((int) file.length());

   PrintWriter out = new PrintWriter (response.getOutputStream());

 int b;
 BufferedInputStream in = new BufferedInputStream (
   new FileInputStream(file));
 while ((b = in.read()) != -1)
 {
   out.write(b);
 }
 in.close();
 out.close();
 }

_
High-speed users—be more efficient online with the new MSN Premium Internet 
Software. http://join.msn.com/?pgmarket=en-uspage=byoa/premST=1

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


Error configuring JK2

2004-01-28 Thread Ralf Schneider
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I try to build mod_jk2, but I run into an error when I run configure. In 
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 I run the following 
command:

./configure --with-apxs2=/usr/local/apache2/bin/apxs 
- --with-apache2=/usr/local/apache2 --with-tomcat5=/usr/local/tomcat 
- --with-java-home=/usr/lib/SunJava2-1.4.1 --with-jni --with-pcre

When running the command I get this error message:

no apxs given
ippp0
eth0
1024:65535
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
ippp0
eth0
1024:65535
ippp0
eth0
1024:65535
ippp0
eth0
1024:65535
configure: error: Invalid location for apxs: '/usr/local/apache2/bin/apxs'

I use Apache 2.0.48 which is installed in /usr/local/apache2 and Tomcat 5.0.16 
which is installed in /usr/local/tomcat.

Any ideas what might be the problem? I did not find any hints in the archives.

Best regards,
Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAGBfP7YyyfykA0YkRAtgGAKCWVAHPGBaXQabFLZGmejfU9rnbcwCeJfa/
biWHEMa9AmB20xYYkND4qU0=
=RXbD
-END PGP SIGNATURE-


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



RE: Differences betwen Tomcat 5 and 4 writing to output stream?

2004-01-28 Thread Shapira, Yoav

Howdy,

PrintWriter out = new PrintWriter (response.getOutputStream());

Does the behavior change if you do
PrintWriter out = response.getWriter();
instead of the above construction?

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: documentation to implement the Realm interface aside from javadoc s

2004-01-28 Thread Philipp von dem Bussche
Why not downloading the sources from jakarta.apache.org ??

Doyle, Daniel C wrote:
I am looking for examples, tutorials, or documentation for implementing the
org.apache.catalina.Realm ineterface. Can the Realm implementation point to
a servlet? I need to authenticate using a cgi script (don't laugh) on a
different web server on a different machine. The cgi will redirect its fail
or success response to a URL. Currently, we have the cgi redirect the fail
or success response to a JSP. Anyone have design suggestions when
implementing a Realm for this architecture. I would look at the code in the
CVS repository that currently implement the Realm interface, but I can't get
the code as the proxy(which I don't administrate) will not allow CVS
traffic(i.e. port not available).
 

Thank you for your time and consideration,

 

Dan Doyle




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


Apache + Tomcat RH Setup

2004-01-28 Thread Luc Foisy

I suppose this could be directed towards John Turner, but I'll let anyone answer :)

I have been reading through John's HOWTO to get these operating together (with the 
latest release versions, which I do not think will matter for this question...) and 
noticed that he says to start Tomcat before Apache and wait at least 15 seconds.

I have read similar things from time to time, so I am guessing its pretty important.

If I wanted to set these up to start on the system boot, via the run levels 
(/etc/rc.d/rc3.d etc...) how should I setup those links.

Such as S84Tomcatd and S85Apached (linked to scripts in /etc/init.d). Would that make 
sure that tomcat is started before apache?

If I wanted to setup the links in /etc/rc.d/rc6.d would apached have to shut down 
before tomcat?

If I wanted to restart tomcat, for any reason during system runtime, would I have to 
shut down apache, shut down tomcat, start tomcat, start apache?

If I wanted to restart apache, what needs to be done?

Luc

Hopefully someone will understand what I am saying if I haven't used all the correct 
terms and such :)


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



RE: Tomcat 5.0.18: Error 1053: The service did not respond to...

2004-01-28 Thread Bill McMilleon

At Wed, 28 Jan 2004 01:06:54 -0800 SAG - Jose Antonio Tarifa said:

I have the same situation also on Win 2k.  I tried to uninstall the
service and reinstall it with service.bat in bin directory, but didn't
work.

-Mensaje original-
De: Joshi, Vikas [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 27 de enero de 2004 18:01
Para: 'Tomcat Users List'
Asunto: Tomcat 5.0.18: Error 1053: The service did not respond to...

I installed Tomcat 5.0.18 on Win 2K.

When I try to start the service Get following error:

   Could not start Apache Tomcat Service on local computer
   Error 1053: The service did not respond to start or control request
   in a timely manner.



I had the same problem on W2K and was able to fix it by upgrading from JSDK
1.4.2_02 to 1.4.2_03.  Hope this helps.




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



RE: Apache + Tomcat RH Setup

2004-01-28 Thread Luc Foisy
Also, I need to get an apache rpm uninstalled.

rpm -e apache-1.3.12-25
error: removing these packages would break dependencies:
apache = 1.3.12-25 is needed by mod_ssl-2.6.6-25
webserver is needed by mod_perl-1.24-4

Are these other packages needed by anything else?

-Original Message-
From: Luc Foisy 
Sent: Wednesday, January 28, 2004 3:27 PM
To: Tomcat Users List
Subject: Apache + Tomcat RH Setup



I suppose this could be directed towards John Turner, but I'll let anyone answer :)

I have been reading through John's HOWTO to get these operating together (with the 
latest release versions, which I do not think will matter for this question...) and 
noticed that he says to start Tomcat before Apache and wait at least 15 seconds.

I have read similar things from time to time, so I am guessing its pretty important.

If I wanted to set these up to start on the system boot, via the run levels 
(/etc/rc.d/rc3.d etc...) how should I setup those links.

Such as S84Tomcatd and S85Apached (linked to scripts in /etc/init.d). Would that make 
sure that tomcat is started before apache?

If I wanted to setup the links in /etc/rc.d/rc6.d would apached have to shut down 
before tomcat?

If I wanted to restart tomcat, for any reason during system runtime, would I have to 
shut down apache, shut down tomcat, start tomcat, start apache?

If I wanted to restart apache, what needs to be done?

Luc

Hopefully someone will understand what I am saying if I haven't used all the correct 
terms and such :)


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


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



Re: Apache + Tomcat RH Setup

2004-01-28 Thread Matt Raible
Here's how I've setup Tomcat and Apache to start at boot-time.  

http://www.raibledesigns.com/tomcat/boot-howto.html


 I suppose this could be directed towards John Turner, but I'll let 
 anyone answer :)
 
 I have been reading through John's HOWTO to get these operating 
 together (with the latest release versions, which I do not think 
 will matter for this question...) and noticed that he says to start 
 Tomcat before Apache and wait at least 15 seconds.
 
 I have read similar things from time to time, so I am guessing its 
 pretty important.
 
 If I wanted to set these up to start on the system boot, via the run 
 levels (/etc/rc.d/rc3.d etc...) how should I setup those links.
 
 Such as S84Tomcatd and S85Apached (linked to scripts in /etc/init.d)
 . Would that make sure that tomcat is started before apache?
 
 If I wanted to setup the links in /etc/rc.d/rc6.d would apached have 
 to shut down before tomcat?
 
 If I wanted to restart tomcat, for any reason during system runtime, 
 would I have to shut down apache, shut down tomcat, start tomcat,
  start apache?
 
 If I wanted to restart apache, what needs to be done?
 
 Luc
 
 Hopefully someone will understand what I am saying if I haven't used 
 all the correct terms and such :)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


--
Open WebMail Project (http://openwebmail.org)

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



Re: mod_jk problem

2004-01-28 Thread Lukas Larsson
I already put the Include statement in httpd.conf, and then put JkMount in
mod_jk.conf. But it still doesn't work. Is there anything I have to do in
server.xml to make it work. I've added two lines
Server port=8005 shutdown=SHUTDOWN debug=0 #this line is above
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/opt/apache/modules/mod_jk.so / #this line I added

and
Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true #this line is above
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false modJk=/opt/apache/modules/mod_jk.so /
#the line i added

and that's all the configurations I did id you include adding the include
statement in httpd.conf. Is there anything else I have to do? There should
be as I still can't get tomcat to format jsp files.

./Lukas

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 7:13 PM
Subject: RE: mod_jk problem


garaz_user wrote:
 Hello,

 I put the test.jsp in ROOT folder, and I put JKMount in
 the mod_jk.conf file, which I probably shound't do but
 all is working now (except apache integration :'( ) so
 I'm sataisfied with the tomcat setup. Now if I just
 could get it to intergrate with apache it would make my
 day. Becuase port 8080 is blocked by my firewall and I
 can't open that port until atleast a week from now. So
 right now I'm using links to do all my jsp test ^^.

In order to integrate with Apache, you've got to get the JkMount
commands into Apache's httpd.conf.  There are two ways to do this:

(1) Just type them in directly
(2) Put them in some file in the Tomcat directory, then in httpd.conf,
add an include directive like this:

Include TOMCAT_HOME/conf/auto/mod_jk.conf

Just putting the JkMount's in mod_jk.conf, without putting the include
directive in httpd.conf, won't accomplish anything.  Apache is the one
who needs the JkMount command, not Tomcat.


 ./Lukas


  Guy Rouillier [EMAIL PROTECTED]:

 Lukas Larsson wrote:
 Thx for the replies. I'm using 4.1.29. I haven't played anything
 with the structure at all. The strange thing is that
 when I put the test.jsp file in the examples folder in webapps I can
 display it and it works like a charm,
 but if I
 put it anywhere else it wont work. Putting it in ROOT does
 not help this at all.

 So what permissions do I need to have on the file?

 this is my web.xml file

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app display-nameWelcome to Tomcat/display-name
  description Welcome to Tomcat
   /description
 /web-app

 I haven't changed anything in it.

 Adding JkMount /*.jsp aj13 to my mod_jk.conf had the wanted
 effect. I can now see
 http://localhost:8080/test.jsp . But
 there's still no formatation on test.jsp on port 80 :(, atleast now
 we know that tomcat is working properly.

 Guy Rouillier said before that I have to make sure that 'tomcat is
 set up properly by going directly to it
 for the
 JSP page, bypassing Apache', how would I check this? And how
 do I set it up?

 You accomplished that when you went to :8080.  So now you know
 Tomcat is working.  Where did you put test.jsp when you successfully
 viewed it at http://localhost:8080/test.jsp?  If you have an
 unaltered Tomcat installation, you would have had to place test.jsp
 in the ROOT directory.

 How are you including those JkMount's into Apache's httpd.conf?


 ./Lukas

 - Original Message -
 From: Jeff Tulley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 11:25 PM
 Subject: Re: mod_jk problem


 Lukas,
I haven't been following this thread too closelyso maybe
 I've missed some of your earlier explanation... If you are going
 through port 8080, there is no mod_jk or mod_jk2 involved, and the
 problem is probably elsewhere - for instance maybe your web
 application is not set up properly(wrong directory structure?), or
 there are file permission problems on your directories or your
 web.xml file.  I have a coworker who had these type of file
 permission problems twice in the last few weeks, and it was not
 immediately obvious that this was the problem.  Or maybe your
 web.xml is not valid.

 When you go back to using mod_jk, be aware that the command in
 apache for mod_jk is more like:

 JkMount /*.jsp ajp13

 You do not embed this in a location tag necessarily.

 But get things working through port 8080 first before tackling
 Apache integration.  Like you said you just want to get started
 with JSP without the battle.


 [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
 Ok, now I'm really getting confused, I put the test.jsp file in
 $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080 port
 yet...) I get a file cannot be found message, but when I look at
 the example folder 

Re: Are there problems/issues running tomcat with dual Xeon proce ssors and Redhat?

2004-01-28 Thread Pete Stokes
What performance do you get from that box? As in users etc for your 
application ?

Pete.



Hamilton Andrew wrote:

I run it on Dual Xeons and Redhat.  No problems.

-Original Message-
From: tom ly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 2:58 PM
To: [EMAIL PROTECTED]
Subject: Are there problems/issues running tomcat with dual Xeon
processors and Redhat?
My company might have dual Xeon processors and Linux Redhat during
production, are there issues/problem I should be aware of?
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


RE: Apache + Tomcat RH Setup

2004-01-28 Thread Luc Foisy
Thank you very much. 

Any insight on restarting each of them, and order of operations during runtime and 
actual system reboot and shutdown?

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 3:37 PM
To: Tomcat Users List
Subject: Re: Apache + Tomcat RH Setup


Here's how I've setup Tomcat and Apache to start at boot-time.  

http://www.raibledesigns.com/tomcat/boot-howto.html


 I suppose this could be directed towards John Turner, but I'll let 
 anyone answer :)
 
 I have been reading through John's HOWTO to get these operating 
 together (with the latest release versions, which I do not think 
 will matter for this question...) and noticed that he says to start 
 Tomcat before Apache and wait at least 15 seconds.
 
 I have read similar things from time to time, so I am guessing its 
 pretty important.
 
 If I wanted to set these up to start on the system boot, via the run 
 levels (/etc/rc.d/rc3.d etc...) how should I setup those links.
 
 Such as S84Tomcatd and S85Apached (linked to scripts in /etc/init.d)
 . Would that make sure that tomcat is started before apache?
 
 If I wanted to setup the links in /etc/rc.d/rc6.d would apached have 
 to shut down before tomcat?
 
 If I wanted to restart tomcat, for any reason during system runtime, 
 would I have to shut down apache, shut down tomcat, start tomcat,
  start apache?
 
 If I wanted to restart apache, what needs to be done?
 
 Luc
 
 Hopefully someone will understand what I am saying if I haven't used 
 all the correct terms and such :)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


--
Open WebMail Project (http://openwebmail.org)

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


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



RE: Apache + Tomcat RH Setup

2004-01-28 Thread Matt Raible
In my experience, it doesn't matter.  I restart Apache and Tomcat all the 
time and I never have to do them in any certain order.  If I change values in 
workers2.properties, I do have to restart Apache.

Matt

 Thank you very much. 
 
 Any insight on restarting each of them, and order of operations 
 during runtime and actual system reboot and shutdown?
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 28, 2004 3:37 PM
 To: Tomcat Users List
 Subject: Re: Apache + Tomcat RH Setup
 
 Here's how I've setup Tomcat and Apache to start at boot-time.  
 
 http://www.raibledesigns.com/tomcat/boot-howto.html
 
  I suppose this could be directed towards John Turner, but I'll let 
  anyone answer :)
  
  I have been reading through John's HOWTO to get these operating 
  together (with the latest release versions, which I do not think 
  will matter for this question...) and noticed that he says to start 
  Tomcat before Apache and wait at least 15 seconds.
  
  I have read similar things from time to time, so I am guessing its 
  pretty important.
  
  If I wanted to set these up to start on the system boot, via the run 
  levels (/etc/rc.d/rc3.d etc...) how should I setup those links.
  
  Such as S84Tomcatd and S85Apached (linked to scripts in /etc/init.d)
  . Would that make sure that tomcat is started before apache?
  
  If I wanted to setup the links in /etc/rc.d/rc6.d would apached have 
  to shut down before tomcat?
  
  If I wanted to restart tomcat, for any reason during system runtime, 
  would I have to shut down apache, shut down tomcat, start tomcat,
   start apache?
  
  If I wanted to restart apache, what needs to be done?
  
  Luc
  
  Hopefully someone will understand what I am saying if I haven't used 
  all the correct terms and such :)
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 Open WebMail Project (http://openwebmail.org)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


--
Open WebMail Project (http://openwebmail.org)

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



RE: Why not get my custom Principal using request.getUserprincipal()?

2004-01-28 Thread Robert Nicholls
Hi:
I don't think this is helpful but I have been trying to produce a realm
for authenticating against SAP.   The Tomcat documentation on the
subject notes:

It is also possible to write your own Realm implementation, and
integrate it with Tomcat 4. However, doing this is beyond the scope of
this document. See (FIXME - reference to developer stuff) for more
information.

 All of the realms appear to be in org.apache.catalina.realm which is
bundled up in catalina.jar in the server directory of Tomcat 4.x. So
with some trepidation I have broken out the jar and replaced it with a
set of classes in the correct hierarchy in server/classes directory. In
building a new realm it seems that you have to:
A) Build the realm from some template (JDBCRealm is useful) and place it
in realm directory
B) Modify mbeans-descriptors.xml in the mbeans directory
C) Add code to the MBeanFactory class in mbeans to load the new realm

Having said that, I can have a FORM or BASIC access to the realm EXCEPT
that I get null values for the username and credentials. Replacing the
nulls in hard code does produce a credential that performs as advertised
but as yet I haven't found the piece of the puzzle that is providing the
nulls strings.

If there is a better or easier way to produce a new realm I too would be
happy to hear about it.

Regards,

Bob Nicholls

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 17, 2003 10:35 AM
To: Tomcat Users List
Subject: RE: Why not get my custom Principal using
request.getUserprincipal()?



Howdy,

do you mean the JBoss realm?

No, I mean Tomcat's realm., aka the org.apache.catalina.Realm class.
There's a realm how-to page in the tomcat documentation and you will
also want to look at one of the provided realms as you'll need to extend
them.

Yoav Shapira

Tomcat Users List [EMAIL PROTECTED] schrieb am 
17.12.03
15:05:24:


 Howdy,
 Read the Realm documentation to see how to customize your Realm such 
 that
it returns your custom Principal.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Anis Ben Hamidene [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 17, 2003 7:37 AM
 To: [EMAIL PROTECTED]
 Subject: Why not get my custom Principal using
request.getUserprincipal()?
 
 Hi,
 
 I am using JBoss 3.2.1 with embedded Tomcat 4.
 I am developping a secure web-application based on JAAS. The problem

 is that I want to use my own custom Principal. I made the necessary 
 changes in JBoss and EJBContext.getUserprincopal delivers the right 
 Implementation. But when I call request.getUserprincipal() in my 
 servlet, I get don´t !!
 
 Why doesn´t tomcat use the defined custom Principal?
 How to set this?
 
 Please help as soon as possible !!!
 
 Best regards
 anis
 

__

_
 ___
 UNICEF bringt Kriegskinder in die Schule - helfen Sie mit! 
 https://www.unicef.de/spe/spe_03.php
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



___

___
WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und
nutzen Sie die neuen Funktionen http://f.web.de/features/?mc=021130


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Are there problems/issues running tomcat with dual Xeon proce ssors and Redhat?

2004-01-28 Thread Hamilton Andrew
Decent performance.  I don't have any solid numbers for you since I did my
performance review over a year ago, but response times are good.  My
application is very CPU intensive and I've run it on both a Sun Ultra 60
Dual SPARC and the Dual Xeon.  I get better performance from the Intel box.
I have several hundred users but they are not typically all on at the same
time.  I usually only get 20-50 at a time sometimes not even that many.
I've never gotten any complaints back about the response time of the system.
Your mileage may vary as my application is very targeted and is RD.

Regards,
Drew  

-Original Message-
From: Pete Stokes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 3:35 PM
To: Tomcat Users List
Subject: Re: Are there problems/issues running tomcat with dual Xeon
proce ssors and Redhat?


What performance do you get from that box? As in users etc for your 
application ?

Pete.




Hamilton Andrew wrote:

 I run it on Dual Xeons and Redhat.  No problems.
 
 
 -Original Message-
 From: tom ly [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 28, 2004 2:58 PM
 To: [EMAIL PROTECTED]
 Subject: Are there problems/issues running tomcat with dual Xeon
 processors and Redhat?
 
 
 My company might have dual Xeon processors and Linux Redhat during
 production, are there issues/problem I should be aware of?
 
 
 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 




***
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

***
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


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


Win2003 + IIS6 + Tomcat 4.1.29 redirector doesn't call tomcat

2004-01-28 Thread Summers, Bert W.
I have moved my Tomcat from 4.0.6 on NT4 with IIS4 to Win2003 IIS6 and
Tomcat 4.1.29.
 
I have configured everything correctly, I believe.
 
The problem is that sometimes the redirector does not seem to pass the
request to Tomcat.
 
I have tried isapi_redirect.dll (which worked great on NT4 and 4.0.6) and it
works in the current setup.
I have tried isapi_redirector2.dll and it seems to work also.
Even tried isapi_redirector_1.2.5.dll which also works.
 
However all of the above will sometimes not respond.  The end user gets a
page can not be displayed error. Then they hit back and click the link or
button again and it works.
 
The IIS log file shows
 
xxx.xxx.xxx.xxx - - [28/Jan/2004:09:39:47 -0800] GET
/jakarta/isapi_redirect.dll HTTP/1.1 200 0
 
and the tomcat localhost_access file has nothing.  Then the user hits back
and the same action again and I get
 
xxx.xxx.xxx.xxx - - [28/Jan/2004:09:39:47 -0800] GET
/jakarta/isapi_redirect.dll HTTP/1.1 200 11443
 
and this time the tomcat log file shows
 
xxx.xxx.xxx.xxx - - [28/Jan/2004:09:39:47 -0800] GET /NTSP/TOC.jsp
HTTP/1.1 200 11274
 
Also to note is that sometimes I get the 200 with a return size of 0 on more
than just the redirector.
Out of 788 200 0 entries 381 are to jakarta but most of them are to /
entries not actual files.
 
Has anyone else experienced this problem?
 
Thanks.



connectionTimeout and disableUploadTimeout

2004-01-28 Thread Rob Harrington
tc4.1.27 - 
SunOS 5.6 and Windows XP

Problem:  I have a modal popup window from which a
user can launch a fairly long (hours) db query.  The
results get displayed in the popup.  This works fine
for short duration queries, but for longer ones (1
hour plus?) the query does return from the db, but the
window does not get updated.

Tried:  setting connectionTimeout to -1 seemed to work
using my local XP tomcat version.  Seems not to work
in the production environment (SunOS).

I'm looking to find out *exactly* what these
parameters (connectionTimeout and
disableUploadTimeout) do and how to make them work for
me (or if they even apply in this situation).

Any other ideas would help.  I know there are
workarounds involving notifying the user when the
query is done, or programatically updating the window
periodically while waiting for the query to return,
but I'm hoping its simpler than that.  I'd like to be
able to tell the server to hold the connection
indefinitely or for some period of time.

Have checked the archives and the docs.

Thanks!

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Apache + Tomcat RH HOWTO (Apache Compile)

2004-01-28 Thread Luc Foisy
Using Johns HowTO (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html) I 
think my make might not have worked correctly. I'll paste the last bunch of lines.
I think this RH bread is 7.0, also using 2.0.48.

libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo): In function `ssl_hook_UserCheck':
/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:893: 
undefined reference to `OPENSSL_free'
modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo): In function 
`ssl_callback_SSLVerify':
/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1224: 
undefined reference to `OPENSSL_free'
/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1228: 
undefined reference to `OPENSSL_free'
modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo): In function 
`ssl_callback_SSLVerify_CRL':
/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1490: 
undefined reference to `OPENSSL_free'
modules/ssl/.libs/mod_ssl.al(ssl_engine_vars.lo): In function 
`ssl_var_lookup_ssl_cert':
/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_vars.c:351: 
undefined reference to `OPENSSL_free'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/home/tech_support/install/apache/httpd-2.0.48'
make: *** [all-recursive] Error 1

That does look like an error to me (I have no idea what a proper make looks like). Can 
someone point me in the right direction?

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



RE: JDBC/DBCP problems

2004-01-28 Thread Edson Alves Pereira
Don´t use it in init( ) method, only doPost( ) or doGet( ).

 --
 De:   Burgess, Jay S[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 28 de janeiro de 2004 12:35
 Para: [EMAIL PROTECTED]
 Assunto:  JDBC/DBCP problems
 
 I'm obviously missing something important with regards to moving our
 database/JDBC connectivity to use JNDI DataSource/DBCP.  I've read and
 re-read the docs, looked at every related message in the archive, and
 Google'd every set of keywords I can think of, but still no luck.
 Here's the issue:
 
 Tomcat version is 4.1.29 on Windows XP.  I'm attempting to connect to
 SQL Server.  The JDBC driver JARs are in CATALINA_HOME\common\lib, and
 since everything works fine if I manually load the driver via
 Class.forName(), I don't think my problem is related to my driver files
 location.  When attempting to use getConnection(), however, I get the
 dreaded Cannot create JDBC driver of class '' for connect URL 'null',
 cause: No suitable driver error.  The highlights of my configuration
 are below.
 
 -
 SERVER.XML
 -
 GlobalNamingResources
 Resource name=jdbc/mydb auth=Container type=javax.sql.DataSource
 description=The database. /
 ResourceParams name=jdbc/mydb
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 nameurl/name
 valuejdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB/va
 lue
 /parameter
 parameter
 namedriverClassName/name
 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
 nameusername/name
 valueMyUsername/value
 /parameter
 parameter
 namepassword/name
 valueMyPassword/value
 /parameter
 ...
 /GlobalNamingResources
 
 -
 WEB.XML
 -
 resource-ref
 descriptionSome description. /description
 res-ref-namejdbc/mydb/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 -
 In my servlet's init():
 -
 Context initialContext = new InitialContext();
 Context envContext = (Context) initialContext.lookup(java:comp/env);
 DataSource dataSource = (DataSource) envContext.lookup(jdbc/mydb);
 Connection conn = dataSource.getConnection(); // throws exception
 
 -
 Further info:
 -
 Adding the following line after acquiring dataSource above, I get class
 
 org.apache.commons.dbcp.BasicDataSource:
 
 System.out.println(dataSource.getClass());
 
 And if I add the following, I get
 [EMAIL PROTECTED]:
 
 System.out.println((org.apache.commons.dbcp.BasicDataSource)
 dataSource);
 
 So, since it looks like a valid BasicDataSource object, I tried the
 following, but get null back:
 
 System.out.println(((org.apache.commons.dbcp.BasicDataSource)
 dataSource).getUrl());
 
 This seems to indicate that the object isn't initialized?
 
 Turning on debug for the relevant listeners (NamingContextListener and
 GlobalResourcesLifecycleListener), I see the following related info in
 my Tomcat console window, which looks good from what I understand:
 
 Jan 28, 2004 9:06:11 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 NamingContextListener[/]: Creating JNDI naming context
 NamingContextListener[/]: Resource parameters for mydb =
 ResourceParams[name=mydb, parameters=
 {url=jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB,
 maxIdle=4,
 maxActive=8, 
 driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver, 
 maxWait=1, 
 removeAbandoned=true, 
 username=MyUsername, 
 factory=org.apache.commons.dbcp.BasicDataSourceFactory, 
 logAbandoned=true, 
 removeAbandonedTimeout=60, 
 password=MyPassword}]
 NamingContextListener[/]: Adding resource ref mydb
 NamingContextListener[/]: ResourceRef[
 className=javax.sql.DataSource,
 factoryClassLocation=null,
 factoryClassName=org.apache.naming.factory.ResourceFactory,
 {type=description,content=The database.},
 {type=scope,content=Shareable},
 {type=auth,content=Container},
 {type=url,content=
 jdbc:microsoft:sqlserver://###.###.###.###:1433;Database=MyDB},
 {type=maxIdle,content=4},
 {type=maxActive,content=8},
 {type=driverClassName,content=com.microsoft.jdbc.sqlserver.SQLServerDriv
 er},{type=maxWait,content=1},
 {type=removeAbandoned,content=true},
 {type=username,content=MyUsername},
 {type=factory,content=org.apache.commons.dbcp.BasicDataSourceFactory},
 {type=logAbandoned,content=true},
 {type=removeAbandonedTimeout,content=60},
 {type=password,content=MyPassword}]
 GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI
 Resources in Context '' [EMAIL PROTECTED]
 GlobalResourcesLifecycleListener: Processing resource mydb
 

Re: Apache + Tomcat RH HOWTO (Apache Compile)

2004-01-28 Thread Mark Eggers
RedHat places some libraries in places that configure
doesn't expect.  In order to get SSL compiled, the
following environment variable needs to be set before
running configure.

export CPPFLAGS=-I/usr/kerberos/include 
 -I/usr/openssl/include

(all on one line - sorry about the wrap)

HTH

/mde/
just my two cents . . . .

--- Luc Foisy [EMAIL PROTECTED] wrote:

 modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo):
 In function `ssl_hook_UserCheck':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:893:
 undefined reference to `OPENSSL_free'
 modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo):
 In function `ssl_callback_SSLVerify':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1224:
 undefined reference to `OPENSSL_free'

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1228:
 undefined reference to `OPENSSL_free'
 modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo):
 In function `ssl_callback_SSLVerify_CRL':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1490:
 undefined reference to `OPENSSL_free'
 modules/ssl/.libs/mod_ssl.al(ssl_engine_vars.lo): In
 function `ssl_var_lookup_ssl_cert':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_vars.c:351:
 undefined reference to `OPENSSL_free'
 collect2: ld returned 1 exit status
 make[1]: *** [httpd] Error 1
 make[1]: Leaving directory
 `/home/tech_support/install/apache/httpd-2.0.48'
 make: *** [all-recursive] Error 1


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: Apache + Tomcat RH HOWTO (Apache Compile)

2004-01-28 Thread Luc Foisy
Nope. That didn't make it fly. 
I exported, ran configure, then make. Same result.

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 5:17 PM
To: Tomcat Users List
Subject: Re: Apache + Tomcat RH HOWTO (Apache Compile)


RedHat places some libraries in places that configure
doesn't expect.  In order to get SSL compiled, the
following environment variable needs to be set before
running configure.

export CPPFLAGS=-I/usr/kerberos/include 
 -I/usr/openssl/include

(all on one line - sorry about the wrap)

HTH

/mde/
just my two cents . . . .

--- Luc Foisy [EMAIL PROTECTED] wrote:

 modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo):
 In function `ssl_hook_UserCheck':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:893:
 undefined reference to `OPENSSL_free'
 modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo):
 In function `ssl_callback_SSLVerify':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1224:
 undefined reference to `OPENSSL_free'

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1228:
 undefined reference to `OPENSSL_free'
 modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo):
 In function `ssl_callback_SSLVerify_CRL':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_kernel.c:1490:
 undefined reference to `OPENSSL_free'
 modules/ssl/.libs/mod_ssl.al(ssl_engine_vars.lo): In
 function `ssl_var_lookup_ssl_cert':

/home/tech_support/install/apache/httpd-2.0.48/modules/ssl/ssl_engine_vars.c:351:
 undefined reference to `OPENSSL_free'
 collect2: ld returned 1 exit status
 make[1]: *** [httpd] Error 1
 make[1]: Leaving directory
 `/home/tech_support/install/apache/httpd-2.0.48'
 make: *** [all-recursive] Error 1


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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


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



Can I specify creation order of ObjectFactories ?

2004-01-28 Thread Roland Nygren
Hi,
I have a number of classes implementing
javax.naming.spi.ObjectFactory  and I specify them in tomcat server.xml 
GlobalNamingResources and as ResourceLink in DefaultContext.
Because some of them are depending on other I would like to specify the order in which 
they are created (instanciated).
Is that possible?

Best regards Roland Nygren.



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



RE: Differences betwen Tomcat 5 and 4 writing to output stream?

2004-01-28 Thread Jake Alley
Yoav,
You made my day.  It certainly does change the behavior and works like 
a charm.

Thanks!

Jake

Howdy,

PrintWriter out = new PrintWriter (response.getOutputStream());

Does the behavior change if you do
PrintWriter out = response.getWriter();
instead of the above construction?
Yoav Shapira

_
Get a FREE online virus check for your PC here, from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Returned Mail: Error During Delivery

2004-01-28 Thread postmaster
-- Here is your List of Failed Recipients --
[EMAIL PROTECTED]


Requested action not taken: mailbox unavailable. [SMTP Error Code 550]

 Here Is Your Returned Mail 
Received: FROM Softgate1.Softimage.COM BY exterminator ; Wed Jan 28 19:19:29 2004 -0500
Received: from jakarta.apache.org (80-28-14-122.adsl.nuria.telefonica-data.net 
[80.28.14.122])
by Softgate1.Softimage.COM (8.12.9/8.12.1) with SMTP id i0T0KgFb024272
for [EMAIL PROTECTED]; Wed, 28 Jan 2004 19:20:43 -0500
Message-Id: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: hello
Date: Thu, 29 Jan 2004 01:18:51 +0100
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0010_2254F7A1.C7C0C901
X-Priority: 3
X-MSMail-Priority: Normal

This is a multi-part message in MIME format.

--=_NextPart_000_0010_2254F7A1.C7C0C901
Content-Type: text/plain;
charset=Windows-1252
Content-Transfer-Encoding: 7bit

The message contains Unicode characters and has been sent as a binary attachment.


--=_NextPart_000_0010_2254F7A1.C7C0C901
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=WARNING0.txt

Network Associates WebShield SMTP V4.5 MR1a on exterminator detected virus
W32/[EMAIL PROTECTED] in attachment document.zip from [EMAIL PROTECTED] and it was
Deleted and Quarantined. Please take appropriate measures to clean-up your system.

--=_NextPart_000_0010_2254F7A1.C7C0C901--



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



Re: Tomcat + Hibernate2 + Security Manager

2004-01-28 Thread Jeanfrancois Arcand


Webmaster wrote:

Hi !

On Tue, 27 Jan 2004 12:14:16 -0500, Jeanfrancois Arcand [EMAIL PROTECTED] escreveu:

 

De: Jeanfrancois Arcand [EMAIL PROTECTED]
Data: Tue, 27 Jan 2004 12:14:16 -0500
Para: Tomcat Users List [EMAIL PROTECTED]
Assunto: Re: Tomcat + Hibernate2 + Security Manager


Webmaster wrote:

   

Hi all,

I know this is a little bit out of topic, but the general concept is useful for everybody.

I run tomcat with security manager for a dozen users. Recently, people started to use the hibernate 2 which requires some funky permissions.

I had to put these lines in the 'global' permission to make it work:

grant {

...

permission java.lang.RuntimePermission accessDeclaredMembers;
permission java.lang.reflect.ReflectPermission suppressAccessChecks;
permission java.lang.RuntimePermission defineCGLIBClassInJavaPackage;
...
}
Note: I DID test using a codebase like:

grant codeBase file:/home//client/public_html/WEB-INF/lib/hibernate2.jar!/- { 


but the classes hibernate creates after reflection stop obeying the security manager.

 

Do you have the exception? Which Tomcat version are you using?
   

I'm using 4.1.29. The classes that hibernate creates dinamically are the ones that don't follow the codebase anymore, it's like they have a 'null' codebase after they are created.

 

Are there any security risks on a security setup with those 3 lines for all classes in the JVM ?

 

Yes. It will now allow a Servlet to load tomcat internal classes and 
maybe do malicious things. 
   

Right now, my clients don't have permissions to read the classes in /server/lib directory ( I don't give file io permission to this directory, only to /common/lib ). Would that be enough to stop these malicious things ?
 

Yes. But you should only grant those permission to the Hibernate jar 
files, not the entire folder.

-- Jeanfrancois

 

-- Jeanfrancois

   

Thanks
Renato.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

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


   

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



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


Tomcat and Byte Range header ?

2004-01-28 Thread Vivek Kapadekar
Hi

Does tomcat 4.1.X implement the optional HTTP 1.1 Byte range header feature
?

Thanks
-VK


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



Re: JDBC/DBCP problems

2004-01-28 Thread Philipp Taprogge
Hi!

Michael Duffy wrote:
I think it's a better idea to make those app resources
local instead of global.  If your app is the only one
that needs that data source, by all means it should
not be global.  That's the way I prefer to do it. 
Keep those apps uncoupled and isolated from each
other. - MOD
Agreed.
The problem is that with tomcat4 (at least as far as I have learned), 
it is not possible to define a Context-Element in server.xml for a 
webapp that has not yet been deployed. If you want to use auto-deploy, 
you have to drop the war into the webapps directory, start and then 
stop tomcat so that the war get's unpacked and the context registered, 
 next you have to add the Context element and finally start tomcat 
again for those changes to take effect. If you want to define 
datasources for a webapp that is not yet deployed, you have no choice 
than to make them global.
As I said earlier, this only applies to tomcat4.
If I am mistaken here, by all means tell me so, because this bahavior 
is a pain in the back...

	Phil

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


How do I build mod_jk.so

2004-01-28 Thread Thomas Cherry
OK, first of all I tried to download mod_jk for linux and I could not 
find it.  Maybe it exists, but I have always found Apache's download 
page to be lacking.  So I downloaded the source code (jk2).  I did what 
the README file said but found it to be wrong so I did what I could to 
get ant to compile the project but now I don't know what to do.  I was 
expecting to have a mod_jk.so file (which made me question why ant was 
the build tool) but have not found it.  Could someone tell me what I 
have done wrong.  All I want to do is connect Apache and Tomcat and at 
ever step of the process I hit a road block.  All documentation on the 
subject seems to be missing key information like how to actually build 
a connector) and I am starting to believe that the Tomcat project is is 
serious disarray.  I hope I can be proved wrong.

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


JK2: Sticky session problem

2004-01-28 Thread jmorace
Hi,

I was having a problems with my sessions not sticking to the correct web
server in a load balanced cluster.  If I set tomcatId/jvmRoute to a
value that does not contain a period, the problem goes away.  I'm using
Apache 2.0.47 with JK 2.0.2.

Has anyone else seend this?  Is this a known bug?

Thanks,

Jonathan

 Example error configuration 

# This configuration appears to fail because the jvmRoute becomes
# server.mydomain.com:8009 (contains . characters).

[shm:]
file=${serverRoot}/logs/jk2.shm
size=1048576

[lb:load_balancer]

[channel.socket:server.mydomain.com:8009]
port=8009
host=server.mydomain.com
group=load_balancer
lb_factor=1

[channel.socket:server.mydomain.com:8019]
port=8019
host=server.mydomain.com
group=load_balancer
lb_factor=1

[uri:/test/*]
group=lb:load_balancer

 Example working configuration (using localhost) 

# This configuration works because it constructs a jvmRoute that
# looks like localhost:8009 (no periods).

[shm:]
file=${serverRoot}/logs/jk2.shm
size=1048576

[lb:load_balancer]

[channel.socket:localhost:8009]
port=8009
host=localhost
group=load_balancer
lb_factor=1

[channel.socket:localhost:8019]
port=8019
host=localhost
group=load_balancer
lb_factor=1

[uri:/test/*]
group=lb:load_balancer

 Example working configuration (using tomcatId) 

# This configuration works because the tomcatId sets the jvmRoute
# to server1 (no periods).

[shm:]
file=${serverRoot}/logs/jk2.shm
size=1048576

[lb:load_balancer]

[channel.socket:server.mydomain.com:8009]
port=8009
host=server.mydomain.com
group=load_balancer
lb_factor=1
tomcatId=server1

[channel.socket:server.mydomain.com:8019]
port=8019
host=server.mydomain.com
group=load_balancer
lb_factor=1
tomcatId=server2

[uri:/test/*]
group=lb:load_balancer

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



Client Authentication

2004-01-28 Thread Milazzo, Michael A HQISEC
Hi,

I am trying to configure Tomcat to protect my pages using SSL client
authentication.  I changed the clientAuth option within the HTTPS connector,
but I'm not sure what to do next.  My code already tries to look for the
certs and parse them, but I am not sure what else I need to configure. 

Thanks,

Michael A. Milazzo
USAISEC-Technology Integration Center
Communications Systems Evaluation Team
Comm: (520) 533-3765
DSN: 821-3765
Email: [EMAIL PROTECTED]




How to config Tomcat under Windows IIS (5.1)

2004-01-28 Thread MeiYu Li
Hi,

I try to find the docuemnt about this issue and couldn't.  Could you let me 
know where it is or how to do it ?!  It's under Windows XP.

Thanks !

Meiyu

_
Check out the new MSN 9 Dial-up — fast  reliable Internet access with prime 
features! http://join.msn.com/?pgmarket=en-uspage=dialup/homeST=1

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


WebappClassLoader not GC'd after webapp reload (Tomcat 4.1.24, 5.0.18)

2004-01-28 Thread Tatyana Apine
Hi all,

I've got a problem and was wondering if you ever experienced something like 
this.

My webapplication is using Struts(1.1) and Log4J (1.2.7). I run it on tomcat 
4.1.24 (I also tried 5.0.18 and got the same behavior).

I use OptimizeIt (version 4.2) to see what classes weren't garbage collected 
after I stop or reload my webapplication. I noticed that 
org.apache.catalina.loader.WebappClassLoader is not removed after I 
stop/reload my webapplication. Every time I restart my application, the new 
WebappClassLoader is added to the list of WebappClassLoaders instances - and 
they never get garbage collected.

I debugged this class and the class that is referencing this class loader 
(org.apache.catalina.loader.WebappLoader) and made sure that all references 
to this class from the WebappLoader are removed. OptimizeIt is showing that 
incoming refernces after application stop for the WebappClassLoader class 
are java.security.ProtectionDomain and sun.reflect.DelegatingClassLoader. 
This information does not help me too much :(

I also made sure that all Threads that are started when I start the 
application are stopped after I stop it (and all Thread instances are GC'd 
as well).

I can reproduce the same problem with struts-blank application from the 
apache web site (it's inside the struts1.1 zip file - 
http://mirrors.isc.org/pub/apache/jakarta/struts/binaries/jakarta-struts-1.1.zip 
) - if I reload/stop this application the WebappClassLoader that was used by 
it is not GC'd.

I also tried using IBM JDK - and I have the same behavior with it (1.3.1).

I have no ideas on what else I can try, except trying another application 
server - but it will be a huge effort that I would like to avoid. Did you 
ever have the same thing happening? Do you have any ideas on what else I can 
try here? I will really appreciate any help on this problem.

Thank you,
Tatjana.
_
Check out the new MSN 9 Dial-up — fast  reliable Internet access with prime 
features! http://join.msn.com/?pgmarket=en-uspage=dialup/homeST=1

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


Specify create order for ObjectFactory

2004-01-28 Thread Roland Nygren
Hi,
Tomcat 4.1.27.
I have a number of classes implementing javax.naming.spi.ObjectFactory and they are 
all configured in server.xml (GlobalNamingResources and as ResourceLink in 
DefaultContext).

This works fine and they are all created at startup of Tomcat. But it seems that the 
order in which they are created does not follow the order they are specified in 
server.xml. Is there any way to specify the order. I need one class to created before 
all other since they depend on that first object.

Best regards Roland.



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



Specify create order for ObjectFactory

2004-01-28 Thread Roland Nygren
Hi,
Tomcat 4.1.27.
I have a number of classes implementing javax.naming.spi.ObjectFactory and they are 
all configured in server.xml (GlobalNamingResources and as ResourceLink in 
DefaultContext).

This works fine and they are all created at startup of Tomcat. But it seems that the 
order in which they are created does not follow the order they are specified in 
server.xml. Is there any way to specify the order. I need one class to created before 
all other since they depend on that first object.

Best regards Roland.



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



test

2004-01-28 Thread duncan
The message cannot be represented in 7-bit ASCII encoding and has been sent as a 
binary attachment.


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

Tomcat + Eclipse

2004-01-28 Thread amit varshney
I know that this is not the right place to ask this question but I will be grateful to 
receive ur replies.

I am just a biginner to use eclipse. I have Tomcat plugin but i don't how to  run 
Tomcat from within Eclipse.and how to run an application.

Thanx in advance.
Amit Varshney


-
Still single? Click here to find the perfect match.

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

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



Strange Problem - II

2004-01-28 Thread Arnab Chakravarty
All:

One more thing, back button is clicked on the old page where the URL is generated by 
making the RMI call and not on the new rendered page generated at another's vendor 
location.

Hope the problem is correctly understool :).

Thanks,
Arnab C


Re: Strange Problem

2004-01-28 Thread pavan . k

this is not the list to post this question...
pls avoid cross posting

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

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

Strange Problem

2004-01-28 Thread Arnab Chakravarty
All:

I have this strange problem with my application. When I click back button on a 
particulary jsp page, I get back to the Login Page. This is some idiotic problem but 
it is hapenning.

But, point here to be noted is: When links are clicked on the page which does some 
HTTP handover (a URL is generated by an RMI call and the URL is a servlet rendered at 
another's vendor) to some other site and then the back button is clicked the Login 
page is displayed otherwise the Back button is working fine.

One more point, this functionality is working perfect in Netscape 7.0 but Only failing 
on IE5.5 and 6.0.

Any clues or solutions to the same would be highly appreciated. (I am sure someone in 
the list can help)

Thanks in advance.
Arnab


Tomcat+Eclipse

2004-01-28 Thread amit varshney
I know that this is not the right place to ask this question but I will be
grateful to receive ur replies.

I am just a biginner to use eclipse. I have Tomcat plugin but i don't how to 
run Tomcat from within Eclipse.and how to run an application.

Thanx in advance.
Amit Varshney

-
Still single? Click here to find the perfect match.

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

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



%@ include file=xyz.jsp %

2004-01-28 Thread N.B.Bopanna
Hi all,
what is the equivalent of jsp directive 
%@ include file=super_adminmenu.htm % in servlets?

is it RequestDispatcher.include(request,response)?
thanks
bopanna



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



RE: how can I change a variable on the fly with shutting down tomcat

2004-01-28 Thread tom ly
I don't have to write to a file, as long as I find a way to persistently store the 
changes and make sure they take effect after a restart.  How would I be able to change 
the static variable on the fly, say through a command line in unix?

Shapira, Yoav [EMAIL PROTECTED] wrote:
Howdy,

afterwards. What can I do? I've though about using a text file. But I
want to read from this text file once only during startup of tomcat,
store
the value in memory for fast access but then be able to change the
value in
memory as well as the text file on the fly. What can i use to do this?
or
is there a better way?

There are many ways ;) Do you HAVE to write out to the file, or can you
just change the value in memory?

Typically when you want to do something once on startup you do it in a
ServletContextListener. Make the variable static and add static
accessors for your variable in your context listener implementation.
You can specify the configuration file location in web.xml as a
context-param, or you can specify the starting variable value itself if
you don't need a text file. If you are using a text file and want to
write out the final value when your app/server is shutting down, you can
do so in the contextDestroyed method of the listener.

Yoav Shapira



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Antwort: Re: Antwort: RE: SSL, keystore with ca hierarchy

2004-01-28 Thread Oliver Wulff




I've done this and it does work. Now I wanted to turn client authentication
on: clientAuth=true

But it doesn't work. I've registred the ca certificates after I've imported
the openssl certificate:
keytool -import -keystore %KEYSTORE_FILE% -storepass 123456 -alias root
-trustcacerts -file CA_Root_APU.pem
keytool -import -keystore %KEYSTORE_FILE% -storepass 123456 -alias
server_ca -trustcacerts -file CA_Server_APU.pem

BTW, I'm running Tomcat 4.1.29 and JDK 1.4.1_02.

Oliver



   
  Bill Barker
  [EMAIL PROTECTED]An:   [EMAIL PROTECTED]
  .comKopie:  
  Gesendet von:Thema:Re: Antwort: RE: SSL, 
keystore with ca hierarchy
  news 
  [EMAIL PROTECTED]
  rg  
   
   
  26.01.2004 00:53 
  Bitte antworten  
  an Tomcat Users 
  List
   
   




broken-record
There is a utility at http://www.comu.de/docs/tomcat_ssl.htm to import your
OpenSSL certs into a JKS keystore.  Alternatively, the ssl_howto for TC 5.x
contains an example of how to configure a PKCS12 keystore from an OpenSSL
keystore.
/broken-record

Mark Thomas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
  I can't do step 1 and 2 because the certificate and private
  key has been
  created already with openssl.
  The file TestServer_APU.pem contains the private key and
  certificate in the
  PEM format.
  Should that work either?

 Sorry, no idea. You may need to convert formats. A quick Google found
 https://lists.freeswan.org/archives/users/2003-August/msg00040.html that
may
 help if a format conversion is required.

  Does the cacerts has to be located in
  %JAVA_HOME%\jre\lib\security\cacerts
  or can I place it anywhere else?

 See http://java.sun.com/products/jsse/install.html for how to configure
trust
 store locations.

 Mark




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









*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Mycom Europe: Mail Delivery Error - tomcat-user@jakarta.apache.org

2004-01-28 Thread [EMAIL PROTECTED]
- THIS IS AN AUTOMATED ERROR REPLY ---
PLEASE CHECK THE SPELLING OF THE EMAIL-ADDRESS

Dear Oliver Wulff ([EMAIL PROTECTED]),

Your message
Antwort: Re: Antwort: RE: SSL, keystore with ca hierarchy, sent to [EMAIL 
PROTECTED]

cannot be delivered due to the following error:
[EMAIL PROTECTED] - no such mailbox at MYCOMEUROPE.COM.

Generally this means that
a) There _really_ isn't such an address here at Mycom
b) You have misspelled the address (and due to misspelling, refer to a))

Below is the header from the original message:

Received: from pop3.easynet.be by FTGate SmartPop;
Thu, 29 Jan 2004 07:13:45 +0100
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Thu, 29 Jan 2004 07:07:16 +0100
Received: from mx.mail.be.easynet.net ([2001:6f8:200:1::1:68])
by pop3.mail.be.easynet.net with esmtp (TLSv1:EDH-RSA-DES-CBC3-SHA:168)
(Exim 4.12)
id 1Am5Ke-0003QP-00
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:07:16 +0100
Received: from daedalus.apache.org ([208.185.179.12] helo=mail.apache.org)
by mx.mail.be.easynet.net with smtp (Exim 4.24)
id 1Am5Kc-0004kj-On
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:07:14 +0100
Received: (qmail 29817 invoked by uid 500); 29 Jan 2004 06:06:35 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 29750 invoked from network); 29 Jan 2004 06:06:34 -
Received: from unknown (HELO mtach4.zurich.com) (195.28.226.90)
  by daedalus.apache.org with SMTP; 29 Jan 2004 06:06:34 -
Subject: Antwort: Re: Antwort: RE: SSL, keystore with ca hierarchy
To: Tomcat Users List [EMAIL PROTECTED]
X-Mailer: Lotus Notes Release 5.0.10  March 22, 2002
Message-ID: [EMAIL PROTECTED]
From: Oliver Wulff [EMAIL PROTECTED]
Date: Thu, 29 Jan 2004 07:06:39 +0100
X-MIMETrack: Serialize by Router on CHKNH023/Zurich-Internet(Release 6.5|September 26, 
2003) at
 29.01.2004 07:06:45
MIME-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: quoted-printable
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-DCC-NIET-Metrics: basil 1080; Body=1 Fuz1=1 Fuz2=1
x-recipient:[EMAIL PROTECTED]




- THIS IS AN AUTOMATED ERROR REPLY ---

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

Mycom Europe: Mail Delivery Error - tomcat-user@jakarta.apache.org

2004-01-28 Thread [EMAIL PROTECTED]
- THIS IS AN AUTOMATED ERROR REPLY ---
PLEASE CHECK THE SPELLING OF THE EMAIL-ADDRESS

Dear [EMAIL PROTECTED] ([EMAIL PROTECTED]),

Your message
Mycom Europe: Mail Delivery Error - [EMAIL PROTECTED], sent to [EMAIL PROTECTED]

cannot be delivered due to the following error:
[EMAIL PROTECTED] - no such mailbox at MYCOMEUROPE.COM.

Generally this means that
a) There _really_ isn't such an address here at Mycom
b) You have misspelled the address (and due to misspelling, refer to a))

Below is the header from the original message:

Received: from pop3.easynet.be by FTGate SmartPop;
Thu, 29 Jan 2004 07:23:47 +0100
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Thu, 29 Jan 2004 07:14:20 +0100
Received: from mx3.mail.be.easynet.net ([2001:6f8:200:1::1:80])
by pop3.mail.be.easynet.net with esmtp (TLSv1:DHE-RSA-AES256-SHA:256)
(Exim 4.12)
id 1Am5RU-0004lN-00
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:14:20 +0100
Received: from daedalus.apache.org ([208.185.179.12] helo=mail.apache.org)
by mx3.mail.be.easynet.net with smtp (Exim 4.24)
id 1Am5RT-00030e-7V
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:14:19 +0100
Received: (qmail 53865 invoked by uid 500); 29 Jan 2004 06:13:39 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 53843 invoked from network); 29 Jan 2004 06:13:38 -
Received: from unknown (HELO smtp2.mail.be.easynet.net) (212.100.160.76)
  by daedalus.apache.org with SMTP; 29 Jan 2004 06:13:38 -
Received: from 213-193-188-11.adsl.easynet.be ([213.193.188.11] helo=mycomeurope.com)
by smtp2.mail.be.easynet.net with esmtp (Exim 4.22)
id 1Am5Qy-0008W4-W1
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:13:49 +0100
Date: Thu, 29 Jan 2004 07:13:45 +0100
Message-Id: [EMAIL PROTECTED]
from: [EMAIL PROTECTED] [EMAIL PROTECTED]
to: [EMAIL PROTECTED]
subject: Mycom Europe: Mail Delivery Error - [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary==_NextPart_f04012907134501D5
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-DCC-TISCALI.BE-Metrics: nusku 1025; Body=2 Fuz1=3 Fuz2=3
x-recipient:[EMAIL PROTECTED]




- THIS IS AN AUTOMATED ERROR REPLY ---

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

Re: How do I build mod_jk.so

2004-01-28 Thread Lukas Larsson
Hello,

To build the connector go into the directory jk/native2/ then do
./buildconf.sh (or something like that, can't recall the exact name), then
do

./configure --with-apxs2=/apache2/bin/apxs // or wherever you have the apxs
file
make
make install

and you should get the mod_jk2.so file

Hope that help


./Lukas
- Original Message - 
From: Thomas Cherry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:04 AM
Subject: How do I build mod_jk.so


 OK, first of all I tried to download mod_jk for linux and I could not
 find it.  Maybe it exists, but I have always found Apache's download
 page to be lacking.  So I downloaded the source code (jk2).  I did what
 the README file said but found it to be wrong so I did what I could to
 get ant to compile the project but now I don't know what to do.  I was
 expecting to have a mod_jk.so file (which made me question why ant was
 the build tool) but have not found it.  Could someone tell me what I
 have done wrong.  All I want to do is connect Apache and Tomcat and at
 ever step of the process I hit a road block.  All documentation on the
 subject seems to be missing key information like how to actually build
 a connector) and I am starting to believe that the Tomcat project is is
 serious disarray.  I hope I can be proved wrong.


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




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



Mycom Europe: Mail Delivery Error - tomcat-user@jakarta.apache.org

2004-01-28 Thread [EMAIL PROTECTED]
- THIS IS AN AUTOMATED ERROR REPLY ---
PLEASE CHECK THE SPELLING OF THE EMAIL-ADDRESS

Dear Lukas Larsson ([EMAIL PROTECTED]),

Your message
Re: How do I build mod_jk.so, sent to [EMAIL PROTECTED]

cannot be delivered due to the following error:
[EMAIL PROTECTED] - no such mailbox at MYCOMEUROPE.COM.

Generally this means that
a) There _really_ isn't such an address here at Mycom
b) You have misspelled the address (and due to misspelling, refer to a))

Below is the header from the original message:

Received: from pop3.easynet.be by FTGate SmartPop;
Thu, 29 Jan 2004 07:31:06 +0100
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Thu, 29 Jan 2004 07:27:28 +0100
Received: from mx3.mail.be.easynet.net ([2001:6f8:200:1::1:80])
by pop3.mail.be.easynet.net with esmtp (TLSv1:DHE-RSA-AES256-SHA:256)
(Exim 4.12)
id 1Am5e8-0007H7-00
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:27:24 +0100
Received: from daedalus.apache.org ([208.185.179.12] helo=mail.apache.org)
by mx3.mail.be.easynet.net with smtp (Exim 4.24)
id 1Am5e6-0003Qt-NL
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:27:22 +0100
Received: (qmail 736 invoked by uid 500); 29 Jan 2004 06:26:45 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 693 invoked from network); 29 Jan 2004 06:26:44 -
Received: from unknown (HELO www.mail15.com) (62.118.249.44)
  by daedalus.apache.org with SMTP; 29 Jan 2004 06:26:44 -
Received: from ituniv841 (garazdawi.csbnet.se [193.11.251.12])
(authenticated bits=0)
by www.mail15.com (8.12.9/8.12.6) with ESMTP id i0T6Phhl078454
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 09:25:44 +0300 (MSK)
(envelope-from [EMAIL PROTECTED])
Message-ID: [EMAIL PROTECTED]
From: Lukas Larsson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Subject: Re: How do I build mod_jk.so
Date: Thu, 29 Jan 2004 07:26:53 +0100
MIME-Version: 1.0
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-DCC-TISCALI.BE-Metrics: nusku 1025; Body=1 Fuz1=1 Fuz2=1
x-recipient:[EMAIL PROTECTED]




- THIS IS AN AUTOMATED ERROR REPLY ---

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

Mycom Europe: Mail Delivery Error - tomcat-user@jakarta.apache.org

2004-01-28 Thread [EMAIL PROTECTED]
- THIS IS AN AUTOMATED ERROR REPLY ---
PLEASE CHECK THE SPELLING OF THE EMAIL-ADDRESS

Dear [EMAIL PROTECTED] ([EMAIL PROTECTED]),

Your message
Mycom Europe: Mail Delivery Error - [EMAIL PROTECTED], sent to [EMAIL PROTECTED]

cannot be delivered due to the following error:
[EMAIL PROTECTED] - no such mailbox at MYCOMEUROPE.COM.

Generally this means that
a) There _really_ isn't such an address here at Mycom
b) You have misspelled the address (and due to misspelling, refer to a))

Below is the header from the original message:

Received: from pop3.easynet.be by FTGate SmartPop;
Thu, 29 Jan 2004 07:31:07 +0100
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Thu, 29 Jan 2004 07:24:23 +0100
Received: from mx3.mail.be.easynet.net ([2001:6f8:200:1::1:80])
by pop3.mail.be.easynet.net with esmtp (TLSv1:DHE-RSA-AES256-SHA:256)
(Exim 4.12)
id 1Am5bA-0006hQ-00
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:24:20 +0100
Received: from daedalus.apache.org ([208.185.179.12] helo=mail.apache.org)
by mx3.mail.be.easynet.net with smtp (Exim 4.24)
id 1Am5b9-0003Jh-HL
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:24:19 +0100
Received: (qmail 88525 invoked by uid 500); 29 Jan 2004 06:23:41 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 88495 invoked from network); 29 Jan 2004 06:23:41 -
Received: from unknown (HELO smtp2.mail.be.easynet.net) (212.100.160.76)
  by daedalus.apache.org with SMTP; 29 Jan 2004 06:23:41 -
Received: from 213-193-188-11.adsl.easynet.be ([213.193.188.11] helo=mycomeurope.com)
by smtp2.mail.be.easynet.net with esmtp (Exim 4.22)
id 1Am5ah-K7-JO
for [EMAIL PROTECTED]; Thu, 29 Jan 2004 07:23:51 +0100
Date: Thu, 29 Jan 2004 07:23:48 +0100
Message-Id: [EMAIL PROTECTED]
from: [EMAIL PROTECTED] [EMAIL PROTECTED]
to: [EMAIL PROTECTED]
subject: Mycom Europe: Mail Delivery Error - [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary==_NextPart_f04012907234801DF
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-DCC-x-mailer.co.uk-Metrics: nusku 1192; Body=2 Fuz1=5 Fuz2=6
x-recipient:[EMAIL PROTECTED]




- THIS IS AN AUTOMATED ERROR REPLY ---

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

  1   2   >