Problem with PNG files and

2005-07-10 Thread Dean Searle
Hello Everyone,

Hope everyone is having a great weekend. I'm new at posting to the group
but have been watching the serv list for a few years now. I usually can
find my answers by googling or searching the archive, but I think I
might have run upon something that I have not been able to find yet.

I have a welcome page that has 4 .png images on it. I know that IE 5.5
and higher have an issue with displaying .png files if they have
transparency enabled, the transparency turns grey. To make IE work
correctly there is a JavaScript you can run in your web page and it
makes it work. How ever, when I turned on ,my
images would show up for a split second then they would disappear. The
spots where they should be would not even work as a link like they are
setup to be. If you use Firefox it works fine. It works fine being
served up on a windows XP pc with tomcat 5.0.30 and java version
1.5.0_02. I'm using FreeBSD Release 4.10-p2 and tomcat 5.0.30 and have
used java 1.5.0-p1 and java 1.4.2-p7

I also noticed in the tomcat log file that during startup there were
some error with my servlet that I am using, but have no errors when used
in windows. Page two of the PDF starts the error message.

All the code and errors can be found at this link
http://computingoasis.com/apache/errorlog.pdf

If there is anything more that you require I would be more than happy to
post what you need.

Thank you for your help in advance,


Dean Searle



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



RE: Virtual Host, Locations and Mod_JK2

2004-04-13 Thread Dean Searle
I have found that if you do the following it works for me:


JkUriSet worker ajp13:localhost:28009


Hope that this helps, I have found that by doing this I can redirect any file type to 
be handled by Tomcat.

Dean


-Original Message-
From: Alexander F. Hartner [mailto:[EMAIL PROTECTED]
Sent: Tue 4/13/2004 4:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Virtual Host, Locations and Mod_JK2
 
I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root "/" context

Configured a worker in workers2.properties

Configured a virutal host on apache2


 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/www/solms.co.za/
 ServerName www.solms.co.za
 ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
*.solmstraining.co.za
 ErrorLog logs/solms.co.za-error_log
 CustomLog logs/solms.co.za-access_log combined
 
   JkUriSet worker ajp13:localhost:28009
 


Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to otherhost.com/index.html are 
still processed by apache correctly, but general request to 
otherhost.com are redirected to otherhost.com/index.jsp.

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html

I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome

Alex



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

Securing a folder

2004-03-25 Thread Dean Searle
Hello Everyone,

Not to sure how to phrase this but here I go anyways. I am attempting to secure a 
folder that is located within my application. This folder contains pdf's that only 
need to be accessible by tomcat, the site requires a password to enter. At first if I 
did www.domain.com/pdfs/somefile.pdf it would open up somefile.pdf. So I tried this in 
my http.conf file for the website:


  order deny,allow
  deny from all
  allow from 127.0.0.1


But now tomcat cannot even retrieve the pdf's. Am I doing this right. Could you please 
point me to some doc's that might explain this more.

Not sure if this helps or not:

Windows 2000 Server SP4
Tomcat 4.1.24 LE
Apache 2.0.46
JDK 1.4.1_02

Thank you for time

Dean

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

RE: Tomcat configuration

2004-03-24 Thread Dean Searle
If you want Tomcat to start as a service in Windows 2k you can use this program by 
Davis Boyer called Tomcat Service Manager at 
http://web.bvu.edu/staff/david/index.jsp?section=software&subsection=tcservcfg&page=overview
 I use this for both Tomcat 4.1 and Tomcat 5. This utility also let you set the heap 
size also.

Hope this helps.

Dean


-Original Message-
From: Adam Brundrett [mailto:[EMAIL PROTECTED]
Sent: Wed 3/24/2004 9:59 AM
To: Tomcat Users List
Subject: Re: Tomcat configuration
 
Hmm...not sure on Windows but on unix you set an environment variable 
called CATALINA_OPTS.  Set the Xmx and Xms parameters to the amount of 
memory you want to dedicate to the heap.  On our web server where we 
have 2GB ram I have:

CATALINA_OPTS="-Xms=750m  -Xmx=750m"

Tomcat then picks up this memory option when it fires up.

Reis, Tom wrote:

>   I am running Tomcat 4.03 on a windows 2K server with JDK1.3.1. I am
>confused on configuration and was hoping someone could clarify or point to
>documentation on it. I am confused on memory configuration do I change the
>memory configuration for java or for Tomcat. I am also not sure how to
>change the heap size. Do I put a statement in the server.xml or is it
>something else. Is there documentation that tells you how to configure
>Tomcat. Thanks.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-- 
***
Adam Brundrett
DBA/Software Engineer
MLC Development
Medical Research Council
Harwell
Oxon.
OX11 0RD

Email: [EMAIL PROTECTED] 
Tel: +44(0)1235 841253
***



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





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

RE: Multiple Host (no apache or iis)

2004-03-17 Thread Dean Searle
What port is tomcat listening to? If you have not changed this then it
would be 8080 (I believe) so you would type in a browser
http://www.test1-domain.com:8080 and it should bring up your site. To
keep from having to enter the port every time, change your server.xml to
listen to port 80 instead. 80 is the default http port.

Best regards,

Dean

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 2:24 PM
To: Tomcat Users List
Subject: Multiple Host (no apache or iis)

Hi!
I have tried to search for this but all hits seems to be about getting
tomcat to work together with apache or iis.

I can't figure out why my test1-domain doesn't answer at all. All I gets
is
a 400-error. What bother me the most is that there is nothing in the
catalina.out log that indicats that there are something wrong so I don't
even know where to start look.

I post the -part of my server.xml below.

Thanks in advance
Roland Carlsson














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



No error message when welcome page is not present

2004-03-17 Thread Dean Searle
Hello Group,

I am running Apache 2.0.48 and Tomcat 4.1.30 with mod_jk2 connector
2.0.2 all on windows xp.

The problem I have is this. I have virtual hosts setup to go to their
own folder for their documentroot=/theirfolder. But if I do not have a
valid welcome file there, either an index.(htm,jsp) It takes me to
tomcat manager page. Without restarting anything I can put a valid file
in the folder and site works fine. Where can I shut this off at? I would
like to get an error page, since I have directory listing shut off.
Would it be in web.xml or server.xml?

Thanks in advance,

Dean


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



URL Redirect

2004-02-18 Thread Dean Searle
Hello All,

 

I have a simple, yet allusive question. In Apache and Tomcat you can create Virtual 
Hosts. Within the Virtual Hosts you can specify different parameters. In Apache 
httpd.conf I can have the following:


 ServerName www.domain1.com
 Redirect permanent / http://www.domain2.com/domain2


 

Is there a feature like that in Tomcat, either in the server.xml or web.xml, I'm 
probably guessing server.xml.

Any help is greatly appreciated.

Thank you in advanced,

Dean


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

RE: workers2.properties syntax

2004-02-04 Thread Dean Searle
What aspects are you wanting to change and I'll see if I can help explain them. I'm 
somewhat new to this also, but have spent almost a year decipering and figuring things 
out.

Dean


-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Tue 2/3/2004 3:15 PM
To: Tomcat Users List
Subject: workers2.properties syntax
 
Hello,

I'd like to know if someone knows where I can find any document describing the syntax 
for workers2.properties different from the one that comes with Tomcat 5.
Cause the one that I'm using I copied from this list (and it's working) and there's 
some aspects I want to change that I have no idea how to do it.

Thanks,
Alvaro



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

RE: HTTPS with Apache 2.0.48 and Tomcat 5.0.16

2004-02-03 Thread Dean Searle
Here is part of my httpd.conf for and Apache2, Tomcat 4.1.29 and mod_jk2 setup. This 
is only for the Virtual host part. Assuming you have everyhting else loading correctly 
it should work.

NameVirtualHost 127.0.0.1:443
NameVirtualHost 127.0.0.1:80


ServerName www.domain.com
ServerAlias domain.com
Redirect permanent / https://www.domain.com




ServerName www.domain.com
ServerAlias domain.com
DocumentRoot z:/tomcattest/webapps
ErrorLog z:/tomcattest/logs/domain_error.log
CustomLog z:/tomcattest/logs/domain_access.log common
SSLEngine On
SSLCertificateFile  conf/ssl/domain.crt
SSLCertificateKeyFile   conf/ssl/domain.key.unsecure
SSLCACertificateFileconf/ssl/intermediate.crt


SSLRequireSSL



AllowOverride None
deny from all



JkUriSet group ajp13:localhost:8109



The JkMount directives only work for mod_jk. Mod_jk2 requires a whole new set of 
directives to work. Following is my server.xml and workers2.properties that should 
help.

***workers2.properties***

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=z:/tomcat/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8109]
port=8109
host=127.0.0.1

[channel.socket:localhost:8110]
port=8110
host=127.0.0.1

[channel.socket:localhost:8111]
port=8111
host=127.0.0.1

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

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

#[vm:]
#info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
#OPT=-Djava.class.path=Z:/Tomcat/bin/tomcat-jni.jar;Z:/Tomcat/server/lib/commons-logging.jar
#OPT=-Dtomcat.home=${TOMCAT_HOME}
#OPT=-Dcatalina.home=${TOMCAT_HOME}
#OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
#disabled=0

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

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

# Define the worker
# First Web Application Worker
[ajp13:localhost:8109]
channel=channel.socket:localhost:8109

# Second Web Application Worker
[ajp13:localhost:8110]
channel=channel.socket:localhost:8110

# Third Web Application Worker
[ajp13:localhost:8111]
channel=channel.socket:localhost:8111

 Uri mapping
[uri:127.0.0.1/*.jsp]
worker=ajp13:localhost:8109

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

[uri:www.domain.com/*.jsp]
group=ajp13:localhost:8109


***server.xml***
***This is the only section you need to make sure is enabled. Leave everything else 
alone. Note: the port designated here might be different than yours. You can use any 
port you want here as long as you use the same port in the httpd.conf and the 
workers2.properties file.

 


***I hope that this helps you out.***

Dean


-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
Sent: Mon 2/2/2004 4:04 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
 
Hi,

The JkMount directives tell Apache to pass these request thru the 
Connector to Tomcat.

I do this very same thing for jWebMail, cause I don't want it accessible 
thru http, only https. Here's my ssl.conf config section for it:
--

#Other stuff about your ssl host

#Webmail
# Static files
Alias /webmail "/usr/local/tomcat/webapps/webmail"


Options Indexes FollowSymLinks
DirectoryIndex index.jsp



AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /webmail/do/*  ajp13
JkMount /webmail/*.jsp  ajp13
JkMount /webmail/WebMail  ajp13
JkMount /webmail/WebMail/*  ajp13
---

Does that help? BTW, this is all on my site but there's quite a bit of stuff there 
that you can miss it.

Oscar
http://www.linuxjava.net/howto/webapp/



On Mon, 2 Feb 2004, Ralf Schneider wrote:

> Am Montag, 2. Februar 2004 21:26 schrieb Oscar Carrillo:
> > I believe you need to setup a VirtualHost section in httpd.conf even if
> > you don't really need Virtual Hosting.
> 
> I did that.
> 
> > Also try Redirecting the whole site. I'm not sure if I've tried just the
> > webapp. I'm not sure if you need to compile the rewrite module for the
> > redirect, but I don't think so.
> >
> > #httpd.conf VirtualHost section of myhost.mydomain
> > Redirect / https://myho

RE: Requiring SSL for web sites

2004-01-29 Thread Dean Searle
Sorry for the bother I found the answer I was looking for further down in previous 
posts, but thanks anyways.

Dean


-Original Message-
From: Dean Searle [mailto:[EMAIL PROTECTED]
Sent: Thu 1/29/2004 1:13 PM
To: Tomcat Users List
Subject: Requiring SSL for web sites
 
Hello to Everyone.

I am trying to get SSL to run on a standalone version of Tomcat 4.1. I can import 
certificate into the keystore and I can get to https:\\localhost with no problems (I 
specified port 443 for the SSL config). But what I was wondering is how do I set a 
requirement that certain folders use SSL only. Because I can get to http:\\localhost 
(as an example) also with no problem.

Any help would be greatly appreciated.

Dean Searle





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

Requiring SSL for web sites

2004-01-29 Thread Dean Searle
Hello to Everyone.

I am trying to get SSL to run on a standalone version of Tomcat 4.1. I can import 
certificate into the keystore and I can get to https:\\localhost with no problems (I 
specified port 443 for the SSL config). But what I was wondering is how do I set a 
requirement that certain folders use SSL only. Because I can get to http:\\localhost 
(as an example) also with no problem.

Any help would be greatly appreciated.

Dean Searle

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

RE: LDAP connection problem through JSP

2003-12-01 Thread Dean Searle
This is the simple jsp I used to test my JNDI Connection with:

<%
String id = request.getRemoteUser();
out.write("User: " + id);
%>

See if that helps any.

Dean


-Original Message-
From:   Damien Pacaud [mailto:[EMAIL PROTECTED]
Sent:   Mon 12/1/2003 06:00
To: [EMAIL PROTECTED]
Cc: 
Subject:LDAP connection problem through JSP
hi list, 
I am trying to get the login for the user authentificated through LDAP in a JSP...
I tryed : request.getRemoteUser();
but that returns always null...
I am sure it can be done but am unable to find how...

Any help would be greatly appreciated ;)

Thanks in advance

Damien Pacaud

---
le présent message (ainsi que ses éventuelles pièces jointes) peut
contenir des informations confidentielles. Etant établi à l'intention de ses
destinataires, son utilisation ou diffusion non autorisée est interdite.

Tout message électronique étant susceptible d'altération, Prisma Presse
décline toute responsabilité au titre dudit message en cas de falsification.

Ce message a été traité par un anti virus et aucun virus connu n'a été détecté.





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

RE: Unique error message when starting Tomcat 4.1.27

2003-11-17 Thread Dean Searle

Yoav,

That worked. I put JAVA_OPTS=-Djava.net.preferIPv4Stack="true" for run,start and stop 
in my catalina.sh and now it starts.

Thank you very much

Dean

-Original Message-
From:   Dean Searle
Sent:   Mon 11/17/2003 10:04
To: Tomcat Users List
Cc: 
Subject:RE: Unique error message when starting Tomcat 4.1.27
ok, sorry I didn't see that in the error message until I reread it. I'll use the flag 
-Djava.net.preferIPv4Stack=true and see if that helps.

Thank you again,

Dean


-Original Message-
From:   Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/17/2003 09:02
To: Tomcat Users List
Cc: 
Subject:RE: Unique error message when starting Tomcat 4.1.27

Howdy,
Not a tomcat problem: it's your OS configuration.  Either make sure your
OS has an IPv6 stack installed or add the IPv4 preference flag to
JAVA_OPTS as the error message suggests.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dean Searle [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 14, 2003 10:54 PM
>To: Tomcat Users List
>Subject: Unique error message when starting Tomcat 4.1.27
>
>I have just installed tomcat 4.1.27 from the FreeBSD Ports for FreeBSD
>5.0-RELEASE-p11. Here is the JDK I am using:
>
>Java(TM) 2 Runtime Environment, Standard Edition (build
>1.4.2-p5-dean_13_nov_2003_15_51)
>Java HotSpot(TM) Client VM (build 1.4.2-p5-dean_13_nov_2003_15_51,
mixed
>mode)
>
>Here is the message I get when I start tomcat:
>
>
>
>
>./catalina.sh run
>Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.1
>Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.1
>Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
>Using JAVA_HOME:   /usr/local/jdk1.4.2
>Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry
loadRegistry
>INFO: Loading registry information
>Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Nov 14, 2003 9:55:07 PM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Nov 14, 2003 9:55:08 PM org.apache.coyote.http11.Http11Protocol init
>SEVERE: Error initializing endpoint
>java.net.SocketException: IPv4 mapped addresses usage is turned off.
>Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
>disable java IPv6 support
>at java.net.PlainSocketImpl.socketBind(Native Method)
>at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
>at java.net.ServerSocket.bind(ServerSocket.java:318)
>at java.net.ServerSocket.(ServerSocket.java:185)
>at java.net.ServerSocket.(ServerSocket.java:141)
>at
>org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(Defa
u
>ltServerSocketFactory.java:96)
>at
>org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
.
>java:275)
>at
>org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
>at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
>a:1156)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
>:579)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
>246)
>at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>a:39)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>Catalina.start: LifecycleException:  Protocol handler initialization
>failed: java.net.SocketException: IPv4 mapped addresses usage is turned
>off.  Set net.inet6.ip6.v6only=0 or use
>'-Djava.net.preferIPv4Stack=true' to disable java IPv6 support
>LifecycleException:  Protocol handler initialization failed:
>java.net.SocketException: IPv4 mapped addresses usage is turned off.
>Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
>disable java IPv6 support
>at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
>a:1158)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
>:579)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
>246)
>at
org.apache.catalina.startup.Catalina.start(Catalina.jav

RE: Unique error message when starting Tomcat 4.1.27

2003-11-17 Thread Dean Searle
ok, sorry I didn't see that in the error message until I reread it. I'll use the flag 
-Djava.net.preferIPv4Stack=true and see if that helps.

Thank you again,

Dean


-Original Message-
From:   Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/17/2003 09:02
To: Tomcat Users List
Cc: 
Subject:RE: Unique error message when starting Tomcat 4.1.27

Howdy,
Not a tomcat problem: it's your OS configuration.  Either make sure your
OS has an IPv6 stack installed or add the IPv4 preference flag to
JAVA_OPTS as the error message suggests.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dean Searle [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 14, 2003 10:54 PM
>To: Tomcat Users List
>Subject: Unique error message when starting Tomcat 4.1.27
>
>I have just installed tomcat 4.1.27 from the FreeBSD Ports for FreeBSD
>5.0-RELEASE-p11. Here is the JDK I am using:
>
>Java(TM) 2 Runtime Environment, Standard Edition (build
>1.4.2-p5-dean_13_nov_2003_15_51)
>Java HotSpot(TM) Client VM (build 1.4.2-p5-dean_13_nov_2003_15_51,
mixed
>mode)
>
>Here is the message I get when I start tomcat:
>
>
>
>
>./catalina.sh run
>Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.1
>Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.1
>Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
>Using JAVA_HOME:   /usr/local/jdk1.4.2
>Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry
loadRegistry
>INFO: Loading registry information
>Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Nov 14, 2003 9:55:07 PM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Nov 14, 2003 9:55:08 PM org.apache.coyote.http11.Http11Protocol init
>SEVERE: Error initializing endpoint
>java.net.SocketException: IPv4 mapped addresses usage is turned off.
>Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
>disable java IPv6 support
>at java.net.PlainSocketImpl.socketBind(Native Method)
>at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
>at java.net.ServerSocket.bind(ServerSocket.java:318)
>at java.net.ServerSocket.(ServerSocket.java:185)
>at java.net.ServerSocket.(ServerSocket.java:141)
>at
>org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(Defa
u
>ltServerSocketFactory.java:96)
>at
>org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
.
>java:275)
>at
>org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
>at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
>a:1156)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
>:579)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
>246)
>at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>a:39)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>Catalina.start: LifecycleException:  Protocol handler initialization
>failed: java.net.SocketException: IPv4 mapped addresses usage is turned
>off.  Set net.inet6.ip6.v6only=0 or use
>'-Djava.net.preferIPv4Stack=true' to disable java IPv6 support
>LifecycleException:  Protocol handler initialization failed:
>java.net.SocketException: IPv4 mapped addresses usage is turned off.
>Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
>disable java IPv6 support
>at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
v
>a:1158)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.jav
a
>:579)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2
>246)
>at
org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>

Unique error message when starting Tomcat 4.1.27

2003-11-14 Thread Dean Searle
I have just installed tomcat 4.1.27 from the FreeBSD Ports for FreeBSD
5.0-RELEASE-p11. Here is the JDK I am using:

Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2-p5-dean_13_nov_2003_15_51)
Java HotSpot(TM) Client VM (build 1.4.2-p5-dean_13_nov_2003_15_51, mixed
mode)

Here is the message I get when I start tomcat:




./catalina.sh run
Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.1
Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.1
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp
Using JAVA_HOME:   /usr/local/jdk1.4.2
Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Nov 14, 2003 9:55:07 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Nov 14, 2003 9:55:08 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.SocketException: IPv4 mapped addresses usage is turned off.
Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
disable java IPv6 support
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.(ServerSocket.java:185)
at java.net.ServerSocket.(ServerSocket.java:141)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:96)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
java:275)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.jav
a:1156)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:579)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2
246)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: LifecycleException:  Protocol handler initialization
failed: java.net.SocketException: IPv4 mapped addresses usage is turned
off.  Set net.inet6.ip6.v6only=0 or use
'-Djava.net.preferIPv4Stack=true' to disable java IPv6 support
LifecycleException:  Protocol handler initialization failed:
java.net.SocketException: IPv4 mapped addresses usage is turned off.
Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to
disable java IPv6 support
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.jav
a:1158)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:579)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2
246)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2213)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)



>From what I can guess it looks like it has IPv4 disabled, but not sure
where that occurred at? This usually works well. Any help with this
would be appreciated. Also I cvsup'd on Nov 

RE: Load balancing a standalone Tomcat 4.1

2003-11-11 Thread Dean Searle
Again thank you, I'll take some time and read this and if I have any questions I'll 
make a new posting here.

Thanks,

Dean


-Original Message-
From:   Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent:   Tue 11/11/2003 14:58
To: Tomcat Users List
Cc: 
Subject:RE: Load balancing a standalone Tomcat 4.1

Howdy,
You don't have to have Apache in front.  Any load-balancer will do.  Let
me redirect you to the tomcat 5 clustering page, as it's more recent,
and I think easier to follow:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

Tomcat 5's clustering support is more built-in than tomcat 4's.  Filip
and others will answer questions if you actually set up an environment
and run into problems.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dean Searle [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 11, 2003 2:53 PM
>To: Tomcat Users List
>Subject: RE: Load balancing a standalone Tomcat 4.1
>
>Thank you very much, Yoav.
>
>Reading through it looks like I would need the assistance  of Apache
>anyways, or can I have an instance of Tomcat listening on port 80 and
do
>the load balancing?
>
>Dean
>
>
>-Original Message-
>From:  Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent:  Tue 11/11/2003 14:44
>To:Tomcat Users List
>Cc:
>Subject:   RE: Load balancing a standalone Tomcat 4.1
>
>Howdy,
>Yes, you can do with tomcat standalone.  See
>http://www.filip.net/tomcat/tomcat-javagroups.html
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Dean Searle [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, November 11, 2003 2:43 PM
>>To: Tomcat Users List
>>Subject: RE: Load balancing a standalone Tomcat 4.1
>>
>>I knew you could do that with apache and tomcat, but I'm looking at
>only
>>Tomcat itself and nothing else.
>>
>>
>>-Original Message-
>>From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
>>Sent: Tue 11/11/2003 14:37
>>To:   Tomcat Users List
>>Cc:
>>Subject:  RE: Load balancing a standalone Tomcat 4.1
>>Yes you can cluster and load balance tomcat using mod-jk2 Connector
>>
>>-Original Message-
>>From: Dean Searle [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, November 11, 2003 2:27 PM
>>To: Tomcat Users List
>>Subject: Load balancing a standalone Tomcat 4.1
>>
>>
>>I have searched around to find this and have found nothing, but is it
>>possible to load balance a complete standalone Tomcat server or
cluster
>>standalone Tomcat's doing HTTP and Application requests?
>>
>>Thank you everyone in advance
>>
>>Dean
>>
>>
>>
>>
>>
>>
>>-
>>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, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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





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

RE: Load balancing a standalone Tomcat 4.1

2003-11-11 Thread Dean Searle
Thank you very much, Yoav.

Reading through it looks like I would need the assistance  of Apache anyways, or can I 
have an instance of Tomcat listening on port 80 and do the load balancing?

Dean


-Original Message-
From:   Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent:   Tue 11/11/2003 14:44
To: Tomcat Users List
Cc: 
Subject:RE: Load balancing a standalone Tomcat 4.1

Howdy,
Yes, you can do with tomcat standalone.  See
http://www.filip.net/tomcat/tomcat-javagroups.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dean Searle [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 11, 2003 2:43 PM
>To: Tomcat Users List
>Subject: RE: Load balancing a standalone Tomcat 4.1
>
>I knew you could do that with apache and tomcat, but I'm looking at
only
>Tomcat itself and nothing else.
>
>
>-Original Message-
>From:  Asif Chowdhary [mailto:[EMAIL PROTECTED]
>Sent:  Tue 11/11/2003 14:37
>To:Tomcat Users List
>Cc:
>Subject:   RE: Load balancing a standalone Tomcat 4.1
>Yes you can cluster and load balance tomcat using mod-jk2 Connector
>
>-Original Message-
>From: Dean Searle [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 11, 2003 2:27 PM
>To: Tomcat Users List
>Subject: Load balancing a standalone Tomcat 4.1
>
>
>I have searched around to find this and have found nothing, but is it
>possible to load balance a complete standalone Tomcat server or cluster
>standalone Tomcat's doing HTTP and Application requests?
>
>Thank you everyone in advance
>
>Dean
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>




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


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





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

RE: Load balancing a standalone Tomcat 4.1

2003-11-11 Thread Dean Searle
I knew you could do that with apache and tomcat, but I'm looking at only Tomcat itself 
and nothing else.


-Original Message-
From:   Asif Chowdhary [mailto:[EMAIL PROTECTED]
Sent:   Tue 11/11/2003 14:37
To: Tomcat Users List
Cc: 
Subject:RE: Load balancing a standalone Tomcat 4.1
Yes you can cluster and load balance tomcat using mod-jk2 Connector

-Original Message-
From: Dean Searle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 2:27 PM
To: Tomcat Users List
Subject: Load balancing a standalone Tomcat 4.1


I have searched around to find this and have found nothing, but is it possible to load 
balance a complete standalone Tomcat server or cluster standalone Tomcat's doing HTTP 
and Application requests?

Thank you everyone in advance

Dean






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

Load balancing a standalone Tomcat 4.1

2003-11-11 Thread Dean Searle
I have searched around to find this and have found nothing, but is it possible to load 
balance a complete standalone Tomcat server or cluster standalone Tomcat's doing HTTP 
and Application requests?

Thank you everyone in advance

Dean




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

RE: Tomcat + jk2 connector configuration

2003-11-07 Thread Dean Searle
workers2.properties

# only at beginning. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=z:/tomcat/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8109]
port=8109
host=127.0.0.1

[channel.socket:localhost:8110]
port=8110
host=127.0.0.1

[channel.socket:localhost:8111]
port=8111
host=127.0.0.1

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

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

# Define the worker
# First Web Application Worker
[ajp13:localhost:8109]
channel=channel.socket:localhost:8109

# Second Web Application Worker
[ajp13:localhost:8110]
channel=channel.socket:localhost:8110

# Third Web Application Worker
[ajp13:localhost:8111]
channel=channel.socket:localhost:8111

Uri mapping
[uri:127.0.0.1/*.jsp]
worker=ajp13:localhost:8109

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

[uri:www.session1.com/*.jsp]
worker=ajp13:localhost:8109

[uri:www.session2.com/*.jsp]
worker=ajp13:localhost:8110

[uri:www.session3.com/*.jsp]
worker=ajp13:localhost:8111

Here is my properties file. I hope that this helps you out. I am currently running 
with three seperate instances from one binary install of tomcat. This allows me the 
flexibility to start and stop each instance without afecting the the other two.

Dean


-Original Message-
From:   Tatu Vanhanen [mailto:[EMAIL PROTECTED]
Sent:   Fri 11/7/2003 02:17
To: User Tomcat
Cc: 
Subject:Tomcat + jk2 connector configuration
Hello,
We have a development environment where each developer has a separate Tomcat
instance to play with. Each Tomcat should listen in it's port for requests
coming from the Apache front-end. The mappings for each user's Tomcat should
be based on the request uri, i.e. http://www.somehost.com/user1/ means
that Apache should forward the requests having 'user1' to user1's running
Tomcat instance.

We have this working with the "ancient" Warp- connector but we should move
to jk2 because of some issues with warp.

Could someone please include some example of
workers2.properties/jk2.properties that would give us some hint of how to
make things work. Yes, we have tried to configure things but apparently
something has been missing and we are still stuck with warp :(

Below is our workers2.properties (with user names replaced with more
"publishable" names). Is there something missing there?

Thanks a lot!

workers2.properties:


[logger.apache2]
level=DEBUG

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

# First Tomcat serving a product under tests

[channel.socket:localhost:9025]
port=9025
maxPort=9025
host=127.0.0.1

[ajp13:localhost:9025]
channel=channel.socket:localhost:9025

[uri:/product1/*]
worker1=ajp13:localhost:9025


# user1

[channel.socket:localhost:9031]
port=9031
maxPort=9031
host=127.0.0.1

[ajp13:localhost:9031]
channel=channel.socket:localhost:9031

[uri:/user1/*]
worker1=ajp13:localhost:9031


# user2

[channel.socket:localhost:9029]
port=9029
maxPort=9029
host=127.0.0.1

[ajp13:localhost:9029]
channel=channel.socket:localhost:9029

[uri:/user2/*]
worker1=ajp13:localhost:9029

# user3

[channel.socket:localhost:9027]
port=9027
maxPort=9027
host=127.0.0.1

[ajp13:localhost:9027]
channel=channel.socket:localhost:9027

[uri:/user3/*]
worker1=ajp13:localhost:9027

# user4

[channel.socket:localhost:9021]
port=9021
maxPort=9021
host=127.0.0.1

[ajp13:localhost:9021]
channel=channel.socket:localhost:9021

[uri:/user4/*]
worker1=ajp13:localhost:9021


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





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

RE: JNDIRealm...more

2003-11-06 Thread Dean Searle
getRemoteUser(), if your familiar with jsp's then you'll know how to use
it. Unfortunately I don't, but I guess that is why we have web
application developers on staff. :-)

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)

-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 5:00 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more

Thanks for the pointer, I'll see about pointing to one of our 2 mail
servers.  I wonder if they "talk" back and forth.
Also,
Do you know how I can extract the sign-ed on user's user-id once they've
authenticated?
robyne

-Original Message-
From: Dean Searle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 2:06 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Great to hear that information worked for you. I included the
alternateURL in the event our primary AD went down for one reason or
another and our users could still access the password protected sites.
Without an alternate AD active or specified you will not have access to
your web applications.


-Original Message-
From:   Robyne Vaughn [mailto:[EMAIL PROTECTED]
Sent:   Wed 11/5/2003 13:46
To: Tomcat Users List
Cc: 
Subject:RE: JNDIRealm...more
Dean!
Mine works!
A thousand thanks!
I hope I can return the favor some time.
Your nice explanation helped. 
 
I did not need the alternatURL in mine.  I found out that we have 2 mail
servers, well the server.xml only allows for 1 alternate.  I decided to
try it without any and it worked.

Much appreciation,
Robyne Vaughn
  

-Original Message-
From: Dean Searle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 9:48 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Hello,

I hope that I am not to late to post here. I have just returned to the
land of the living and have started to catch up on my reading. I noticed
that Robyne you were trying to find the "collective all" for your users.
I have just recently figured this out after working on it for two days.
Here is my working server.xml:

ldap://your.AD.com";
   alternateURL="ldap://other.AD.com";
   connectionName="cn=USER DISPLAY NAME,ou=FIRST
SUB-GROUP,dc=AD,dc=com"
   connectionPassword="XX"
   referrals="follow"
   userBase="dc=AD,dc=com"

userSearch="(&(sAMAccountName={0})(objectClass=user))"
   userSubtree="true"
   roleBase="dc=AD,dc=com"
   roleSearch="(uniqueMember={0})"
   roleName="cn"
   />

KEY:

cn = common name
ou = organizational unit
dc = domain controller

your.AD.com>www.yahoo.com
other.AD.com   >mail.yahoo.com
USER DISPLAY NAME   >   This is the full name that shows up in
your AD, ie user might be johnd but full
name is John Doe.
For the connection name and password, it must be user that has
authority to access AD. This part is necessary to connect.

FIRST SUB-GROUP > This depends on how your organization is
built in AD. You might have departments like: Accounting, Human
Resources, Information Technologies.

In an AD structure it might look something like this:

COM
|
|_Yahoo
  |
  |
  |_Accounting
  |   |_John Doe
  |
  |_Information Technologies
  ||_Jack Daniels
  |
  |_Human Resources
  |_Mary Jane

sAMAccountName  >  is the account name you most commonly login into
your computers with objectClass="user"  >  this should be user, as
defined in AD unless
your sys admin or someone has tampered   
   the AD.
referrals="follow"  > this is necessary to traverse the full AD
without knowing the user's base location.

I hope that this clears up some issues for you. Please let me know if I
can help you more.


Dean E. Searle
Computing Oasis
989.245.7369 (P)
989.921.3904 (F)
 


-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 1:25 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Thanks.

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 12:10 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Good luck.

-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 1:07 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Thanks, Justin,
You've given me some good pointers.  I guess I'll do some more hammering
and snooping. Our AD is on a server and the administrators gave me an
administrator type password to try hitting it with, but they don't want
me snooping around too much.  I don't actually have dir

RE: JNDIRealm...more

2003-11-05 Thread Dean Searle
Great to hear that information worked for you. I included the alternateURL in the 
event our primary AD went down for one reason or another and our users could still 
access the password protected sites. Without an alternate AD active or specified you 
will not have access to your web applications.


-Original Message-
From:   Robyne Vaughn [mailto:[EMAIL PROTECTED]
Sent:   Wed 11/5/2003 13:46
To: Tomcat Users List
Cc: 
Subject:RE: JNDIRealm...more
Dean!
Mine works!
A thousand thanks!
I hope I can return the favor some time.
Your nice explanation helped. 
 
I did not need the alternatURL in mine.  I found out that we have 2 mail
servers, well the server.xml only allows for 1 alternate.  I decided to
try it without any and it worked.

Much appreciation,
Robyne Vaughn
  

-Original Message-
From: Dean Searle [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 9:48 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Hello,

I hope that I am not to late to post here. I have just returned to the
land of the living and have started to catch up on my reading. I noticed
that Robyne you were trying to find the "collective all" for your users.
I have just recently figured this out after working on it for two days.
Here is my working server.xml:

ldap://your.AD.com";
   alternateURL="ldap://other.AD.com";
   connectionName="cn=USER DISPLAY NAME,ou=FIRST
SUB-GROUP,dc=AD,dc=com"
   connectionPassword="XX"
   referrals="follow"
   userBase="dc=AD,dc=com"

userSearch="(&(sAMAccountName={0})(objectClass=user))"
   userSubtree="true"
   roleBase="dc=AD,dc=com"
   roleSearch="(uniqueMember={0})"
   roleName="cn"
   />

KEY:

cn = common name
ou = organizational unit
dc = domain controller

your.AD.com>www.yahoo.com
other.AD.com   >mail.yahoo.com
USER DISPLAY NAME   >   This is the full name that shows up in
your AD, ie user might be johnd but full
name is John Doe.
For the connection name and password, it must be user that has
authority to access AD. This part is necessary to connect.

FIRST SUB-GROUP > This depends on how your organization is
built in AD. You might have departments like: Accounting, Human
Resources, Information Technologies.

In an AD structure it might look something like this:

COM
|
|_Yahoo
  |
  |
  |_Accounting
  |   |_John Doe
  |
  |_Information Technologies
  ||_Jack Daniels
  |
  |_Human Resources
  |_Mary Jane

sAMAccountName  >  is the account name you most commonly login into
your computers with objectClass="user"  >  this should be user, as
defined in AD unless
your sys admin or someone has tampered   
   the AD.
referrals="follow"  > this is necessary to traverse the full AD
without knowing the user's base location.

I hope that this clears up some issues for you. Please let me know if I
can help you more.


Dean E. Searle
Computing Oasis
989.245.7369 (P)
989.921.3904 (F)
 


-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 1:25 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Thanks.

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 12:10 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Good luck.

-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 1:07 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Thanks, Justin,
You've given me some good pointers.  I guess I'll do some more hammering
and snooping. Our AD is on a server and the administrators gave me an
administrator type password to try hitting it with, but they don't want
me snooping around too much.  I don't actually have direct access to it.
Like I said, I have hit it with some JNDI, but that is new to me also,
and I still couldn't discover the tree structure adequately. 
Anyway, I guess I'll try to pull things out of the loading script and my
LDAP books.  It's so frustrating.  I can't find and the administrators
don't know where the collective "all" of our users are located.  They
found an example script, used it, and don't really know what they have
yet.

I really appreciate your time.
Thanks, 
Rob
Ps I expect I'll have more questions later.  Right now, I'm still stuck
just figuring out where "all users" are.

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 11:40 AM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Oh, for th

RE: mod_jk2, virtual hosts

2003-11-05 Thread Dean Searle
>From looking at your information for the www.domain.com/org you would need to define 
>a new virtual host or try www.doamin.com/org/demo/sample.jsp and make sure you have 
>/home/www/htdocs/www/demo/sample.jsp, as far as I can see you do not have a demo 
>directory in your /home/www/htdocs/www.

Hope this helps,

Dean


-Original Message-
From:   Frank Epistone [mailto:[EMAIL PROTECTED]
Sent:   Tue 11/4/2003 14:28
To: [EMAIL PROTECTED]
Cc: 
Subject:mod_jk2, virtual hosts
Hi everybody,

I'm experiencing some strange problems with mod_jk2
and
Apache Tomcat 4.1.27 with Apache 2.0.47 as web server.

I have serveral virtual hosts defined, each one with a

diferent JSP directory:

demo.domain.com/org -> /home/www/htdocs/demo 
www.domain.com/org  -> /home/www/htdocs/www

I've also configured server.xml file with one Engine,
and two Hosts with a Context for each one. appBase for
each Host
is /home/www/htdocs and docBase for each Context is
the
corresponding directory (demo or www). Each Host has
the
name attribute set as one of the domain names and an
Alias
entry for the other TLD (com/org)

Everything works great, Apache serves the non-JSP
content and
Tomcat sends JSP and Servlet results fine. But
requesting 
www.domain.com/demo/sample.jsp returns a 404 as Tomcat
tries 
to serve /home/www/htdocs/demo/sample.jsp, which does
not exist. 

Has anybody found this issue and solved it? I'm afraid
there is
something wrong with my config files, but I've double
checked
workers2.properties, httpd.conf and server.xml and
everything
is fine. All configuration is mostly based on "jk2
virtual host HOWTO"
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html)

Regards,

Ivan


Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.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]

RE: JNDIRealm...more

2003-11-04 Thread Dean Searle
Hello,

I hope that I am not to late to post here. I have just returned to the
land of the living and have started to catch up on my reading. I noticed
that Robyne you were trying to find the "collective all" for your users.
I have just recently figured this out after working on it for two days.
Here is my working server.xml:

ldap://your.AD.com";
   alternateURL="ldap://other.AD.com";
   connectionName="cn=USER DISPLAY NAME,ou=FIRST
SUB-GROUP,dc=AD,dc=com"
   connectionPassword="XX"
   referrals="follow"
   userBase="dc=AD,dc=com"

userSearch="(&(sAMAccountName={0})(objectClass=user))"
   userSubtree="true"
   roleBase="dc=AD,dc=com"
   roleSearch="(uniqueMember={0})"
   roleName="cn"
   />

KEY:

cn = common name
ou = organizational unit
dc = domain controller

your.AD.com>www.yahoo.com
other.AD.com   >mail.yahoo.com
USER DISPLAY NAME   >   This is the full name that shows up in
your AD, ie user might be johnd but full
name is John Doe.
For the connection name and password, it must be user that has
authority to access AD. This part is necessary to connect.

FIRST SUB-GROUP > This depends on how your organization is
built in AD. You might have departments like: Accounting, Human
Resources, Information Technologies.

In an AD structure it might look something like this:

COM
|
|_Yahoo
  |
  |
  |_Accounting
  |   |_John Doe
  |
  |_Information Technologies
  ||_Jack Daniels
  |
  |_Human Resources
  |_Mary Jane

sAMAccountName  >  is the account name you most commonly login into
your computers with
objectClass="user"  >  this should be user, as defined in AD unless
your sys admin or someone has tampered   
   the AD.
referrals="follow"  > this is necessary to traverse the full AD
without knowing the user's base location.

I hope that this clears up some issues for you. Please let me know if I
can help you more.


Dean E. Searle
Computing Oasis
989.245.7369 (P)
989.921.3904 (F)
 


-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 1:25 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Thanks.

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 12:10 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Good luck.

-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 1:07 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Thanks, Justin,
You've given me some good pointers.  I guess I'll do some more hammering
and snooping. Our AD is on a server and the administrators gave me an
administrator type password to try hitting it with, but they don't want
me snooping around too much.  I don't actually have direct access to it.
Like I said, I have hit it with some JNDI, but that is new to me also,
and I still couldn't discover the tree structure adequately. 
Anyway, I guess I'll try to pull things out of the loading script and my
LDAP books.  It's so frustrating.  I can't find and the administrators
don't know where the collective "all" of our users are located.  They
found an example script, used it, and don't really know what they have
yet.

I really appreciate your time.
Thanks, 
Rob
Ps I expect I'll have more questions later.  Right now, I'm still stuck
just figuring out where "all users" are.

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 11:40 AM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Oh, for the AD LDAP, I've been using the programs that came with Active
Directory.  There is also an ldp.exe, I dunno where that came from, but
that's pretty useful.

-Original Message-
From: Hart, Justin 
Sent: Tuesday, November 04, 2003 12:39 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


I used * as my role-name.

Justin

-Original Message-
From: Robyne Vaughn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 12:38 PM
To: Tomcat Users List
Subject: RE: JNDIRealm...more


Justin, 
I REALLY appreciate your help.  I've been stuck for a while.
I believe that Users  is a CN .  (scanning thru the script, I don't see
Users ever set as an OU, but I do see it as a CN.)

How are you browsing around in AD's LDAP?  I have a jndi jsp that I've
tried finding things with. 

One bit of info:  The AD I am trying to authenticate to is on a
different box than the one I work on.  I do know to hit AD with a
connection name and password, then I've tried to use the sAMAccountname
but have been unsuccessful.  I can't quite get my "path" worked out.

I will look thru the DN, to see if I can find where all the users are a
member.  

In my web.xml, I have tried form based and basic authentication.  Wh

RE: jk or jk2

2003-10-31 Thread Dean Searle
Florian,

>From my latest experience with my reconfiguration of Tomcat, Apache2 and mod_jk2 I 
>have somewhat figured things out. I think the bracketed items are a type:attribute 
>sort of like tags in XLM or HTML.

They are necessary to identify the individual pieces within the properties file. They 
are neccesary for when you have mulitple Web applications running on either one 
instance of tomcat or multiple instances of Tomcat.

I am including my newly revised workers2.properties file. As you can see I have 
defined 3 ports that tomcat will listen on, i.e.

[channel.socket:localhost:8###] these need to be unique. 

Then further down you can see where I have assigned the workers to the individual 
listen ports, i.e 

[uri:www.session1.com/*jsp]
worker=ajp13:localhost:8109

Now if you are only running one instance of Tomcat you only need one port and one 
worker. But in my case I have each web application running on a seperate instance of 
tomcat that I can turn on/off without affecting the other instances.

I hope that this helps clarify some thing for you.

Dean

BEGIN CODE

# only in the beginning. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=z:/tomcat/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8109]
port=8109
host=127.0.0.1

[channel.socket:localhost:8110]
port=8110
host=127.0.0.1

[channel.socket:localhost:8111]
port=8111
host=127.0.0.1

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

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

#[vm:]
#info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
#OPT=-Djava.class.path=Z:/Tomcat/bin/tomcat-jni.jar;Z:/Tomcat/server/lib/commons-logging.jar
#OPT=-Dtomcat.home=${TOMCAT_HOME}
#OPT=-Dcatalina.home=${TOMCAT_HOME}
#OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
#disabled=0

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

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

# Define the worker
# First Web Application Worker
[ajp13:localhost:8109]
channel=channel.socket:localhost:8109

# Second Web Application Worker
[ajp13:localhost:8110]
channel=channel.socket:localhost:8110

# Third Web Application Worker
[ajp13:localhost:8111]
channel=channel.socket:localhost:8111

 Uri mapping
[uri:127.0.0.1/*.jsp]
worker=ajp13:localhost:8109

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

[uri:www.session1.com/*.jsp]
worker=ajp13:localhost:8109

[uri:www.session2.com/*.jsp]
worker=ajp13:localhost:8110

[uri:www.session3.com/*.jsp]
worker=ajp13:localhost:8111

END CODE


-Original Message-
From:   Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent:   Fri 10/31/2003 05:40
To: Tomcat Users List
Cc: 
Subject:Re: jk or jk2
Dean-

thanks for sharing your material on your tested setup here. I wonder if 
you've got a distinct idea of how the syntax workers2.properties works. 
This is actually my single most pressing problem.

There is this section like thing: [foo:bar] What does it mean? Is it a

[type:instance]  -   eg. [uri:/context/*]

scheme, perhaps? This might make sense. Then this

[type:]  -   eg. [config:]

could be a "class" or singleton-like thing. And then, the properties. Do 
they always refer to the preceding square-bracketed item?

[type:obj]
property1=value1
property2=value2

What is the group syntax like? Is a group something I define with the 
[lb:some_lb_name] statement? Do I need a shared memory file under all 
circumstances, or is it neccessary only when I have several tomcats?

-Florian

Dean Searle wrote:

> The Oreilly book is only for Tomcat and Tomcat as a Standalone web/application 
> server. I have spent six months trying to figure out how everything works together 
> and how to get things implemented. Both from FreeBSD and Windows. I do have 
> documentation on how to get Apache2, Tomcat 4.1 and mod_jk2 to work together. Please 
> keep in mind that this is old documentation that I have out there, some things are 
> not optimized yet. 
> 
> I have just reconfigured my Apache2, Tomcat 4.1 and mod_jk2 installation. I 
> currently have a test environment where I am running two instances of Apache2 from 
> one binary install and three instances of Tomcat from one binary install. Each one 
> running different configuration from straight static site to jsp site and jsp with 
> SSL or Realm security with AD LDAP. But all using mod_jk2 when needed.
> 
> I will provide a link to my old documentation to get you started. I will try and 
> answer any o

RE: jk or jk2

2003-10-30 Thread Dean Searle
The Oreilly book is only for Tomcat and Tomcat as a Standalone web/application server. 
I have spent six months trying to figure out how everything works together and how to 
get things implemented. Both from FreeBSD and Windows. I do have documentation on how 
to get Apache2, Tomcat 4.1 and mod_jk2 to work together. Please keep in mind that this 
is old documentation that I have out there, some things are not optimized yet. 

I have just reconfigured my Apache2, Tomcat 4.1 and mod_jk2 installation. I currently 
have a test environment where I am running two instances of Apache2 from one binary 
install and three instances of Tomcat from one binary install. Each one running 
different configuration from straight static site to jsp site and jsp with SSL or 
Realm security with AD LDAP. But all using mod_jk2 when needed.

I will provide a link to my old documentation to get you started. I will try and 
answer any other questions also. I am not an expert here though, just some things I 
have figured out from reading numerous posts here and from other sites. I will repost 
an updated documentation as soon as all my testing is done.

http://www.computingoasis.com/apache download the PDF please.

-Dean


-Original Message-
From:   Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent:   Thu 10/30/2003 09:42
To: Tomcat Users List
Cc: 
Subject:Re: jk or jk2
Hi Bernhard,

 > Here's a great book including mod_jk2:
 > http://www.oreilly.de/catalog/tomcat/index.html

I got this book right next to my laptop, and I also like it quite much. 
But I can't find it useful when it comes to using mod_jk2. It don't 
really understand the contents of workers2.perperties. And they show 
only an example of this file in their book.

To give you an example:
[config:]
File=/usr/local/apache2/config/workers2.properties
debug=0
debugEnv=0

I guess here they define some "config" instance. Ok. But where is the 
point in giving the path to a config file *in exactly this config 
file*?! No idea.

Or, another example:
[uri:/examples]
info=Examples ...
context=/examples
worker=ajp13:localhost:8009
debug=0

This yields a deprecation warning in my apache2 error.log:
[Thu Oct 30 13:13:48 2003] [notice] uriEnv.setAttribute() the worker 
directive is deprecated. Use 'group' instead.

What is a group? I guess this could be a node group for load balancing 
purposes. But I don't know. And the books won't say, neither the ORA nor 
the Wrox one. I'm pretty stuck.

Sorry, I'm upset. Thanks for your hint, anyway.

-Florian



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





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

RE: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2

2003-10-17 Thread Dean Searle
Try LoadModule jk2_module   modules/mod_jk2-2.0.43.dll

you current have LoadModule jk_module. That should work for you. Also if you need more 
information I have write a document on what you are setting up at 
http://www.computingoasis.com/apache just download the pdf from there. There are also 
numerous posts in the archives about this also.


Cheers

--Dean

-Original Message-
From:   Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent:   Fri 10/17/2003 09:34
To: 'Tomcat Users List'
Cc: 
Subject:tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2
Hi,
I have a win2k machine trying to configure these. I am
able to work apache and tomcat individually. When I
try to connect these using jk2 getting into problems..
I have followed the John Turner win2k instructions.
When ever I add 
--> LoadModule jk_module modules/mod_jk2-2.0.43.dll
--> Include C:/Tomcat4.1/conf/auto/mod_jk.conf
in httpd.con of apache and try to test using
c:\apache\apache2\bin\apache.exe -t 

I am getting 
"Syntax error on line 174 of
C:/Apache/Apache2/conf/httpd.conf:
Can't locate API module structure `jk_module' in file
C:/Apache/Apache2/modules/
mod_jk2-2.0.43.dll: No error"

I can't find the same versions of apache and jk connector.
Any solution will be appreciated.

Thanks - srini.

 

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





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



RE: mod_jk2 hangs?!

2003-10-02 Thread Dean Searle
I'm not to sure of the purpose of the jk2.shm file except that it is a
scoreboard file. Its main purpose is to collect stats on the JK2
connector. I'm not too sure how to read the stats just yet. I'm not sure
if by having two separate jk2.shm files will cause any problems. I would
guess no since it only collects information and has no bearing on
performance. So I suppose you could create two and try that. Let me know
if that works for you.

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)

-Original Message-
From: Christian Traber [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 02, 2003 3:16 PM
To: Tomcat Users List
Cc: Dean Searle
Subject: Re: mod_jk2 hangs?!

Dean Searle wrote:

>You're missing the jk2.shm file. This file should be created using
notepad or vi (depending on your OS)and placed in a folder. That folder
can be determined by looking into jk2.properties in the
{TOMCAT_HOME}/conf and workers2.properties in {APACHE_HOME}/conf. Or you
can specify where it needs to go. Just make sure that both files point
to the same place.
>
>Dean
>
>  
>
I have a shm file for mod_jk2 but didn't change the tomcat
jk2.properties.
Does this mean I have to use the same shm file for tomcat and mod_jk2?
I thought they will just use socket for communication!?
However, I can't use the same file, because apache is in the DMZ and 
tomcat in another net segment and I can't share a disk...

Thanks,
Christian



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



RE: mod_jk2 hangs?!

2003-10-02 Thread Dean Searle
You're missing the jk2.shm file. This file should be created using notepad or vi 
(depending on your OS)and placed in a folder. That folder can be determined by looking 
into jk2.properties in the {TOMCAT_HOME}/conf and workers2.properties in 
{APACHE_HOME}/conf. Or you can specify where it needs to go. Just make sure that both 
files point to the same place.

Dean


-Original Message-
From:   Christian Traber [mailto:[EMAIL PROTECTED]
Sent:   Thu 10/2/2003 3:43 AM
To: Tomcat Users List
Cc: 
Subject:mod_jk2 hangs?!
Hi,

I use apache 2.0.46, mod_jk2, tomcat4.1.18 (the standard versions 
shipped with Suse 8.2).

Sometimes the apache-tomcat connection seems to hang. After restarting 
apache (or I think
waiting for a few minutes) everything works again.

There are a lot of such messages in my apache errorlog:
...
[Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2
[Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14357 in 
scoreboard
[Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok 
/srv/www/conf/workers2.properties
[Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2
[Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14358 in 
scoreboard
[Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok 
/srv/www/conf/workers2.properties
[Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2
[Wed Oct 01 20:38:27 2003] [notice] mod_jk2 Shutting down
[Wed Oct 01 20:38:28 2003] [notice] mod_jk2 Shutting down
[Wed Oct 01 20:38:29 2003] [notice] mod_jk2 Shutting down
[Wed Oct 01 20:38:30 2003] [notice] mod_jk2 Shutting down


Whar means [error] mod_jk child init 1 -2 ?

Please tell me if you need further information about my configuration.

Thanks,
Christian



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





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



RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

2003-10-02 Thread Dean Searle
I have found this to occur if JDK is not installed correctly. Try going to C:\Program 
Files\Java\j2re1.4.2_01\bin\client and see if there is a jvm.dll file there. If there 
is not then uninstall the JDK, delete the Java folder and reinstall. If the jvm.dll is 
there then uninstall the JDK and remove the Java folder and reinstall. Sometimes the 
dll's do not get registered correctly. Also in your Environment Variables make sure 
your path has this included: C:\j2sdk1.4.2_01\bin, well before any Tomcat path 
statements. Also make sure that the JAVA_HOME, TOMCAT_HOME and CATALINA_HOME are all 
under the system variables and not the user variables.

Keep in mind that your vesion of JDK will determine the correct syntax. 

Dean


-Original Message-
From:   Seth Rubin [mailto:[EMAIL PROTECTED]
Sent:   Thu 10/2/2003 12:06 AM
To: Tomcat Users List
Cc: 
Subject:RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
Am having the same problem myself on a WinXP Home box installing 4.1.27 .

I can start tomcat manually or from Start menu, but I get this in the event
log when I start it as a service:

"The LoadLibrary function failed for the following reason: The specified
module could not be found.
Could not load the Java Virtual Machine. "

I don't know why this is happening.  JAVA_HOME and CATALINA_HOME are set
correctly.  I'm using the service as configured by the installer.  Just to
be sure, I did chmod 777 on the j2sdk and jre java trees.  I'm stumped.  My
only guess is that there must be something funky with the local system
account that runs services, but I can't see what.

-- Seth


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





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



RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-27 Thread Dean Searle
Ok, Sorry for the delay but here is the documentation to help install
Apache 2, Tomcat 4.1 and SSL. It is 23 pages long with illustrations.
Just to let everyone know, I do not endorse or recommend anything in
this documentation. All I know is I followed a lot of mail list trails
and pieced everything together. 

As usual make a back up of your server or workstation before diving into
this endeavor. Do not attempt this o your production server first, use a
beta environment first to get comfortable with this doc and how
everything fits together.

Please read the documentation thoroughly before attempting to do the
install. Make sure you have all files downloaded first. This should work
for most versions pending the SSL versions. If you see a security hole
anywhere in this doc please let me know immediately and I will change
this doc. I appreciate it if you could email me first before calling me.
I usually check email 6 times a day. I really need a life. But anyways
here goes! I have to use a link to the document since there is a size
limit on email of 10 bytes. www.computingoasis.com/apache please
download this document to your computer. 

P.S. I am currently working on documenting on how to use IP based
virtual hosts with Apache2 and Tomcat 4.1. This should be complete
hopefully in the next week or two. I am also documenting the same steps
for A FreeBSD 5.0 release install if there is anyone interested.

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 4:32 PM
To: Tomcat Users List
Subject: Re: Tomcat connector for Apache 2.0.47 ... Please Help


20 pages?  What else is in there besides connector configuration?  Just 
curious

John

Bhaskar Marthi wrote:

> dean,
> As said by lot of members, it would be great if you can post your
document
> in the mailing list.  BTW, did anyone try resin?  How does it compare
to
> tomcat?  
> 
> Thanks,
> Bhaskar
> 
> 
>>The information contained in this communication may be confidential or
> 
> legally privileged and is intended only for the recipient named above.
If
> the reader of this message is not the intended recipient, you are
hereby
> notified that any dissemination, distribution or copying of this
> communication or its contents is strictly prohibited. If you have
received
> this communication in error, please immediately advise the sender and
delete
> the original and any copies from your computer system.
> 
> 
> 



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


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



RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-27 Thread Dean Searle
My documentation contains how to setup Apache 2, Tomcat 4.1, JDK 1.4 and
SSL. I will post this document later today. If all the members here
could review this document and give me your honest opinion it would be
appreciated. Please keep in mind that the document is compiled from many
posts from marc.theaimsgroup.com, groups.google.com and from Apache.org.

I am not intentionally delaying this document, but I need to change some
of the settings as to not reveal our internal workings. 

Thank you for your patience and allowing me to post this information.

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 4:32 PM
To: Tomcat Users List
Subject: Re: Tomcat connector for Apache 2.0.47 ... Please Help


20 pages?  What else is in there besides connector configuration?  Just 
curious

John

Bhaskar Marthi wrote:

> dean,
> As said by lot of members, it would be great if you can post your
document
> in the mailing list.  BTW, did anyone try resin?  How does it compare
to
> tomcat?  
> 
> Thanks,
> Bhaskar
> 
> 
>>The information contained in this communication may be confidential or
> 
> legally privileged and is intended only for the recipient named above.
If
> the reader of this message is not the intended recipient, you are
hereby
> notified that any dissemination, distribution or copying of this
> communication or its contents is strictly prohibited. If you have
received
> this communication in error, please immediately advise the sender and
delete
> the original and any copies from your computer system.
> 
> 
> 



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


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



RE: Tomcat connector for Apache 2.0.47 ... Please Help

2003-09-25 Thread Dean Searle
Joe,
 
You place the mod_jk2 file in the correct folder, however you have set up the 
parameters in your httpd.conf file incorrectly. The parameters you have are for the 
mod_jk module. For the mod_jk2 module you would need a workers2.properties file and a 
jk2.shm file.
 
I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on Windows 2000, 
but I have used the same instructions on my WinXP Pro with out any problems. If this 
mail list would not mind me sending this document please let me know.
 
This is information I have compiled from numerous mail lists and debugged for many 
months. The document is about 20 pages long give or take. I don't have it in front of 
me at this time. I can post it as a pdf or RTF. Let me know which version is more 
acceptable.
 

Dean

-Original Message- 
From: Joe Mihalich [mailto:[EMAIL PROTECTED] 
Sent: Thu 9/25/2003 7:29 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Tomcat connector for Apache 2.0.47 ... Please Help









Hi,



   I've installed Apache version 2.0.47, and tomcat version
4.1.27 on a windows xp box.



   I've downloaded the mod_jk2-2.0.43.dll connector, and put it
in the modules directory

Under apache.



   I configured tomcat to auto generate the mod_jk.conf file.



   All that is working ok.so it seems.



   I then modified the httpd.conf file as follows:



LoadModule jk_module modules/mod_jk2-2.0.43.dll

AddModule mod_jk.c



JkWorkersFile \Program Files\Apache
Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties

JkLogFile logs\mod_jk.log

JkLogLevel debug



   And added this include, at the end of the file



Include \Program Files\Apache
Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf



   Now, when I try to start up apache, I'm getting this error:



Syntax error on line 173 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:

Can't locate API module structure `jk_module' in file C:/Program
Files/Apache Gr

oup/Apache2/modules/mod_jk2.dll: No error



   Line 173 is the "LoadModule" line above.



   Can someone please tell me why I'm getting this error?  In
the download

Directory for mod_jk2-2.0.43.dll, it says that this file is only
for Apache 2.0.43.

I assume that it will work for 2.0.47.or is that the problem
here?  I can't

Find 2.0.43 to download anymore.



   Also, I'm confused as to why all the other modules in the
modules sub directory

Have the ".so" extension.  Aren't those unix shared library
objects?  Can they work

On windows?



   Anyway, any help would be appreciated.



Thanks,

Joe



   





RE: jk2_init() Can't find child

2003-09-17 Thread Dean Searle
Wouldn't that change be put in the workers2.properties file, since their using mod_jk2?

-Original Message- 
From: Vikram Goyal [mailto:[EMAIL PROTECTED] 
Sent: Wed 9/17/2003 3:00 AM 
To: Tomcat Users List; Johan Louwers 
Cc: 
Subject: Re: jk2_init() Can't find child



In your workers.properties under Apache conf put the following line:

[shm]
file=path-to-a-writeable-log-file-usually-under-apache-logs
size=1048576

Restart Tomcat, wait 10 seconds and then restart Apache.

If this does not work, then create the file as specified under the path and
touch it. Try restarting again.

HTH
Vikram

- Original Message -
From: "Johan Louwers" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 4:44 PM
Subject: jk2_init() Can't find child


> Build JK2 now on solaris 9. Placed mod_jk2.so in the Apache module dir.
> Also added:
>
> LoadModule jk2_module modules/mod_jk2.so
>
> at the end of my httpd.conf file. Stop and start apache and try to open
> http://10.99.1.115/examples  Nothing!! http://10.99.1.115 is giving me the
> basic apache site http://10.99.1.115:8080 is giving me the basic tomact
> site.
>
> So the connector is not working correctly  Opend error_log and
found
> the following:
>
> [error] jk2_init() Can't find child 1157 in scoreboard
> [error] shm.init(): No file
> [error] mod_jk child init 1 -2
>
>
> I found the folowing hint on the internet related to this problem. I do
not
> know how to work with this.. Reading true the posts this is the
> solution. What do they mean by this?
> > You don't have a shared memory file configured in your properties files,
> > or if you do, it isn't accessible or writable.
>
>
> Any clue how to make it work anybody?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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





RE: error during make JK2

2003-09-16 Thread Dean Searle
I find that using gmake instead allows the comile to complete. I think that gmake is 
GNU's make. I have seen this problem in other postings and found one that recommended 
using gmake instead. I  hope that this helps you.
 
Dean

-Original Message- 
From: Johan Louwers [mailto:[EMAIL PROTECTED] 
Sent: Tue 9/16/2003 7:37 AM 
To: Tomcat Users List 
Cc: 
Subject: error during make JK2



I am trying to build a JK2 connector on a solaris 9 box.

I do:
./configure --with-apxs2=/usr/local/apache/bin/apxs \
--with-tomcat41=/usr/local/jakarta-tomcat-4.1.27 \
--with-java-home=/usr/local/j2sdk1.4.1_05 \
--with-jni \
--with-pcre

All is fine, after that i do make and then the problem starts I get the
following:

#make
list=' server/apache2'; \
for i in $list; do \
echo "Making $target in $i"; \
if test "$i !="."; then \
   (cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
make: Fatal error in eader: Makefile, lin19: Unexpected end of line seen
Current working directory
/export/home/suntac/jakarta-tomcat-connectros-jk2-2.0.2-src/jk/native2/serve
r/apache2
*** error code 1
Make fatak errir: command failed for target 'jk2-build'
#

Anybody any clue what the problem is?

Regards, Johan.


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





RE: Tomcate and Windows XP Question

2003-09-07 Thread Dean Searle
Is Tomcat running on port 8080 or is it 8180 like in TC4.1.27.

It's tough to tell because your log message is partially cut off where it tells you 
which ports it's listening to. If I remember correctly the [INFO] Http11Protocol line 
should tell you which port it is listening to.



[INFO] Http11Protocol - -Starting Coyote HTTP/1
  [INFO] ChannelSocket - -JK2: ajp13 listening on
  [INFO] JkMain - -Jk running ID=0 time=0/31  con
  jk2.properties
  [INFO] Catalina - -Server startup in 5218 ms



Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)

-Original Message-
From: Yann Cébron [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 07, 2003 3:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcate and Windows XP Question

>I installed Tomcate 5.0.9 on Windows XP Home edition.
>It seems the Tomcate starts sucessfully, but when I browse to
http://127.0.0.1:8080, I get error message saying
>  The page cannot be displayed
>  There is a problem with the page you are trying to reach and it
cannot be displayed.

>Here is what I did:



This looks allright

Seems like you're having a network/proxy configuration problem.

>From "RUNNING.txt" in your TOMCAT installation directory:

*
3) The 'localhost' machine isn't found.  This could happen if you're behind
a
   proxy.  If that's the case, make sure the proxy configuration for your
   browser knows that you shouldn't be going through the proxy to access the
   "localhost".

   In Netscape, this is under Edit/Preferences -> Advanced/Proxies, and in
   Internet Explorer, Tools -> Internet Options -> Connections -> LAN
Settings.
*

Yann




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



Problem building mod_jk2 on Freebsd 4.8-RELEASE

2003-09-01 Thread Dean Searle
/usr/local/jdk1.4.1/jre/../include -g -W
-D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm
on/jk_md5.c
   [so] Output:
   [so]  cc -c
-I/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/co
mmon -I/usr/local/include -I/usr/local/jdk1.4.1/jre/../include -g -W
-D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm
on/jk_md5.c  -fPIC -DPIC -o
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk/ap
ache2/common/.libs/jk_md5.o
   [so] StdErr:
   [so]
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm
on/jk_md5.c:477: httpd.h: No such file or directory
   [so]
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm
on/jk_md5.c:478: http_config.h: No such file or directory
   [so]
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm
on/jk_md5.c:490: ap_md5.h: No such file or directory

BUILD FAILED
file:/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native
/build.xml:134: Compile failed
/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm
on/jk_md5.c

Total time: 7 seconds


---END SNIPPET---

Am I missing something here or have I done something completely wrong?

I apologize for the length of this email.

Any help is appreciated. If you require more information please let me
know.

Thank you in advance.

Dean Searle
Computing Oasis
989.245.7369 (p)
989.921.3904 (f)

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