RE: Beyond bassic form authentication?

2004-07-27 Thread Yiannis Mavroukakis
Ok..:) puts D hat and sits in the corner
Let me see if I got this right..if you put a form on the
unprotected resource that posts to j_security_check, in theory and
according to the servlet spec, you should be redirected to the same
url (or the requested url and be authenticated). If that is correct, you could then use
getUserPrincipal() to forward the user to the protected part. But as
I say, IF I am correct..otherwise I'll put the second D hat on.

-Original Message-
From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]
Sent: 27 July 2004 15:10
To: Tomcat Users List
Subject: Re: Beyond bassic form authentication?


That wont work.

Try navigating to the login page of the security sample on Tomcat. and 
try loging in! It will throw an exception of the sort that it canot 
authenticate against itself

Yiannis Mavroukakis wrote:

Why not make the welcome page part of the secured app
, let the users authenticate and then use getUserPrincipal()
to determine whether you need to redirect them to the secured pages.

-Original Message-
From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]
Sent: 27 July 2004 14:34
To: Yiannis Mavroukakis
Subject: Re: Beyond bassic form authentication?


Yeah it will but what will it do with it? ;)

I guess I have to explain this step by step lol

1- Create a directory /MyNewApp in /webapps and attach a context to it.
2- Create all standard webapp directories like /WEB-INF etc...
3- Create a new directory /secured in in the inside your new webpass 
directory. Bassically /webapps/MyNewApp/secured
4- Put the security sample jsp pages that come with Tomcat within the 
secured folder.
5- Create your user realm
6- Configure security constraints. Set constraint on the /secured 
folder. Point authentication to the login.jsp... etc...

So now we are all happy?

Now open your browser and go to http://localhost:8080/MyNewApp/secured. 
Tomcat notices thatthis is aprotected URL and shoot back to you the 
login page You login and voila evryone is happy again!

Now create index.jsp page in your webapps root /MyNewApp and add it to 
the list of welcome pages in your web.xml Which by default index.jsp 
is configured as default page

Back in your browser go to: http://localhost:8080/MyNewApp/ and you 
should see the new index.jsp page you just created...

Now we are all happy again! ;)

On this new index.jsp page create a login form. Now from this login form 
I want to be authenticated to access /MyNewApp/secured.

So here we have to problems...
1- You canot put as the action point /secured. Even though you pass a 
j_username and j_password fields with correct credential through the 
POST, because you are not authenticated, it will shoot back at you the 
login page that was configured in web.xml And then you can do proper login.

2- The action point canot be j_security_check because Tomcat will not 
know what to do with it! Bassically your are posting a form with action 
j_security_check from an unsecure resource. Even if Tomcat understood 
and actually authneticated it you, where would it redirect you? It 
wouldn't know. When you access a secure resource directly Tomcat 
attaches the secured resource URL in some way to the login page. So when 
you authenticate it knows where to redirect you.

Thanks

Yiannis Mavroukakis wrote:

  

Not sure I get this a 100% percent, but with regards to your last statement,
Of course I canot just put a form on the welcome page with 
action=%=request.encodeURL(j_security_check)% 
The browser wouldn't know where to post to.

The browser will post to the application server
anyway! It is no different than saying that the form will post to
either POST=http://foo.org/bar or to POST=bar (assume foo.org is the
domain of your application server).

-Original Message-
From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]
Sent: 26 July 2004 15:12
To: Tomcat Users List
Subject: Re: Beyond bassic form authentication?


Ok then I think the problem is not understood ;)

My form authentication does work. In fact I scabbed the whole security 
sample :P

Like I noted... When I type  the protected resources URL in the browser 
address bar. Tomcats authentication kicks in and redirects me to the 
login page I specified in my web.xml I type the username and password 
that is stored in mysql and I login. This works fine.

What I want to do is access the protected resource from an unprotected 
resource. For intsance on the welcome page of my web app which everyone 
can see. I want to add a login form which will login the user and give 
him access to the protect resource.

One solution is to just put a Sign-In link which will in turn try to 
access the protected resource, but since the visitor is not logged in, 
he will be redirected to the login page.

The other solution which I want is to offer a login page directly on the 
welcome page. Of course I canot just put a form on the welcome page with 
action=%=request.encodeURL(j_security_check

RE: Beyond bassic form authentication?

2004-07-26 Thread Yiannis Mavroukakis
english
Anastasie I think what Robert means is you should steal some code
from the existing examples in Tomcat.
/english

greek
Yparxoune epishs kai alloi tropoi pou boreis na to kaneis ayto..boreis
kalista na exeis authentication mesw tou Apache kai enos module
pou koitaei gia valid accounts sthn mySQL sou.
/greek

Happy coding,

Yiannis

-Original Message-
From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]
Sent: 26 July 2004 14:13
To: Tomcat Users List
Subject: Re: Beyond bassic form authentication?


Does any one have any ideas on this? What is code scabbing?

Thanks

Robert Harper wrote:

Did you try scabbing code from the login.jsp? You may want to use that and the
user will gain access to the areas allowed with their group or role.

Robert S. Harper
801.265.8800 ex. 255

  

-Original Message-
From: Anastasios Angelidis [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 7:37 AM
To: [EMAIL PROTECTED]
Subject: Beyond bassic form authentication?

So I setup my web app to use Form Authentication with a User Realm in my
MySQL DB. It all works fine. I type the protected resources URL into the
browser, I get redirected to the login page, I login and behold it works! ;)

Now how would I give access to a secure resource from an unsecure
resource. For instance...

My webapp has a front page with recent news, welcome message etc...
Standard home page stuff...
Obviously I can put a sign-in link that will try to access the protected
resource, which will then redirect to the login page...
But is there a way to put a login form on the home page directly and
post that form for authentication and from there give access to the
protected resource?

Thanks

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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



RE: mod_jk2 build error

2004-04-02 Thread Yiannis Mavroukakis
SImple :) don't follow the instructions. 
Do a ./configure --help to get the options you need (--with-apxs2 --with-jni
--with-pcre and related java/tomcat options) then do a straight make and
manually copy the binary to your web server's module location.

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED]
Sent: 02 April 2004 05:42
To: [EMAIL PROTECTED]
Subject: mod_jk2 build error


Hi,

I am trying to build the latest release of the JK2 connector:
jakarta-tomcat-connectors-jk2-2.0.4-src. I'm running Red Hat Linux 9.0,
Apache
httpd-2.0.49 and Tomcat jakarta-tomcat-5.0.19.

I follow the directions in
jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/BUILD.txt

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/your/path/to/apxs
make
cd ../build/jk2/apache2
apxs -n jk2 -i mod_jk2.so

but the make fails with the following:

libtool: install: warning: remember to run `libtool --finish
/usr/local/apache2/modules'
/bin/cp ../../../build/jk2/apache2//usr/local/apache2/modules/mod_jk2.so
../../../build/jk2/apache2/mod_jk2.so
/bin/cp: cannot stat
`../../../build/jk2/apache2//usr/local/apache2/modules/mod_jk2.so': No such
file or directory
make[1]: *** [../../../build/jk2/apache2/mod_jk2.so] Error 1
make[1]: Leaving directory
`/usr2/download/jk/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server
/apache2'
make: *** [jk2-build] Error 1

The ./configure step ends with the following:
checking for rm... /bin/rm
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for apache-2.0
checking checking for apache13.. not provided
checking checking for apache20.. not provided
checking checking for iis.. not provided
checking checking for iPlanet.. not provided
checking for tomcat33 location... not provided
checking for tomcat40 location... not provided
checking for tomcat41 location... not provided
configure: creating ./config.status
config.status: creating Makefile
config.status: creating server/apache13/Makefile
config.status: creating server/apache13/Makefile.apxs
config.status: creating server/apache2/Makefile
config.status: creating server/apache2/Makefile.apxs
config.status: creating ../build.properties
config.status: creating scripts/build/unix/dummy
config.status: executing depfiles commands

I didn't have any problems with the previous JK2 version.  Can anyone give
me a
hint on how to resolve this?

Thanks much,
-Tom


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: RE: jk2 shared memory

2004-03-18 Thread Yiannis Mavroukakis
It means that tomcat is running as an internal process of apache, so the
data flow is not via sockets, rather via native calls to tomcat.
-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 18:35
To: Tomcat Users List
Subject: Re: RE: jk2 shared memory


I was of the understanding that tomcat and apache could communicate via
shared memory.  Is this true?  I am not sure what it means to run
in-process.  Could you further explain?

thank you.



   ---Original Message---
From: Yiannis Mavroukakis [EMAIL PROTECTED]
Subject: RE: jk2 shared memory
Sent: 17 Mar 2004 17:18:48
   
 Do you mean using jk2 with tomcat as an in-process server?
 You need the shared memory anyway, wont work without it.
 But the options that most people end up using as a connection scheme
are
 either via
 sockets or using JNI (in-process). JNI AFAIK works only under Windows,
so if
 you
 are on a *IX OS, you should use sockets. Is there a problem with
making port
 8009 available
 through localhost?
 
 -Original Message-
 From: tomcatuser [mailto:[EMAIL PROTECTED]
 Sent: 17 March 2004 17:05
 To: [EMAIL PROTECTED]
 Subject: jk2 shared memory
 
 
 I am trying to figure out the jk2 configuration and need some help.
 
 I want to use the shared memory capability of JK2, but am confused by
the
 requirement that I must also use a port (8009).  I have apache
configured to
 require mutual authentication.  Here is my config file:
 
 ###  Start workers2.properties ###
 [logger]
 level=DEBUG
 
 [config:]
 file=${serverRoot}/conf/workers2.properties
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with
multiprocess
 servers
 file=${serverRoot}/logs/jk2.shm
 size=100
 debug=0
 disabled=0
 
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=localhost:8009
 
 [status:]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus/*]
 info=Display status information and checks the config file for
changes.
 group=status:
 
 [uri:/blah/servlet/*]
 info=blah context
 context=/blah
 debug=1
 
 ###  End workers2.properties ###
 
 
 When I comment out the channel.socket:localhost:8009 section, I
cannot
 connect to my servlets.  Is there another connector that I should be
using?
 Or do I need to have port 8009 open?
 
 thank you for the help.
 
 
 
   

 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.
 
 
   
Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use,
disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its
subsidiaries
 each reserve the right to monitor all e-mail communications through
its
 networks.
 Any views expressed in this message are those of the individual
sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
   

 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.
   ---Original Message---





This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any

RE: Problems building jk 2.0.4

2004-03-18 Thread Yiannis Mavroukakis
You probably did not include the jni option in the ./configure script.

-Original Message-
From: Jens Saade [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 13:08
To: Tomcat Users List
Subject: Problems building jk 2.0.4


Hi,
i got jk 2.0.4 from cvs, compiled it and added it to my http.conf via 
LoadModule. Apache 1.3.29 won't start:
Cannot load /usr/lib/apache/1.3/mod_jk2.so into server: 
/usr/lib/apache/1.3/mod_jk2.so: undefined symbol: jk_jni_status_code

The compilation did well, no error messages. Any ideas why this happens?

//Jens




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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Jk2 installation failure

2004-03-18 Thread Yiannis Mavroukakis
You don't need to specify --with-apache2. Change --with-apxs to --with-apxs2

-Original Message-
From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 14:10
To: 'Tomcat Users List'
Subject: RE: Jk2 installation failure


Thanks Yiannis, Hi Everyone,

This appears to be helpful, but I have run into another problem:

As root, I am trying to run 

./configure --with-apxs=/usr/sbin/apxs
--with-tomcat-41=/opt/jakarta/jakarta-tomcat
--with-java-home=/usr/java/j2sdk1.4.2_03 --with-apache2=/usr/local/apache2

Which fails with an error that configure oculd not find /usr/local/apache2 .
When I change the position of the arguments, so that apxs is the last in the
array, then configure fails with the error, could not find /usr/sbin/apxs .


Can anyone help get me past this?

Regards,

Mike 

 -Original Message-
 From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 16, 2004 12:12 PM
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 This is a decent tutorial 
 http://cymulacrum.net/writings/tomcat5/book1.html
 
 
 -Original Message-
 From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
 Sent: 16 March 2004 17:05
 To: [EMAIL PROTECTED]
 Subject: Jk2 installation failure
 
 
 Hi All,
 
 I am having trouble installing jk2.  Here are the steps I have taken:
 
 1) Download jk2 source (I couldn't find a RedHat binary?)
 2) Unpack to /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src 
 3) Edit the build.properties file as follows:
   a) my tomcat home directory is /opt/jakarta/jakarta/tomcat
   b) my apache home directory is /usr/local/apache2
 
 build.properties
 
 #
 # sample build.properties for ajp connector.
 # edit to taste...
 #
 
 # Directory where tomcat5 is installed
 #tomcat5.home= ../../jakarta-tomcat-5/build
 
 # Directory where catalina is installed. It can
 # be either 4.0 or 4.1 tomcat41.home=/opt/jakarta/jakarta-tomcat
 
 # If you want to build/install on  both 4.0
 # and 4.1, set this to point to 4.0 and 'catalina.home'
 # to point to 4.0
 # ( most people need only the first, but developers should
 # have both )
 #tomcat41.home=../../jakarta-tomcat-4.1/build
 
 # Directory where tomcat3.3 is installed
 #tomcat33.home= ../../jakarta-tomcat/build/tomcat
 
 # Location of Apache2, Apache1.3, Netscape, IIS 
 apache2.home=/usr/local/apache2 #apache13.home=/opt/apache13 
 #iplanet.home=/opt/iplanet6 # iplanet.home=d:/tools/sdk/netscape
 # iis.home=e:/
 
 # APR location - by default the version included in Apache2 
 is used. # Don't edit unless you install 'standalone' apr. 
 apr.home=${apache2.home}
 
 apr.include=${apr.home}/include apr-util.include=${apr.home}/include
 
 apr.lib=${apr.home}/lib
 apr-util.lib=${apr.home}/lib
 apache2.lib=${apache2.home}/lib
 
 
 # Compile-time options for native code
 so.debug=true
 so.optimize=false
 so.profile=false
 
 # tools for other directories
 # Metrowerks and novel ndk
 #mw.home=d:/tools/mw/6.0 #novellndk.home=d:/tools/novell/ndk/nwsdk
 
 # MSVC
 #mssdk.home=c:/Program Files/Microsoft Visual Studio/VC98
 
 /build.properties
 
 4) run ant with the following error:
 
 Buildfile: build.xml
 
 detect:
  [echo]  jakarta-tomcat-connectors 
 
 prepare:
 
 BUILD FAILED
 file:/opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/b
 uild.xml:105:
 Warning: Could not find file 
 /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/bu
 ild/lib/tomcat
 -coyote.jar to copy.
 
 Total time: 0 seconds
 
 5) Now I am confused.  There is not even a coyote directory 
 in either of $TOMCAT_HOME or the connectors dirs.  There is, 
 however a tomcat-coyote.jar file in $TOMCAT_HOME/server/lib.  
 Am I supposed to link to that in build.xml?  How?
 
 I have seen a lot about this in the archives, but none of the 
 suggestions that I tried from there helped.  I hope that one 
 of you know what is happening and how I can get past it.  
 
 Thanks in advance,
 
 Mike
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 __
 __
 This e-mail has been scanned for all viruses by Star 
 Internet. The service is powered by MessageLabs.
 
 
 Note:_
 _
 This message is for the named person's use only. It may 
 contain confidential, proprietary or legally privileged 
 information. No confidentiality or privilege is waived or 
 lost by any mistransmission. If you receive this message in 
 error, please immediately delete it and all copies of it from 
 your system, destroy any hard copies of it and notify the 
 sender. You must not, directly or indirectly, use, disclose, 
 distribute, print, or copy any part of this message if you 
 are not the intended recipient. Jaguar Freight Services and 
 any of its subsidiaries each reserve the right to monitor

RE: Jk2 installation failure

2004-03-18 Thread Yiannis Mavroukakis
Is apxs in that path? And if it is, is it the binary that came with apache
2?

-Original Message-
From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 14:46
To: 'Tomcat Users List'
Subject: RE: Jk2 installation failure


I added --with-apache2 because configure failed with an error message that
it could not find a web server. 

I removed the --with-apache2 argument and changed the apxs argument to
--with-apxs2=/usr/sbin/apxs and I get the error: could not find
/usr/sbin/apxs

I removed the --with-apxs argument and get the error that configure can not
find any webserver again...

Mike

 -Original Message-
 From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 18, 2004 9:40 AM
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 You don't need to specify --with-apache2. Change --with-apxs 
 to --with-apxs2
 
 -Original Message-
 From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
 Sent: 18 March 2004 14:10
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 Thanks Yiannis, Hi Everyone,
 
 This appears to be helpful, but I have run into another problem:
 
 As root, I am trying to run 
 
 ./configure --with-apxs=/usr/sbin/apxs 
 --with-tomcat-41=/opt/jakarta/jakarta-tomcat
 --with-java-home=/usr/java/j2sdk1.4.2_03 
 --with-apache2=/usr/local/apache2
 
 Which fails with an error that configure oculd not find 
 /usr/local/apache2 . When I change the position of the 
 arguments, so that apxs is the last in the array, then 
 configure fails with the error, could not find /usr/sbin/apxs .
 
 
 Can anyone help get me past this?
 
 Regards,
 
 Mike 
 
  -Original Message-
  From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 16, 2004 12:12 PM
  To: 'Tomcat Users List'
  Subject: RE: Jk2 installation failure
  
  
  This is a decent tutorial
  http://cymulacrum.net/writings/tomcat5/book1.html
  
  
  -Original Message-
  From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
  Sent: 16 March 2004 17:05
  To: [EMAIL PROTECTED]
  Subject: Jk2 installation failure
  
  
  Hi All,
  
  I am having trouble installing jk2.  Here are the steps I 
 have taken:
  
  1) Download jk2 source (I couldn't find a RedHat binary?)
  2) Unpack to /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src   
  3) Edit the build.properties file as follows:
  a) my tomcat home directory is /opt/jakarta/jakarta/tomcat
  b) my apache home directory is /usr/local/apache2
  
  build.properties
  
  #
  # sample build.properties for ajp connector.
  # edit to taste...
  #
  
  # Directory where tomcat5 is installed
  #tomcat5.home= ../../jakarta-tomcat-5/build
  
  # Directory where catalina is installed. It can
  # be either 4.0 or 4.1 tomcat41.home=/opt/jakarta/jakarta-tomcat
  
  # If you want to build/install on  both 4.0
  # and 4.1, set this to point to 4.0 and 'catalina.home'
  # to point to 4.0
  # ( most people need only the first, but developers should
  # have both )
  #tomcat41.home=../../jakarta-tomcat-4.1/build
  
  # Directory where tomcat3.3 is installed
  #tomcat33.home= ../../jakarta-tomcat/build/tomcat
  
  # Location of Apache2, Apache1.3, Netscape, IIS
  apache2.home=/usr/local/apache2 #apache13.home=/opt/apache13 
  #iplanet.home=/opt/iplanet6 # iplanet.home=d:/tools/sdk/netscape
  # iis.home=e:/
  
  # APR location - by default the version included in Apache2
  is used. # Don't edit unless you install 'standalone' apr. 
  apr.home=${apache2.home}
  
  apr.include=${apr.home}/include apr-util.include=${apr.home}/include
  
  apr.lib=${apr.home}/lib
  apr-util.lib=${apr.home}/lib
  apache2.lib=${apache2.home}/lib
  
  
  # Compile-time options for native code
  so.debug=true
  so.optimize=false
  so.profile=false
  
  # tools for other directories
  # Metrowerks and novel ndk
  #mw.home=d:/tools/mw/6.0 #novellndk.home=d:/tools/novell/ndk/nwsdk
  
  # MSVC
  #mssdk.home=c:/Program Files/Microsoft Visual Studio/VC98
  
  /build.properties
  
  4) run ant with the following error:
  
  Buildfile: build.xml
  
  detect:
   [echo]  jakarta-tomcat-connectors 
  
  prepare:
  
  BUILD FAILED 
  file:/opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/b
  uild.xml:105:
  Warning: Could not find file
  /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/bu
  ild/lib/tomcat
  -coyote.jar to copy.
  
  Total time: 0 seconds
  
  5) Now I am confused.  There is not even a coyote directory
  in either of $TOMCAT_HOME or the connectors dirs.  There is, 
  however a tomcat-coyote.jar file in $TOMCAT_HOME/server/lib.  
  Am I supposed to link to that in build.xml?  How?
  
  I have seen a lot about this in the archives, but none of the
  suggestions that I tried from there helped.  I hope that one 
  of you know what is happening and how I can get past it.  
  
  Thanks in advance,
  
  Mike

RE: Jk2 installation failure

2004-03-18 Thread Yiannis Mavroukakis
Is /usr/sbin/ap

-Original Message-
From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 14:46
To: 'Tomcat Users List'
Subject: RE: Jk2 installation failure


I added --with-apache2 because configure failed with an error message that
it could not find a web server. 

I removed the --with-apache2 argument and changed the apxs argument to
--with-apxs2=/usr/sbin/apxs and I get the error: could not find
/usr/sbin/apxs

I removed the --with-apxs argument and get the error that configure can not
find any webserver again...

Mike

 -Original Message-
 From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 18, 2004 9:40 AM
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 You don't need to specify --with-apache2. Change --with-apxs 
 to --with-apxs2
 
 -Original Message-
 From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
 Sent: 18 March 2004 14:10
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 Thanks Yiannis, Hi Everyone,
 
 This appears to be helpful, but I have run into another problem:
 
 As root, I am trying to run 
 
 ./configure --with-apxs=/usr/sbin/apxs 
 --with-tomcat-41=/opt/jakarta/jakarta-tomcat
 --with-java-home=/usr/java/j2sdk1.4.2_03 
 --with-apache2=/usr/local/apache2
 
 Which fails with an error that configure oculd not find 
 /usr/local/apache2 . When I change the position of the 
 arguments, so that apxs is the last in the array, then 
 configure fails with the error, could not find /usr/sbin/apxs .
 
 
 Can anyone help get me past this?
 
 Regards,
 
 Mike 
 
  -Original Message-
  From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 16, 2004 12:12 PM
  To: 'Tomcat Users List'
  Subject: RE: Jk2 installation failure
  
  
  This is a decent tutorial
  http://cymulacrum.net/writings/tomcat5/book1.html
  
  
  -Original Message-
  From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
  Sent: 16 March 2004 17:05
  To: [EMAIL PROTECTED]
  Subject: Jk2 installation failure
  
  
  Hi All,
  
  I am having trouble installing jk2.  Here are the steps I 
 have taken:
  
  1) Download jk2 source (I couldn't find a RedHat binary?)
  2) Unpack to /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src   
  3) Edit the build.properties file as follows:
  a) my tomcat home directory is /opt/jakarta/jakarta/tomcat
  b) my apache home directory is /usr/local/apache2
  
  build.properties
  
  #
  # sample build.properties for ajp connector.
  # edit to taste...
  #
  
  # Directory where tomcat5 is installed
  #tomcat5.home= ../../jakarta-tomcat-5/build
  
  # Directory where catalina is installed. It can
  # be either 4.0 or 4.1 tomcat41.home=/opt/jakarta/jakarta-tomcat
  
  # If you want to build/install on  both 4.0
  # and 4.1, set this to point to 4.0 and 'catalina.home'
  # to point to 4.0
  # ( most people need only the first, but developers should
  # have both )
  #tomcat41.home=../../jakarta-tomcat-4.1/build
  
  # Directory where tomcat3.3 is installed
  #tomcat33.home= ../../jakarta-tomcat/build/tomcat
  
  # Location of Apache2, Apache1.3, Netscape, IIS
  apache2.home=/usr/local/apache2 #apache13.home=/opt/apache13 
  #iplanet.home=/opt/iplanet6 # iplanet.home=d:/tools/sdk/netscape
  # iis.home=e:/
  
  # APR location - by default the version included in Apache2
  is used. # Don't edit unless you install 'standalone' apr. 
  apr.home=${apache2.home}
  
  apr.include=${apr.home}/include apr-util.include=${apr.home}/include
  
  apr.lib=${apr.home}/lib
  apr-util.lib=${apr.home}/lib
  apache2.lib=${apache2.home}/lib
  
  
  # Compile-time options for native code
  so.debug=true
  so.optimize=false
  so.profile=false
  
  # tools for other directories
  # Metrowerks and novel ndk
  #mw.home=d:/tools/mw/6.0 #novellndk.home=d:/tools/novell/ndk/nwsdk
  
  # MSVC
  #mssdk.home=c:/Program Files/Microsoft Visual Studio/VC98
  
  /build.properties
  
  4) run ant with the following error:
  
  Buildfile: build.xml
  
  detect:
   [echo]  jakarta-tomcat-connectors 
  
  prepare:
  
  BUILD FAILED 
  file:/opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/b
  uild.xml:105:
  Warning: Could not find file
  /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/bu
  ild/lib/tomcat
  -coyote.jar to copy.
  
  Total time: 0 seconds
  
  5) Now I am confused.  There is not even a coyote directory
  in either of $TOMCAT_HOME or the connectors dirs.  There is, 
  however a tomcat-coyote.jar file in $TOMCAT_HOME/server/lib.  
  Am I supposed to link to that in build.xml?  How?
  
  I have seen a lot about this in the archives, but none of the
  suggestions that I tried from there helped.  I hope that one 
  of you know what is happening and how I can get past it.  
  
  Thanks in advance,
  
  Mike
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e

RE: Jk2 installation failure

2004-03-18 Thread Yiannis Mavroukakis
Yep you need to link against the pcre lib. Look for it in /usr/lib

-Original Message-
From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 15:23
To: 'Tomcat Users List'
Subject: RE: Jk2 installation failure


Yes, that is the correct path to apxs but it may not have been the binary
that came with apache2.  I did the following:

1) mv /usr/sbin/apxs /usr/sbin/apxs.old
2) cp /usr/local/src/httpd-2.0-48/support/apxs /usr/sbin/apxs
3) chmod 755 /usr/sbin/apxs
4) cd /opt/jakarta/jakarta-tomcat-connectors-jk-2.0.2-src/jk/native2
5) export CPPFLAGS=-I/usr/include/apr-0
6) chmod 755 ./buildconf.sh
7) sh ./buildconf.sh
8) ./configure --with-apxs=/usr/sbin/apxs
--with-tomcat-41=/opt/jakarta/jakarta-tomcat
   --with-java-home=/usr/java/j2sdk1.4.2_03

And jk finally configured.  I edited the server/apache2/Makefile as directed
by changing

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

and ran make which just bombed with: /usr/bin/ld can not find lpcre

This is painful.  Did I miss linking a necessary library in the configure
step?  

Mike
 

 -Original Message-
 From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 18, 2004 9:56 AM
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 Is apxs in that path? And if it is, is it the binary that 
 came with apache 2?
 
 -Original Message-
 From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
 Sent: 18 March 2004 14:46
 To: 'Tomcat Users List'
 Subject: RE: Jk2 installation failure
 
 
 I added --with-apache2 because configure failed with an error 
 message that it could not find a web server. 
 
 I removed the --with-apache2 argument and changed the apxs 
 argument to --with-apxs2=/usr/sbin/apxs and I get the error: 
 could not find /usr/sbin/apxs
 
 I removed the --with-apxs argument and get the error that 
 configure can not find any webserver again...
 
 Mike
 
  -Original Message-
  From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 18, 2004 9:40 AM
  To: 'Tomcat Users List'
  Subject: RE: Jk2 installation failure
  
  
  You don't need to specify --with-apache2. Change --with-apxs
  to --with-apxs2
  
  -Original Message-
  From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
  Sent: 18 March 2004 14:10
  To: 'Tomcat Users List'
  Subject: RE: Jk2 installation failure
  
  
  Thanks Yiannis, Hi Everyone,
  
  This appears to be helpful, but I have run into another problem:
  
  As root, I am trying to run
  
  ./configure --with-apxs=/usr/sbin/apxs
  --with-tomcat-41=/opt/jakarta/jakarta-tomcat
  --with-java-home=/usr/java/j2sdk1.4.2_03 
  --with-apache2=/usr/local/apache2
  
  Which fails with an error that configure oculd not find
  /usr/local/apache2 . When I change the position of the 
  arguments, so that apxs is the last in the array, then 
  configure fails with the error, could not find /usr/sbin/apxs .
  
  
  Can anyone help get me past this?
  
  Regards,
  
  Mike
  
   -Original Message-
   From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 16, 2004 12:12 PM
   To: 'Tomcat Users List'
   Subject: RE: Jk2 installation failure
   
   
   This is a decent tutorial 
   http://cymulacrum.net/writings/tomcat5/book1.html
   
   
   -Original Message-
   From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
   Sent: 16 March 2004 17:05
   To: [EMAIL PROTECTED]
   Subject: Jk2 installation failure
   
   
   Hi All,
   
   I am having trouble installing jk2.  Here are the steps I
  have taken:
   
   1) Download jk2 source (I couldn't find a RedHat binary?)
   2) Unpack to /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src 
   3) Edit the build.properties file as follows:
 a) my tomcat home directory is /opt/jakarta/jakarta/tomcat
 b) my apache home directory is /usr/local/apache2
   
   build.properties
   
   #
   # sample build.properties for ajp connector.
   # edit to taste...
   #
   
   # Directory where tomcat5 is installed
   #tomcat5.home= ../../jakarta-tomcat-5/build
   
   # Directory where catalina is installed. It can
   # be either 4.0 or 4.1 tomcat41.home=/opt/jakarta/jakarta-tomcat
   
   # If you want to build/install on  both 4.0
   # and 4.1, set this to point to 4.0 and 'catalina.home'
   # to point to 4.0
   # ( most people need only the first, but developers should # have 
   both ) #tomcat41.home=../../jakarta-tomcat-4.1/build
   
   # Directory where tomcat3.3 is installed
   #tomcat33.home= ../../jakarta-tomcat/build/tomcat
   
   # Location of Apache2, Apache1.3, Netscape, IIS 
   apache2.home=/usr/local/apache2 #apache13.home=/opt/apache13 
   #iplanet.home=/opt/iplanet6 # iplanet.home=d:/tools/sdk/netscape
   # iis.home=e:/
   
   # APR location - by default the version included in 
 Apache2 is used. 
   # Don't edit unless you install 'standalone' apr. 
   apr.home=${apache2.home}
   
   apr.include=${apr.home}/include 
 apr-util.include=${apr.home

RE: Thank you for your recent email.

2004-03-17 Thread Yiannis Mavroukakis
ROFLMAO! What a goverment system that would be...

-Original Message-
From: Adam Buglass [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 11:42
To: Tomcat Users List
Subject: Re: Thank you for your recent email.


I think it's cool!

I live in the cold and wet north-east of England and my comments and
suggestions are very important ... and an integral part of the
legislative process of New York!!

I love America!
:-)

On Wed, 2004-03-17 at 11:32, Vi wrote:
 What a hell! Why don't you all senators just die and leave us usual 
 tomcat users alone?
 
 [EMAIL PROTECTED] wrote:
 
 
 
 
 Thank you for your recent email.   Your comments and suggestions are very
 important to me and an integral part of the legislative process. Please
be
 assured I am in the process of reviewing your correspondence.  If you
have
 not already done so, please forward your name and address.  This allows
me
 to stay in touch and keep you up to date on the important issues that
 affect you as a constituent.
 
 With best wishes.
 
 Senator Mike Nozzolio.
 
 
 -
 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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: jk2 shared memory

2004-03-17 Thread Yiannis Mavroukakis
Do you mean using jk2 with tomcat as an in-process server? 
You need the shared memory anyway, wont work without it.
But the options that most people end up using as a connection scheme are
either via
sockets or using JNI (in-process). JNI AFAIK works only under Windows, so if
you
are on a *IX OS, you should use sockets. Is there a problem with making port
8009 available
through localhost?

-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: 17 March 2004 17:05
To: [EMAIL PROTECTED]
Subject: jk2 shared memory


I am trying to figure out the jk2 configuration and need some help.

I want to use the shared memory capability of JK2, but am confused by the
requirement that I must also use a port (8009).  I have apache configured to
require mutual authentication.  Here is my config file:

###  Start workers2.properties ###
[logger]
level=DEBUG

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

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

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

[workerEnv:]
info=Global server options
timing=1
debug=0

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

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

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

[uri:/blah/servlet/*]
info=blah context
context=/blah
debug=1

###  End workers2.properties ###


When I comment out the channel.socket:localhost:8009 section, I cannot
connect to my servlets.  Is there another connector that I should be using?
Or do I need to have port 8009 open?

thank you for the help.




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Releasing JK 2.0.4

2004-03-16 Thread Yiannis Mavroukakis
New release! I'll roll out the red carpet :)))

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 12:36
To: [EMAIL PROTECTED]
Subject: Releasing JK 2.0.4


Hi,

Seems that the shm is working now.
Greg, have you been able to test it with the current patches?
Anyhow IMO it should work, cause the same problem manifested on FreeBSD 
has been solved.

Henri, when do you plan to tag the release?

MT.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Releasing JK 2.0.4

2004-03-16 Thread Yiannis Mavroukakis
CVS?:)

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 13:30
To: Tomcat Users List
Subject: RE: Releasing JK 2.0.4


Hi,

Where does one download this version?

Ta
Matt

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 13:18
To: 'Tomcat Users List'
Subject: RE: Releasing JK 2.0.4


New release! I'll roll out the red carpet :)))

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 12:36
To: [EMAIL PROTECTED]
Subject: Releasing JK 2.0.4


Hi,

Seems that the shm is working now.
Greg, have you been able to test it with the current patches?
Anyhow IMO it should work, cause the same problem manifested on FreeBSD 
has been solved.

Henri, when do you plan to tag the release?

MT.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Releasing JK 2.0.4

2004-03-16 Thread Yiannis Mavroukakis
Taken from http://jakarta.apache.org/site/cvsindex.html

If you don't have cvs, get it :)
then do

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login

The password is anoncvs

Then 
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
jakarta-tomcat-connectors

That should do it, assuming the latest is in CVS.



-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 13:40
To: Tomcat Users List
Subject: RE: Releasing JK 2.0.4



I was afraid of that answer, i've never downloaded anything through cvs. Can
you point me to a short description of how to set it up?

If not I'll wait for the announcement that the tarball is on the mirrors.

Ta
Matt

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 13:39
To: 'Tomcat Users List'
Subject: RE: Releasing JK 2.0.4


CVS?:)

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 13:30
To: Tomcat Users List
Subject: RE: Releasing JK 2.0.4


Hi,

Where does one download this version?

Ta
Matt

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 13:18
To: 'Tomcat Users List'
Subject: RE: Releasing JK 2.0.4


New release! I'll roll out the red carpet :)))

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 12:36
To: [EMAIL PROTECTED]
Subject: Releasing JK 2.0.4


Hi,

Seems that the shm is working now.
Greg, have you been able to test it with the current patches?
Anyhow IMO it should work, cause the same problem manifested on FreeBSD 
has been solved.

Henri, when do you plan to tag the release?

MT.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly

RE: Jk2 installation failure

2004-03-16 Thread Yiannis Mavroukakis
This is a decent tutorial
http://cymulacrum.net/writings/tomcat5/book1.html


-Original Message-
From: Mike Burkhouse [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 17:05
To: [EMAIL PROTECTED]
Subject: Jk2 installation failure


Hi All,

I am having trouble installing jk2.  Here are the steps I have taken:

1) Download jk2 source (I couldn't find a RedHat binary?)
2) Unpack to /opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src   
3) Edit the build.properties file as follows:
a) my tomcat home directory is /opt/jakarta/jakarta/tomcat
b) my apache home directory is /usr/local/apache2

build.properties

#
# sample build.properties for ajp connector.
# edit to taste...
#

# Directory where tomcat5 is installed
#tomcat5.home= ../../jakarta-tomcat-5/build

# Directory where catalina is installed. It can
# be either 4.0 or 4.1
tomcat41.home=/opt/jakarta/jakarta-tomcat

# If you want to build/install on  both 4.0
# and 4.1, set this to point to 4.0 and 'catalina.home'
# to point to 4.0
# ( most people need only the first, but developers should
# have both )
#tomcat41.home=../../jakarta-tomcat-4.1/build

# Directory where tomcat3.3 is installed
#tomcat33.home= ../../jakarta-tomcat/build/tomcat

# Location of Apache2, Apache1.3, Netscape, IIS
apache2.home=/usr/local/apache2
#apache13.home=/opt/apache13
#iplanet.home=/opt/iplanet6
# iplanet.home=d:/tools/sdk/netscape
# iis.home=e:/

# APR location - by default the version included in Apache2 is used.
# Don't edit unless you install 'standalone' apr.
apr.home=${apache2.home}

apr.include=${apr.home}/include
apr-util.include=${apr.home}/include

apr.lib=${apr.home}/lib
apr-util.lib=${apr.home}/lib
apache2.lib=${apache2.home}/lib


# Compile-time options for native code
so.debug=true
so.optimize=false
so.profile=false

# tools for other directories
# Metrowerks and novel ndk
#mw.home=d:/tools/mw/6.0
#novellndk.home=d:/tools/novell/ndk/nwsdk

# MSVC
#mssdk.home=c:/Program Files/Microsoft Visual Studio/VC98

/build.properties

4) run ant with the following error:

Buildfile: build.xml

detect:
 [echo]  jakarta-tomcat-connectors 

prepare:

BUILD FAILED
file:/opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105:
Warning: Could not find file
/opt/jakarta/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat
-coyote.jar to copy.

Total time: 0 seconds

5) Now I am confused.  There is not even a coyote directory in either of
$TOMCAT_HOME or the connectors dirs.  There is, however a tomcat-coyote.jar
file in $TOMCAT_HOME/server/lib.  Am I supposed to link to that in
build.xml?  How?

I have seen a lot about this in the archives, but none of the suggestions
that I tried from there helped.  I hope that one of you know what is
happening and how I can get past it.  

Thanks in advance,

Mike



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: JNDI Datasource Reference in DD Not Necessary?

2004-03-15 Thread Yiannis Mavroukakis
I have to go by the assumption that everything else regarding the Data
Resource in your 
server.xml and web.xml is correct.
try {
Context ctx = new InitialContext();
dataSource = ( DataSource )
ctx.lookup(java:comp/env/jdbc/yourDB );   
}
catch (NamingException e1) {
e1.printStackTrace();
}
This is what your code should be doing IMHO, and not creating 2 Context
objects.

Yiannis

-Original Message-
From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED]
Sent: 15 March 2004 08:37
To: [EMAIL PROTECTED]
Subject: Re: JNDI Datasource Reference in DD Not Necessary?


Hi Harry,

I've been trying to setup my mySQL connection to tomcat as well and
has
been reading a lot of documents on how to do this.  I think I'm getting
more
confused.

I've setup my params as you suggested below.  When I ran my sample
app, I got the following exception:

javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resoure file: 
   java.naming.factory.initial
 at javax.naming.spi.NamingManager.getInitialContextunknown
source
 at javax.naming.InitialContext.getDefaultInitCtxunknown
source
 at javax.naming.InitialContext.getURLOrDefaultInitCtxunknown
source
 at javax.naming.InitialContext.lookupunknown source
 at
com.maxis.app.ContentProcessor.mainContentProcessor.java:34

Here's my code:
Context ctx = new InitialContext();
Context evtCtx = (Context) ctx.lookup(java:comp/env);
DataSource ds = (DataSource) evtCtx.lookup(jdbc/mySQLDatabase);
--- in my web.xml : res-ref-namejdbc/mySQLDatabase/res-ref-name
--- in my server.xml: ResourceParams name=jdbc/mySQLDatabase

Any ideas???

Thanks,
--Kawthar

 [EMAIL PROTECTED] 10/03/2004 08:05:03 PM 
Hi Dave

Sorry for my long absence - I was away from my computer for while.

I think Doug's last message just about says it all in respect of
connection
pools. Follow his advice to use the Tomcat How-Tos exactly as they are,
and
you should be okay.

I looked through your code - the stuff you originally posted following
my
suggestion to do so - and I did spot one crucial mistake.

This line in your test JSP:


DataSource ds = ( DataSource ) ctx.lookup(java:comp/env/jdbc/MyDS
);


Should read:


DataSource ds = ( DataSource )
ctx.lookup(java:comp/env/jdbc/mysql );


Spot the difference? :-)

The jdbc/mysql context refers to the name given to the resource in
the
context.xml:


Resource name=jdbc/mysql
   type=com.mysql.jdbc.jdbc2...
   auth=Container/


I would also urge you to go back to using the Commons DBCP resources,
and
specifying the jdbc/mysql resource as in the Tomcat How-To - namely,
this
definition:


Resource 
 name=jdbc/mysql

type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
 auth=Container/


Should read:


Resource 
 name=jdbc/mysql
 auth=Container
 type=javax.sql.DataSource/


And this ResourceParams element:


parameter
namefactory/name
value
com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory
/value
/parameter


Should read:


parameter
namefactory/name
value
org.apache.commons.dbcp.BasicDataSourceFactory
/value
/parameter


Stick to the Tomcat How-Tos, using the Commons DBCP package, at least
until
you get the thing working, and then you can switch if you want.

Finally, just a suggestion, but I would specify the minimum possible
for the
'url' attribute:


parameter
nameurl/name
value
jdbc:mysql://localhost:3306/DATABASE
/value
/parameter


Keep it simple, to start with :-) because it could just be one of
those
non-essential parameters is causing the thing to break.

Good luck!

Harry



 Despite my posting - and I really hope someone chips in concerning
the
 question I raised about the resource-ref being redundant in the
deployment
 descriptor (!) - the first thing to say is, have faith!
 
 Connection pooling works, and it is actually quite simple, so do not
give up
 on it.
 
 Cheers for the advice Harry... here's where I'm at
 
 I have no choice on the giving up side of things, need to implement
it
 for some client code I'm working on
 
 ;-)
 
 I've been doing a lot of googling to try and get answers so I may
have
 got crossed wires, I had a version working (or thinking it was
working)
 with the info in $JAKARTA_HOME/conf/server.xml but I wasn't happy
with
 this solution (preferring to have the connection defined in
 $JAKARTA_HOME/conf/Catalina/localhost/app_name.xml for good
reasons...
 
 so I'm basically restarting and I now have the following config
 
 $JAKARTA_HOME/conf/Catalina/localhost/app_name.xml
 
 ?xml version='1.0' encoding='utf-8'?
 Context docBase=dev-sstl path=/dev-sstl 

RE: mod_jk2 with multiple tomcats

2004-03-12 Thread Yiannis Mavroukakis
Just create extra worker declarations on workers2.properties on different
ports.

-Original Message-
From: Randy Harrison [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 20:56
To: Tomcat Users List
Subject: mod_jk2 with multiple tomcats




Hi all,

I'm currently using apache2 + mod_jk2 + tomcat 5 with no problems.

I'd like to be able to connect to other instances of tomcat, including
tomcat 4.

Does anyone know of any good documentation regarding this?

Thanks!

Randy Harrison



 

  Edson Alves Pereira

  [EMAIL PROTECTED]To:   'Tomcat-User
List' [EMAIL PROTECTED]
  ano.com.br cc:

  Subject:  doubts about
attributes
  03/11/2004 03:05 PM

  Please respond to

  Tomcat Users List

 

 





 Hello dudes, i´m trying to set some attributes to a request in my
servlet, that´s pretty easy as you know, but after i must use redirect to a
JSP page and when i try to recall those attributes created before they
doesn´t appear in JSP´s request object. Even thought i set a request´s
attribute and use redirect i cannot get it again, can i?

 Regards,
 Edson








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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Java Hosting

2004-03-12 Thread Yiannis Mavroukakis
For simple domain registration £9.60 is expensive :). www.namecheap.com
offer domain 
registration for $8.99 with dynamic DNS and a host of other goodies.

-Original Message-
From: Graham Reeds [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 10:19
To: Tomcat Users List
Subject: Re: Java Hosting


 Yes, +1 from me. I've been using UML at www.memset.co.uk for 3 months so
 far without the slightest glitch. I couldn't live without my root access
:)

I notice that memset.co.uk charge £9.60/year for the registration of .com
domains.  This is significantly lower than anywhere else.  The cheapest I
have found is £39.99 without hosting involved.  Do you actually own the
domain or do they look after it for you?

--

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


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Yiannis Mavroukakis
Yep I get the same errors quite often, apart from being annoying they do not
cause any other issues, the error is what Ralph says it is.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 16:14
To: Tomcat Users List
Subject: RE: problem with mod_jk 1.2: error in action code


I don't think that this message has anything to with the lost
connection pool. 

(Do you really mean 'connection pool' and not just 'connection' ?)

If you lose your connection, it may be caused by the databaseserver 
that cancels idle connections after a while. 
Look for validationQuery in:

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

The message in the mod_jk.log is typically indication that a browser 
was closed while tomcat was sending an answer.

I'm not shure if the message in catalina.out is related to that.

 -Original Message-
 From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 12, 2004 4:53 PM
 To: Tomcat Mailinglist
 Subject: problem with mod_jk 1.2: error in action code
 
 I've got problems with a tomcat web application, that establishes a
 connection pool to a database (mysql).
 This connection pool is lost after an unspecified period of 
 time the system wasn't used (f.e. 8 houres).
 
 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action
 SCHWERWIEGEND: Error in action code
 java.net.SocketException: Broken pipe

 The log in mod_jk.log shows the following:
 
 [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR 
 sending data to client. Connection aborted or network problems
 [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client
 connection aborted or network problems
 

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Yiannis Mavroukakis
So is autoReconnectForPools a hack to use with autoReconnect?

-Original Message-
From: Mark Matthews [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 17:11
To: Tomcat Users List
Subject: Re: problem with mod_jk 1.2: error in action code


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike Curwen wrote:

 when you specify the connection to mysql, are you including the
 'autoreconnect=true' parameter? If not, the connections will be closed
 by mysql after (I think) 8 hrs.


I wish I could kill the 'autoReconnect' feature. You shouldn't be using
it if you're using a connection pool :)

Use the correct properties on your connection pool and you should be
good to go.

For example, setting 'timeBetweenEvictionRunsMillis' (set to some
sensible number of milliseconds, I would suggest something around 5
minutes) and 'minEvictableIdleTimeMillis' (set to the number of
milliseconds you have 'wait_timeout' set to on the server minus some %)
 should catch MySQL closing idle connections.

Setting 'validationQuery' (set to 'SELECT 1') and 'testOnBorrow' or
'testOnReturn' should catch MySQL server restarts or general network
flakiness.

In any case, you should also see the new example in the troubleshooting
section of the Connector/J docs that shows how your code can also detect
whether a SQLException was caused by a lost connection, or some other
error (section 4.4 under the following link):

http://www.mysql.com/documentation/connector-j/index.html#id2803835


-Mark (the guy who wrote the 'autoReconnect' functionality, and now
wishes he could remove it from the JDBC driver)

- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com

Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAUe8FtvXNTca6JD8RAmpmAJ0Wq/1rT/Fcw40H4fB1/g8UmheonACbBYwU
mpRzou4Jb2yXUsGSNooLCKs=
=DW3u
-END PGP SIGNATURE-

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: mod_jk2 problems

2004-03-11 Thread Yiannis Mavroukakis
http://apr.apache.org/

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:37
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Yes, probably some lib(s), which were not linked corectly with mod_jk2 
while compiling it?
What's apr?

Yiannis Mavroukakis wrote:

If memory serves me right, the apache httpd sources and the apr sources.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:17
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Oh, yes! Thanks!
Here is what missing:

undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
undefined symbol: ap_server_root(./mod_jk2.so)
undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
undefined symbol: apr_socket_create (./mod_jk2.so)
undefined symbol: ap_hook_post_config   (./mod_jk2.so)
undefined symbol: ap_get_module_config  (./mod_jk2.so)
undefined symbol: apr_file_write_full   (./mod_jk2.so)
undefined symbol: apr_send  (./mod_jk2.so)
undefined symbol: apr_table_add (./mod_jk2.so)
undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
undefined symbol: apr_pool_create_ex(./mod_jk2.so)
undefined symbol: ap_hook_handler   (./mod_jk2.so)
undefined symbol: apr_strerror  (./mod_jk2.so)
undefined symbol: ap_update_mtime   (./mod_jk2.so)
undefined symbol: apr_connect   (./mod_jk2.so)
undefined symbol: apr_mmap_offset   (./mod_jk2.so)
undefined symbol: apr_file_seek (./mod_jk2.so)
undefined symbol: apr_md5_final (./mod_jk2.so)
undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
undefined symbol: ap_hook_child_init(./mod_jk2.so)
undefined symbol: find_child_by_pid (./mod_jk2.so)
undefined symbol: apr_setsocketopt  (./mod_jk2.so)
undefined symbol: ap_setup_client_block (./mod_jk2.so)
undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
undefined symbol: apr_table_set (./mod_jk2.so)
undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
undefined symbol: apr_table_addn(./mod_jk2.so)
undefined symbol: ap_get_server_version (./mod_jk2.so)
undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
undefined symbol: ap_mpm_query  (./mod_jk2.so)
undefined symbol: apr_mmap_create   (./mod_jk2.so)
undefined symbol: apr_filepath_merge(./mod_jk2.so)
undefined symbol: ap_log_perror (./mod_jk2.so)
undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
undefined symbol: apr_pstrdup   (./mod_jk2.so)
undefined symbol: apr_date_parse_http   (./mod_jk2.so)
undefined symbol: apr_recv  (./mod_jk2.so)
undefined symbol: ap_get_server_name(./mod_jk2.so)
undefined symbol: ap_os_escape_path (./mod_jk2.so)
undefined symbol: ap_log_error  (./mod_jk2.so)
undefined symbol: apr_table_setn(./mod_jk2.so)
undefined symbol: ap_get_remote_host(./mod_jk2.so)
undefined symbol: apr_table_get (./mod_jk2.so)
undefined symbol: apr_socket_close  (./mod_jk2.so)
undefined symbol: apr_psprintf  (./mod_jk2.so)
undefined symbol: apr_file_open (./mod_jk2.so)
undefined symbol: apr_ctime (./mod_jk2.so)
undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
undefined symbol: apr_stat  (./mod_jk2.so)
undefined symbol: apr_palloc(./mod_jk2.so)
undefined symbol: ap_strchr (./mod_jk2.so)
undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
undefined symbol: ap_should_client_block(./mod_jk2.so)
undefined symbol: apr_pvsprintf (./mod_jk2.so)
undefined symbol: apr_time_now  (./mod_jk2.so)
undefined symbol: ap_rwrite (./mod_jk2.so)
undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
undefined symbol: ap_set_module_config  (./mod_jk2.so)
undefined symbol: apr_table_elts(./mod_jk2.so)
undefined symbol: ap_get_client_block   (./mod_jk2.so)
undefined symbol: ap_add_version_component  (./mod_jk2.so)
undefined symbol: apr_md5_init  (./mod_jk2.so)
undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
undefined symbol: apr_file_info_get (./mod_jk2.so)
undefined symbol: apr_pool_clear(./mod_jk2.so)
undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
undefined symbol: apr_mmap_delete   (./mod_jk2.so)
undefined symbol: ap_get_server_port(./mod_jk2.so)
undefined symbol: ap_content_type_tolower   (./mod_jk2.so)
undefined symbol: apr_proc_mutex_lock   (./mod_jk2.so)
undefined symbol: ap_rflush (./mod_jk2.so)
undefined symbol: apr_md5_update(./mod_jk2.so)
undefined symbol: ap_set_last_modified  (./mod_jk2.so)
undefined symbol: apr_socket_timeout_set(./mod_jk2.so)
undefined symbol: ap_hook_translate_name(./mod_jk2.so)
undefined symbol: ap_add_common_vars(./mod_jk2.so)
undefined symbol: apr_pool_userdata_get (./mod_jk2.so)
undefined

RE: mod_jk2 problems

2004-03-11 Thread Yiannis Mavroukakis
It shouldn't, but if you are worried you install it in a directory out of
the way, and link jk2 against it.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 09:38
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Yes, I already found it, but should I install it? Will it affect apache 
in some way, or is it just a set of libraries?
I don't want to risk to affect apache.

Yiannis Mavroukakis wrote:

http://apr.apache.org/

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:37
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Yes, probably some lib(s), which were not linked corectly with mod_jk2 
while compiling it?
What's apr?

Yiannis Mavroukakis wrote:

  

If memory serves me right, the apache httpd sources and the apr sources.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:17
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Oh, yes! Thanks!
Here is what missing:

undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
undefined symbol: ap_server_root(./mod_jk2.so)
undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
undefined symbol: apr_socket_create (./mod_jk2.so)
undefined symbol: ap_hook_post_config   (./mod_jk2.so)
undefined symbol: ap_get_module_config  (./mod_jk2.so)
undefined symbol: apr_file_write_full   (./mod_jk2.so)
undefined symbol: apr_send  (./mod_jk2.so)
undefined symbol: apr_table_add (./mod_jk2.so)
undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
undefined symbol: apr_pool_create_ex(./mod_jk2.so)
undefined symbol: ap_hook_handler   (./mod_jk2.so)
undefined symbol: apr_strerror  (./mod_jk2.so)
undefined symbol: ap_update_mtime   (./mod_jk2.so)
undefined symbol: apr_connect   (./mod_jk2.so)
undefined symbol: apr_mmap_offset   (./mod_jk2.so)
undefined symbol: apr_file_seek (./mod_jk2.so)
undefined symbol: apr_md5_final (./mod_jk2.so)
undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
undefined symbol: ap_hook_child_init(./mod_jk2.so)
undefined symbol: find_child_by_pid (./mod_jk2.so)
undefined symbol: apr_setsocketopt  (./mod_jk2.so)
undefined symbol: ap_setup_client_block (./mod_jk2.so)
undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
undefined symbol: apr_table_set (./mod_jk2.so)
undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
undefined symbol: apr_table_addn(./mod_jk2.so)
undefined symbol: ap_get_server_version (./mod_jk2.so)
undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
undefined symbol: ap_mpm_query  (./mod_jk2.so)
undefined symbol: apr_mmap_create   (./mod_jk2.so)
undefined symbol: apr_filepath_merge(./mod_jk2.so)
undefined symbol: ap_log_perror (./mod_jk2.so)
undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
undefined symbol: apr_pstrdup   (./mod_jk2.so)
undefined symbol: apr_date_parse_http   (./mod_jk2.so)
undefined symbol: apr_recv  (./mod_jk2.so)
undefined symbol: ap_get_server_name(./mod_jk2.so)
undefined symbol: ap_os_escape_path (./mod_jk2.so)
undefined symbol: ap_log_error  (./mod_jk2.so)
undefined symbol: apr_table_setn(./mod_jk2.so)
undefined symbol: ap_get_remote_host(./mod_jk2.so)
undefined symbol: apr_table_get (./mod_jk2.so)
undefined symbol: apr_socket_close  (./mod_jk2.so)
undefined symbol: apr_psprintf  (./mod_jk2.so)
undefined symbol: apr_file_open (./mod_jk2.so)
undefined symbol: apr_ctime (./mod_jk2.so)
undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
undefined symbol: apr_stat  (./mod_jk2.so)
undefined symbol: apr_palloc(./mod_jk2.so)
undefined symbol: ap_strchr (./mod_jk2.so)
undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
undefined symbol: ap_should_client_block(./mod_jk2.so)
undefined symbol: apr_pvsprintf (./mod_jk2.so)
undefined symbol: apr_time_now  (./mod_jk2.so)
undefined symbol: ap_rwrite (./mod_jk2.so)
undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
undefined symbol: ap_set_module_config  (./mod_jk2.so)
undefined symbol: apr_table_elts(./mod_jk2.so)
undefined symbol: ap_get_client_block   (./mod_jk2.so)
undefined symbol: ap_add_version_component  (./mod_jk2.so)
undefined symbol: apr_md5_init  (./mod_jk2.so)
undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
undefined symbol: apr_file_info_get (./mod_jk2.so)
undefined symbol: apr_pool_clear(./mod_jk2.so)
undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
undefined symbol: apr_mmap_delete   (./mod_jk2.so)
undefined symbol: ap_get_server_port(./mod_jk2.so)
undefined symbol: ap_content_type_tolower   (./mod_jk2.so)
undefined symbol

i18n problems

2004-03-11 Thread Yiannis Mavroukakis
I'm acting as a middleman delivering this email for a friend who has trouble
contacting the list ;)



I am using TC 5.0.16.

 I once had problems when reading intl. form data and passing them thru
servlets to a database. That was solved by just using

 request.setCharacterEncoding(iso-8859-7);

Now the problem is opposite. I read strings from a database and as soon as
they become http data, their encoding is lost, resulting in ???'s instead of
text. Servlets do contain

res.setContentType(text/html; charset=iso-8859-7);
req.setCharacterEncoding(iso-8859-7);

and I have tried with UTF-8 as well, with same results. There is nothing
wrong with the database and the strings, as other applications work fine. To
make sure that I get correct strings from the db, I also print them to a
JTextArea (as soon as they are retrieved) and they have no problem.

So it's not a database, font, browser problem. Encoding is lost somewhere
inside TC and I don't know what to do... Any ideas welcome.

TIA


==


Kostas Harvatis
-
National Center for Social Research - Directorate of Research Support
www.ekke.gr


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: How to protect server.xml?

2004-03-10 Thread Yiannis Mavroukakis
I will assume you mean protect the file from being read. The
easiest way to do that is to assign read/write permission to the file
to whoever user is running tomcat and remove all permissions from group. 
That also assumes that you are running some flavour of Unix, but you could 
achieve the same with Win32 security.

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 01:40
To: [EMAIL PROTECTED]
Subject: How to protect server.xml?



Hey guys,

I have both a keystore password and a database
connection user name/password in cleartext in my
server.xml file and I don't know how to get around
that.

In light of this, has anybody come up with a way to
protect server.xml?  Is there a way to encrypt these
passwords? Or perhaps to encrypt the whole server.xml
file itself?

This has been weighing on my mind for a few months
now, and I couldn't find a solution in the mailing
list archives.

I'd appreciate any help!

Tomcat version: 4.1.27


__
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster
http://search.yahoo.com

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems


Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
Well great, you took the httpd sources, got the library out of them but your
httpd is probably 
running a binary which was not compiled against the sources you just used
:). I found that the 
following makefile works well for RH9
./configure -C --prefix=/etc/httpd --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib
--sysconfdir=/etc/httpd/conf --includedir=/usr/include/httpd
--libexecdir=/usr/lib/httpd/modules --datadir=/var/www --with-mpm=prefork
--enable-suexec --with-suexec --with-suexec-caller=apache
--with-suexec-docroot=/var/www
--with-suexec-logfile=/var/log/httpd/suexec.log
--with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500
--with-suexec-gidmin=500 --with-devrandom --with-ldap --enable-ldap
--enable-auth-ldap --enable-cache --enable-disk-cache --enable-mem-cache
--enable-ssl --with-ssl --enable-deflate --enable-cgid --enable-proxy
--enable-proxy-connect --enable-proxy-http --enable-proxy-ftp
--enable-mods-shared=all

This was gleaned from the RH9 httpd rpm installer (I needed to install
httpd2 on RH7.3 and was getting annoyed by RH's _stupid_
dependency issues).


-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 14:23
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Thanks for answer!

Yes, but I don't want to risk with the reinstallation! I have a very 
important server running.
When I was compiling mod_jk2 I encountered that a lib was missing ( I 
forgot the name ),
the link in /usr/lib was there but the file to which it was pointing 
wasn't. What I did is, I took
httpd sources, compiled them, found that .so that was missing in 
/usr/lib, and copied it there,
it compiled well, but can't load. Is there any util to see all symbols 
of library?

Yiannis Mavroukakis wrote:

If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems


Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
  



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
I meant to say ./configure producing a makefile;)

-Original Message-
From: Yiannis Mavroukakis 
Sent: 10 March 2004 14:43
To: 'Tomcat Users List'
Subject: RE: mod_jk2 problems


Well great, you took the httpd sources, got the library out of them but your
httpd is probably 
running a binary which was not compiled against the sources you just used
:). I found that the 
following makefile works well for RH9
./configure -C --prefix=/etc/httpd --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib
--sysconfdir=/etc/httpd/conf --includedir=/usr/include/httpd
--libexecdir=/usr/lib/httpd/modules --datadir=/var/www --with-mpm=prefork
--enable-suexec --with-suexec --with-suexec-caller=apache
--with-suexec-docroot=/var/www
--with-suexec-logfile=/var/log/httpd/suexec.log
--with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500
--with-suexec-gidmin=500 --with-devrandom --with-ldap --enable-ldap
--enable-auth-ldap --enable-cache --enable-disk-cache --enable-mem-cache
--enable-ssl --with-ssl --enable-deflate --enable-cgid --enable-proxy
--enable-proxy-connect --enable-proxy-http --enable-proxy-ftp
--enable-mods-shared=all

This was gleaned from the RH9 httpd rpm installer (I needed to install
httpd2 on RH7.3 and was getting annoyed by RH's _stupid_
dependency issues).


-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 14:23
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Thanks for answer!

Yes, but I don't want to risk with the reinstallation! I have a very 
important server running.
When I was compiling mod_jk2 I encountered that a lib was missing ( I 
forgot the name ),
the link in /usr/lib was there but the file to which it was pointing 
wasn't. What I did is, I took
httpd sources, compiled them, found that .so that was missing in 
/usr/lib, and copied it there,
it compiled well, but can't load. Is there any util to see all symbols 
of library?

Yiannis Mavroukakis wrote:

If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems


Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
  



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
try

ldd -v -r /etc/httpd/modules/mod_jk2.so

If there are any missing objects or functions it will report them to you.



-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 15:24
To: Tomcat Users List
Subject: Re: mod_jk2 problems


ldd, is good, but I ment something to show me all functions of a lib.

libc.so.6 = /lib/i686/libc.so.6 (0x4200)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)

Obviously those two are not enough



Francois JEANMOUGIN wrote:

it compiled well, but can't load. Is there any util to see all symbols
of library?



Try ldd :
$ ldd mod_jk.so
)

Nothing obvious :).

François.


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


  





This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
If memory serves me right, the apache httpd sources and the apr sources.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:17
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Oh, yes! Thanks!
Here is what missing:

undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
undefined symbol: ap_server_root(./mod_jk2.so)
undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
undefined symbol: apr_socket_create (./mod_jk2.so)
undefined symbol: ap_hook_post_config   (./mod_jk2.so)
undefined symbol: ap_get_module_config  (./mod_jk2.so)
undefined symbol: apr_file_write_full   (./mod_jk2.so)
undefined symbol: apr_send  (./mod_jk2.so)
undefined symbol: apr_table_add (./mod_jk2.so)
undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
undefined symbol: apr_pool_create_ex(./mod_jk2.so)
undefined symbol: ap_hook_handler   (./mod_jk2.so)
undefined symbol: apr_strerror  (./mod_jk2.so)
undefined symbol: ap_update_mtime   (./mod_jk2.so)
undefined symbol: apr_connect   (./mod_jk2.so)
undefined symbol: apr_mmap_offset   (./mod_jk2.so)
undefined symbol: apr_file_seek (./mod_jk2.so)
undefined symbol: apr_md5_final (./mod_jk2.so)
undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
undefined symbol: ap_hook_child_init(./mod_jk2.so)
undefined symbol: find_child_by_pid (./mod_jk2.so)
undefined symbol: apr_setsocketopt  (./mod_jk2.so)
undefined symbol: ap_setup_client_block (./mod_jk2.so)
undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
undefined symbol: apr_table_set (./mod_jk2.so)
undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
undefined symbol: apr_table_addn(./mod_jk2.so)
undefined symbol: ap_get_server_version (./mod_jk2.so)
undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
undefined symbol: ap_mpm_query  (./mod_jk2.so)
undefined symbol: apr_mmap_create   (./mod_jk2.so)
undefined symbol: apr_filepath_merge(./mod_jk2.so)
undefined symbol: ap_log_perror (./mod_jk2.so)
undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
undefined symbol: apr_pstrdup   (./mod_jk2.so)
undefined symbol: apr_date_parse_http   (./mod_jk2.so)
undefined symbol: apr_recv  (./mod_jk2.so)
undefined symbol: ap_get_server_name(./mod_jk2.so)
undefined symbol: ap_os_escape_path (./mod_jk2.so)
undefined symbol: ap_log_error  (./mod_jk2.so)
undefined symbol: apr_table_setn(./mod_jk2.so)
undefined symbol: ap_get_remote_host(./mod_jk2.so)
undefined symbol: apr_table_get (./mod_jk2.so)
undefined symbol: apr_socket_close  (./mod_jk2.so)
undefined symbol: apr_psprintf  (./mod_jk2.so)
undefined symbol: apr_file_open (./mod_jk2.so)
undefined symbol: apr_ctime (./mod_jk2.so)
undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
undefined symbol: apr_stat  (./mod_jk2.so)
undefined symbol: apr_palloc(./mod_jk2.so)
undefined symbol: ap_strchr (./mod_jk2.so)
undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
undefined symbol: ap_should_client_block(./mod_jk2.so)
undefined symbol: apr_pvsprintf (./mod_jk2.so)
undefined symbol: apr_time_now  (./mod_jk2.so)
undefined symbol: ap_rwrite (./mod_jk2.so)
undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
undefined symbol: ap_set_module_config  (./mod_jk2.so)
undefined symbol: apr_table_elts(./mod_jk2.so)
undefined symbol: ap_get_client_block   (./mod_jk2.so)
undefined symbol: ap_add_version_component  (./mod_jk2.so)
undefined symbol: apr_md5_init  (./mod_jk2.so)
undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
undefined symbol: apr_file_info_get (./mod_jk2.so)
undefined symbol: apr_pool_clear(./mod_jk2.so)
undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
undefined symbol: apr_mmap_delete   (./mod_jk2.so)
undefined symbol: ap_get_server_port(./mod_jk2.so)
undefined symbol: ap_content_type_tolower   (./mod_jk2.so)
undefined symbol: apr_proc_mutex_lock   (./mod_jk2.so)
undefined symbol: ap_rflush (./mod_jk2.so)
undefined symbol: apr_md5_update(./mod_jk2.so)
undefined symbol: ap_set_last_modified  (./mod_jk2.so)
undefined symbol: apr_socket_timeout_set(./mod_jk2.so)
undefined symbol: ap_hook_translate_name(./mod_jk2.so)
undefined symbol: ap_add_common_vars(./mod_jk2.so)
undefined symbol: apr_pool_userdata_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_unlock   (./mod_jk2.so)

Any idea where thay are defined?

Yiannis Mavroukakis wrote:

try

ldd -v -r /etc/httpd/modules/mod_jk2.so

If there are any missing objects or functions it will report them to you.



-Original Message-
From: Vi [mailto:[EMAIL PROTECTED

RE: Manager app security concerns

2004-03-09 Thread Yiannis Mavroukakis
I'm just guessing here but you could run the manager app over https.
If however your support team expressed concerns that the manager app
might be backdoored, I suggest you slap them a little bit and ask them
to change their medication :)

-Original Message-
From: Andrew Watters [mailto:[EMAIL PROTECTED]
Sent: 09 March 2004 11:32
To: Tomcat Users List
Subject: Manager app security concerns


I'm using the manager app to deploy web apps. I'm interfacing to it 
using deployer ant tasks. My support team have raised concerns that this 
is inherently insecure. They are concerned that a third party can use 
the manager app to take control of the server.

Is this a valid concern?
Is the username and password securely transmitted? Are there any back 
doors or bugs with the manager app that would allow it to be taken over?

If there are any problems is there a way to improve the security of the 
manager?

Thanks in advance for any help.
Andrew

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Where to store log files from packed WAR file apps

2004-03-03 Thread Yiannis Mavroukakis
Might be wrong on this but why not setup environment variables and reflect
those in ant? That way you should 
be portable, providing those env vars exist.
BTW, take off the tomcat greeting page from your machine ;)

-Original Message-
From: Harry Mantheakis [mailto:[EMAIL PROTECTED]
Sent: 03 March 2004 09:34
To: Tomcat Users List
Subject: Where to store log files from packed WAR file apps


Hello

Now that I've got my Ant build/deploy scripts working nicely, I'm tempted to
start running my applications out of packed WAR files.

I cannot figure out if there is a *portable* way to specify paths for where
my Log4J log files should be saved.

I assume I could use the 'catalina.home' property to save the logs under the
Tomcat installation directory - but that's Tomcat specific.

Has anyone got around this, somehow, or is it a case of getting Ant to glue
things with some hard-coded values at build time?

Many thanks for any contributions.

Harry Mantheakis
London, UK


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat 4 + Apache 2 + mod_jk (auto-config) + https

2004-02-25 Thread Yiannis Mavroukakis
Don't think you need to. I am running httpd2(SSL)+tomcat4/5+mod_jk2. Apache
will 
take care of the SSL side, and mod_jk should forward everything unencrypted
via
localhost(if that is your setup) to tomcat.

-Original Message-
From: Samuel Rutishauser [mailto:[EMAIL PROTECTED]
Sent: 25 February 2004 15:09
To: Tomcat Users List
Subject: Tomcat 4 + Apache 2 + mod_jk (auto-config) + https


Hello all,

I have Tomcat 4 + Apache 2 + mod_jk (in auto-config mode). Everything's 
fine, but I don't see how to tell Tomcat to build the generated 
mod_jk.conf as to listen to https traffic. Any ideas?

Thank you
Samuel Rutishauser


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat 4 or 5 and SOAP

2004-02-18 Thread Yiannis Mavroukakis
Mind sharing some more information :) Which SOAP engine are you using? Axis?
What kind of problems are you getting? I am running Axis on Tomcat4 without 
any issues.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 09:48
To: [EMAIL PROTECTED]
Subject: Tomcat 4 or 5 and SOAP


Hello does anyone knows how can I make SOAP working on my Apache Tomcat 
server ?
On the version 3.2 I had no problem, but with the 4 or 5 I can do nothing.
Do you know a good tutorial for Tomcat 5/4 or another solution

Thanks.

David


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: why should i run apache to install tomcat4.1.29

2004-02-18 Thread Yiannis Mavroukakis
The short version is you dont. You can use Tomcat to serve both static
contents and servlets.

-Original Message-
From: xavier manohar [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 13:46
To: [EMAIL PROTECTED]
Subject: why should i run apache to install tomcat4.1.29


Hello 
   I am a newbie and I am looking for a satisfactory answer why we need
to install apache and run it,to install tomcat 4.1.29 on windows 95 os
regards 
mano

Yahoo! India Insurance Special: Be informed on the best policies, services,
tools and more.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: tomcat installation

2004-02-18 Thread Yiannis Mavroukakis
These messages are normal. If you are not getting any exceptions further up
the logs you should be ok

-Original Message-
From: xavier manohar [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 15:17
To: [EMAIL PROTECTED]
Subject: tomcat installation


hello
   I am very much worried whether my tomcat has been installed correctly
in windows 95.the follwing line comes in the command prompt .
when i run tomcat.pls help me to confirm that I have installed it correctly.
If there is any mistake pls help me to sort out.
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.
LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.actio
n.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.webapp.admin
.ApplicationResources', returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/280  config=C:\Tomcat
4.1\conf\jk2.prope
rties
Regards,
Mano

Yahoo! India Insurance Special: Be informed on the best policies, services,
tools and more.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Apache2 to Tomcat5.0.x

2004-02-12 Thread Yiannis Mavroukakis

Possibly. If I am not mistaken it has to do with the fact that Apache under
windows uses a single worker thread whereas under Linux that is not the
case..
I think Mladen Turk is the authority to speak on that though.

Yiannis

-Original Message-
From: Bill Dudney [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 23:03
To: [EMAIL PROTECTED]
Subject: Apache2 to Tomcat5.0.x


Hi,

I'm trying to connect Apache2 to Tomcat5.0.x on my mac (OS X) and I'm
unable to get jni to work. What is the expected/required/best way to
connect these two on a Unix platform? I read in the archive that
someone did not expect the jni connection to work on Linux, does that
apply to all unixes? Or did I just misunderstand...

I don't need (yet anyway) configuration files or anything. I'm trying
to find out if I'm running down a rat hole trying to connect Apache2 to
Tomcat with jni.

Thanks in advance for any help.

-bd-


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Another Try at MySQL Connection Pooling

2004-02-11 Thread Yiannis Mavroukakis
As far as the listening bit is concerned why not just limit mySQL to listen
on localhost then?
Do you get better performance out of named pipes?

-Original Message-
From: Merrill Cornish [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 15:52
To: Tomcat Users List
Subject: RE: Another Try at MySQL Connection Pooling


Jay,

Thanks for your comments.

I think the problem may be that I don't have the MySQL Connector/J jar in
the common/lib.  When using DriverManager, it worked fine in jre/lib/ext,
which is one of the places the MySQL documentation recommended.  I need to
try again with it in the new location.

Also under DriverManager, the named pipe access worked as advertised. The
MySQL instance will be dedicated to my timesheet application and running on
the same machine as Tomcat.  For security reasons, I don't want MySQL
accepting commands over TCP/IP.  There is a my.cnf initialization parameter
which tells MySQL to not even start up its TCP/IP listener and used named
pipes instead.  This obviously only works when MySQL is on the same machine
as the application, but that's my situation.

The named resource factory stuff was carried over from what worked under
DriverManager.  However, if may have been redundant, but harmless, under
DriverManger too, and I just didn't notice.

One general problem I'm having with the document I can find is that it tends
to simply say, do THIS... without explaining how THIS is doing what it's
supposed to be doing.  As a result, I'm having trouble reasoning as to what
should and should not work. Instead, I'm reduced to plugging in the examples
and hoping they work.

Merrill

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Another Try at MySQL Connection Pooling

2004-02-11 Thread Yiannis Mavroukakis

I'll add another 2 to the pool :)

-Original Message-
From: Philipp Taprogge [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 16:24
To: Tomcat Users List
Subject: Re: Another Try at MySQL Connection Pooling


Hi!

Mark Matthews wrote:
 On most versions of Windows, using JDBC and MySQL with named pipes will
 give you a 50-60% performance improvement.

Which IMO is by no way an intidator of Win's greatness in named pipes 
but rather of it's bad TCP implementation. Instead of relying on named 
pipes one should concider switching operation systems on the hosting 
machine...

Just my 2 cent

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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: request parameter

2004-02-11 Thread Yiannis Mavroukakis

This has appeared on the list before. Without being 100% (better search the
list) it 
had to do with the fact, that the person having the issues was using a JK2
binary...
Don't take my word though, search the list.

-Original Message-
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 16:50
To: [EMAIL PROTECTED]
Subject: request parameter


Have somebody ever had problem with request parameters ?
I am using Tomcat 4.1.29 com JK2.
Sometimes my request parameters are disappearing.
Did somebody already have this problem ?

_
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: javax.mail

2004-02-11 Thread Yiannis Mavroukakis
This is assuming the Properties object you use, has been returned from
the javax.mail.Session object, correct?
You could go for the shotgun approach and set mail.host instead
of mail.protocol.host. If that doesn't work, make sure that
mysmtphost doesn't resolve to the machine serving your jsp.

Yiannis


-Original Message-
From: Duncan Smith [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 17:18
To: Tomcat User List
Subject: javax.mail


Hi, sorry if this is the wrong mailing list but I think most people here
are Java programmers so:

I am using javax.mail to send a mail to myself if a particular problem
occurs on the server.  My code seems to work but, but it does not use
the smtp server which I am specifying. I cannot find a problem in my
code as it seems to be identical to examples which I have found.

I use the line:
props.put(mail.smtp.host, mysmtphost);

to specify the smtp server (which is on a differant computer) but the
mail is being sent through the smtp server running on the same machine
as the jsp. Has anyone else had this problem at all, or am I just doing
something wrong?

-Duncan


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: include files

2004-02-10 Thread Yiannis Mavroukakis
If you think everything else is working ok, stop tomcat delete everything
under the work directory and start again.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 09:19
To: [EMAIL PROTECTED]
Subject: include files


hi

i've tested a new version of my jsp include file (a header which is 
referenced by about 40 pages) on one jsp page, and its wokred ok.  i've 
changed the coding of the include page though none of the other jsp pages 
have picked up the new include and are still looking to teh old one ?  i've 
stopped and started tomcat but its till not changed.

does anyone have any ideas ?  i've included a couple of new tag libraries 
but they are working ok and i cant see why it would be anything other than 
tomcat ?

cheers

chris


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Apache 2.x and Tomcat 5.x

2004-02-10 Thread Yiannis Mavroukakis
Depends :) If mod_jk was looking for workers.properties in the absolute
path Tomcat 4 used to be(and Tomcat 5 is in a different one),
better bandage that leg to stop the bleeding ;)

Yiannis.

-Original Message-
From: Daniel Thivierge [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 12:52
To: [EMAIL PROTECTED]
Subject: Apache 2.x and Tomcat 5.x


Hi all,
Sorry if this was ask before, but, I could not find any information on the
NET.

We had Apache 2.x and Tomcat 4.x running find on SuSE Pro 9.0.  Our client
wanted/needed to move to Tomcat 5.x for whatever reason.  We install Tomcat
5.x and start it without any problem, then we started Apache and had
problem.  It complain about a workers.properties file not found.  I copy
the file from Tomcat 4 to the Tomcat 5 and Apache was happy.  The mod_jk
seem to be working find to.

Now the QUESTION, did we just shoot ourself in the foot or was it a little
oops from the Tomcat group?

Thanks.



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: include files

2004-02-10 Thread Yiannis Mavroukakis
The touch command is on Unix OS'es. It hasn't got anything to do with
tomcat. What it does is it updates (among other things) the last modified
attribute
of a file, but in your case the purpose is (at least if my head is screwed
on right)
to trigger Tomcat into detecting a file change in the work directory, hence
doing a reload.
If I got the Tomcat bit wrong, shoot at the bright red target on my
forehead :)

Yiannis.

-Original Message-
From: Chris Daly [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 14:50
To: Tomcat Users List
Subject: Re: include files


thanks.

do i delete the name of the app under tomcat, for example 
work/Standalone/localhost/Website ?  and all the $... files and the two 
directories -  Help and WEB-INF under this directory ?

what is the touch cmd ?  i cant find it in my wrox tomcat book ?

cheers

chris

You would delete only the directory relative of your site, under the work 
directory of tomcat;
for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;
probably the name may be different from release;
after delete it, you must restart tomcat;
But have you tried to use the touch cmd on all .jsp file that include your 
include.jsp? I use this mode, and all is OK, and I doesn't delete the work 
directory;


At 11:25 10.02.2004 +0100, you wrote:
You would delete only the directory relative of your site, under the work 
directory of tomcat;

for example, if you site is called www.test.org, you must delete the 
directory under tomcat work/www.test.org_8080;

probably the name may be different from release;

after delete it, you must restart tomcat;

But have you tried to use the touch cmd on all .jsp file that include your 
include.jsp? I use this mode, and all is OK, and I doesn't delete the work 
directory;


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help

2004-02-04 Thread Yiannis Mavroukakis
The same principles apply. There is only one gotcha. You cannot
use JNI to run Tomcat (yet).

-Original Message-
From: Apahce Tomact [mailto:[EMAIL PROTECTED]
Sent: 03 February 2004 19:19
To: [EMAIL PROTECTED]
Subject: Apache2, Mod_jk2 and Tomcat 4 on Linux - Help


Hi,
 
I want to configure Apache2, Mod_jk2 and Tomcat 4 on Linux. If any body has
any procedure, Please send me.
 
I have done this in Windows environment successfully and Struggling to
configure on Linux.
 
Your help is greatly appreciated.
 
Regards,
Rama.


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


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Installing Tomcat 5 from JPackage

2004-02-04 Thread Yiannis Mavroukakis

The only advantage is that tomcat is installed as a service i.e.
you do a /sbin/service tomcat start or whatever the rpm has in mind..
Plus permissions and directory location.
But apart from that, I would personally never choose the rpm installation 
over the tarball. The perceived benefits aren't that important for me to
mess around installing whatever else is required by the package definition..

Yiannis

-Original Message-
From: Vitor Buitoni [mailto:[EMAIL PROTECTED]
Sent: 04 February 2004 11:19
To: Tomcat Users List
Subject: Re: Installing Tomcat 5 from JPackage


To be able to install tomcat rpm package, you must install a lot of 
other packages that tomcat depends on, first.
I already did this once, and for me it was very time consuming and it 
wasn't easy at all. This is because JPackager can't provide some 
packages as binary packages, because of copyright restrictions. So you 
have to download the nosrc rpm from jpackage, download the source code 
from the software site (e.g. java.sun.com) and build the rpm from the 
scratch. Then you can install this rpm.
The whole process might be very painful, at least for me it was, since i 
had to learn something about the rpm creation process. :-)

So, the REAL question is :
- Does anybody know the advantage of installing a tomcat rpm package??


Joe Tseng wrote:

I recently installed Fedore Core 1 and was advised to install Tomcat 5
from JPackage using yum.  When I tried to install to do this I got an
error like this:

Resolving dependencies
...identicla dependency loop exceeded
package tomcat5 needs jaas (not provided)
package tomcat5 needs jaf = 0:1.0.1 (not provided)
package tomcat5 needs javamail = 0:1.3 (not provided)
package
[snip]

Any useful assistance in helping out a noob with installation is
appreciated.

  




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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat5 RH ES mod_jk2 Apache2

2004-02-03 Thread Yiannis Mavroukakis
Oh use the source Luke!(tm) :)

-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 22:00
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2


Ok.  I'm ready to partially retract all of the mean things that I said 
about tomcat.  If anyone thinks that they will be saving themselves time 
by installing an rpm of mod_jk2.so, think again; re-build from the 
source!  Thanks to all you responded.   Rich

Hamilton Andrew wrote:

I have RH AS and I use Tomcat5, mod_jk2, and apache2 and they all work
fine.
I use the uri's you say don't work, ie
[uri:/servlets-examples/*] works just fine for me.  You are free to do what
you like as far as switching to a different framework.  I see several
people
are trying to help you and it might help to post your entire current
workers2.properties and your jk2.properties.  Does everything work properly
when you use just Tomcat and not apache?  

Here is my workers2.properties:
#
[logger.apache2]
level=DEBUG

[shm]
file=/www/apache2/logs/shm.file
size=1048576

# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=Map the jsp-examples webapp
worker=ajp13:localhost:8009

[uri:/servlets-examples/*]
info=Map the servlets-examples webapp
worker=ajp13:localhost:8009
#

And my jk2.properties:

#
# Set the desired handler list
handler.list=channelSocket,request
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/www/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
#


-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 2:04 PM
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2




Well.  I have gotten Tomcat5, RH ES, mod_jk2, and apache2 all working.  
I've come to the conclusion that the clowns
who developed this stuff sit back and watch the traffic on the list and 
laugh.  Here is what you need to do in your workers2.properites file:

For every servlet you need to define a worker in worker2.properties.

[uri:/servlets-examples/*]  This won't work, but this will

[uri:/servlets-examples/servlet/HelloWorldExample]
[uri:/servlets-examples/servlet/RequestInfoExample]
etc.

[uri:/servlets-examples/servlet/*] won't work
[uri:/servlets-examples/servlet/*.*] won't work
[uri:/servlets-examples/servlet/*e] will work, but all of your servlets
must
end with the letter 'e'

Unless one of you fine developers want to clear this up.  I'm going to
switch to Jetty.  Tomcat is crap!!!



Yiannis Mavroukakis wrote:

  

Curious...Send me your entire workers2.properties file and I'll have a


look.
  

Also, what are the urls you are using to access your html/jsp/servlets?


Feel
  

free to use 'localhost' if you don't want to reveal sensitive server
hostname/ip's

Yiannis

-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 15:22
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2


Same as in the past works fine on port 8080.  Jsp stuff works on port 
80.  Html in servlets-examples works fine.  Servlets cannot be found???

Yiannis Mavroukakis wrote:

 



Hmm ok.. :)
you don't need
channelSocket.address=127.0.0.1
in jk2.properties.
Add the following under [channel.socket:localhost:8009]
host=localhost
port=8009

and under [ajp13:localhost:8009] add this
channel=channel.socket:localhost:8009

Before you go about making those changes, make sure that your servlets
are working OK on standalone tomcat :)

Good luck,

Yiannis.

-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 14:10
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2


The jsp is working but not the servlets.  I've double check /alias and 
workers for typos. Other suggestions??

Yiannis Mavroukakis wrote:



   

  

Make these additions/ammendments to workers2

[ajp13:localhost:8009]
channel=channel.socket:localhost:809

[shm]
file=/tmp/shm.file
size=100


Yiannis.
-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 18:27
To: [EMAIL PROTECTED]
Subject: Tomcat5 RH ES mod_jk2 Apache2


I finally made some progress configuring Tomcat5 Apache2 and mod_jk2 
running on RedHat Enterprise Server.  I get html over port 80

RE: Reg HTTP status 404 on Tomcat 5.0.16

2004-02-03 Thread Yiannis Mavroukakis
Looks like you went about the wrong way with the Context and url pattern
combination.

Your servlet will work if you point your browser to
http://localhost:8080/sampleapp/sampleapp

If I am not mistaken changing
url-pattern/sampleapp/url-pattern
to
url-pattern/HelloServlet/url-pattern

should hopefully produce what you are after.

Yiannis.

-Original Message-
From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
Sent: 03 February 2004 14:03
To: [EMAIL PROTECTED]
Subject: Reg HTTP status 404 on Tomcat 5.0.16


I have my sampleapp folder into which a small trial of HelloServlet needs
to be tested.

The directory structure of sampleapp is as follows,

e:\sampleapp\WEB-INF\classes\
 WEB-INF\lib
 WEB-INF\sourcefiles
 WEB-INF\web.xml
The classes directory has got 
classes\package1\structure

The Context /Context tag in server.xml has been added like this.

/ server.xml ***/

Context path=/sampleapp docBase=e:\sampleapp debug=0
reloadable=true /Context

/ server.xml /

/** web.xml ***/
?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-nameServlet 2.4 Examples/display-name
  description Servlet 2.4 Examples /description

!-- Servlet mapping start -- 
!-- Define servlets. i.e. bind a servlet name to a class --

servlet
 servlet-nameHelloServlet/servlet-name
 servlet-classpackage1.structure.HelloServlet/servlet-class
/servlet

!-- bind a servlet name to a URL (pattern) --
servlet-mapping
 servlet-nameHelloServlet/servlet-name
 url-pattern/sampleapp/url-pattern
/servlet-mapping

!-- Servlet mapping end --

/web-app

/** web.xml ***/



The error I am getting in the browser is this 

HTTP Status 404 - /sampleapp/HelloServlet

---
type Status report

message /sampleapp/HelloServlet

description The requested resource (/sampleapp/HelloServlet) is not
available.


This is the url I gave 

http://localhost:8080/sampleapp/HelloServlet


Kindly let me know what could be wrong in the above configuration.

Any help would be appreciated.

Thanks 
AS




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat5 RH ES mod_jk2 Apache2

2004-02-02 Thread Yiannis Mavroukakis
Make these additions/ammendments to workers2

[ajp13:localhost:8009]
channel=channel.socket:localhost:809

[shm]
file=/tmp/shm.file
size=100


Yiannis.
-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 18:27
To: [EMAIL PROTECTED]
Subject: Tomcat5 RH ES mod_jk2 Apache2


I finally made some progress configuring Tomcat5 Apache2 and mod_jk2 
running on RedHat Enterprise Server.  I get html over port 80, but no 
jsp or servlets will run.  Don't know what I may have missed.

jk2.properties
handler.list=channelSocket,request
channelSocket.port=8009
channelSocket.address=127.0.0.1

workers2.properties
[channel.socket:localhost:8009]

[ajp13:localhost:8009]

[status:status]
[uri:/sjstatus/*]
group=status:status

[uri:/servlets-examples/*]
worker=ajp13:localhost:8009
debug=0


Appreciate any help,  Rich


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: jk2_init(): Can't find child in scoreboard

2004-02-02 Thread Yiannis Mavroukakis
Yes you can safely ignore them, if your httpd-tomcat link is ok. If you
take a look
at the source for mod_jk2 this is part of the worker initialization.1
means the
workers initialized and the child id is -2 (which if memory serves me right,
means
that mod_jk2 could not find the id of that worker in the httpd scoreboard).

Yiannis

-Original Message-
From: Ralf Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 10:05
To: 'Tomcat Users List'
Subject: jk2_init(): Can't find child in scoreboard


Hi,

I've setup Apache 2.0.48 with Tomcat 5.0.16 and connected them with mod_jk2 
2.0.2. When I start Apache I find the following output in the log file:

[Mon Feb 02 10:54:50 2004] [error] jk2_init() Can't find child 3617 in 
scoreboard
[Mon Feb 02 10:54:50 2004] [error] jk2_init() Can't find child 3618 in 
scoreboard
[Mon Feb 02 10:54:50 2004] [error] jk2_init() Can't find child 3619 in 
scoreboard
[Mon Feb 02 10:54:50 2004] [error] jk2_init() Can't find child 3620 in 
scoreboard
[Mon Feb 02 10:54:50 2004] [error] jk2_init() Can't find child 3621 in 
scoreboard
[Mon Feb 02 10:54:50 2004] [notice] Apache/2.0.48 (Unix) DAV/2 mod_jk2/2.0.2

configured -- resuming normal operations
[Mon Feb 02 10:54:50 2004] [error] mod_jk child init 1 -2
[Mon Feb 02 10:54:50 2004] [error] mod_jk child init 1 -2
[Mon Feb 02 10:54:50 2004] [error] mod_jk child init 1 -2
[Mon Feb 02 10:54:50 2004] [error] mod_jk child init 1 -2
[Mon Feb 02 10:54:50 2004] [error] mod_jk child init 1 -2

My jk2.properties has only one line:
shm.file=/usr/local/apache2/conf/jk2.shm

This is my workers2.properties:
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

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

[shm]
file=/usr/local/apache2/conf/jk2.shm
size=100

BTW, I can access the Tomcat project without specifying the port number 8080

so I assume that mod_jk2 works, but why do I get these error messages? May I

ignore them?

Thanks in advance,
Ralf.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: HTTPS with Apache 2.0.48 and Tomcat 5.0.16

2004-02-02 Thread Yiannis Mavroukakis
This is an httpd question but here goes :)
Just because you declared your virtual host/port pair that doesn't
mean that httpd is listening to port 443.
Therefore you need to add a Listen directive to your conf:

Listen your_virtual_host_name:443

and you should be set.

Yiannis

-Original Message-
From: Ralf Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 11:42
To: 'Tomcat Users List'
Subject: HTTPS with Apache 2.0.48 and Tomcat 5.0.16


Hi,

I try to set an Apache 2.0.48 with a connection to Tomcat 5.0.16 via mod_jk2

2.0.2. The static pages should be accessed via normal HTTP whereas the 
dynamic pages of my webapp should only be accessible via HTTPS for security.

I installed a certificate in /usr/local/apache2/conf/ssl.cert and set up a 
virtual host for the SSL pages in ssl.conf:

VirtualHost _default_:443
DocumentRoot /usr/local/tomcat/webapps/demo_02
ServerName www.development.home:443
ServerAdmin [EMAIL PROTECTED]
ErrorLog /usr/local/apache2/logs/error_log
TransferLog /usr/local/apache2/logs/access_log

Alias /demo_02 /usr/local/tomcat/webapps/demo_02

Location /demo_02/WEB-INF/*
AllowOverride None
deny from all
/Location

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

JKMount /demo_02/*.do ajp13
JKMount /demo_02/*.jsp ajp13
JKMount /demo_02 ajp13
JKMount /demo_02/* ajp13

SSLEngine on
SSLCipherSuite 
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

Files ~ \.(cgi|shtml|phtml|php3?)$
SSLOptions +StdEnvVars
/Files
Directory /usr/local/apache2/cgi-bin
SSLOptions +StdEnvVars
/Directory

SetEnvIf User-Agent .*MSIE.* \
 nokeepalive ssl-unclean-shutdown \
 downgrade-1.0 force-response-1.0

CustomLog /usr/local/apache2/logs/ssl_request_log \
  %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b

/VirtualHost

When I call the webapp over http://localhost/demo_02 everything works fine. 
The request to my webapp is forwarded to Tomcat. But when I switch to https
I 
get Connection refused from the browser. I do not see anything in any log 
file.

Did I miss a configuration step? Or did I misconfigure something?

Ralf.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: HTTPS with Apache 2.0.48 and Tomcat 5.0.16

2004-02-02 Thread Yiannis Mavroukakis
Best remove that line, stick it in your httpd.conf instead along with the
hostname.

-Original Message-
From: Ralf Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 12:16
To: Tomcat Users List
Subject: Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 2. Februar 2004 13:00 schrieb Yiannis Mavroukakis:
 This is an httpd question but here goes :)
 Just because you declared your virtual host/port pair that doesn't
 mean that httpd is listening to port 443.
 Therefore you need to add a Listen directive to your conf:

 Listen your_virtual_host_name:443

My ssl.conf contains the following line:

Listen 443

Do I have to insert the hostname here?

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

iD8DBQFAHj+I7YyyfykA0YkRAp5JAJ4wGvqjJVDfAhIg+m0IANHNbsZfxgCffWMW
vc/N/KOQWHH/iWKbRPk1IQ4=
=iwMU
-END PGP SIGNATURE-


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat5 RH ES mod_jk2 Apache2

2004-02-02 Thread Yiannis Mavroukakis
Hmm ok.. :)
you don't need
channelSocket.address=127.0.0.1
in jk2.properties.
Add the following under [channel.socket:localhost:8009]
host=localhost
port=8009

and under [ajp13:localhost:8009] add this
channel=channel.socket:localhost:8009

Before you go about making those changes, make sure that your servlets
are working OK on standalone tomcat :)

Good luck,

Yiannis.

-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 14:10
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2


The jsp is working but not the servlets.  I've double check /alias and 
workers for typos. Other suggestions??

Yiannis Mavroukakis wrote:

Make these additions/ammendments to workers2

[ajp13:localhost:8009]
channel=channel.socket:localhost:809

[shm]
file=/tmp/shm.file
size=100


Yiannis.
-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 18:27
To: [EMAIL PROTECTED]
Subject: Tomcat5 RH ES mod_jk2 Apache2


I finally made some progress configuring Tomcat5 Apache2 and mod_jk2 
running on RedHat Enterprise Server.  I get html over port 80, but no 
jsp or servlets will run.  Don't know what I may have missed.

jk2.properties
handler.list=channelSocket,request
channelSocket.port=8009
channelSocket.address=127.0.0.1

workers2.properties
[channel.socket:localhost:8009]

[ajp13:localhost:8009]

[status:status]
[uri:/sjstatus/*]
group=status:status

[uri:/servlets-examples/*]
worker=ajp13:localhost:8009
debug=0


Appreciate any help,  Rich


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
  



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat5 RH ES mod_jk2 Apache2

2004-02-02 Thread Yiannis Mavroukakis
Curious...Send me your entire workers2.properties file and I'll have a look.

Also, what are the urls you are using to access your html/jsp/servlets? Feel
free to use 'localhost' if you don't want to reveal sensitive server
hostname/ip's

Yiannis

-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 15:22
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2


Same as in the past works fine on port 8080.  Jsp stuff works on port 
80.  Html in servlets-examples works fine.  Servlets cannot be found???

Yiannis Mavroukakis wrote:

Hmm ok.. :)
you don't need
channelSocket.address=127.0.0.1
in jk2.properties.
Add the following under [channel.socket:localhost:8009]
host=localhost
port=8009

and under [ajp13:localhost:8009] add this
channel=channel.socket:localhost:8009

Before you go about making those changes, make sure that your servlets
are working OK on standalone tomcat :)

Good luck,

Yiannis.

-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 14:10
To: Tomcat Users List
Subject: Re: Tomcat5 RH ES mod_jk2 Apache2


The jsp is working but not the servlets.  I've double check /alias and 
workers for typos. Other suggestions??

Yiannis Mavroukakis wrote:

  

Make these additions/ammendments to workers2

[ajp13:localhost:8009]
channel=channel.socket:localhost:809

[shm]
file=/tmp/shm.file
size=100


Yiannis.
-Original Message-
From: Rich Baldwin [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 18:27
To: [EMAIL PROTECTED]
Subject: Tomcat5 RH ES mod_jk2 Apache2


I finally made some progress configuring Tomcat5 Apache2 and mod_jk2 
running on RedHat Enterprise Server.  I get html over port 80, but no 
jsp or servlets will run.  Don't know what I may have missed.

jk2.properties
handler.list=channelSocket,request
channelSocket.port=8009
channelSocket.address=127.0.0.1

workers2.properties
[channel.socket:localhost:8009]

[ajp13:localhost:8009]

[status:status]
[uri:/sjstatus/*]
group=status:status

[uri:/servlets-examples/*]
worker=ajp13:localhost:8009
debug=0


Appreciate any help,  Rich


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
 





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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs

RE: HTTPS with Apache 2.0.48 and Tomcat 5.0.16

2004-02-02 Thread Yiannis Mavroukakis
D'oh! :)
You would still need the listen directive for it to work btw;)
As far as that is concerned, a fellow list member had the same requirements
some time ago this
is what I suggested and it worked for him.

Use the Location directive and stick SSLRequireSSL in it.

Location /path/to/root/of/webapp
SSLRequireSSL
/Location

Yiannis.
-Original Message-
From: Ralf Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 16:13
To: Tomcat Users List
Subject: Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16


Am Montag, 2. Februar 2004 13:55 schrieb Yiannis Mavroukakis:
 Best remove that line, stick it in your httpd.conf instead along with the
 hostname.

This wasn't the problem. I did not notice that mod_ssl was not compiled into

httpd :-( After a rebuild of Apache (now with SSL support :-) and works now.

My last problem to solve (I hope :-) is how can I prevent user from
accessing 
the webapp with the normal HTTP protocol instead of HTTPS? At the moment
both 
works, but I only want it to work with HTTPS.

Ralf.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: trouble load balancing with mod_jk2

2004-02-02 Thread Yiannis Mavroukakis
Not sure about lb, but an shm file of  is bound to get you into trouble
:)

-Original Message-
From: Aadi Deshpande [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 17:18
To: [EMAIL PROTECTED]
Subject: trouble load balancing with mod_jk2



Greetings,

(Not sure if this is the place for mod_jk2 questions or if there is 
another mailing list)

I'm having trouble figuring out how loadbalancing should work using 
mod_jk2 with Apache2 and Tomcat 5.0.18.


I have 2 tomcat instances on 2 machines ( running with different port 
numbers )

I set them up in a single lb group, using the same lb factor of 80 ( a 
number I picked arbitrarily )

my lb configuration is set to graceful=1, stickySession=1, and timeout=0 
( i've appended my workers2.properties as additional info ).

However, it seems that when i turn on the apache2 and monitor the 
server, all the instances start going to the first instance in the list 
and bog that instance down.  There doesn't seem to be any load balancing 
going on, nor is there any sort of failover when the instance becomes 
unusable ( the thread pool hits the maximum of 200 )

The documentation on mod_jk2 isn't all that clear and a lot of it seems 
to be geared for implementing the jni mechanism as opposed to the 
channel socket ajp mechanism.

I must clearly be doing something wrong, but I can't figure it out.
Additional q's :

the mod_jk2 instance is constantly initing and shutting down.  Is this 
normal operating procedure?
does a higher lb factor or lower lb factor increase that machine's 
chances of being selected?
do  dashes ( - ) in the  server name have any effect?




I've listed my workers2.properties file inline for review.


Thanks in advance for any help.

Aadi Deshpande


##workers2.properties
[logger]
level=DEBUG
 


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


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


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


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


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


[status:]
info=Status worker, display runtime information
 


[uri:/jkstatus/*]
info=Display status information and check the config file
group=status:
 


[lb:lb]
info=Default load balancer.
debug=0
stickySession=1
timeout=0
 [channel.socket:tc-server2:6090]
info=Ajp13 forwarding over socket
graceful=1
debug=0
lb_factor=80
group=lb
tomcatId=tc-server2:6090

[channel.socket:tc-server2:6190]
info=Ajp13 forwarding over socket
graceful=1
debug=0
lb_factor=80
group=lb
tomcatId=tc-server2:6190

[channel.socket:tc-server2:6290]
info=Ajp13 forwarding over socket
graceful=1
debug=0
lb_factor=80
group=lb
tomcatId=tc-server2:6290

[channel.socket:tc-server1:6090]
info=Ajp13 forwarding over socket
graceful=1
debug=0
lb_factor=80
group=lb
tomcatId=tc-server1:6090

[channel.socket:tc-server1:6190]
info=Ajp13 forwarding over socket
graceful=1
debug=0
lb_factor=80
group=lb
tomcatId=tc-server1:6190
   [channel.socket:tc-server1:6290]
info=Ajp13 forwarding over socket
graceful=1
debug=0
lb_factor=80
group=lb
tomcatId=tc-server1:6290


[uri:/*.jsp]
info=Map the whole webapp
[uri:/*.sx]
info=Map the whole webapp



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Yiannis Mavroukakis
No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: IOException while loading persisted sessions continued..

2004-01-30 Thread Yiannis Mavroukakis
Does MyLinks perhaps implement/extend another class which has been declared
as Serializable?

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:20
To: Tomcat Users List
Subject: RE: IOException while loading persisted sessions continued..


It says Classes that do not implement this interface will not have any of
their state serialized or deserialized

So, to me that means I do not have to put Serializable if I do not want my
MyLinks class to be persisted. But Tomcat is throwing an error which means
it thinks MyLinks should be Serialized for some reason. 

I do not want MyLinks to be Serializable. Why does Tomcat throw an error for
this object and for no others? 

Thanks ADC

-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:50
To: 'Tomcat Users List'
Subject: RE: IOException while loading persisted sessions continued..


No this is Java specific, not Tomcat. See
http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

Yiannis

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 09:43
To: TOMCAT USER (E-mail)
Subject: IOException while loading persisted sessions continued..


Yes, but I don't want to may this object Serializable - is this Tomcat
specific? I have plenty of other objects in session but they don't have
these errors thrown??
Cheers, ADC
-- snip --
When tomcat persists sessions, it will try to serialize all objects stored
in your sessions to disk. In order to be successful, all the objects must be
serializable.
In this example, the class
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link is not serializable - it
does not implement the Serializable interface.

Vitor

-- snip --

Allistair Crossley wrote:
Hi,

I quite often but not always get a huge stack trace thrown when Tomcat boots
up the top part of which is the following. I'm not sure why it thinks it
needs to be loading anything to do with my bean here from persisted
sessions. Is that a setting that I have switched on that I need to switch
off? Like I say, only happens on every 3rd or 4th reboot (development
instance) and it does not stop TC5.0.18 working either.

SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: 
com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException
: com.comp.newmedia.intranet.iq.dto.myiq.mylinks.Link
   at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
   at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

Cheers ADC



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note

RE: server error : tomcat 4.1.29 - mod_jk2 2.0.2 - apache 2.0.48

2004-01-30 Thread Yiannis Mavroukakis
Stick this into your workers2.properties
[shm]
file=/tmp/shm.file (or wherever else you'd like)
size=100

and try it again



-Original Message-
From: Matteo [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 15:29
To: Tomcat Users List
Subject: server error : tomcat 4.1.29 - mod_jk2 2.0.2 - apache 2.0.48


Hi all,

I'm develping a site using cocoon 2. It is deployed inside tomcat 4.1 and it
connected to apache 2 using mod_jk2.

This cocoon application works normally if accessed through Coyote HTTP1.1
Connnector, but if i try it using mod_jk2 i got sometime an error page:


-- error page starts ---

Internal Server Error

The server encountered an internal error or
misconfiguration and was unable to complete
your request.

Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.

More information about this error may be available
in the server error log.



Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.3 mod_jk2/2.0.2
Server at localhost Port 80

-- error page ends ---


it is to be said that this applicarion works only some times,and i can't 
find out a logic in this.


this is the apache 2 error log at startup of the server :

- log starts 

[Fri Jan 30 15:43:21 2004] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] mod_jk child init 1 0
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] jk2_init() Can't find child 7086 in 
scoreboard
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] mod_jk child init 1 -2
[Fri Jan 30 15:43:21 2004] [notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 
OpenSSL/0.9.7c PHP/4.3.3 mod_jk2/2.0.2 configured -- resuming normal 
operations
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
- log ends 
--

this is the apache 2 error log when the error page above show (i tried 
many time, is is always the same, only numbers and time changes):

- log starts 

[Fri Jan 30 15:50:42 2004] [error] workerEnv.init() create slot epStat.4 
failed
[Fri Jan 30 15:50:42 2004] [error] lb.service() worker failed 12 for 
ajp13:localhost:10249
[Fri Jan 30 15:50:42 2004] [error] lb.service() unrecoverable error...
[Fri Jan 30 15:50:42 2004] [error] mod_jk.handler() Error connecting to 
tomcat 12
- log ends 
--


more in depth informations about my configuration follows:

software used:
- sun sdk se 1.4.2_03
- cocoon 2.1.3
- tomcat 4.1.29
- mod_jk2 2.0.2
- apache 2.0.48
- kernel 2.4.22-10mdk (linux mandrake 9.2)
all are built from source (no distro default fo apache).

For apache i use the default name virtual server on my machine ad the 
host to connect to tomcat.


my jk2.properties file is very simple (i only changed the ajp port, ad i 
use no default 8009):
- jk2.properites starts 

channelSocket.port=10249
- jk2.properties ends 



while workers2.properties is also very simple:
- workers2.properties starts 

[channel.socket:localhost:10249]
info=Ajp13 forwarding over socket
tomcatId=localhost:10249

[uri:/*]
info=Map the whole wepap
- workers2.properties ends 


thanks in advance for the help!

bye,

Matteo


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not 

RE: java keeps crashing. any ideas?

2004-01-29 Thread Yiannis Mavroukakis
Are you getting this for every invocation of the JVM or just on the tomcat
particulars?

-Original Message-
From: Alex Korneyev [mailto:[EMAIL PROTECTED]
Sent: 29 January 2004 15:46
Cc: Tomcat Users List
Subject: java keeps crashing. any ideas?


I keep getting this.

i am running on linux 7.3  any idea how to research this problem?


Unexpected Signal : 11 occurred at PC=0x4ED2FA
Function=(null)+0x4ED2FA
Library=/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.



Dynamic libraries:
0011-00122000 r-xp  08:03 3654116/lib/ld-2.2.5.so
00122000-00123000 rw-p 00012000 08:03 3654116/lib/ld-2.2.5.so
00123000-00127000 rw-s  08:03 4571200/tmp/hsperfdata_root/4583
00127000-0012a000 r--s  08:03 8618347
/usr/java/j2sdk1.4.2_03/jre/lib/ext/dnsns.jar
0012b000-00139000 r-xp  08:03 3653726/lib/libpthread-0.9.so
00139000-0014 rw-p e000 08:03 3653726/lib/libpthread-0.9.so
00141000-00143000 r-xp  08:03 3653721/lib/libdl-2.2.5.so
00143000-00144000 rw-p 1000 08:03 3653721/lib/libdl-2.2.5.so
00144000-00262000 r-xp  08:03 3653641/lib/libc-2.2.5.so
00262000-00267000 rw-p 0011e000 08:03 3653641/lib/libc-2.2.5.so
0026b000-00665000 r-xp  08:03 5179276
/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so
00665000-00681000 rw-p 003f9000 08:03 5179276
/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so
00693000-006a4000 r-xp  08:03 3653649/lib/libnsl-2.2.5.so
006a4000-006a5000 rw-p 00011000 08:03 3653649/lib/libnsl-2.2.5.so
006a7000-006c7000 r-xp  08:03 3653722/lib/libm-2.2.5.so
006c7000-006c8000 rw-p 0001f000 08:03 3653722/lib/libm-2.2.5.so
006c8000-006d r-xp  08:03 8128287
/usr/java/j2sdk1.4.2_03/jre/lib/i386/native_threads/libhpi.so
006d-006d1000 rw-p 7000 08:03 8128287
/usr/java/j2sdk1.4.2_03/jre/lib/i386/native_threads/libhpi.so
006d1000-006da000 r-xp  08:03 3653665/lib/libnss_files-2.2.5.so
006da000-006db000 rw-p 8000 08:03 3653665/lib/libnss_files-2.2.5.so
006db000-006eb000 r-xp  08:03 5179350
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libverify.so
006eb000-006ed000 rw-p f000 08:03 5179350
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libverify.so
006ed000-0070d000 r-xp  08:03 5179336
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so
0070d000-0070f000 rw-p 0001f000 08:03 5179336
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so
0070f000-00723000 r-xp  08:03 5179351
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libzip.so
00723000-00726000 rw-p 00013000 08:03 5179351
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libzip.so
00726000-007ff000 r--s  08:03 9257184
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/endorsed/xercesImpl
.jar
007ff000-0081e000 r--s  08:03 9257185
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/endorsed/xmlParserA
PIs.jar
00868000-0087e000 r--s  08:03 6013950
/usr/java/j2sdk1.4.2_03/jre/lib/sunrsasign.jar
0087e000-00959000 r--s  08:03 6013949
/usr/java/j2sdk1.4.2_03/jre/lib/jsse.jar
00959000-0096a000 r--s  08:03 6013941
/usr/java/j2sdk1.4.2_03/jre/lib/jce.jar
0096a000-00ec3000 r--s  08:03 6013942
/usr/java/j2sdk1.4.2_03/jre/lib/charsets.jar
010ce000-010f9000 r--p  08:03 5308453
/usr/lib/locale/en_US.iso885915/LC_CTYPE
010f9000-010ff000 r--s  08:03 4653238
/usr/lib/gconv/gconv-modules.cache
010ff000-0110c000 r--s  08:03 8618348
/usr/java/j2sdk1.4.2_03/jre/lib/ext/ldapsec.jar
0110c000-011c8000 r--s  08:03 8618356
/usr/java/j2sdk1.4.2_03/jre/lib/ext/localedata.jar
011c8000-011e4000 r--s  08:03 8618350
/usr/java/j2sdk1.4.2_03/jre/lib/ext/sunjce_provider.jar
011e4000-016c r--s  08:03 8618358
/usr/java/j2sdk1.4.2_03/lib/tools.jar
016c-016c7000 r--s  08:03 262435
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/bin/bootstrap.jar
016c7000-016ca000 r--s  08:03 262434
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/bin/commons-daemon.jar
016ca000-016de000 r--s  08:03 8634579
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/servlet.jar
016de000-01723000 r--s  08:03 8634580
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/mail.jar
01723000-01728000 r--s  08:03 8634581
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/commons-logging
-api.jar
01728000-01751000 r--s  08:03 8634582
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/commons-collect
ions.jar
01751000-01766000 r--s  08:03 8634583
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/jdbc2_0-stdext.
jar
01766000-0176e000 r--s  08:03 8634584
/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/commons-pool.ja
r
0176e000-0179b000 r--s  08:03 8634585

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

RE: help: want to encrypt Tomcat user passwords

2004-01-27 Thread Yiannis Mavroukakis
That hasn't got anything to do with tomcat. You should either be using an
encoding scheme
at code level, or if you feel your application-to-database link is secure,
use database in-built methods
to encode/decode the passwords.I don't know how good ole' Oracle does it,
but in mySQL there are 
functions like 'encrypt','des-encrypt','password' etc.

Yiannis

-Original Message-
From: amit varshney [mailto:[EMAIL PROTECTED]
Sent: 27 January 2004 09:07
To: tomcat
Subject: help: want to encrypt Tomcat user passwords 


I am using jdbcrealm to store the username and passwords in the Oracle 9I
database. But th passwords are stored as plain Texts. I want to encrypt the
passwords. How can I do it? Is there any InBuilt feature in Tomcat?

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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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

2004-01-27 Thread Yiannis Mavroukakis
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 the logic that
apache is starting tomcat in-process.
But... apache cannot talk to it.  Why-not?
I still believe it must have something to do with a lack of a connector.

Now when I surf to my uri's and get the 500 server failure the log shows
this.
notice on the second attempt that it 'reenable'd ajp13:jni.
this is not something that I have configured. must be a default.  h...

[Fri Jan 23 11:37:02 2004] [notice] shm.createSlot() Create 1 0x64
0x642000
[Fri Jan 23 11:37:02 2004] [notice] workerEnv.init() create slot epStat.0
[Fri Jan 23 11:37:02 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:37:02 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:37:02 2004] [notice] vm.detach() ok
[Fri Jan 23 11:37:02 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Fri Jan 23 11:39:03 2004] [error] lb.getWorker() reenable ajp13:jni
[Fri Jan 23 11:39:03 2004] [notice] lb.getWorker() All workers in error
state, use the one with oldest error
[Fri Jan 23 11:39:03 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:39:03 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:39:04 2004] [notice] vm.detach() ok
[Fri Jan 23 11:39:04 2004] [error] mod_jk.handler() Error connecting to
tomcat 12


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 11:36 AM
Subject: RE: tomcat5 in-process (more info for you guys)


 Phil,
 here is the code related to your error

  rc = worker-service(env, worker, s);
  []
  rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
 if( rc1 == JK_OK ) {
 rPool=NULL;
 }
 if( rPool!=NULL ) {
 rPool-close(env, rPool);
 }

 if(rc==JK_OK) {
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return OK;/* NOT r-status, even if it has changed. */
 }
 env-l-jkLog(env, env-l, JK_LOG_ERROR,
   mod_jk.handler() Error connecting to tomcat %d\n, rc);
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return 500;

 the worker is derived from the apache pool of workers (i think), so I'd
need
 to
 look at the worker code to make more sense of it..worker-service(env,
 worker, s) is
 returning something else other than the equivalent of JK_OK, so this is
 where it fails..
 Dig in the source code for workers, it might help..The lad who wrote
mod_jk2
 is also
 frequenting the list so he might be able to enlighten us on the specifics
:)

 Yiannis.
 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 17:12
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: tomcat5 in-process (more info for you guys)


 here is my error.log file from just a few minutes ago when I started
apache

 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
 [Fri Jan

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

2004-01-26 Thread Yiannis Mavroukakis
mod_jk2.c :) I refer to the Mladen's source whenever I get a message
that won't make sense, it clears up things for me a lot.

Yiannis

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


where did you find this blurb of code

- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 11:36 AM
Subject: RE: tomcat5 in-process (more info for you guys)


 Phil,
 here is the code related to your error

  rc = worker-service(env, worker, s);
  []
  rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
 if( rc1 == JK_OK ) {
 rPool=NULL;
 }
 if( rPool!=NULL ) {
 rPool-close(env, rPool);
 }

 if(rc==JK_OK) {
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return OK;/* NOT r-status, even if it has changed. */
 }
 env-l-jkLog(env, env-l, JK_LOG_ERROR,
   mod_jk.handler() Error connecting to tomcat %d\n, rc);
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return 500;

 the worker is derived from the apache pool of workers (i think), so I'd
need
 to
 look at the worker code to make more sense of it..worker-service(env,
 worker, s) is
 returning something else other than the equivalent of JK_OK, so this is
 where it fails..
 Dig in the source code for workers, it might help..The lad who wrote
mod_jk2
 is also
 frequenting the list so he might be able to enlighten us on the specifics
:)

 Yiannis.
 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 17:12
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: tomcat5 in-process (more info for you guys)


 here is my error.log file from just a few minutes ago when I started
apache

 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onStartup
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onShutdown
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/servlets-examples/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/jsp-examples/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/tomcat-docs/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/*
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done status:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/*
 [Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done logger
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done config:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uriMap:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done shm
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done workerEnv:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done lb:lb
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done channel.jni:jni
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done
 worker.jni:onStartup
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done
 worker.jni:onShutdown
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done vm:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done
 uri:/servlets-examples/*
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done
 uri:/jsp-examples/*
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/tomcat-docs/*
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jetspeed/*
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done status:
 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jkstatus/*
 [Fri Jan 23 11:09:58 2004] [notice] Child 2432: Child process is running
 [Fri Jan 23 11:09:58 2004] [notice] jk2_init() Setting scoreboard slot 0
for
 child 2432
 [Fri Jan 23 11:09:58 2004] [notice] vm.init(): Jni lib: C:\Program
 Files\Java\j2re1.4.2_03\bin\client\jvm.dll
 [Fri Jan 23 11:09:59 2004] [notice] vm.open2() done
 [Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
 org/apache/jk/apr/TomcatStarter
 [Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
 [Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
 stdout=c:/Apache2/logs/stdout.log...
 [Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
 stderr=c:/Apache2/logs/stderr.log

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

2004-01-26 Thread Yiannis Mavroukakis
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 the logic that
apache is starting tomcat in-process.
But... apache cannot talk to it.  Why-not?
I still believe it must have something to do with a lack of a connector.

Now when I surf to my uri's and get the 500 server failure the log shows
this.
notice on the second attempt that it 'reenable'd ajp13:jni.
this is not something that I have configured. must be a default.  h...

[Fri Jan 23 11:37:02 2004] [notice] shm.createSlot() Create 1 0x64
0x642000
[Fri Jan 23 11:37:02 2004] [notice] workerEnv.init() create slot epStat.0
[Fri Jan 23 11:37:02 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:37:02 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:37:02 2004] [notice] vm.detach() ok
[Fri Jan 23 11:37:02 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Fri Jan 23 11:39:03 2004] [error] lb.getWorker() reenable ajp13:jni
[Fri Jan 23 11:39:03 2004] [notice] lb.getWorker() All workers in error
state, use the one with oldest error
[Fri Jan 23 11:39:03 2004] [error] lb.service() worker failed 12 for
ajp13:jni
[Fri Jan 23 11:39:03 2004] [error] lb.service() unrecoverable error...
[Fri Jan 23 11:39:04 2004] [notice] vm.detach() ok
[Fri Jan 23 11:39:04 2004] [error] mod_jk.handler() Error connecting to
tomcat 12


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 11:36 AM
Subject: RE: tomcat5 in-process (more info for you guys)


 Phil,
 here is the code related to your error

  rc = worker-service(env, worker, s);
  []
  rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
 if( rc1 == JK_OK ) {
 rPool=NULL;
 }
 if( rPool!=NULL ) {
 rPool-close(env, rPool);
 }

 if(rc==JK_OK) {
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return OK;/* NOT r-status, even if it has changed. */
 }
 env-l-jkLog(env, env-l, JK_LOG_ERROR,
   mod_jk.handler() Error connecting to tomcat %d\n, rc);
 workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
 return 500;

 the worker is derived from the apache pool of workers (i think), so I'd
need
 to
 look at the worker code to make more sense of it..worker-service(env,
 worker, s) is
 returning something else other than the equivalent of JK_OK, so this is
 where it fails..
 Dig in the source code for workers, it might help..The lad who wrote
mod_jk2
 is also
 frequenting the list so he might be able to enlighten us on the specifics
:)

 Yiannis.
 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 17:12
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: tomcat5 in-process (more info for you guys)


 here is my error.log file from just a few minutes ago when I started
apache

 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onStartup
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 worker.jni:onShutdown
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
 [Fri Jan 23 11:09:57 2004] [notice] config.update(): done
 uri:/servlets-examples/*
 [Fri Jan 23 11:09:57 2004

RE: [OT] installing new java jdk

2004-01-26 Thread Yiannis Mavroukakis

Why not try to get it from a mirror?

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: 26 January 2004 13:40
To: Tomcat Users List
Subject: [OT] installing new java jdk


I haven't worked out how to install new versions of java onto my remote 
webserver effectively yet.

If I go to my webserver with a linux shell and use Lynx, the download 
page at java.sun.com gets truncated.

wget and curl don't work either because they're not interactive so you 
can't click on the 'accept terms' submit button.

it means I cannot download the 30MB or so direct from java.sun.com to my 
webserver.

I have to download it to my workstation and then scp it across to my 
webserver, which means uploading over asynchronous DSL which takes about 
30 mins (and effectively halts any internet browsing, so I can't even 
entertain myself while I wait).

How does everyone else do it?

Adam
-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: [OT] installing new java jdk

2004-01-26 Thread Yiannis Mavroukakis
Apologies i'm having a massive misinformation day :)
You can get mirrors for the blackdown distributions but that is probably not
what you want :)
www.blackdown.org/java-linux/mirrors.html

Yiannis

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: 26 January 2004 15:26
To: Tomcat Users List
Subject: Re: [OT] installing new java jdk


I thought there weren't any mirrors. Which do you mean?

On 01/26/2004 03:05 PM Yiannis Mavroukakis wrote:
 Why not try to get it from a mirror?
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: 26 January 2004 13:40
 To: Tomcat Users List
 Subject: [OT] installing new java jdk
 
 
 I haven't worked out how to install new versions of java onto my remote 
 webserver effectively yet.
 
 If I go to my webserver with a linux shell and use Lynx, the download 
 page at java.sun.com gets truncated.
 
 wget and curl don't work either because they're not interactive so you 
 can't click on the 'accept terms' submit button.
 
 it means I cannot download the 30MB or so direct from java.sun.com to my 
 webserver.
 
 I have to download it to my workstation and then scp it across to my 
 webserver, which means uploading over asynchronous DSL which takes about 
 30 mins (and effectively halts any internet browsing, so I can't even 
 entertain myself while I wait).
 
 How does everyone else do it?
 
 Adam


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Connecting Tomcat to Apache

2004-01-23 Thread Yiannis Mavroukakis
Install the pcre (Perl Compatible Regular Expressions)libs..either via rpm
*retch*
or download and build the source from
sourceforge(http://sourceforge.net/projects/pcre/)

Yiannis

-Original Message-
From: David Grant [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 10:03
To: 'Tomcat Users List'
Subject: RE: Connecting Tomcat to Apache


I did a locate command and found a libtool, in the /native2 directory in the
jk install directory. I copied libtool over to /usr/lib/httpd/build. I ran
the make and it apparently worked, but now it's coming up with another
error.

 

../../common/jk_uriEnv.c:73:18: pcre.h No such file or directory

make[1]: *** [../../../build/jk2/apache2/jk_uriEnv.lo] Error 1

make[1]: Leaving directory
'/opt/Jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2'

make: *** [jk2-build] Error 1

 

There is a path in the configure command for pcre, it is:

 

--with-pcre

 

David

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 7:56 PM
To: Tomcat Users List
Subject: RE: Connecting Tomcat to Apache

 


then make sure that its in ur PATH and make sure its the first entry..do 
a which libtool to know which libtool is make picking up when u r
configuring 

its better to use the latest libtool from gnu 

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Geomatica Webserver

2004-01-23 Thread Yiannis Mavroukakis
TC 5.0.18 both in development and production, paired with httpd 2.0.x and
jk2.
I havent had any noticeable errors or problems, even in 5.0.16 with the
memory
leak issue.

Yiannis.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 14:40
To: Tomcat Users List
Subject: RE: Geomatica Webserver



Howdy,
Many people on the list use tomcat5, including in production systems.
What errors/problems are you experiencing?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Candyman [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:50 PM
To: Tomcat Users List
Subject: Geomatica Webserver

Hi. I make some silly comments about Tomcat Apache, which
interpretation was incorrect. My native language is not english, so I
told it with the words that I find fast to express my dissapointment:(
The thing is I'm using Apache+Tomcat+Perl to run Geomatica Webserver.
And I have some specific problems whith v.5.* which I dont have with
Tomcat
4.*
Does anybody have tryed to work with this server? I am not an J
developer,
so my objective is install-configure-run. If anybody have expirience
to work with this server, any help will be useful. Maybe its errors of
this program but why it works well with versions 4 and doesnt works
well with 5?
Thank you in advance.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
Connector port=8019 minProcessors=5 maxProcessors=75
enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

Is probably what you want. This is for my devel server, so change the values
according to your needs.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 15:42
To: tomcat
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...   

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.  

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis

I am a fool, I didn't realise that you were running tomcat as in process, my
apologies.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:02
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Thank you.
my understanding is that ajp/1.3 is for out-of-process communication
thus the need for a port number.  with tomcat3's running in-process
all that was needed was a jni worker for apache and the jniendpointconnector
for tomcat with no port number specified and they would talk to each
other.  If I user the ajp with port number 8009 I can get them to work
perfectly, however my goal is to get apache to start tomcat in-process
which requires the jni connector.


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:53 AM
Subject: RE: running tomcat5 in-process


 Connector port=8019 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

 Is probably what you want. This is for my devel server, so change the
values
 according to your needs.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 15:42
 To: tomcat
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas

 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
Maybe i should read the subject more closely next time;)

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:02
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Thank you.
my understanding is that ajp/1.3 is for out-of-process communication
thus the need for a port number.  with tomcat3's running in-process
all that was needed was a jni worker for apache and the jniendpointconnector
for tomcat with no port number specified and they would talk to each
other.  If I user the ajp with port number 8009 I can get them to work
perfectly, however my goal is to get apache to start tomcat in-process
which requires the jni connector.


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 9:53 AM
Subject: RE: running tomcat5 in-process


 Connector port=8019 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/

 Is probably what you want. This is for my devel server, so change the
values
 according to your needs.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 15:42
 To: tomcat
 Subject: running tomcat5 in-process


 Well...
 I am and have been for about a week trying to get Apache2 to start Tomcat5
 in-process on Windows XP.  I have finally gotten Apache2 to process thru
 the workers2.properties file without errors.  I can start Tomcat5 manually
 without errors. I have mod_jk2, what appears to be at least, loading
 correctly.
 no more errors anyway...

 The one piece I believe that is missing is a connector entry in
server.xml
 for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
 as a class  org.apache.tomcat.service.JNIEndpointConnector.
 I cannot find these for Tomcat5.  Any suggestions?  I have tried using
older
 versions of components before wihtour success.

 Thanks for all your help...

 _Phil Adams
 Fort Worth, Texas

 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
Phill, unless I am mistaken, you do not need a connector element in TC for
in-process calls to happen..I've had a look around various posts and
configs,
and there is no mention of needing to tweak server.xml for JNI to work.
Unfortunately I cannot verify this myself, as I am using Linux as my OS and
JNI in-process is not possible at the moment.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:22
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


it's all cool!

- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:07 AM
Subject: RE: running tomcat5 in-process



 I am a fool, I didn't realise that you were running tomcat as in process,
my
 apologies.

 -Original Message-
 From: Phil Adams [mailto:[EMAIL PROTECTED]
 Sent: 23 January 2004 16:02
 To: Tomcat Users List
 Subject: Re: running tomcat5 in-process


 Thank you.
 my understanding is that ajp/1.3 is for out-of-process communication
 thus the need for a port number.  with tomcat3's running in-process
 all that was needed was a jni worker for apache and the
jniendpointconnector
 for tomcat with no port number specified and they would talk to each
 other.  If I user the ajp with port number 8009 I can get them to work
 perfectly, however my goal is to get apache to start tomcat in-process
 which requires the jni connector.


 - Original Message - 
 From: Yiannis Mavroukakis [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 9:53 AM
 Subject: RE: running tomcat5 in-process


  Connector port=8019 minProcessors=5 maxProcessors=75
  enableLookups=false acceptCount=20 debug=0 protocol=AJP/1.3/
 
  Is probably what you want. This is for my devel server, so change the
 values
  according to your needs.
 
  -Original Message-
  From: Phil Adams [mailto:[EMAIL PROTECTED]
  Sent: 23 January 2004 15:42
  To: tomcat
  Subject: running tomcat5 in-process
 
 
  Well...
  I am and have been for about a week trying to get Apache2 to start
Tomcat5
  in-process on Windows XP.  I have finally gotten Apache2 to process thru
  the workers2.properties file without errors.  I can start Tomcat5
manually
  without errors. I have mod_jk2, what appears to be at least, loading
  correctly.
  no more errors anyway...
 
  The one piece I believe that is missing is a connector entry in
 server.xml
  for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as
well
  as a class  org.apache.tomcat.service.JNIEndpointConnector.
  I cannot find these for Tomcat5.  Any suggestions?  I have tried using
 older
  versions of components before wihtour success.
 
  Thanks for all your help...
 
  _Phil Adams
  Fort Worth, Texas
 
  
  This e-mail has been scanned for all viruses by Star Internet. The
  service is powered by MessageLabs.
 
 
  Note:__
  This message is for the named person's use only. It may contain
  confidential, proprietary or legally privileged information. No
  confidentiality or privilege is waived or lost by any mistransmission.
  If you receive this message in error, please immediately delete it and
  all copies of it from your system, destroy any hard copies of it and
  notify the sender. You must not, directly or indirectly, use, disclose,
  distribute, print, or copy any part of this message if you are not the
  intended recipient. Jaguar Freight Services and any of its subsidiaries
  each reserve the right to monitor all e-mail communications through its
  networks.
  Any views expressed in this message are those of the individual sender,
  except where the message states otherwise and the sender is authorized
  to state them to be the views of any such entity.
  
  This e-mail has been scanned for all viruses by Star Internet. The
  service is powered by MessageLabs.


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


 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part

RE: running tomcat5 in-process

2004-01-23 Thread Yiannis Mavroukakis
If everything works ok, you can safely ignore this error. Check the source
code for mod_jk2 for
more info.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 16:12
To: 'Tomcat Users List'
Subject: RE: running tomcat5 in-process


I'm getting that error.  DO you know what causes this error?

-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:10 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Aren't you getting this error in Apache's error.log:
[error] mod_jk child init 1 0
???


- Original Message -
From: Phil Adams [EMAIL PROTECTED]
To: tomcat [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 1:42 PM
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a connector entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a jni_connect.dll as well
as a class  org.apache.tomcat.service.JNIEndpointConnector.
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

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

2004-01-23 Thread Yiannis Mavroukakis
Phil,
here is the code related to your error

 rc = worker-service(env, worker, s);
 []
 rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool );
if( rc1 == JK_OK ) {
rPool=NULL;
}
if( rPool!=NULL ) {
rPool-close(env, rPool);
}

if(rc==JK_OK) {
workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
return OK;/* NOT r-status, even if it has changed. */
}
env-l-jkLog(env, env-l, JK_LOG_ERROR,
  mod_jk.handler() Error connecting to tomcat %d\n, rc);
workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env );
return 500;

the worker is derived from the apache pool of workers (i think), so I'd need
to
look at the worker code to make more sense of it..worker-service(env,
worker, s) is
returning something else other than the equivalent of JK_OK, so this is
where it fails..
Dig in the source code for workers, it might help..The lad who wrote mod_jk2
is also
frequenting the list so he might be able to enlighten us on the specifics :)

Yiannis.
-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: 23 January 2004 17:12
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: tomcat5 in-process (more info for you guys)


here is my error.log file from just a few minutes ago when I started apache

[Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done config:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
worker.jni:onStartup
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
worker.jni:onShutdown
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/*
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done status:
[Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/*
[Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done logger
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done config:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uriMap:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done shm
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done workerEnv:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done lb:lb
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done channel.jni:jni
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
worker.jni:onStartup
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
worker.jni:onShutdown
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done vm:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jetspeed/*
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done status:
[Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jkstatus/*
[Fri Jan 23 11:09:58 2004] [notice] Child 2432: Child process is running
[Fri Jan 23 11:09:58 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 2432
[Fri Jan 23 11:09:58 2004] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.2_03\bin\client\jvm.dll
[Fri Jan 23 11:09:59 2004] [notice] vm.open2() done
[Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
stdout=c:/Apache2/logs/stdout.log...
[Fri Jan 23 11:09:59 2004] [notice] jni.init() setting
stderr=c:/Apache2/logs/stderr.log...
[Fri Jan 23 11:09:59 2004] [notice] jni.init() ARG start
[Fri Jan 23 11:09:59 2004] [notice] jni.init() calling main()...
[Fri Jan 23 11:09:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Fri Jan 23 11:09:59 2004] [notice] jni.init() disabling the non init hook
worker
[Fri Jan 23 11:09:59 2004] [notice] uriMap: creating context
*/servlets-examples
[Fri Jan 23 11:09:59 2004] [notice] uriMap: creating context */jsp-examples
[Fri Jan 23 11:10:00 2004] [notice] uriMap: creating context */tomcat-docs
[Fri Jan 23 11:10:00 2004] [notice] uriMap: creating 

RE: Apache 1.3 + mod_jk2, requiring https

2004-01-22 Thread Yiannis Mavroukakis
Why not try the following:

use the location directive to house
the SSLRequireSSL directive, like so:

Location /path/to/root/of/webapp
SSLRequireSSL
/Location

That way, httpd will reject all requests to
http://host/path/to/root/of/webapp
but allow https://host/path/to/root/of/webapp

Hope this does what you are after,


Yiannis

-Original Message-
From: frank delin [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 23:11
To: [EMAIL PROTECTED]
Subject: Apache 1.3 + mod_jk2, requiring https


I'm stumped.  Before mod_jk2 I would simple add config directives for the
connector in the https: virtual host section.  My goal is only to forward
requests that come into the https: virtual host to the tomcat 5.0.16
backend.

Thanks in advance.

Frank Delin
University of Iowa Hygienic Laboratory

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Apache 1.3 + mod_jk2, requiring https

2004-01-22 Thread Yiannis Mavroukakis
Sorry I should also add that SSLREquireSSL is
an httpd 2.x directive, don't quite remember
if mod_ssl for 1.3 uses the same directives but
I suspect it does :~)

-Original Message-
From: frank delin [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 23:11
To: [EMAIL PROTECTED]
Subject: Apache 1.3 + mod_jk2, requiring https


I'm stumped.  Before mod_jk2 I would simple add config directives for the
connector in the https: virtual host section.  My goal is only to forward
requests that come into the https: virtual host to the tomcat 5.0.16
backend.

Thanks in advance.

Frank Delin
University of Iowa Hygienic Laboratory

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Yiannis Mavroukakis
No easy answer on this one..There are proponents of the httpd-Tomcat
approach
who say that since Apache httpd has been developed to excel at static
content 
delivery then you should use that.
On the other hand, there are people that say that Tomcat can perform equally
well at serving static content, so why burden yourself with another 
layer?
I would say try both out, and see what performs better for YOU. Load test
tomcat as standalone and httpd+tomcat together. There is no clear cut
solution
and nothing works the same for everyone.

Good luck,
Yiannis

-Original Message-
From: Gurlal Brar [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 11:47
To: [EMAIL PROTECTED]
Subject: Apache-Tomcat integration vs Direct Tomcat


Hi Everybody,

 We can deploy a web application directly into Tomcat and use itself as
web server.In second case we can integrate Tomcat with any web server(Apache
or Tomcat) using AJP connector.
 Which approach is best under which circumstances?
 Can i  get any documentation which contains comparison of both
approaches ?

  
 
Thanks and Regards
Gurlal Brar

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Yiannis Mavroukakis
ROFLMAO! Why did I miss the joy part on my first read of your response?:)

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 13:58
To: Tomcat Users List
Subject: RE: Apache-Tomcat integration vs Direct Tomcat



Howdy,
I was nearly brought to tears of joy by the responses in this thread...
Excellent...


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 7:33 AM
To: Tomcat Users List
Subject: Re: Apache-Tomcat integration vs Direct Tomcat

http://jakarta.apache.org/tomcat/faq/connectors.html#integrate

-Tim

Gurlal Brar wrote:
 Hi Everybody,

  We can deploy a web application directly into Tomcat and use
itself
as
 web server.In second case we can integrate Tomcat with any web
server(Apache
 or Tomcat) using AJP connector.
  Which approach is best under which circumstances?
  Can i  get any documentation which contains comparison of both
 approaches ?



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Tomcat 5 for production?

2004-01-21 Thread Yiannis Mavroukakis

Oh no, we likes acerbic comments my precious;)

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 15:04
To: Tomcat Users List
Subject: RE: Tomcat 5 for production?



Howdy,

I'm sure that if someone else hadn't, you would have.  ;-)

Nope, I had already dismissed it ;)  I'm trying to be less edgy although
the next why isn't my /servlet/com.myclass URL working, it did in
tomcat 3 question might destroy my resolution ;)

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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Eclipse+Ant+Tomcat 5 - problems

2004-01-20 Thread Yiannis Mavroukakis
Since you are using Eclipse, why not try out the Sysdeo Tomcat plugin?

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 23:09
To: [EMAIL PROTECTED]
Subject: Eclipse+Ant+Tomcat 5 - problems


I'm starting to try out Tomcat 5 in our development environment, which
has been running Tomcat 4.1.x to-date.
 
Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to
install/remove our web-app from a local Tomcat installation. Everything
has worked fine, though I've noticed that after my first install (once I
start Eclipse and Tomcat) - anytime I remove/install the web-app, the
install appears to init the app twice (my load-on-init servlet's are
called twice, etc.) I never figured out what caused this, but it didn't
negatively impact anything, so I didn't care.
 
Now, with Tomcat 5 ... after a little tweaking, to my Eclipse
environment, I was able to get my same install/remove task working with
Ant. The only problem now is that after the initial install, when I do a
remove/install, it seems to still init the app twice, only on the second
init, it crokes. Talks about a property string that it can't find and
then that it can't find the deployment directory for the app (the app is
installed from a .WAR)
 
Not good. So, I did some googling - found that apparent install/remove
has been deprecated in favor of deploy/undeploy. Fine - so I tried using
the deploy task. Apparently, ant doesn't have enough memory to deploy my
90MB+ .WAR (installing never seemed to be a problem) - and when I looked
for threads on the DeployTask generating OutOfMemory exceptions, it
said to increase ant's memory ... which I can't, for the life of myself,
figure out how to do with Eclipse. I've previously gone done the path of
having ant fork, but it caused so many problems with our builds, I'd
rather not revisit that.
 
Does anybody have anything that can help me? I'm trying out Tomcat 5
because Tomcat 4.1.x appears to have some pretty severe memory leaks
with its install/remove operations - if I install/remove my web-app more
than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs
OutOfMemory ... other users have reported that Tomcat 5 does much better
in this arena.
 
Advise on any of these issues is much appreciated!!
 
Respectfully,
Brice Ruth
 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
 
 


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: JK2: Cannot configure to use port other than 8009

2004-01-20 Thread Yiannis Mavroukakis
That's the way I do it and It Works For Me (tm)

[channel.socket:localhost:8019]
host=localhost
port=8019
[channel.socket:localhost:8020]
host=localhost
port=8020
[ajp13:localhost:8020]
channel=channel.socket:localhost:8020
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019


Yiannis.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 03:00
To: [EMAIL PROTECTED]
Subject: JK2: Cannot configure to use port other than 8009


I've been having trouble configuring JK2 (version 2.0.2) to connect to a
Jetty server on any port other than 8009.  I'm including the
workers2.properties file and the jk2.log.  I've had similar results on
both IIS and Apache 1.3.  Has anyone had any luck running on other ports?

The log below shows that it first tries to connect using port 8009 and
gets a Connection refused even though the configuration file specifies
another port (50101).  It then shows it trying to connect to the correct
port and still getting a Connection refused, but I'm pretty sure that is
bogus because I can telnet to that port and get a response.  When I start
Jetty on port 8009 instead (even with the below configuration) everything
works fine.

Any ideas?  Am I missing some configuration parameters?

Thanks,

Jonathan

 workers2.properties 

[logger:]
level=INFO

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

[lb:load_balancer]

[channel.socket:172.18.1.115:50101]
port=50101
host=172.18.1.115
group=load_balancer
lb_factor=1

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

 jk2.log 

[Tue Jan 20 02:38:40 2004]  (error) [jk_channel_socket.c (335)]:
channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (247)]:
ajp13.connect() failed ajp13:172.18.1.115:50101
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (322)]:
ajp13.service() failed to connect endpoint errno=146 Connection refused
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (512)]:
ajp13.service() Error  forwarding ajp13:172.18.1.115:50101 1 1
[Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_ajp13.c (552)]: ajp13.done()
close endpoint ajp13:172.18.1.115:50101 error_state 1
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_lb.c (402)]: lb.service()
worker failed 21000 for ajp13:172.18.1.115:50101
[Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_lb.c (217)]: lb.getWorker()
All workers in error state, use the one with oldest error
[Tue Jan 20 02:38:40 2004]  (error) [jk_channel_socket.c (335)]:
channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (247)]:
ajp13.connect() failed ajp13:172.18.1.115:50101
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (322)]:
ajp13.service() failed to connect endpoint errno=146 Connection refused
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_ajp13.c (512)]:
ajp13.service() Error  forwarding ajp13:172.18.1.115:50101 1 1
[Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_ajp13.c (552)]: ajp13.done()
close endpoint ajp13:172.18.1.115:50101 error_state 1
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_lb.c (402)]: lb.service()
worker failed 21000 for ajp13:172.18.1.115:50101
[Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_lb.c (217)]: lb.getWorker()
All workers in error state, use the one with oldest error
[Tue Jan 20 02:38:40 2004]  ( info) [jk_worker_lb.c (248)]: lb.getWorker()
We tried all possible workers 2
[Tue Jan 20 02:38:40 2004]  (error) [jk_worker_lb.c (348)]:
lb_worker.service() all workers in error or disabled state
[Tue Jan 20 02:38:40 2004]  (error) [mod_jk2.c (427)]: mod_jk.handler()
Error connecting to tomcat 21000

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

RE: TC5 won't start on Xeon | severe error

2004-01-19 Thread Yiannis Mavroukakis
I remember Yoav answering something similar to this, it probably has to do
with the TC balancer
check his post for more details :)
http://www.mail-archive.com/[EMAIL PROTECTED]/msg115782.html

If it is the same, you can safely ignore it, if you need the balancer fix
it, if not remove
the balancer :)

Y.

-Original Message-
From: K. Harvatis [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 14:26
To: Tomcat Users List
Cc: Yiannis Mavroukakis
Subject: Re: TC5 won't start on Xeon | severe error



Ok, what was needed was an installation of SDK 1.4 and the creation of an
empty \lib directory.

Now TC5 starts, but with severe error. Any idea?





This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Linking tomcat with apache

2004-01-19 Thread Yiannis Mavroukakis
Probably this
[Mon Jan 19 14:32:37 2004] [error] shm.init(): No file

You need a shm directive in your workers2.properties.

[shm]
file=/tmp/shm.file
size=100

Or whatever path takes your fancy.

Yiannis.

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 14:52
To: Tomcat Users List
Subject: Re: Linking tomcat with apache


Thanks Tim,

I am a step closer I think, my configs are detailed below.  I have tomcat
running with jk2 fine, the log states

INFO: JK2: ajp13 listening on /0.0.0.0:8019


but apache has the following error:

[Mon Jan 19 14:32:37 2004] [notice] Apache-AdvancedExtranetServer/2.0.44
configured -- resuming normal operations
[Mon Jan 19 14:32:37 2004] [error] shm.init(): No file
[Mon Jan 19 14:33:23 2004] [error] workerEnv.init() create slot epStat.0
failed
[Mon Jan 19 14:33:23 2004] [error] lb.service() worker failed
ajp13:localhost:8019
[Mon Jan 19 14:33:23 2004] [error] lb.service() unrecoverable error...
[Mon Jan 19 14:33:23 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Mon Jan 19 14:34:28 2004] [error] shm.init(): No file
[Mon Jan 19 14:35:53 2004] [error] workerEnv.init() create slot epStat.2
failed
[Mon Jan 19 14:35:53 2004] [error] lb.service() worker failed
ajp13:localhost:8019
[Mon Jan 19 14:35:53 2004] [error] lb.service() unrecoverable error...
[Mon Jan 19 14:35:53 2004] [error] mod_jk.handler() Error connecting to
tomcat 12




What am I doing wrong?
Thanks
Allan

config files added/changed
--added to /etc/httpd/conf/commonhttpd.conf
LoadModule jk2_module /usr/lib/apache2/mod_jk2.so

--/etc/httpd/conf/workers2.properties
#min for working
[channel.socket:localhost:8019]
info=Ajp13 forwarding over socket
tomcatId=localhost:8019
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp


--/usr/local/sites/tomcat/tomcat/conf/jk2.properies
# list of needed handlers.
handler.list=apr,channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8019
# Dynamic library
apr.NativeSo=/usr/lib/apache2/mod_jk2.so


--added to /usr/local/sites/tomcat/tomcat/conf/server.xml
Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8019
minProcessors=5 maxProcessors=75 enableLookups=true
redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /



- Original Message - 
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 18, 2004 7:23 PM
Subject: Re: Linking tomcat with apache


 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
 http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

 -Tim

 Allan Bruce wrote:
  I have tomcat and apache both setup and running.  At the moment, I am
using
  a permanent redirect for urls to servlets to tomcat.  But this is not
  correct.  How do I get them set up correctly? I have jk2 installed.
  Thanks
  Allan


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: Linking tomcat with apache

2004-01-19 Thread Yiannis Mavroukakis

Map the servlet path you want to use in workers2.properties i.e.
[uri:/servlet/*]
worker=ajp13:localhost:8019

and make sure your webapp is under webapps/servlet in Tomcat.

Yiannis


-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 15:38
To: Tomcat Users List
Subject: Re: Linking tomcat with apache


Thanks very much, thats it working now.
Any ideas how I could navigate to:

http://server/servlet/WinGalagaHST?Op=GetHTML

instead of

http://server/examples/servlet/WinGalagaHST?Op=GetHTML

i.e. so I dont have to type 'examples'.  I dont want to use HTTP 301
Redirect.
Thanks
Allan


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, January 19, 2004 2:58 PM
Subject: RE: Linking tomcat with apache


 Probably this
 [Mon Jan 19 14:32:37 2004] [error] shm.init(): No file

 You need a shm directive in your workers2.properties.

 [shm]
 file=/tmp/shm.file
 size=100

 Or whatever path takes your fancy.

 Yiannis.

 -Original Message-
 From: Allan Bruce [mailto:[EMAIL PROTECTED]
 Sent: 19 January 2004 14:52
 To: Tomcat Users List
 Subject: Re: Linking tomcat with apache


 Thanks Tim,

 I am a step closer I think, my configs are detailed below.  I have tomcat
 running with jk2 fine, the log states

 INFO: JK2: ajp13 listening on /0.0.0.0:8019


 but apache has the following error:

 [Mon Jan 19 14:32:37 2004] [notice] Apache-AdvancedExtranetServer/2.0.44
 configured -- resuming normal operations
 [Mon Jan 19 14:32:37 2004] [error] shm.init(): No file
 [Mon Jan 19 14:33:23 2004] [error] workerEnv.init() create slot epStat.0
 failed
 [Mon Jan 19 14:33:23 2004] [error] lb.service() worker failed
 ajp13:localhost:8019
 [Mon Jan 19 14:33:23 2004] [error] lb.service() unrecoverable error...
 [Mon Jan 19 14:33:23 2004] [error] mod_jk.handler() Error connecting to
 tomcat 12
 [Mon Jan 19 14:34:28 2004] [error] shm.init(): No file
 [Mon Jan 19 14:35:53 2004] [error] workerEnv.init() create slot epStat.2
 failed
 [Mon Jan 19 14:35:53 2004] [error] lb.service() worker failed
 ajp13:localhost:8019
 [Mon Jan 19 14:35:53 2004] [error] lb.service() unrecoverable error...
 [Mon Jan 19 14:35:53 2004] [error] mod_jk.handler() Error connecting to
 tomcat 12




 What am I doing wrong?
 Thanks
 Allan

 config files added/changed
 --added to /etc/httpd/conf/commonhttpd.conf
 LoadModule jk2_module /usr/lib/apache2/mod_jk2.so

 --/etc/httpd/conf/workers2.properties
 #min for working
 [channel.socket:localhost:8019]
 info=Ajp13 forwarding over socket
 tomcatId=localhost:8019
 # Map the Tomcat examples webapp to the Web server uri space
 [uri:/examples/*]
 info=Map the whole webapp


 --/usr/local/sites/tomcat/tomcat/conf/jk2.properies
 # list of needed handlers.
 handler.list=apr,channelSocket,request
 # Override the default port for the channelSocket
 channelSocket.port=8019
 # Dynamic library
 apr.NativeSo=/usr/lib/apache2/mod_jk2.so


 --added to /usr/local/sites/tomcat/tomcat/conf/server.xml
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8019
 minProcessors=5 maxProcessors=75 enableLookups=true
 redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0
 useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /



 - Original Message - 
 From: Tim Funk [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, January 18, 2004 7:23 PM
 Subject: Re: Linking tomcat with apache


  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
  http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
 
  -Tim
 
  Allan Bruce wrote:
   I have tomcat and apache both setup and running.  At the moment, I am
 using
   a permanent redirect for urls to servlets to tomcat.  But this is not
   correct.  How do I get them set up correctly? I have jk2 installed.
   Thanks
   Allan
 
 
  -
  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]


 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part

RE: mod_jk2 JNI question for the brave :)

2004-01-09 Thread Yiannis Mavroukakis

Yep I see what you mean know (fog of stupidity lifts).
Ok so to iterate, the problem is that since linux
has multiple workers, these workers will want to attach
themselves to their own tomcat instance. 
How about this then..instead of launching
several tomcat instances (which you cant), why not
create a virtual tomcat construct? This would be 
a proxy to a single instance of Tomcat so you'd
have something like this:

worker worker   worker
   |  |  |
   |  |  |
virtualTC virtualTC  virtualTC
   \|   /
\   |  /
 \  |   /
   Single TC instance

Feel free to stop me when I start annoying you too much ;)

Yiannis.


PS. I'll start gathering info for the documentation.



-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: 08 January 2004 17:54
To: 'Tomcat Users List'
Subject: RE: mod_jk2 JNI question for the brave :)


 

 From: Yiannis Mavroukakis
 
 I thought I had a rough understanding but it turns out that I 
 dont %-) Do you mean that JNI will work only under one worker 
 containing a single child process?


Are you using the Tomcat as in or out of the process?
In process tomcat (invoked from webserver) can be used only with the single
worker mpm's.

If you have multiple worker processes each of them would need to load it's
own Tomcat instance, but try to start the two TC instances from startup.sh.
The second will die immediately.

Think that under linux there is no mpm that will allow you to have a single
child process.
Even the threaded, launches a few childs and shares the connection threads
among them.

MT.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: Tomcat 5, Apache2 and mod_jk2 integration problem

2004-01-09 Thread Yiannis Mavroukakis


Try adding the following to your workers2.properties

Try adding the followign to your workers2.properties

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

and add this to [uri:/jsp-examples]

worker=ajp13:localhost:8009

Hope this helps,

Yiannis



workers2.properties :

[shm]
file=/usr/local/jakarta-tomcat-5/work/jk2.shm
size=1048576

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

[uri:/jsp-examples/*]

[logger.file:0]
level=DEBUG
file=/usr/local/apache/logs/jk2.log

--

server.xml

Server port=8005 shutdown=SHUTDOWN debug=0
   Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/

  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
forwardAll=false
noRoot=false/

  Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache/modules/mod_jk2.so
workersConfig=/usr/local/apache/conf/workers2.properties/

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
 Service name=Catalina
 Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8009
   enableLookups=false
   redirectPort=8443
   debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  verbosity=4
  prefix=catalina_log. suffix=.log
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

Listener className=org.apache.jk.config.ApacheConfig
  append=true
  forwardAll=false
  modJk=/usr/local/apache/modules/mod_jk2.so /
Logger className=org.apache.catalina.logger.FileLogger
 verbosity=4
 directory=logs  prefix=localhost. suffix=.log
timestamp=true/
  /Host
/Engine
  /Service
/Server



---
If  you are not the intended recipient please notify the author by 
replying to
this  email.   Internet communications are not secure and therefore Red 
Squared
plc  does not accept legal responsibility for the contents of this 
message. 
Although  we  operate  anti-virus programs, Red Squared does not accept 
responsibility  for  any damage that may be caused by viruses being 
passed.
Any views or opinions presented are solely those of the author and do not
necessarily represent those of Red Squared.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been 

mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis
Hi everyone,

Bringing the woes of jk2+JNI again here with the dreaded Can't find child
xx in scoreboard, since I haven't found
a satisfactory answer by anyone.
Using TC5 with Apache 2.0.x under Linux, I can get jk2 to work using
sockets. However the fun begins when
I try to use JNI. 
Looking at the source from mod_jk2, I have the following snippet:

  workerEnv-childId = find_child_by_pid(proc);
 if (workerEnv-childId == -1) {
int max_daemons_limit;
ap_mpm_query(AP_MPMQ_MAX_DAEMONS, max_daemons_limit);

if (max_daemons_limit == 0) {
workerEnv-childId = 0;
env-l-jkLog(env, env-l, JK_LOG_INFO,
jk2_init() Found child %d in scoreboard slot %d\n,
proc.pid, workerEnv-childId);
}
else {
env-l-jkLog(env, env-l, JK_LOG_ERROR,
jk2_init() Can't find child %d in scoreboard\n,
proc.pid);
workerEnv-childId = -2;
}
} else {
env-l-jkLog(env, env-l, JK_LOG_INFO,
jk2_init() Found child %d in scoreboard slot %d\n,
proc.pid, workerEnv-childId);

Now, the first line is the line that tries to locate the childId of the
worker in the running
server threads (if I am not mistaken). find_child_by_pid will loop through
all the active servers
trying to find the pid passed as an argument, if it fails to do so it
returns -1.

I am hazarding a guess, by saying that it must be something in my
configuration, within workers2.properties.
Is there anyone out there who can provide the definitive configuration file
and/or guidelines for workers2.properties?
The documentation on jk2 at the mo is a pile of poo (sorry guys).

Have a nice day,

Yiannis


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis

Hi Mladen, thank you for the reply that helps me gain some understanding in
the issue.
Would it not be possible to bind JNI under a single worker and then isolate 
that worker from the rest of the pool (possibly provide the ability for
workers to
carry some sort of identification bit with regards to who can access them)?
I'll be more than happy to volunteer for the documentation, just point at
the right direction :)

Thank you,

Yiannis

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: 08 January 2004 14:48
To: 'Tomcat Users List'
Subject: RE: mod_jk2 JNI question for the brave :)


 

 From: Yiannis Mavroukakis
 Subject: mod_jk2 JNI question for the brave :)
 
 Hi everyone,
 
 Bringing the woes of jk2+JNI again here with the dreaded 
 Can't find child xx in scoreboard, since I haven't found a 
 satisfactory answer by anyone.
 Using TC5 with Apache 2.0.x under Linux, I can get jk2 to 
 work using sockets. However the fun begins when I try to use JNI. 
 Looking at the source from mod_jk2, I have the following snippet:
 

Since I wrote the code, It would be me to blame :-).

The problem with JNI and Linux is that you may have few different mpm's to
run.
JNI presumes that you have a _single_ worker process with multiple threads.
If your mpm behave differently then the JNI isn't the appropriate channel to
use.

 The documentation on jk2 at the mo is a pile of poo (sorry guys).


I agree with you.
Do you volunteer?

MT.




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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: mod_jk2 JNI question for the brave :)

2004-01-08 Thread Yiannis Mavroukakis



That was the thing that I considered, but again if you have multiple
workers, what would be the benefit of having that much Tomcat instances
running.
So either you have a single worker with the single TC instance launched or
none.
Having single worker running TC, keeping the rest 30 without would make the
entire thing unusable, cause you cannot bind a client to the specific
worker
process.
Even if you could there is no way that will assure you that the new request
will get served by that particular jvm enabled worker.

I thought I had a rough understanding but it turns out that I dont %-)
Do you mean that JNI will work only under one worker containing
a single child process?

The JK2 code (from CVS) will in that case refuse to load the inprocess jvm,
and the code snippet in you exhibit is meant to be used for that.
At least the code was designed to do that (on more then one child process,
kill the jvm channel).

 I'll be more than happy to volunteer for the documentation, 
 just point at the right direction :)
 

Have no idea. If I would, I'd probably wrote something already.
What do you think is the right place to start?

I would start by providing a clear and concise list of all configuration 
options and their parameters that can be present in workers2.properties and
jk2.properties and
split them up as Required and Optional. Then give a few working examples of
each, probably
a little diagram showing the flow between apache,jk2 and tomcat. For a start
:)

MT.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Yiannis Mavroukakis

Hi everyone,

I have an app running in Tomcat 4.1.x which I moved over to Tomcat 5. I
noticed
that the return results I was getting when calling getPathInfo() where
different
between the two server versions. Does anyone know whether the implementation

changed?

Cheers,

Yiannis



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Yiannis Mavroukakis
Hmm not quite but it could be related. I noticed that getPathInfo returned
/ 
instead of null when there where no parameters present, which is part of the
issue
I am facing...

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 December 2003 13:45
To: Tomcat Users List
Subject: Re: getPathInfo behaviour changed in tomcat 5.x?


Is this it?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25015

-Tim

Yiannis Mavroukakis wrote:
 Hi everyone,
 
 I have an app running in Tomcat 4.1.x which I moved over to Tomcat 5. I
 noticed
 that the return results I was getting when calling getPathInfo() where
 different
 between the two server versions. Does anyone know whether the
implementation
 
 changed?
 



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-15 Thread Yiannis Mavroukakis
No dont think so, unless I got this completely backwards of course ;) This
is from the J2EE API:

Returns any extra path information associated with the URL the client sent
when it made this request. The extra path information follows the servlet
path but precedes the query string. This method returns null if there was no
extra path information.

Yiannis.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 15 December 2003 14:00
To: Tomcat Users List
Subject: RE: getPathInfo behaviour changed in tomcat 5.x?



Howdy,
Isn't getPathInfo supposed to always return a string starting with /?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 8:58 AM
To: 'Tomcat Users List'
Subject: RE: getPathInfo behaviour changed in tomcat 5.x?

Hmm not quite but it could be related. I noticed that getPathInfo
returned
/
instead of null when there where no parameters present, which is part
of
the
issue
I am facing...

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 December 2003 13:45
To: Tomcat Users List
Subject: Re: getPathInfo behaviour changed in tomcat 5.x?


Is this it?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25015

-Tim

Yiannis Mavroukakis wrote:
 Hi everyone,

 I have an app running in Tomcat 4.1.x which I moved over to Tomcat 5.
I
 noticed
 that the return results I was getting when calling getPathInfo()
where
 different
 between the two server versions. Does anyone know whether the
implementation

 changed?




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


___
_
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
___
_


___
_
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
___
_



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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: RE : [offtopic] Architecture Question

2003-12-05 Thread Yiannis Mavroukakis

Amen brother :)

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 05 December 2003 14:09
To: Tomcat Users List
Subject: RE: RE : [offtopic] Architecture Question



Howdy,
I use Axis on Tomcat, of course ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 6:24 AM
To: Tomcat Users List
Subject: Re: RE : [offtopic] Architecture Question

Have you looked at Axis?
http://xml.apache.org/axis



On Friday 05 December 2003 05:22 am, you wrote:
 What do u use to run the web services ?

 Jonas ? Jboss ?

 Is there a component that just do Web Services ? I don't need
 all the functionnalies of Jboss or Jonas.

 -Message d'origine-
 De : Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 4 décembre 2003 19:42
 À : Tomcat Users List
 Objet : RE: [offtopic] Architecture Question

 At 05:51 AM 12/4/2003, you wrote:
 Howdy,
 In a similar situation we use a web service running on another (3rd)
 tomcat server.  It's worked well, especially as we've added more
 applications beyond our original two.

 Agreed.  This is the cleanest long-term solution I've come across as it
 clearly defines responsibility boundaries between your
 apps/components.  It's more work than other (IMO hackish) solutions, but
 opens up so many more possibilities once you've got it up and running.

 Yoav Shapira
 Millennium ChemInformatics

 justin

  -Original Message-
  From: jerome moliere [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 04, 2003 6:51 AM
  To: Tomcat Users List
  Subject: Re: [offtopic] Architecture Question
  
  Laurent Michenaud wrote:
  Hi,
  
  Hi laurent,
  
  We have two tomcat servers.
  One is located at our enterprise.
  The other is located at our hosting provider.
  They can see each other by Internet.
  
  We would like to set up an unique authentification system for both
  server.
  The authentification system will be on the server at our entreprise.
  The web applications on both servers will query the authentification
  system.
  
  What's the best/clean/nice way to do this ?
  JAAS ? Web services ? SSL keys ?

 __
 Justin Ruthenbeck
 Software Engineer, NextEngine Inc.
 justinr - AT - nextengine DOT com
 Confidential. See:
 http://www.nextengine.com/confidentiality.php
 __


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




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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: Tomcat Settings and Performance

2003-11-14 Thread Yiannis Mavroukakis
Jon,

The only limit imposed on the requests to your server, is based on your
memory and i/o capabilities. More threads will not
necessarily improve the situation, I would suggest you look at the amount of
memory you allocate to tomcat, try increasing it
and/or modifying the behaviour of the garbage collector until you get a
satisfatory performance. You can also always look to
your app to identify any bottlenecks, or unreleased resources. I would
suggest upping the thread count as a final step, once 
you've tested with the other options available to you (memory/gc/code).
I'm running Tomcat 4.1.27 which will more than happily accept 100 hits on a
uniproc Linux box.

Good luck,

Yiannis

-Original Message-
From: Jonathan Holloway [mailto:[EMAIL PROTECTED]
Sent: 14 November 2003 09:47
To: [EMAIL PROTECTED]
Subject: Tomcat Settings and Performance


Dear All,

I wonder if anyone could help with the following.  I'm currently using
Tomcat to host a multiple choice test system.  I have between 100 - 200
people logging into tomcat and sitting a test almost simultaneously when
instructed to by the test supervisor.  Does anybody know what the maximum
number of users supported by a single Tomcat server is?  I'm running a
fairly good server with a dual processor setup and 1Gb of memory.  

When i get around 100 students logging onto a test some of the connections
are refused and the server becomes very slow at handling the requests.  I'm
running Tomcat 5.0 in an attempt to improve this situation?  Is this a
better server than 4.1.24?  The tomcat settings for server.xml follow, can
anybody suggest how to improve the performance of this?

Connector port=8080
   maxThreads=400  
   minSpareThreads=200
   maxSpareThreads=75
   enableLookups=false 
   redirectPort=8443 
   acceptCount=400
   debug=0 
   connectionTimeout=-1
   disableUploadTimeout=true /

I've set the processors to 2x the number of simultaneous requests I expect
(200 at the mo.) starting at 200 threads initially.  The accept count is set
at 400 so that this number of threads are queued to be serviced by tomcat, I
don't want any user to be kicked off so the connection timeout is set to -1.

Can anybody suggest anything to improve the performance of this system?

Many thanks,
Jon.


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


mod_jk2 errors: jk2_init() Can't find child xxx in scoreboard

2003-11-13 Thread Yiannis Mavroukakis

Hi,

I've setup Apache2 and Tomcat 4.1.27 to communicate via JNI. I've compiled
and
installed mod_jk2 and I've hit a brick wall trying to get Apache2 started.
This is what I get in the error logs:

[Thu Nov 13 10:58:12 2003] [error] jk2_init() Can't find child 27253 in
scoreboard
[Thu Nov 13 10:58:13 2003] [error] jk2_init() Can't find child 27254 in
scoreboard
[Thu Nov 13 10:58:13 2003] [error] jk2_init() Can't find child 27255 in
scoreboard
[Thu Nov 13 10:58:13 2003] [error] jk2_init() Can't find child 27256 in
scoreboard
[Thu Nov 13 10:58:13 2003] [error] jk2_init() Can't find child 27257 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27258 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27259 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27260 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27261 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27262 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27263 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27264 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27265 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27266 in
scoreboard
[Thu Nov 13 10:58:14 2003] [error] jk2_init() Can't find child 27267 in
scoreboard
... quite a lote more of those.

Reading through the list, the most common solution to this problem was
that
the shm file was not accessible, but that is not the case with my
configuration,
the shm file is readable/writable by everyone in a world readable directory.

My workers2.properties config is the following:

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[vm:]
info=Parameters used to load a JVM in the server process
JVM=/opt/IBMJava2-141/jre/bin/classic/libjvm.so
OPT=-Djava.class.path=/usr/tomcat/bin/tomcat-jni.jar:/usr/tomcat/bin/tomcat-
bootstrap.jar:/usr/tomcat/server/lib/commons-logging.jar
OPT=-Dtomcat.home=/usr/tomcat/
OPT=-Dcatalina.home=/usr/tomcat/
OPT=-Xmx256M
disabled=0
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=/usr/tomcat/logs/stdout.log
stderr=/usr/tomcat/logs/stderr.log
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
[uri:/servlets/desert/*]
info=The Desert App
[shm]
info=SHM Block
file=/tmp/jk2.shm
size=1048576
disabled=0
==


And this is my jk2.properties
==
handler.list=apr,request,channelJni
channelJni.disabled = 0
apr.jniModeSo=inprocess
shm.file=/tmp/jk2.shm
request.tomcatAuthentication=false
==



Any help is greatly appreciated.

Thank you,

Yiannis.



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


RE: Setting the -server Java Option

2003-11-13 Thread Yiannis Mavroukakis

Harry,

I am running Tomcat with -server and I've seen no adverse side-effects.

Yiannis.

-Original Message-
From: Harry Mantheakis [mailto:[EMAIL PROTECTED]
Sent: 13 November 2003 12:29
To: Tomcat Users List
Subject: Re: Setting the -server Java Option


Hello Tim

 You need to do it by setting the environment variable JVM_OPTS.

Thank you for telling me that.

 For some, the -server option produces an
 unstable server. (Ironic, heh?)

Oh dear... Can you point me to anything in respect of this?

I have looked at the official JVM documentation on this subject, and
obviously none of it suggest that setting the -server option produces an
unstable server (!)

I also read about this option here:

http://kano.net/javabench/#servervm

Again, no suggestion that it has a detrimental effect.

Regards

Harry Mantheakis
London, UK


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


more on mod_jk2 errors

2003-11-13 Thread Yiannis Mavroukakis
Hello again,

Further to my previous post, I've isolated the piece of code that spits out
the errors in the log

 ap_mpm_query(AP_MPMQ_MAX_DAEMONS, max_daemons_limit);

if (max_daemons_limit == 0) {
workerEnv-childId = 0;
env-l-jkLog(env, env-l, JK_LOG_INFO,
jk2_init() Found child %d in scoreboard slot %d\n,
proc.pid, workerEnv-childId);
}
else {
env-l-jkLog(env, env-l, JK_LOG_ERROR,
jk2_init() Can't find child %d in scoreboard\n,
proc.pid);
workerEnv-childId = -2;
}

My C is very very basic but from what I can tell, the code calls the Apache
MPM
ap_mpm_query method, and sets max_daemons_limit. If it is not 0, the child
is found in the scoreboard, if anything else then there is a problem, which
is probably what happens in my case...Does anyone know where the
AP_MPMQ_MAX_DAEMONS
variable is reflected in the Apache config file (if at all) ?

Thank you,


Yianni.s



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


Apache 2.0.47+Tomcat4.1.27+mod_jk2 init issues

2003-08-28 Thread Yiannis Mavroukakis

Hi there,

I've got an issue with the setup of mod_jk2(version 2.0.2) I can't seem to
get around.
I'm prety certain that my configuration is ok, so I don't know what the
problem might be.
I'm trying to run Tomcat as an inprocess to Apache, and this is where the
grief starts ;)
When launching apache I get the following in my error logs:

Fail- could not create JVM, code: -1
[Wed Aug 27 17:41:18 2003] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Wed Aug 27 17:41:18 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Wed Aug 27 17:41:18 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Wed Aug 27 17:41:18 2003] [error] mod_jk child init 1 -2

This is my workers2.properties:


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

[vm:]
info=Parameters used to load a JVM in the server process
JVM=/opt/IBMJava2-141/jre/bin/classic/libjvm.so
OPT=-Djava.class.path=/usr/tomcat/bin/tomcat-jni.jar:/usr/tomcat/bin/tomcat-
bootstrap.jar:/usr/tomcat/server/lib/commons-logging.jar
OPT=-Dtomcat.home=/usr/tomcat/
OPT=-Dcatalina.home=/usr/tomcat/
OPT=-Xmx128M
disabled=0

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

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

[uri:/servlets/cybertrax/*]
info=The Cybertrax Application

[shm]
info=SHM Block
file=/var/run/jk2.shm
size=1048576
disabled=0
===


And here is my jk2.properties


handler.list=apr,request,channelJni
channelJni.disabled = 0
apr.jniModeSo=inprocess
shm.file=/var/run/jk2.shm
request.tomcatAuthentication=false



Now, the funny thing that happens is, that with the IBM JDK I get the errors
mentioned earlier. 
If I use the libjvm.so from the SUN JDK (1.4.1_03) this is what I get as
errors instead:


[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22709 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22710 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22711 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22713 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22714 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22715 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22716 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22717 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22718 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22719 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22721 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22722 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22723 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22724 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22725 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22728 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22729 in
scoreboard


And the error log gets saturated with those kinds of errors.

Thank you for any assistance granted,


Yiannis.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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



RE: HttpServletRequest not found from within library

2003-08-14 Thread Yiannis Mavroukakis

IMHO you should try removing servlet.jar from your classpath, as you
probably only need it on compile time, and restart Tomcat. 
Let me know if this worked for you.

Yiannis.

-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 09:36
To: Tomcat Users List
Subject: HttpServletRequest not found from within library


Hello all

I'm using Tomcat 4.1.24 and have the following problem.

In a JSP file I have a bean called nav pointing to a class 
some.package.Navigation. This class is located at a JAR file in the lib 
directory of the web application.

...
jsp:useBean id=nav class=some.package.Navigation 
scope=session/jsp:useBean
%
nav.handleRequest(request, ...);
...

In the Navigation class I get a
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

But the HttpServletRequest Interface is imported:
import javax.servlet.http.*;

Furthermore the CLASSPATH contains the path to servlet.jar, which also 
is located in CATALINA_HOME/common/lib.

I can't figure out why I get this error and how to make it find the 
servlet.jar.

Thank you in advance for every hint.

   Christian



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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



RE: HttpServletRequest not found from within library

2003-08-14 Thread Yiannis Mavroukakis

This might sound like a silly question but is the *version* of servlet.jar
you used to compile your app the same as the one Tomcat is using? If not
copy (or use in the classpath) Tomcat's servlet.jar in your lib path,
recompile,redeploy and retry :) That's as much as I can think of at the mo.
If you developing on Linux use md5sum on the servlet.jar you compiled with
and on Tomcat's servlet.jar that should tell you if the jars are the same.
Hope *this* works for you :),

Yiannis.

-Original Message-
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 11:32
To: Tomcat Users List
Subject: Re: HttpServletRequest not found from within library


Hi Yiannis

I didn't work. I stopped tomcat, removed servlet.jar from the CLASSPATH 
and restarted it. Same exception. servlet.jar can only be found in 
CATALINA_HOME/common/lib.

   Christian

Yiannis Mavroukakis wrote:

 IMHO you should try removing servlet.jar from your classpath, as you
 probably only need it on compile time, and restart Tomcat. 
 Let me know if this worked for you.
 
 Yiannis.
 
 -Original Message-
 From: Christian Hauser [mailto:[EMAIL PROTECTED]
 Sent: 13 August 2003 09:36
 To: Tomcat Users List
 Subject: HttpServletRequest not found from within library
 
 
 Hello all
 
 I'm using Tomcat 4.1.24 and have the following problem.
 
 In a JSP file I have a bean called nav pointing to a class 
 some.package.Navigation. This class is located at a JAR file in the lib 
 directory of the web application.
 
 ...
 jsp:useBean id=nav class=some.package.Navigation 
 scope=session/jsp:useBean
 %
 nav.handleRequest(request, ...);
 ...
 
 In the Navigation class I get a
 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
 
 But the HttpServletRequest Interface is imported:
 import javax.servlet.http.*;
 
 Furthermore the CLASSPATH contains the path to servlet.jar, which also 
 is located in CATALINA_HOME/common/lib.
 
 I can't figure out why I get this error and how to make it find the 
 servlet.jar.
 
 Thank you in advance for every hint.
 
Christian
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs. For more information on a proactive
 anti-virus service working around the clock, around the globe, visit:
 http://www.star.net.uk
 
 
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs. For more information on a proactive
 anti-virus service working around the clock, around the globe, visit:
 http://www.star.net.uk
 
 
 -
 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]



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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



  1   2   >