Re: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Bill Barker
Well, they are pretty significant.  3.3.x (at least until the
yet-to-be-released 3.3.2) stand-alone ignores HTTP/1.1 headers on the
request.  Even 3.3.2 will ignore the partial-request that Adobe is so fond
of issuing for a pdf (which is it's right under the HTTP/1.1 spec, even if
it is not the recomended behavior).

At a guess, your servlet can't handle Adobe's partial-request statements,
and is getting confused when Adobe issues multiple request for the same
document.

Hugo Villeneuve [EMAIL PROTECTED] wrote in message
news:NFBBKMKLCMGJANFCBENAOEKLCEAA.hvilleneuve;b-wax.com...

 Hello,
 I was surprise how easy it was moving from tomcat 3.3 to 4.1. Except for
 something, pdf files. I generate dynamically pdf file Inside a Struts
 Action.

 I took me a while to figure out how to pop the Adobe reader inside MSIE 5
 browser by tweaking to response header (header key like
Content-Disposition,
 inline; filename=myFile.pdf ). Now avery think is working fine with IE5
and
 tomcat 3.3
 When I switch to Tomcat 4 the browser does not pop the Adobe reader but
ask
 me to save the file on disk . I read some issues about calling a PDF via a
 GET v.s a  POST and I think the problem is there.

 What is the difference between Tomcat 3.2 HTTP Header and 4.1 Header ?

 Any information about that ?


 My System :
 -  Win NT
 - Struts 1.0
 - Tomcat 3.2 --- 4.1

 thank you

 Hugo Villeneuve
 www.b-wax.com








--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Cahrset problem

2002-11-15 Thread Galbayar Dorjgotov
hi all.
i have one problem. My JSP's enconding is windows-1251 and have a form.
i'm wrote cyrillic characters and submit
when i reading textfield value use getParameter() method it returns 
what's the matter?
MY JSP is

% page contentType=text/html; charset=windows-1251 language=java
import=java.io.* errorPage= %
html
head
titleUntitled Document/title
/head

body
%
String a1=request.getParameter(textfield);
out.println(a1);
if (a1!=null){
InputStreamReader a=new InputStreamReader(new
ByteArrayInputStream(a1.getBytes()),windows-1251);
int gg=0;
gg=a.read();
out.println((char)gg);
a.close();
}
%

form name=form1 method=post action=
  input type=text name=textfield
  input type=submit name=Submit value=Submit
/form
/body
/html


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




build file for ant

2002-11-15 Thread sathya
hi all,
  I wanted to know how to build the project using ant..Kindly help me.
I am using Tomcat 4.1.10.Does anybody using ant have any scipts.??
bbye
Sathya



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat and UTF-8

2002-11-15 Thread Bill Barker
Short answer: no

Fenlason, Josh [EMAIL PROTECTED] wrote in message
news:996B8A752C431B4B842D3F627C0B81762C1AD3;HQ-MAIL1.ptcnet.ptc.com...
Hey all!
I'm doing some research about Tomcat's character encoding.  I was wondering
if anyone knew of know issues or problems Tomcat has with UTF-8.  Any input
would be greatly appreciated.  Thanks in advance.
,
Josh.





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: ManagedBean is not found with Ajp13Connector

2002-11-15 Thread Bill Barker
In the default 4.1.x server.xml file there is an un-commented out entry:
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75 enableLookups=true
redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /

This is the coyote connector.  Use this one instead of the AjpConnector if
you want to enable the admin webapp that has the very nice GUI to allow
you to configure your server.  If you don't care about this, remove (or
comment out) the two lines under Server that have Listener
className=org.apache.catalina.mbeans /.  In this case, the admin
application won't work, but you can use the legacy AjpConnector.

Anderson, M. Paul [EMAIL PROTECTED] wrote in message
news:D66093F40B7B4B428A20AD9796835FD17FE442;central.ssd.jhuapl.edu...
 What do you mean set up your configuration with the coyote connector?  I
 followed the documenation as given and it uses the AjpConnector.  What is
it
 that is using MBeans?  I'm totally confused!  I am completely new to
tomcat
 and apache and would appreciate any clarification!  How can I comment out
 the MBeans that are causing the exception?  Will this exception cause
 instability or can I just ignore it without fear of further problems?

 Please Help!!!  I've looked at the default server.xml and I don't see any
 help there.

 -Original Message-
 From: Jacob Kjome [mailto:hoju;visi.com]
 Sent: Thursday, November 14, 2002 3:20 PM
 To: Tomcat Users List
 Subject: Re: ManagedBean is not found with Ajp13Connector


 Hello M.,

 The Ajp13Connector doesn't support MBeans.  You need to set up your
 AJP configuration with the CoyoteConnector instead.  Or, just comment
 out the MBeans that are causing the exception.  See Tomcat-4.1.12's
 default server.xml for reference.

 Jake

 Thursday, November 14, 2002, 2:12:41 PM, you wrote:

 AMP I have just completed setting up the Apache 1.3.27 web server which
 will be
 AMP used with Tomcat 4.1 to serve the servlet and jsp pages.  I am also
 using
 AMP j2sdk1.4.0_02.  I have set up the configuration of my server.xml and
 AMP https.conf files as described in the tomcat online help for the
 AMP ajp13Connector.  When I run them, however, I get an exception stack
 that
 AMP looks like this (this is from my stdout.log file):

 AMP Bootstrap: Create Catalina server
 AMP Bootstrap: Starting service
 AMP ServerLifecycleListener: createMBeans: MBeanException
 AMP java.lang.Exception: ManagedBean is not found with Ajp13Connector
 AMP at
 AMP
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
 AMP at
 AMP

org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
 AMP cleListener.java:369)
 AMP at
 AMP

org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
 AMP cleListener.java:777)
 AMP at
 AMP

org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
 AMP cleListener.java:751)
 AMP at
 AMP

org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
 AMP cleListener.java:339)
 AMP at
 AMP

org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife
 AMP cycleListener.java:206)
 AMP at
 AMP

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 AMP t.java:166)
 AMP at
 AMP
org.apache.catalina.core.StandardServer.start(StandardServer.java:2182)
 AMP at
 AMP

org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
 AMP at java.lang.reflect.Method.invoke(Native Method)
 AMP at
 AMP

org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
 AMP )
 AMP at
 AMP

org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
 AMP Starting service Tomcat-Standalone
 AMP Apache Tomcat/4.1.12

 AMP The server works fine and I can invoke my servlets and jsp pages
 through
 AMP apache without a problem.  My question concerns this error.  I have
 searched
 AMP the net to find an answer but I can't find what this problem is.  I
am
 AMP satisfied that I have configured the servers properly since I can
view
 my
 AMP pages but I need to know what that error is so I can be satisfied it
 won't
 AMP cause any future problems.

 AMP Any help would be greatly appreciated!!

 AMP Paul

 AMP --
 AMP To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 AMP For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org



 --
 Best regards,
  Jacobmailto:hoju;visi.com


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 

JDBC Policy connection problem

2002-11-15 Thread Trevor MacPhail
I am having some issues with trying to use my JDBC driver to connect to 
a mySQL server. I get the following error in my catalina.out file:

java.sql.SQLException: Cannot connect to MySQL server on 
dbox.dnsalias.net:3306. Is there a MySQL server running on the 
machine/port you are trying to connect to? 
(java.security.AccessControlException)

Yet, there most certainly is a server running at that location. In fact, 
I dont get this error when I start tomcat without the -security option. 
This obviously narrows the problem down to a policy setting. So I added 
the following grant (based on a sample that was commented out in 
catalina.policy:

grant codeBase 
file:/usr/share/tomcat4/webapps/bookstore/WEB-INF/lib/mysql-connector-java-2.0.14-bin.jar!/- 
{
 permission java.net.SocketPermission dbox.dnsalias.net:3306, 
connect;
};

I've restarted the server with this added but it still gives me the 
error message shown earlier when I try to establish the connection. Any 
idea's what I should change this grant to? Or if there is another one I 
need to add?

--
Trevor MacPhail


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



getPathInfo

2002-11-15 Thread Luise Massimo
Hi all,
i'm trying to use request.getPathInfo from a servlet but it always 
return null.
the strange thing is this: if i use the Invoker servlet, getPathInfo 
return information as espected !!!

my configuration is the following:
tomcat 4.0.4
apache 1.3.26

i'm using mod_jk.

with a mount point like this JkMount /services/servlet/* ajp13, the 
url http://myserver.com/servics/servlet/go/info; return as pathInfo 
info, as espected.

with a mount point like this JkMount /services/go ajp13, the url 
http://myserver.com/servics/servlet/go/info; return as pathInfo null, 
as NOT espected !!

what is the problem ?
can any one help me ?

tia

Max

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: jk2 load balancing problem (only fail-over)

2002-11-15 Thread Nick Wesselman
So there's no production quality code to let me load balance using the 
Coyote connector?

Should I use mod_jk and the older Ajp13 connector instead?

Nick

On Friday, November 15, 2002, at 01:52 AM, Bill Barker wrote:

Load balancing is still not implemented fully in Jk2 (it's still a 
Beta).
It has very nice fail-over code however.  I'm sure that the Jk2 team 
would
welcome any patches.

Nick Wesselman [EMAIL PROTECTED] wrote in message
news:2303332D-F84E-11D6-8322-000393452A4C;digivis.com...
I'm trying to set up jk2 load balancing for 2 Virtual Hosts in Apache
with 2 Tomcats each. I have it mostly working, except it doesn't
actually load balance the Tomcats... however it will do fail-over just
fine if I kill one VM.

All my server.xml's have the correct jvmRoute set for the Engine.

Any help on how to fix or debug this?

Nick Wesselman
-

Environment:
RedHat 7.2
Apache 2.0.43
Tomcat 4.1.12
mod_jk2

workers2.properties (names obfuscated to protect the innocent):
[logger]
level=DEBUG

[config:]
file=/usr/local/apache2/conf/workers2.properties
debug=0
debugEnv=0

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

[logger.file:0]
level=DEBUG
file=/usr/local/apache2/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/usr/local/apache2/logs/jk2.shm
size=100
debug=0
disabled=0

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

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

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

[lb:vhost1]
debug=0

[channel.socket:vhost1_vm1]
port=8015
host=127.0.0.1
debug=0
group=vhost1
tomcatId=vhost1_vm1
lb_factor=1

[channel.socket:vhost1_vm2]
port=8019
host=127.0.0.1
debug=0
group=vhost1
tomcatId=vhost1_vm2
lb_factor=1

[uri:www.vhost1.com]
info=blah

[uri:www.vhost1.com/*.jsp]
group=vhost1
info=blah

[lb:vhost2]
debug=0

[channel.socket:vhost2_vm1]
port=8015
host=127.0.0.1
debug=0
group=vhost2
tomcatId=vhost2_vm1
lb_factor=1

[channel.socket:vhost2_vm2]
port=8019
host=127.0.0.1
debug=0
group=vhost2
tomcatId=vhost2_vm2
lb_factor=1

[uri:www.vhost2.com]
info=blah

[uri:www.vhost2.com/*.jsp]
group=vhost2
info=blah






--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: non Http connector

2002-11-15 Thread Yves Duhem
Thanks for your answer,
in fact I don't want to use http at all and I was wondering if it was
possible with tomcat.
I already have my own protocol, and since the communication will be 
wrapped in ssl I don't need http. The only feature from http that I 
might need is multiplexing. So I was wondering if the connector 
architecture of tomcat allowed (without too much trouble) to use another 
protocol.
But it's true that using http is not a big problem and I'll probably end 
up doing that.
yves

Milt Epstein wrote:
On Thu, 14 Nov 2002, Yves Duhem wrote:



Hi,
I would like to use servlets and tomcat without having to communicate
via http.
my request's first line would indicate in some way the target servlet
and the rest would be the data to transmit to the servlet
the response would be only the data (no headers).
(and all this would be used with SSL.)

I would like to know if a connector behaving like this exists somewhere,
or if i'll have to modify one of the existing connectors (and in that
case is there any developer documentation about the connector framework?).



Are you saying that you really don't want to use HTTP (as a protocol),
or just that you want to do this outside the context of a web browser?
Because in the current HTTP framework there's nothing that's stopping
you from using it outside of a web browser.  You can, for example, set
up a java application that opens a URLConnection to a Tomcat server.
You can even transfer objects this way (to a certain degree) instead
of just parameters, because you'll have direct control of
reading/writing the I/O streams.

I'm not really sure what not using HTTP buys you, because then you're
essentially creating your own client/server system and defining your
own protocol, and you have to set everything up.  If you use HTTP, you
get a lot essentially for free (including parameter passing,
sessions, cookies, ssl, etc.)

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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Per context access logs (Standalone 4.1.12)

2002-11-15 Thread Chris Campbell

Thanks Craig and Jon...
Ok, I have this working now. I just changed the context declaration:
from
Context path=/ docBase=ROOT debug=0 reloadable=true
to
Context path=/chris docBase=ROOT debug=0 reloadable=true

It seems that that context path / was never intended to be used to house a
full-blown webapp? That's what I was doing.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JDBC Policy connection problem

2002-11-15 Thread Kwok Peng Tuck
Normaly if I use a jdbc driver in tomcat I put it in 
$CATALINA_HOME/common/lib   configure a jndi resource for that.

Trevor MacPhail wrote:

I am having some issues with trying to use my JDBC driver to connect 
to a mySQL server. I get the following error in my catalina.out file:

java.sql.SQLException: Cannot connect to MySQL server on 
dbox.dnsalias.net:3306. Is there a MySQL server running on the 
machine/port you are trying to connect to? 
(java.security.AccessControlException)

Yet, there most certainly is a server running at that location. In 
fact, I dont get this error when I start tomcat without the -security 
option. This obviously narrows the problem down to a policy setting. 
So I added the following grant (based on a sample that was commented 
out in catalina.policy:

grant codeBase 
file:/usr/share/tomcat4/webapps/bookstore/WEB-INF/lib/mysql-connector-java-2.0.14-bin.jar!/- 
{
 permission java.net.SocketPermission dbox.dnsalias.net:3306, 
connect;
};

I've restarted the server with this added but it still gives me the 
error message shown earlier when I try to establish the connection. 
Any idea's what I should change this grant to? Or if there is another 
one I need to add?




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: build file for ant

2002-11-15 Thread Kwok Peng Tuck
That would be a question for the ant group.  But I've attached a sample 
none the same.
Cheers.

sathya wrote:

hi all,
 I wanted to know how to build the project using ant..Kindly help me.
I am using Tomcat 4.1.10.Does anybody using ant have any scipts.??
bbye
Sathya



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 



?xml version=1.0?

project name=SAPTest basedir=. default=all
target name=all
!-- WRITEME --
mkdir dir=SAPTest/
mkdir dir=SAPTest/WEB-INF/
mkdir dir=SAPTest/img/

copy todir=SAPTest/WEB-INF
fileset dir=Source/SAPSource/WEB-INF/
/fileset
/copy
   
copy todir=SAPTest 
fileset dir=Source/SAPSource
include name=*.jsp/
include name=*.properties/
include name=*.txt/
include name=*.htm/
include name=*.js/
include name=*.css/
include name=crontab/ 
/fileset
/copy
 war warfile=iwhack.war webxml=Source/SAPSource/WEB-INF/web.xml
fileset dir=Source/SAPSource//
   /war
   delete dir=SAPTest/

/target
/project

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Getting session list

2002-11-15 Thread Laurent Michenaud
Hi,

I use Tomcat 3.3.1 ( Servlet 2.1 )

I want to create a servlet that lists the sessions.

How can i get all the active sessions ?

Thanks

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Trouble installing SSL on Tomcat Standalone

2002-11-15 Thread Joseph Stephen Vaithara
Hi ,

I have configured SSL for my tomcat standalone webserver. I am using a trial VeriSign 
certificate. Now when I try to connect to tomcat Netscape throws the message  
Netscape and  my host cannot communicate because they have no common encryption 
algorithms

Any pointers as to where the problem would be greatly appreciated.

Steps I followed to setup SSL
1) keytool -genkey -keyalg RSA -alias tomcat -keystore ./.keystore
2) keytool -certreq -alias tomcat -keyalg RSA  -file myhostname.csr -keystore 
./.keystore
3) Got the csr file  signed by verisign
4)  keytool -import  -alias root -trustcacerts -file myHostName.crt -keystore 
./.keystore
5) keytool -delete -alias tomcat  -keystore ./.keystore  (If skip this step then the 
self signed certificate is used.)

Thanks
Joe




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




iis redirection to linux tomcat machine

2002-11-15 Thread Jose Antonio Martinez
i have installed the isapi filter in the iis for
redirection of jsp pages to a linux machine (it has a
tomcat server).

i have followed the documentation at:

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#6


the array is green now , but when i try to view jsp
samples, there is a problem: iis says it cant find the
module !!!

any idea?



___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Lee Grey
I've fought the good fight all night, but I'm stuck.

Here's the first log I got:
2002-11-15 05:55:00 StandardContext[]: Starting
2002-11-15 05:55:00 StandardContext[]: Processing start(), current
available=false
2002-11-15 05:55:00 StandardContext[]: Configuring default Resources
2002-11-15 05:55:00 StandardContext[]: Configuring non-privileged default
Loader
2002-11-15 05:55:00 StandardContext[]: Configuring default Manager
2002-11-15 05:55:00 StandardContext[]: Processing standard container startup
2002-11-15 05:55:01 WebappLoader[]: Deploying class repositories to work
directory /usr/jakarta-tomcat-4.1.12/work/Apache/www.urlinone.com/_
2002-11-15 05:55:01 WebappLoader[]: Deploy class files /WEB-INF/classes to
/var/tomcat4/webapps/urlinone/WEB-INF/classes
2002-11-15 05:55:01 ContextConfig[]: ContextConfig: Processing START
2002-11-15 05:55:02 StandardContext[]: Setting deployment descriptor public
ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-11-15 05:55:03 StandardContext[]: Setting deployment descriptor public
ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role name tomcat used
in an auth-constraint without being defined in a security-role
2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role name role1 used
in an auth-constraint without being defined in a security-role
2002-11-15 05:55:04 ContextConfig[]:  Accumulating TLD resource paths
2002-11-15 05:55:04 ContextConfig[]:  Scanning TLD at resource path
'/WEB-INF/jsp/debug-taglib.tld'
2002-11-15 05:55:04 ContextConfig[] Exception processing TLD at resource
path /WEB-INF/jsp/debug-taglib.tld
javax.servlet.ServletException: Exception processing TLD at resource path
/WEB-INF/jsp/debug-taglib.tld
at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010
)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.IllegalArgumentException: Invalid TLD resource path
/WEB-INF/jsp/debug-taglib.tld
at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1002
)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at

Re: iis redirection to linux tomcat machine

2002-11-15 Thread Jose Antonio Martinez
here is the redirector isapi log:

#  Begin worker.properties **
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the
worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION
--
#-
#

#
# The loadbalancer (type lb) worker perform weighted
round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will
check its state
#once in a while. Until then all work is
redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location
where you
# installed tomcat. This is where you have your conf,
webapps and lib
# directories.
#
worker.tomcat_home=C:\jakarta-tomcat-4.0.1

#
# worker.java_home should point to your Java
installation. Normally
# you should have a bin and lib directories beneath
it.
#
worker.java_home=C:\jdk1.3.1

#
# You should configure your environment slash... ps=\
on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

#
#-- ADVANCED MODE

#-
#

#
#-- DEFAULT worker list
--
#-
#
# The worker that your plugins should create and work
with
worker.list=ajp13

#
#-- DEFAULT ajp13 WORKER DEFINITION
--
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to
match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost

#  End worker.properties **


 --- Jose Antonio Martinez [EMAIL PROTECTED] escribió:
 i have installed the isapi filter in the iis for
 redirection of jsp pages to a linux machine (it has
 a
 tomcat server).
 
 i have followed the documentation at:
 

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#6
 
 
 the array is green now , but when i try to view jsp
 samples, there is a problem: iis says it cant find
 the
 module !!!
 
 any idea?
 
 
 

___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: iis redirection to linux tomcat machine

2002-11-15 Thread Jose Antonio Martinez
sorry, here it is:

[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (759)]:
In HttpFilterProc Virtual Host redirection of
/www.domwindows.com/examples/
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/www.domwindows.com/examples/'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (765)]:
In HttpFilterProc test Default redirection of
/examples/
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI '/examples/'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(502)]: jk_uri_worker_map_t::map_uri_to_worker, Found
a context match remoto - /examples/
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (775)]:
HttpFilterProc [/examples/] is a servlet url - should
redirect to remoto
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/examples/] is points to the
web-inf directory
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (759)]:
In HttpFilterProc Virtual Host redirection of
/www.domwindows.com/jakarta/isapi_redirect.dll
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/www.domwindows.com/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (765)]:
In HttpFilterProc test Default redirection of
/jakarta/isapi_redirect.dll
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (829)]:
HttpFilterProc [/jakarta/isapi_redirect.dll] is not a
servlet url
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/jakarta/isapi_redirect.dll]
is points to the web-inf directory


 --- Jose Antonio Martinez [EMAIL PROTECTED] escribió:
 here is the redirector isapi log:
 
 #  Begin worker.properties
 **
 worker.ajp13.type=ajp13
 
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the
 worker.
 worker.ajp13.lbfactor=1
 
 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize
 
 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION
 --

#-
 #
 
 #
 # The loadbalancer (type lb) worker perform weighted
 round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will
 check its state
 #once in a while. Until then all work is
 redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 
 #
 # worker.tomcat_home should point to the location
 where you
 # installed tomcat. This is where you have your
 conf,
 webapps and lib
 # directories.
 #
 worker.tomcat_home=C:\jakarta-tomcat-4.0.1
 
 #
 # worker.java_home should point to your Java
 installation. Normally
 # you should have a bin and lib directories beneath
 it.
 #
 worker.java_home=C:\jdk1.3.1
 
 #
 # You should configure your environment slash...
 ps=\
 on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\
 
 #
 #-- ADVANCED MODE
 

#-
 #
 
 #
 #-- DEFAULT worker list
 --

#-
 #
 # The worker that your plugins should create and
 work
 with
 worker.list=ajp13
 
 #
 #-- DEFAULT ajp13 WORKER DEFINITION
 --

#-
 #
 
 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to
 match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 
 #  End worker.properties **
 
 
  --- Jose Antonio Martinez [EMAIL PROTECTED]
 escribió:
  i have installed the isapi filter in the iis for
  redirection of jsp pages to a linux machine (it
 has
  a
  tomcat server).
  
  i have followed 

Re: iis redirection to linux tomcat machine

2002-11-15 Thread Jose Antonio Martinez
sorry, here it is:

[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (759)]:
In HttpFilterProc Virtual Host redirection of
/www.domwindows.com/examples/
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/www.domwindows.com/examples/'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (765)]:
In HttpFilterProc test Default redirection of
/examples/
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI '/examples/'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(502)]: jk_uri_worker_map_t::map_uri_to_worker, Found
a context match remoto - /examples/
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (775)]:
HttpFilterProc [/examples/] is a servlet url - should
redirect to remoto
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/examples/] is points to the
web-inf directory
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (759)]:
In HttpFilterProc Virtual Host redirection of
/www.domwindows.com/jakarta/isapi_redirect.dll
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/www.domwindows.com/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (765)]:
In HttpFilterProc test Default redirection of
/jakarta/isapi_redirect.dll
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (829)]:
HttpFilterProc [/jakarta/isapi_redirect.dll] is not a
servlet url
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/jakarta/isapi_redirect.dll]
is points to the web-inf directory


 --- Jose Antonio Martinez [EMAIL PROTECTED] escribió:
 here is the redirector isapi log:
 
 #  Begin worker.properties
 **
 worker.ajp13.type=ajp13
 
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the
 worker.
 worker.ajp13.lbfactor=1
 
 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize
 
 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION
 --

#-
 #
 
 #
 # The loadbalancer (type lb) worker perform weighted
 round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will
 check its state
 #once in a while. Until then all work is
 redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 
 #
 # worker.tomcat_home should point to the location
 where you
 # installed tomcat. This is where you have your
 conf,
 webapps and lib
 # directories.
 #
 worker.tomcat_home=C:\jakarta-tomcat-4.0.1
 
 #
 # worker.java_home should point to your Java
 installation. Normally
 # you should have a bin and lib directories beneath
 it.
 #
 worker.java_home=C:\jdk1.3.1
 
 #
 # You should configure your environment slash...
 ps=\
 on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\
 
 #
 #-- ADVANCED MODE
 

#-
 #
 
 #
 #-- DEFAULT worker list
 --

#-
 #
 # The worker that your plugins should create and
 work
 with
 worker.list=ajp13
 
 #
 #-- DEFAULT ajp13 WORKER DEFINITION
 --

#-
 #
 
 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to
 match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 
 #  End worker.properties **
 
 
  --- Jose Antonio Martinez [EMAIL PROTECTED]
 escribió:
  i have installed the isapi filter in the iis for
  redirection of jsp pages to a linux machine (it
 has
  a
  tomcat server).
  
  i have followed 

Re: iis redirection to linux tomcat machine

2002-11-15 Thread Jose Antonio Martinez
sorry, here it is:

[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (759)]:
In HttpFilterProc Virtual Host redirection of
/www.domwindows.com/examples/
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/www.domwindows.com/examples/'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (765)]:
In HttpFilterProc test Default redirection of
/examples/
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI '/examples/'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(502)]: jk_uri_worker_map_t::map_uri_to_worker, Found
a context match remoto - /examples/
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (775)]:
HttpFilterProc [/examples/] is a servlet url - should
redirect to remoto
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/examples/] is points to the
web-inf directory
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (696)]:
HttpFilterProc started
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (759)]:
In HttpFilterProc Virtual Host redirection of
/www.domwindows.com/jakarta/isapi_redirect.dll
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/www.domwindows.com/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (765)]:
In HttpFilterProc test Default redirection of
/jakarta/isapi_redirect.dll
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(477)]: Attempting to map URI
'/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (829)]:
HttpFilterProc [/jakarta/isapi_redirect.dll] is not a
servlet url
[Fri Nov 15 12:45:40 2002]  [jk_isapi_plugin.c (838)]:
HttpFilterProc check if [/jakarta/isapi_redirect.dll]
is points to the web-inf directory


 --- Jose Antonio Martinez [EMAIL PROTECTED] escribió:
 here is the redirector isapi log:
 
 #  Begin worker.properties
 **
 worker.ajp13.type=ajp13
 
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the
 worker.
 worker.ajp13.lbfactor=1
 
 #
 # Specify the size of the open connection cache.
 #worker.ajp13.cachesize
 
 #
 #-- DEFAULT LOAD BALANCER WORKER DEFINITION
 --

#-
 #
 
 #
 # The loadbalancer (type lb) worker perform weighted
 round-robin
 # load balancing with sticky sessions.
 # Note:
 #   If a worker dies, the load balancer will
 check its state
 #once in a while. Until then all work is
 redirected to peer
 #worker.
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 
 #
 # worker.tomcat_home should point to the location
 where you
 # installed tomcat. This is where you have your
 conf,
 webapps and lib
 # directories.
 #
 worker.tomcat_home=C:\jakarta-tomcat-4.0.1
 
 #
 # worker.java_home should point to your Java
 installation. Normally
 # you should have a bin and lib directories beneath
 it.
 #
 worker.java_home=C:\jdk1.3.1
 
 #
 # You should configure your environment slash...
 ps=\
 on NT and / on UNIX
 # and maybe something different elsewhere.
 #
 ps=\
 
 #
 #-- ADVANCED MODE
 

#-
 #
 
 #
 #-- DEFAULT worker list
 --

#-
 #
 # The worker that your plugins should create and
 work
 with
 worker.list=ajp13
 
 #
 #-- DEFAULT ajp13 WORKER DEFINITION
 --

#-
 #
 
 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to
 match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 
 #  End worker.properties **
 
 
  --- Jose Antonio Martinez [EMAIL PROTECTED]
 escribió:
  i have installed the isapi filter in the iis for
  redirection of jsp pages to a linux machine (it
 has
  a
  tomcat server).
  
  i have followed 

Detecting Usage of http/1.1 by Tomcat

2002-11-15 Thread Bill Angel
Hello:

I recently installed ApacheTomcat 4.1.12-LE-jdk14. The installation appears
to function correctly, but I am experiencing difficulties  getting browsers
(IE 5.5 and Netscape 7.0) to recognize the cache-control  directives
specific to the http/1.1 protocol. I am utilizing a Servlet to send back a
Response  as follows:

if(fileName == null) {

PrintWriter out = new PrintWriter (response.getOutputStream());
 response.reset();
 response.setHeader(Pragma,no-cache);
 response.setHeader(Cache-Control,no-cache);
 response.setHeader(Cache-Control,no-store);
 response.setHeader(Cache-Control,must-revalidate);
 response.setDateHeader(Expires,-1);
 response.setContentType(text/html);
out.println(file not specified!);
out.close();
return;
}

The Servlet Response displays fine in the Browser, but the document
containing the response is cached. This leads me to
suspect that I might not actually have an http/1.1 connection between the
Browser (IE 5.5) and the Server. The Tomcat documentation
states:

   This Connector supports all of the required features of the HTTP/1.1
protocol, as described in RFC 2616, including persistent connections and
chunked encoding. If the client (typically a browser) supports only
HTTP/1.0, the Connector will gracefully fall back to supporting this
protocol as well. No special configuration is required to enable this
support.

While I did confirm that the IE 5.5 Browser is configured to utilize
http/1.1 (via the Advanced features panel of the Internet Options menu
selection), the possibility exists that the presence of a Proxy Server
between the Browser and the Tomcat Server is inhibiting the establishment of
a connection utilizing the http/1.1 protocol.

 Is it possible to detect within the Servlet code whether the connection
that was established is utilizing http/1.0 or http/1.1?
If it were, it would then be possible to indicate to the user that his
session is being terminated because it was not possible to create a
connection utilizing http/1.1.  For security reasons, I want to be able to
instruct the user's Browser, and any intermediate Proxy Servers,
NOT to cache documents being sent back to the user during his session. via
the http/1.1 Cache-Control Header functionality.

 Also, is it possible  to configure Tomcat to not drop back to using
http/1.0, when a connection utilizing http/1.1 cannot be established?

  Thanks

   Bill Angel
   Computer Scientist
   Silver Spring, Maryland
   [EMAIL PROTECTED]






RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Lee Grey
Also, when you have multiple named virtual hosts, what are you supposed to
put in workers.properties for worker.worker1.host?

To be clear, each worker is an INSTANCE of Tomcat, right?  I can have a
single instance of Tomcat serve multiple virtual domains, right?  So, which
of my multiple virtual hosts should be the one that I specify in
worker.worker1.host=www...?

Thanks,
Lee


-Original Message-
From: Lee Grey [mailto:leegrey;mindspring.com]
Sent: Friday, November 15, 2002 6:45 AM
To: [EMAIL PROTECTED]
Subject: Apache 2, Tomcat 4, Lee 0


I've fought the good fight all night, but I'm stuck.

Here's the first log I got:
2002-11-15 05:55:00 StandardContext[]: Starting
2002-11-15 05:55:00 StandardContext[]: Processing start(), current
available=false
2002-11-15 05:55:00 StandardContext[]: Configuring default Resources
2002-11-15 05:55:00 StandardContext[]: Configuring non-privileged default
Loader
2002-11-15 05:55:00 StandardContext[]: Configuring default Manager
2002-11-15 05:55:00 StandardContext[]: Processing standard container startup
2002-11-15 05:55:01 WebappLoader[]: Deploying class repositories to work
directory /usr/jakarta-tomcat-4.1.12/work/Apache/www.urlinone.com/_
2002-11-15 05:55:01 WebappLoader[]: Deploy class files /WEB-INF/classes to
/var/tomcat4/webapps/urlinone/WEB-INF/classes
2002-11-15 05:55:01 ContextConfig[]: ContextConfig: Processing START
2002-11-15 05:55:02 StandardContext[]: Setting deployment descriptor public
ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-11-15 05:55:03 StandardContext[]: Setting deployment descriptor public
ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role name tomcat used
in an auth-constraint without being defined in a security-role
2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role name role1 used
in an auth-constraint without being defined in a security-role
2002-11-15 05:55:04 ContextConfig[]:  Accumulating TLD resource paths
2002-11-15 05:55:04 ContextConfig[]:  Scanning TLD at resource path
'/WEB-INF/jsp/debug-taglib.tld'
2002-11-15 05:55:04 ContextConfig[] Exception processing TLD at resource
path /WEB-INF/jsp/debug-taglib.tld
javax.servlet.ServletException: Exception processing TLD at resource path
/WEB-INF/jsp/debug-taglib.tld
at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010
)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.IllegalArgumentException: Invalid TLD resource path
/WEB-INF/jsp/debug-taglib.tld
at
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1002
)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at

RE: Trouble installing SSL on Tomcat Standalone

2002-11-15 Thread Johan Bryssling
Hi!

I have the same problem, but have not yet solved it. (I know what the
problem means, but it doesnt help). If you come across a solution to this
please share it with you. :)

But...

However, I will not sit back and wait so I will install the Apache
server(HTTPD) and have a tomcat-mod running instead,  because I already know
that Apache handle SSL/TSL (Client Auth and others) just right.

It would have simplyfied and enhanced my implementaion phase a lot if I only
had to worry about tomcat. Now I have to worry about both HTTPD and
tomcat.  *hmmf*


Regards

/Johan

ps.. This problem is called an abstraction leakage.

-Original Message-
From: Joseph Stephen Vaithara [mailto:Josephsv;infosys.com]
Sent: den 15 november 2002 10:34
To: [EMAIL PROTECTED]
Subject: Trouble installing SSL on Tomcat Standalone


Hi ,

I have configured SSL for my tomcat standalone webserver. I am using a trial
VeriSign certificate. Now when I try to connect to tomcat Netscape throws
the message Netscape and  my host cannot communicate because they have
no common encryption algorithms

Any pointers as to where the problem would be greatly appreciated.

Steps I followed to setup SSL
1) keytool -genkey -keyalg RSA -alias tomcat -keystore ./.keystore
2) keytool -certreq -alias tomcat -keyalg RSA  -file
myhostname.csr -keystore ./.keystore
3) Got the csr file  signed by verisign
4)  keytool -import  -alias root -trustcacerts -file
myHostName.crt -keystore ./.keystore
5) keytool -delete -alias tomcat  -keystore ./.keystore  (If skip this step
then the self signed certificate is used.)

Thanks
Joe




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: remove the need for :8443 in URLs needing https:

2002-11-15 Thread Turner, John

No, you don't.  Not on a UNIX/Linux box you don't (unless you've hacked the
kernel and built your own distro, and if that's the case, what are you doing
posting questions here? ;) ), and Windows boxes are a whole other
storyif you're building a publicly accessible server based on Windows
and you plan on running services on 80 and 443, you would do well to be VERY
concerned with security.  Hacking a publicly accessible Windows server is
trivial in most cases, even with up-to-date patches.  That's why people keep
finding new Windows exploits. ;)

John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:TFohrer;t-online.de]
 Sent: Thursday, November 14, 2002 6:27 PM
 To: Tomcat Users List
 Subject: Re: remove the need for :8443 in URLs needing https:
 
 
 
 i run tomcat on port  '80' and '443' without root rights 
 
 Torsten
 
 On Thursday 14 November 2002 22:51, Turner, John wrote:
  You can run Tomcat as root and have it listen on 443, as 
 well as port 80.
  This is definitely possible, though some people try to 
 avoid running web
  services as root for security reasons.
 
  John
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:TFohrer;t-online.de]
   Sent: Wednesday, November 13, 2002 6:01 PM
   To: [EMAIL PROTECTED]
   Cc: Tomcat Users List
   Subject: Re: remove the need for :8443 in URLs needing https:
  
  
  
   how do you run tomcat on port 8443 or 443, with the 
 official tomcat
   distribtion you root rights for serving content on port 443
   under linux.
  
   cu Torsten Fohrer
  
   On Wednesday 13 November 2002 01:24, Pae Choi wrote:
That is wha the connector is for.
   
   
Pae
   
   
- Original Message -
From: Qmail List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 1:21 PM
   
Subject: remove the need for :8443 in URLs needing https:
 Hello,

 It is more difficult to re-write urls as:

   https://www.domain.com:8443/index.jsp

 as opposted to 
  https://www.domain.com/index.jsp

 How can I configure Tomcat (and/or underlying Unix box)
  
   to not need the
  
 :8443 explicit port reference in the url?

 I tried changing the https /etc/services entry to port
  
   8443 instead of
  
443,
   
 but no luck.

 Regards


 --
 To unsubscribe, e-mail:
   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
   
 For additional commands, e-mail:
   
mailto:tomcat-user-help;jakarta.apache.org
   
   
   
--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org For 
 additional
commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
  
   --
   To unsubscribe, e-mail:
 
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 
  --
  To unsubscribe, e-mail:  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
  commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk-1.3-eapi.so

2002-11-15 Thread Turner, John

My Listener tag at the Server level looks like this (4.1.12):

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so /

My Listener tag at the Host level looks like this (4.1.12):

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true
forwardAll=false
modJk=/usr/local/apache2/modules/mod_jk.so /

A snippet of my mod_jk.conf is:

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

That LoadModule line should change based on the value of modJk in the
Listener tags.

John


 -Original Message-
 From: RXZ JLo [mailto:rufoo2001;yahoo.com]
 Sent: Thursday, November 14, 2002 11:16 PM
 To: Tomcat Users List
 Subject: RE: mod_jk-1.3-eapi.so
 
 
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  You can add a parameter to the Listener tag in
  server.xml that says
  
  modJk=/my/path/to/modJk/myJkfile
  
  then that value will be written to mod_jk.conf.
  
 
 Which Listener tag - Server or Host? I added 
 modJk=path at both places and restarted tomcat.
 But couldnt see mod_jk.conf modified.
 
 
 
  That said, you can just copy mod_jk-1.3-eapi.so to
  mod_jk.so.  No need to
  use a sledgehammer when a light tap will do.
  
 
 Just to make it clear which version of mod_jk i am
 using.
 
 
  John
  
 
 Thanks, 
 rf.
 
 __
 Do you Yahoo!?
 Yahoo! Web Hosting - Let the expert host your site
 http://webhosting.yahoo.com
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: John Turner, question about your Documentation

2002-11-15 Thread Turner, John

localhost is fine when your Tomcat instance is on the same physical
machine as Apache.

Some folks separate the two, and others use load balancing (one Apache, many
Tomcats).  With Tomcat on a separate machine from Apache, the host
parameter in workers.properties would be a FQDN or an IP address of the
Tomcat server.

HTH

John

 -Original Message-
 From: Brandon Cruz [mailto:bcruz;norvax.com]
 Sent: Thursday, November 14, 2002 7:25 PM
 To: Tomcat Users List
 Subject: John Turner, question about your Documentation
 
 
 John,
 
 I'm using your documentation to try and connect tomcat 4.1.12 
 to apache
 1.3.26.  The page I am using is this one...
 http://www.johnturner.com/howto/apache1-tomcat404-howto.html.
 
 Anyway, I am looking at what you have for the 
 workers.properties file and
 see that you say to put a worker.ajp13.host=www.servername.com.
 
 Does that mean we will need to create a different 
 workers.properties file
 for every virtual host, that we will need to create a 
 separate entry for
 every virtual host?  My old setup just used 
 worker.ajp13.host=localhost and
 everything worked fine, but that was with tomcat 3.2.4.
 
 Thanks for your help!
 
 Brandon
 
 P.S.  Those documents are great, if I make any significant 
 changes for my
 configuration, I'll send them to you.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Detecting Usage of http/1.1 by Tomcat

2002-11-15 Thread Cees van de Griend
On Friday 15 November 2002 12:54, Bill Angel wrote:
 Hello:

 I recently installed ApacheTomcat 4.1.12-LE-jdk14. The installation appears
 to function correctly, but I am experiencing difficulties  getting browsers
 (IE 5.5 and Netscape 7.0) to recognize the cache-control  directives
 specific to the http/1.1 protocol. I am utilizing a Servlet to send back a
 Response  as follows:

 if(fileName == null) {

 PrintWriter out = new PrintWriter (response.getOutputStream());
  response.reset();
  response.setHeader(Pragma,no-cache);
  response.setHeader(Cache-Control,no-cache);
  response.setHeader(Cache-Control,no-store);
  response.setHeader(Cache-Control,must-revalidate);
  response.setDateHeader(Expires,-1);

Make this: response.setHeader(Expires, 1);
The time is the total number of seconds since Epoch (Jan 1 1970 00:00:00);

  response.setContentType(text/html);

You're not generating a valid HTML page, so change:
response.setContentType(text/plain);

 out.println(file not specified!);
 out.close();
 return;
 }

cut

  Is it possible to detect within the Servlet code whether the connection
 that was established is utilizing http/1.0 or http/1.1?

Yes, use: request.getProtocol().

cut

 For security reasons, I want to be able to
 instruct the user's Browser, and any intermediate Proxy Servers,
 NOT to cache documents being sent back to the user during his session. via
 the http/1.1 Cache-Control Header functionality.

You can't, this is out of you're controll. A well behaved browser should 
honour your request to not cache this page, but you have no way of enforcing 
it.

  Also, is it possible  to configure Tomcat to not drop back to using
 http/1.0, when a connection utilizing http/1.1 cannot be established?

AFAIK this happens automagically.

   Thanks

Bill Angel
Computer Scientist
Silver Spring, Maryland
[EMAIL PROTECTED]

Regards,
Cees.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: iis redirection to linux tomcat machine

2002-11-15 Thread Turner, John

First of all, you aren't going to redirect *anything* to a Linux-based
Tomcat server, from an IIS web server, with worker.ajp13.host = localhost.
You need to change host to equal the FQDN or IP address of the Linux
server.

John

 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: Friday, November 15, 2002 6:47 AM
 To: Tomcat Users List
 Subject: Re: iis redirection to linux tomcat machine
 
 
 here is the redirector isapi log:
 
 #-- DEFAULT ajp13 WORKER DEFINITION
 --
 #-
 #
 
 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to
 match.
 #
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 
 #  End worker.properties **
 
 
  --- Jose Antonio Martinez [EMAIL PROTECTED] escribió:
  i have installed the isapi filter in the iis for
  redirection of jsp pages to a linux machine (it has
  a
  tomcat server).
  
  i have followed the documentation at:
  
 
 http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#6
  
  
  the array is green now , but when i try to view jsp
  samples, there is a problem: iis says it cant find
  the
  module !!!
  
  any idea?
  
  
  
 
 ___
  Yahoo! Messenger
  Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
  Descárgalo ya desde http://messenger.yahoo.es
  
  --
  To unsubscribe, e-mail:  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
   
 
 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
 Descárgalo ya desde http://messenger.yahoo.es
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Question about webapp connector

2002-11-15 Thread Jean-Luc BEAUDET
  Hi all,

Runnin' Tomcat 4.0.2 and Apache 1.3.26 on SOLARIS 8 in Production.

I'd like to get /webapp-info/ secured by login/password - even BASIC -
when asked by

http://my.sever.com/webapp-info/

Any help welcome.

Jean-Luc B :O)




--
To unsubscribe, e-mail: 
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: tomcat 4.1.12, apache SSL on rh 7.2 - most stable configuration?

2002-11-15 Thread Nicholas Pappas
Thanks Bill,
You're correct - I saw it on httpd.apache.org-- it was in the FAQ:

http://httpd.apache.org/docs/misc/FAQ.html#SSL-i

Thanks for your reply...
Best,
Nicholas

Bill Barker wrote:

 Tomcat doesn't redistribute JSSE because of Licensing restrictions.
 However, this is mostly irrelevant if you are using Apache2+mod_jk.  When I
 download Apache2, it comes with a full mod_ssl.  And certainly, the
 restrictions shouldn't be on the jakarta.apache.org site (please provide a
 URL, so that it can be fixed).  If any (and I can't find them), they should
 be on httpd.apache.org.

 Nicholas Pappas [EMAIL PROTECTED] wrote in message
 news:3DD443B1.E27208DB;cs.nyu.edu...
  Hi all,
 
  Could someone please recommend a stable high-volume config (just
  app/module names, no config files necessary - yet :)  ) for SSL and
  non-SSL traffic served by tomcat (non-standalone) and apache on a Red
  Hat 7.2 server?
 
  I am considering using Tomcat 4.1.12, jk (not jk2 - for stability) and
  Apache 2.0.43 .  I looked at the jakarta.apache.org site and I see that
  Apache 2.0.43 doesn't include SSL support due to export concerns.
 
  Am I better off using Apache 1.3.27 or going with 2.0.43 and modssl?
 
  Sorry if this is slightly off-topic - I've read in these archives
  someone uses RH 7.2, tomcat 4.1.12 and jk for a high-volume stable
  server-- wondering if SSL is involved and what Apache version would go
  well with the rest
 
  Best regards,
 
  --
  Nicholas Pappas

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
Nicholas Pappas



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Turner, John

The host in workers.properties is not virtual host but the location of
Tomcat.

Each worker is not an instance of Tomcat.  Each worker is an instance of a
worker.

Yes, a single instance of Tomcat can server multiple virtual domains using
a Host element in server.xml for each virtual host.

So, you can have many virtual hosts in both Apache and Tomcat, but only one
worker.  The reason workers have names is because you can define multiple
workers for load balancing purposes.

John


 -Original Message-
 From: Lee Grey [mailto:leegrey;mindspring.com]
 Sent: Friday, November 15, 2002 7:05 AM
 To: Tomcat Users List
 Subject: RE: Apache 2, Tomcat 4, Lee 0
 
 
 Also, when you have multiple named virtual hosts, what are 
 you supposed to
 put in workers.properties for worker.worker1.host?
 
 To be clear, each worker is an INSTANCE of Tomcat, right?  I 
 can have a
 single instance of Tomcat serve multiple virtual domains, 
 right?  So, which
 of my multiple virtual hosts should be the one that I specify in
 worker.worker1.host=www...?
 
 Thanks,
 Lee
 
 
 -Original Message-
 From: Lee Grey [mailto:leegrey;mindspring.com]
 Sent: Friday, November 15, 2002 6:45 AM
 To: [EMAIL PROTECTED]
 Subject: Apache 2, Tomcat 4, Lee 0
 
 
 I've fought the good fight all night, but I'm stuck.
 
 Here's the first log I got:
 2002-11-15 05:55:00 StandardContext[]: Starting
 2002-11-15 05:55:00 StandardContext[]: Processing start(), current
 available=false
 2002-11-15 05:55:00 StandardContext[]: Configuring default Resources
 2002-11-15 05:55:00 StandardContext[]: Configuring 
 non-privileged default
 Loader
 2002-11-15 05:55:00 StandardContext[]: Configuring default Manager
 2002-11-15 05:55:00 StandardContext[]: Processing standard 
 container startup
 2002-11-15 05:55:01 WebappLoader[]: Deploying class 
 repositories to work
 directory /usr/jakarta-tomcat-4.1.12/work/Apache/www.urlinone.com/_
 2002-11-15 05:55:01 WebappLoader[]: Deploy class files 
 /WEB-INF/classes to
 /var/tomcat4/webapps/urlinone/WEB-INF/classes
 2002-11-15 05:55:01 ContextConfig[]: ContextConfig: Processing START
 2002-11-15 05:55:02 StandardContext[]: Setting deployment 
 descriptor public
 ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 2002-11-15 05:55:03 StandardContext[]: Setting deployment 
 descriptor public
 ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role 
 name tomcat used
 in an auth-constraint without being defined in a security-role
 2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role 
 name role1 used
 in an auth-constraint without being defined in a security-role
 2002-11-15 05:55:04 ContextConfig[]:  Accumulating TLD resource paths
 2002-11-15 05:55:04 ContextConfig[]:  Scanning TLD at resource path
 '/WEB-INF/jsp/debug-taglib.tld'
 2002-11-15 05:55:04 ContextConfig[] Exception processing TLD 
 at resource
 path /WEB-INF/jsp/debug-taglib.tld
 javax.servlet.ServletException: Exception processing TLD at 
 resource path
 /WEB-INF/jsp/debug-taglib.tld
 at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextCo
 nfig.java:1010
 )
 at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi
 g.java:870)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.
 java:647)
 at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
 xtConfig.java:
 243)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
 ifecycleSuppor
 t.java:166)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:3493)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
 org.apache.catalina.core.StandardService.start(StandardService
 .java:497)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2189)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39
 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 - Root Cause -
 java.lang.IllegalArgumentException: Invalid TLD resource path
 /WEB-INF/jsp/debug-taglib.tld
 at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextCo
 nfig.java:1002

RE: iis redirection to linux tomcat machine

2002-11-15 Thread Jose Antonio Martinez
sorry, i copy a wrong file, this is the right one:


#
# worker.tomcat_home should point to the location
where you
# installed tomcat. This is where you have your conf,
webapps and lib
# directories.
#
worker.tomcat_home=C:\jakarta-tomcat

#
# worker.java_home should point to your Java
installation. Normally
# you should have a bin and lib directories beneath
it.
#
worker.java_home=C:\jakarta-tomcat


ps=\

worker.list=remoto



worker.remoto.port=8009
worker.remoto.host=192.168.65.193
worker.remoto.type=ajp13



 --- Turner, John [EMAIL PROTECTED] escribió:  
 First of all, you aren't going to redirect
 *anything* to a Linux-based
 Tomcat server, from an IIS web server, with
 worker.ajp13.host = localhost.
 You need to change host to equal the FQDN or IP
 address of the Linux
 server.
 
 John
 
  -Original Message-
  From: Jose Antonio Martinez
 [mailto:lfbbes;yahoo.es]
  Sent: Friday, November 15, 2002 6:47 AM
  To: Tomcat Users List
  Subject: Re: iis redirection to linux tomcat
 machine
  
  
  here is the redirector isapi log:
  
  #-- DEFAULT ajp13 WORKER DEFINITION
  --
 

#-
  #
  
  #
  # Defining a worker named ajp13 and of type ajp13
  # Note that the name and the type do not have to
  match.
  #
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  
  #  End worker.properties
 **
  
  
   --- Jose Antonio Martinez [EMAIL PROTECTED]
 escribió:
   i have installed the isapi filter in the iis for
   redirection of jsp pages to a linux machine (it
 has
   a
   tomcat server).
   
   i have followed the documentation at:
   
  
 

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#6
   
   
   the array is green now , but when i try to view
 jsp
   samples, there is a problem: iis says it cant
 find
   the
   module !!!
   
   any idea?
   
   
   
  
 

___
   Yahoo! Messenger
   Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 
   Descárgalo ya desde http://messenger.yahoo.es
   
   --
   To unsubscribe, e-mail:  
  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org

  
 

___
  Yahoo! Messenger
  Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
  Descárgalo ya desde http://messenger.yahoo.es
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat 4.1.12, apache SSL on rh 7.2 - most stable configuration?

2002-11-15 Thread Turner, John

That FAQ is for Apache 1.3 (see header at top of page). 

Mod_SSL is a part of Apache 2.

For Apache 2, you'll want to look here
http://httpd.apache.org/docs-2.0/

and here
http://httpd.apache.org/docs-2.0/ssl/

for documentation.

John


 -Original Message-
 From: Nicholas Pappas [mailto:pappas;cs.nyu.edu]
 Sent: Friday, November 15, 2002 8:16 AM
 To: Tomcat Users List
 Subject: Re: tomcat 4.1.12, apache  SSL on rh 7.2 - most stable
 configuration?
 
 
 Thanks Bill,
 You're correct - I saw it on httpd.apache.org-- it was in the FAQ:
 
 http://httpd.apache.org/docs/misc/FAQ.html#SSL-i
 
 Thanks for your reply...
 Best,
 Nicholas
 
 Bill Barker wrote:
 
  Tomcat doesn't redistribute JSSE because of Licensing restrictions.
  However, this is mostly irrelevant if you are using 
 Apache2+mod_jk.  When I
  download Apache2, it comes with a full mod_ssl.  And certainly, the
  restrictions shouldn't be on the jakarta.apache.org site 
 (please provide a
  URL, so that it can be fixed).  If any (and I can't find 
 them), they should
  be on httpd.apache.org.
 
  Nicholas Pappas [EMAIL PROTECTED] wrote in message
  news:3DD443B1.E27208DB;cs.nyu.edu...
   Hi all,
  
   Could someone please recommend a stable high-volume config (just
   app/module names, no config files necessary - yet :)  ) 
 for SSL and
   non-SSL traffic served by tomcat (non-standalone) and 
 apache on a Red
   Hat 7.2 server?
  
   I am considering using Tomcat 4.1.12, jk (not jk2 - for 
 stability) and
   Apache 2.0.43 .  I looked at the jakarta.apache.org site 
 and I see that
   Apache 2.0.43 doesn't include SSL support due to export concerns.
  
   Am I better off using Apache 1.3.27 or going with 2.0.43 
 and modssl?
  
   Sorry if this is slightly off-topic - I've read in these archives
   someone uses RH 7.2, tomcat 4.1.12 and jk for a high-volume stable
   server-- wondering if SSL is involved and what Apache 
 version would go
   well with the rest
  
   Best regards,
  
   --
   Nicholas Pappas
 
  --
  To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
Nicholas Pappas



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: iis redirection to linux tomcat machine

2002-11-15 Thread Turner, John

From the log you posted:

(477)]: Attempting to map URI
'/www.domwindows.com/jakarta/isapi_redirect.dll'
[Fri Nov 15 12:45:40 2002]  [jk_uri_worker_map.c
(599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match

Does your mapping file have an entry that would satisfy the URI?  What are
the contents of uriworkermap.properties?  I don't use IIS, but it looks to
me like you're missing a piece or two.

John


 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: Friday, November 15, 2002 8:16 AM
 To: Tomcat Users List
 Subject: RE: iis redirection to linux tomcat machine
 
 
 sorry, i copy a wrong file, this is the right one:
 
 
 #
 # worker.tomcat_home should point to the location
 where you
 # installed tomcat. This is where you have your conf,
 webapps and lib
 # directories.
 #
 worker.tomcat_home=C:\jakarta-tomcat
 
 #
 # worker.java_home should point to your Java
 installation. Normally
 # you should have a bin and lib directories beneath
 it.
 #
 worker.java_home=C:\jakarta-tomcat
 
 
 ps=\
 
 worker.list=remoto
 
 
 
 worker.remoto.port=8009
 worker.remoto.host=192.168.65.193
 worker.remoto.type=ajp13
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Using Tomcat 4.1.12 with Jikes

2002-11-15 Thread christophe . baroin
Hello, 

could somebody explain me or give me the instruction for the file web.xml 
in order to use jikes with Tomcat 4.1.12 ? 

thank you in advance, 

greetings, 

Salutations,

Christophe BAROIN
JP Services 
16, Rue de Moronval 
28100 DREUX 

Tél.   : 02.37.38.92.12
Fax   : 02.37.42.87.58
E Mail :[EMAIL PROTECTED]
Visiter notre site sur http://www.jpservices.fr


RE: non Http connector

2002-11-15 Thread Turner, John

Well, JK/JK2 are their own protocols, and the CoyoteConnector class handles
them just fine.  It even can handle SSL.  Perhaps you could take a look at
org.apache.coyote.tomcat4.CoyoteConnector and see if it will help you get a
jump start on your own code.

John


 -Original Message-
 From: Yves Duhem [mailto:yves.duhem;cryptolog.com]
 Sent: Friday, November 15, 2002 4:03 AM
 To: Tomcat Users List
 Subject: Re: non Http connector
 
 
 Thanks for your answer,
 in fact I don't want to use http at all and I was wondering if it was
 possible with tomcat.
 I already have my own protocol, and since the communication will be 
 wrapped in ssl I don't need http. The only feature from http that I 
 might need is multiplexing. So I was wondering if the connector 
 architecture of tomcat allowed (without too much trouble) to 
 use another 
 protocol.
 But it's true that using http is not a big problem and I'll 
 probably end 
 up doing that.
 yves
 
 Milt Epstein wrote:
  On Thu, 14 Nov 2002, Yves Duhem wrote:
  
  
 Hi,
 I would like to use servlets and tomcat without having to 
 communicate
 via http.
 my request's first line would indicate in some way the 
 target servlet
 and the rest would be the data to transmit to the servlet
 the response would be only the data (no headers).
 (and all this would be used with SSL.)
 
 I would like to know if a connector behaving like this 
 exists somewhere,
 or if i'll have to modify one of the existing connectors 
 (and in that
 case is there any developer documentation about the 
 connector framework?).
  
  
  Are you saying that you really don't want to use HTTP (as a 
 protocol),
  or just that you want to do this outside the context of a 
 web browser?
  Because in the current HTTP framework there's nothing 
 that's stopping
  you from using it outside of a web browser.  You can, for 
 example, set
  up a java application that opens a URLConnection to a Tomcat server.
  You can even transfer objects this way (to a certain degree) instead
  of just parameters, because you'll have direct control of
  reading/writing the I/O streams.
  
  I'm not really sure what not using HTTP buys you, because 
 then you're
  essentially creating your own client/server system and defining your
  own protocol, and you have to set everything up.  If you 
 use HTTP, you
  get a lot essentially for free (including parameter passing,
  sessions, cookies, ssl, etc.)
  
  Milt Epstein
  Research Programmer
  Integration and Software Engineering (ISE)
  Campus Information Technologies and Educational Services (CITES)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org
 



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: RedHat Linux 7.2 + Apache 1.3 + Tomcat 4.1.12 + WebSPhere 4.0

2002-11-15 Thread Turner, John

Perhaps a WebSphere mailing list or support forum would be a good place to
get your questions answered. ;)

John

 -Original Message-
 From: Rudolph Araujo [mailto:rudolphoa;hotmail.com]
 Sent: Thursday, November 14, 2002 8:00 PM
 To: [EMAIL PROTECTED]
 Subject: RedHat Linux 7.2 + Apache 1.3 + Tomcat 4.1.12 + WebSPhere 4.0
 
 
 Hi,
 I am trying to setup WebSphere 4.0 (trial) on RedHat Linux 
 7.2 (Apache 1.3).  
 I downloaded the WebSphere tar ball from 
 http://www6.software.ibm.com/developerworks/offers/linux-speed
 -start/downlo
 ad.html
   
 I get a message at the start of the install that The 
 installer was not able to determine that you have a supported 
 Linux distribution. It however let's me go ahead and the 
 install does complete successfully. I opted for the Apache 
 plugin and IBM HTTPD. However, the plugin that it installs is 
 compiled without the EAPI and so I get a message in the log 
 that Apache might crash and it indeed does. I tried applying 
 the eFix for this (PQ59241) but the eFix throws a Java 
 exception and the log provides no information
 2002/11/14 01:30:27
 2002/11/14 01:30:27 Please view the activity log for details.
 Runtime exception: java.lang.ClassCastException
 2002/11/14 01:30:27 Error 91 -- Runtime exception:
 java.lang.ClassCastException
 java.lang.ClassCastException
 at DomL2Spt.findNode(DomL2Spt.java:652)
 at DomL2Spt.getValue(DomL2Spt.java:601)
 at XML_Handler.query(XML_Handler.java:111)
 at Extractor.verifyPrerequisites(Extractor.java:1569)
 at Extractor.handlePrerequisites(Extractor.java:1510)
 at Extractor.basicProcess(Extractor.java:792)
 at Extractor.process(Extractor.java:260)
 at Extractor.main(Extractor.java:203)
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: tomcat 4.1.12, apache SSL on rh 7.2 - most stable configuration?

2002-11-15 Thread Nicholas Pappas
Ah, thanks John- I clicked the FAQ link at the top of httpd.apache.org's main
page and didn't realize it was to an older FAQ.

You mentioned in one of your previous emails a while back you hadn't had to
reboot your production Tomcat server in several months despite it being very
active-- are you using it standalone or with Apache 2.0.43, or something else?

Thank you

Best,
Nicholas

Turner, John wrote:

 That FAQ is for Apache 1.3 (see header at top of page).

 Mod_SSL is a part of Apache 2.

 For Apache 2, you'll want to look here
 http://httpd.apache.org/docs-2.0/

 and here
 http://httpd.apache.org/docs-2.0/ssl/

 for documentation.

 John

  -Original Message-
  From: Nicholas Pappas [mailto:pappas;cs.nyu.edu]
  Sent: Friday, November 15, 2002 8:16 AM
  To: Tomcat Users List
  Subject: Re: tomcat 4.1.12, apache  SSL on rh 7.2 - most stable
  configuration?
 
 
  Thanks Bill,
  You're correct - I saw it on httpd.apache.org-- it was in the FAQ:
 
  http://httpd.apache.org/docs/misc/FAQ.html#SSL-i
 
  Thanks for your reply...
  Best,
  Nicholas
 
  Bill Barker wrote:
 
   Tomcat doesn't redistribute JSSE because of Licensing restrictions.
   However, this is mostly irrelevant if you are using
  Apache2+mod_jk.  When I
   download Apache2, it comes with a full mod_ssl.  And certainly, the
   restrictions shouldn't be on the jakarta.apache.org site
  (please provide a
   URL, so that it can be fixed).  If any (and I can't find
  them), they should
   be on httpd.apache.org.
  
   Nicholas Pappas [EMAIL PROTECTED] wrote in message
   news:3DD443B1.E27208DB;cs.nyu.edu...
Hi all,
   
Could someone please recommend a stable high-volume config (just
app/module names, no config files necessary - yet :)  )
  for SSL and
non-SSL traffic served by tomcat (non-standalone) and
  apache on a Red
Hat 7.2 server?
   
I am considering using Tomcat 4.1.12, jk (not jk2 - for
  stability) and
Apache 2.0.43 .  I looked at the jakarta.apache.org site
  and I see that
Apache 2.0.43 doesn't include SSL support due to export concerns.
   
Am I better off using Apache 1.3.27 or going with 2.0.43
  and modssl?
   
Sorry if this is slightly off-topic - I've read in these archives
someone uses RH 7.2, tomcat 4.1.12 and jk for a high-volume stable
server-- wondering if SSL is involved and what Apache
  version would go
well with the rest
   
Best regards,
   
--
Nicholas Pappas
  
   --
   To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 Nicholas Pappas

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
Nicholas Pappas



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: jk2 load balancing problem (only fail-over)

2002-11-15 Thread Turner, John

The Coyote connector speaks JK...there's no reason to use Ajp13Connector if
you don't want to, though I haven't seen anyone post a working conf
specifically using load-balanced JK with
org.apache.coyote.tomcat4.CoyoteConnector.

It's worth a shot.

John


 -Original Message-
 From: Nick Wesselman [mailto:nick;digivis.com]
 Sent: Friday, November 15, 2002 3:53 AM
 To: Tomcat Users List
 Subject: Re: jk2 load balancing problem (only fail-over)
 
 
 So there's no production quality code to let me load balance 
 using the 
 Coyote connector?
 
 Should I use mod_jk and the older Ajp13 connector instead?
 
 Nick
 
 On Friday, November 15, 2002, at 01:52 AM, Bill Barker wrote:
 
  Load balancing is still not implemented fully in Jk2 (it's still a 
  Beta).
  It has very nice fail-over code however.  I'm sure that the 
 Jk2 team 
  would
  welcome any patches.
 
  Nick Wesselman [EMAIL PROTECTED] wrote in message
  news:2303332D-F84E-11D6-8322-000393452A4C;digivis.com...
  I'm trying to set up jk2 load balancing for 2 Virtual 
 Hosts in Apache
  with 2 Tomcats each. I have it mostly working, except it doesn't
  actually load balance the Tomcats... however it will do 
 fail-over just
  fine if I kill one VM.
 
  All my server.xml's have the correct jvmRoute set for the Engine.
 
  Any help on how to fix or debug this?
 
  Nick Wesselman
  
 -
 
  Environment:
  RedHat 7.2
  Apache 2.0.43
  Tomcat 4.1.12
  mod_jk2
 
  workers2.properties (names obfuscated to protect the innocent):
  [logger]
  level=DEBUG
 
  [config:]
  file=/usr/local/apache2/conf/workers2.properties
  debug=0
  debugEnv=0
 
  [uriMap:]
  info=Maps the requests. Options: debug
  debug=0
 
  [logger.file:0]
  level=DEBUG
  file=/usr/local/apache2/logs/jk2.log
 
  [shm:]
  info=Scoreboard. Required for reconfiguration and status with
  multiprocess servers
  file=/usr/local/apache2/logs/jk2.shm
  size=100
  debug=0
  disabled=0
 
  [workerEnv:]
  info=Global server options
  timing=1
  debug=0
 
  [status:]
  info=Status worker, displays runtime information
 
  [uri:/jkstatus/*]
  group=status:
 
  [lb:vhost1]
  debug=0
 
  [channel.socket:vhost1_vm1]
  port=8015
  host=127.0.0.1
  debug=0
  group=vhost1
  tomcatId=vhost1_vm1
  lb_factor=1
 
  [channel.socket:vhost1_vm2]
  port=8019
  host=127.0.0.1
  debug=0
  group=vhost1
  tomcatId=vhost1_vm2
  lb_factor=1
 
  [uri:www.vhost1.com]
  info=blah
 
  [uri:www.vhost1.com/*.jsp]
  group=vhost1
  info=blah
 
  [lb:vhost2]
  debug=0
 
  [channel.socket:vhost2_vm1]
  port=8015
  host=127.0.0.1
  debug=0
  group=vhost2
  tomcatId=vhost2_vm1
  lb_factor=1
 
  [channel.socket:vhost2_vm2]
  port=8019
  host=127.0.0.1
  debug=0
  group=vhost2
  tomcatId=vhost2_vm2
  lb_factor=1
 
  [uri:www.vhost2.com]
  info=blah
 
  [uri:www.vhost2.com/*.jsp]
  group=vhost2
  info=blah
 
 
 
 
 
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JK2 unixsocket: Can't create apr

2002-11-15 Thread Turner, John

The list is the best place to post the HOWTOs for now, I think.  I know I,
for one, will save it and repost it for others as needed, with proper
attribution.

John

 -Original Message-
 From: Robert Williams [mailto:rcw1;pacbell.net]
 Sent: Friday, November 15, 2002 2:31 AM
 To: 'Tomcat Users List'
 Subject: RE: JK2 unixsocket: Can't create apr
 
 
 Hi, 
 I just wanted to let you know that I finally figured it out. I was 1)
 forgetting to move a couple of jars from the connector 
 directory and 2)
 there was a conflict between one of the new jars and the old one it
 replaced. It also needed to be moved from  CATALINA_HOME/bin to
 CATALINA_HOME/common/lib. I have put together a little mini 
 HOWTO on how
 to get the Unix socket running on JK2 and Solaris 9. Is there 
 a place to
 post HOWTOs?
 Thanks for all of your support,
 Robert Williams
 
 
 HOWTO set up JK2 on Solaris 9 using ChannelUnix (AF_UNIX socket)
 
 I am using the following:
 
 jakarta-tomcat-4.1.12 (binary)
 jakarta-tomcat-connectors-4.1.12-src
 Apache httpd-2.0.43 (source)
 j2sdk-1_4_1_01-solaris-sparc
 jakarta-ant-1.5.1
 
 BUILD APACHE
 cd httpd-2.0.43/
 ./configure --with-mpm=worker --enable-so --enable-layout=Apache
 --enable-module=most --enable-mods-shared=most
 
 Alter the config to suit your needs.
 The --enable-so is important for JK2 connector.
 I used the Apache layout which puts it it in /usr/local/ 
 so that it
 would not interfere with the Solaris packages. If you would 
 like to use
 the Solaris layout use --enable-layout=Solaris and alter 
 following paths
 to suit. 
 
 make 
 make install
 
 Edit http.conf
 User nobody
 Group other ( or whatever you want as long as it is the 
 same as the
 group of tomcat)
 
 
 BUILD THE TOMCAT CONNECTOR JK2
 
 - build the java jar files
 cd ${connector.home}
 ant
 
 - build the native code
 cd ${connector.home}/jk/native2
 sh ./buildconf.sh
 
 cp  /usr/java/include/solaris/* /usr/java/include/
 
 CPPFLAGS=-DBSD_COMP  ./configure \
   --with-apxs2=/usr/local/apache2/bin/apxs \
   --with-tomcat41=/usr/local/tomcat \
   --with-java-home=${JAVA_HOME} \
   --with-java-platform=2 \
   --with-jni
 
 make CPPFLAGS=-DBSD_COMP
 
 INSTALL FILES
 Edit or create the following files. 
 
 /usr/local/apache2/conf/workers2.properties
 
 # workers2.properties
 [shm]
 file=${serverRoot}/logs/shm.file
 size=1048576
 
 # Example unixsocket channel.
 [channel.un:unixsocket]
 file=/usr/local/tomcat/work/jk2.socket
 
 # define the worker
 [ajp13:unixsocket]
 channel=channel.un:unixsocket
 
 # Uri mapping
 [uri:/examples/*]
 worker=ajp13:unixsocket
 
 # end workers2.properties
 
 
 /usr/local/tomcat/conf/jk2.properties 
 
 # jk2.properties
 
 # list of needed handlers.
 handler.list=apr,channelUnix,request
 
 # Location of the socket.
 channelUnix.file=${jkHome}/work/jk2.socket
 
 # Dynamic library
 jtc=/export/home/rcw/jakarta-tomcat-connectors-4.1.12-src
 apr.NativeSo=${jtc}/jk/build/jk2/apache2/jkjni.so
 
 # end jk2.properties
 
 MOVE DRIVERS AND JARS
 
 cd jakarta-tomcat-connectors-4.1.12-src
 cp jtc.jar /usr/local/tomcat/common/lib/
 
 cd jakarta-tomcat-connectors-4.1.12-src/jk/build/lib
 cp tomcat-jni.jar  /usr/local/tomcat/common/lib/
 rm  /usr/local/tomcat/bin/tomcat-jni.jar (back up if you want)
 
 cd jakarta-tomcat-connectors-4.1.12-src/jk/build/jk2/apache2/
 cp mod_jk2.so /usr/local/apache2/modules/
 
 
 SET UP ENVIRONMENT
 
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apache2/lib
 export JAVA_HOME /usr/java
 export CATALINA_HOME /usr/local/tomcat
 export CATALINA_BASE (if you use --enable-layout=Solaris)
 
 
 START HER UP
 
 /usr/local/tomcat/bin/catalina.sh start
 Wait a bit for it to load 
 you can check progress in 
 /usr/local/tomcat/logs/catalina.out
 
 /usr/local/apache2/bin/apachectl start
 
 You should now be able to view the /examples/* directory from 
 http://localhost:8080/examples/ (tomcat) and 
 more importantly http://localhost/examples/ (apache with jk2) 
 
 My build environment for this project is:
 Solaris 9 (32 bit)
 autoconf-2.54-sol9-sparc-local.gz
 tar-1.13.19-sol9-sparc-local.gz (the jakarta files 
 require this tar.
 The Solaris one won't work)
 m4-1.4-sol9-sparc-local
 automake-1.7.1-sol9-sparc-local
 make-3.80-sol9-sparc-local.gz
 libtool-1.4
 
 For errors or comments pleas feel free to contact me 
 Robert at [EMAIL PROTECTED]
 -Original Message-
 From: Brzezinski, Paul J [mailto:Paul.Brzezinski;EDS.COM] 
 Sent: Thursday, November 14, 2002 5:51 PM
 To: Tomcat Users List
 Subject: Re: JK2 unixsocket: Can't create apr
 
 
 Robert Williams wrote:
 
 Thanks for the info however I have not had any luck. I have 
 put tried 
 putting the commons-logging-api.jar in 

Sun's JSTL and Jakarta taglib

2002-11-15 Thread Zsolt Koppany
Hi,

what is the difference between Sun's JSTL and Jakarta taglib? First I thought 
they are the same, but the SQL interface seems to be different.

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat 4.1.12, apache SSL on rh 7.2 - most stable configuration?

2002-11-15 Thread Turner, John

It's running tomcat 3.1 and Apache 1.3.27, with JServ (ajp12)...uptime is
160+ days.  There are 15 instances of Tomcat on there, and it is fairly
active, though I don't have any hard stats at the moment.  Some of the
Tomcats have been restarted a couple of times, mostly due to patches being
applied or adding a new Context here and therewe have a monthly
maintenance window for that purpose.  The stability can be attributed to the
gentlemen who designed the system and the app and built the original
installation, not to me, however.  I came into the picture after the fact,
and I am still learning tips and tricks from analyzing how they set things
up.  That's one of the reasons I am more than a little confident in
Tomcat...to have the stability that we have, in a version that old, is a
pretty good vote of confidence in my book.

John

 -Original Message-
 From: Nicholas Pappas [mailto:pappas;cs.nyu.edu]
 Sent: Friday, November 15, 2002 8:43 AM
 To: Tomcat Users List
 Subject: Re: tomcat 4.1.12, apache  SSL on rh 7.2 - most stable
 configuration?
 
 
 Ah, thanks John- I clicked the FAQ link at the top of 
 httpd.apache.org's main
 page and didn't realize it was to an older FAQ.
 
 You mentioned in one of your previous emails a while back you 
 hadn't had to
 reboot your production Tomcat server in several months 
 despite it being very
 active-- are you using it standalone or with Apache 2.0.43, 
 or something else?
 
 Thank you
 
 Best,
 Nicholas
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Contribution to the running.txt file for thje admin and manager web apps.

2002-11-15 Thread Cox, Charlie
file this as an enhancement in bugzilla. This is the best way to make sure
it is not overlooked.

Charlie

 -Original Message-
 From: Sriram N [mailto:sriramx_2000;yahoo.com]
 Sent: Saturday, November 09, 2002 11:20 AM
 To: [EMAIL PROTECTED]
 Subject: Contribution to the running.txt file for thje admin 
 and manager
 web apps.
 
 
 Hello,
 
 Since the running.txt does not contain any kickstart 
 information for the
 manager and admin web applications, here's something that we 
 could use as a
 placeholder until something better is developed.
 
 I was thinking of placing this paragraph before the (5) 
 Troubleshooting section
 in the file running.txt
 
 *
 The Manager and the Admin web applications.
 ---
 These web applications can be used to maintain the Tomcat. 
 They are priveleged
 web applications.
 If you are using the Memory Realm (which is the default), 
 then the access can
 be configured from the
 $CATALINA_HOME$/conf/tomcat-users.xml.
 
 This file contains a few predefined roles and users for such roles.
 To access the manager application with the username mgr and 
 the password
 pwd , add the following line to tomcat-users.xml
   user username=mgr password=pwd roles=manager/
  The manager web application is documented in the 
 Manger-Howto, a part of the
 Tomcat documentation.
 
 To access the admin application with the username adm and 
 the password pwd,
 add the following line to tomcat-users.xml
   user username=adm password=pwd roles=admin/ 
 The admin web application does not have a dedicated 
 documentation page.
 Contributions are welcome.
 *
 
 Sriram
 
 __
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive greatest hits videos
 http://launch.yahoo.com/u2
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Sun's JSTL and Jakarta taglib

2002-11-15 Thread peter lin

there seems to be a common mis-understading about Jakarta taglibs.
taglibs includes a bunch of stuff. Most of it is JSP 1.1, but jakarta
JSTL for jsp 1.2 is the official RI for JSTL.

If you're comparing the dbtags in jakarta to JSTL, then yes, they are
different. JSTL's sql support was inspired by dbtag, but JSTL does more
and in my opinion a refine of the original dbtags.

peter


Zsolt Koppany wrote:
 
 Hi,
 
 what is the difference between Sun's JSTL and Jakarta taglib? First I thought
 they are the same, but the SQL interface seems to be different.
 
 Zsolt
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: tomcat 4.1.12, apache SSL on rh 7.2 - most stable configuration?

2002-11-15 Thread Nicholas Pappas
Thanks John,
I appreciate your insights -- and your help throughout your many emails to the
list!

Best,
Nicholas

Turner, John wrote:

 It's running tomcat 3.1 and Apache 1.3.27, with JServ (ajp12)...uptime is
 160+ days.  There are 15 instances of Tomcat on there, and it is fairly
 active, though I don't have any hard stats at the moment.  Some of the
 Tomcats have been restarted a couple of times, mostly due to patches being
 applied or adding a new Context here and therewe have a monthly
 maintenance window for that purpose.  The stability can be attributed to the
 gentlemen who designed the system and the app and built the original
 installation, not to me, however.  I came into the picture after the fact,
 and I am still learning tips and tricks from analyzing how they set things
 up.  That's one of the reasons I am more than a little confident in
 Tomcat...to have the stability that we have, in a version that old, is a
 pretty good vote of confidence in my book.

 John

  -Original Message-
  From: Nicholas Pappas [mailto:pappas;cs.nyu.edu]
  Sent: Friday, November 15, 2002 8:43 AM
  To: Tomcat Users List
  Subject: Re: tomcat 4.1.12, apache  SSL on rh 7.2 - most stable
  configuration?
 
 
  Ah, thanks John- I clicked the FAQ link at the top of
  httpd.apache.org's main
  page and didn't realize it was to an older FAQ.
 
  You mentioned in one of your previous emails a while back you
  hadn't had to
  reboot your production Tomcat server in several months
  despite it being very
  active-- are you using it standalone or with Apache 2.0.43,
  or something else?
 
  Thank you
 
  Best,
  Nicholas
 

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
Nicholas Pappas



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: build file for ant

2002-11-15 Thread Jacob Kjome

That would be ignoring the fact that there exists an Application 
Developer's Guide in the Tomcat documentation.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

Jake

At 05:22 PM 11/15/2002 +0800, you wrote:
That would be a question for the ant group.  But I've attached a sample 
none the same.
Cheers.

sathya wrote:

hi all,
 I wanted to know how to build the project using ant..Kindly help me.
I am using Tomcat 4.1.10.Does anybody using ant have any scipts.??
bbye
Sathya



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org







?xml version=1.0?

project name=SAPTest basedir=. default=all
target name=all
!-- WRITEME --
mkdir dir=SAPTest/
mkdir dir=SAPTest/WEB-INF/
mkdir dir=SAPTest/img/

copy todir=SAPTest/WEB-INF
fileset dir=Source/SAPSource/WEB-INF/
/fileset
/copy

copy todir=SAPTest 
fileset dir=Source/SAPSource
include name=*.jsp/
include name=*.properties/
include name=*.txt/
include name=*.htm/
include name=*.js/
include name=*.css/
include name=crontab/
/fileset
/copy
 war warfile=iwhack.war webxml=Source/SAPSource/WEB-INF/web.xml
fileset dir=Source/SAPSource//
   /war
   delete dir=SAPTest/

/target
/project
--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: JDBC Policy connection problem

2002-11-15 Thread Jacob Kjome

Can you connect to your MySQL server via a basic application started with 
the java command rather than trying to do it within the container?  You 
should do this to make sure it works first.

Jake

At 12:21 AM 11/15/2002 -0800, you wrote:
I am having some issues with trying to use my JDBC driver to connect to a 
mySQL server. I get the following error in my catalina.out file:

java.sql.SQLException: Cannot connect to MySQL server on 
dbox.dnsalias.net:3306. Is there a MySQL server running on the 
machine/port you are trying to connect to? 
(java.security.AccessControlException)

Yet, there most certainly is a server running at that location. In fact, I 
dont get this error when I start tomcat without the -security option. This 
obviously narrows the problem down to a policy setting. So I added the 
following grant (based on a sample that was commented out in catalina.policy:

grant codeBase 
file:/usr/share/tomcat4/webapps/bookstore/WEB-INF/lib/mysql-connector-java-2.0.14-bin.jar!/- 
{
 permission java.net.SocketPermission dbox.dnsalias.net:3306, 
connect;
};

I've restarted the server with this added but it still gives me the error 
message shown earlier when I try to establish the connection. Any idea's 
what I should change this grant to? Or if there is another one I need to add?

--
Trevor MacPhail


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: Debugging JSPs using Tomcat 3.2.3 and NetBeans 3.3.2

2002-11-15 Thread Larry Isaacs
Reading of the conf/web.xml go turned off for Tomcat 3.2.x,
though the file is still present.  You should add the XML
below to the WEB-INF/web.xml for the webapps you want to
debug.

Cheers,
Larry

 -Original Message-
 From: Bruce Dahms [mailto:bdahms;netscape.net] 
 Sent: Thursday, November 14, 2002 4:28 PM
 To: [EMAIL PROTECTED]
 Subject: Debugging JSPs using Tomcat 3.2.3 and NetBeans 3.3.2
 
 
 I'm using NetBeans 3.3.2 with an EXTERNAL instance of Tomcat 
 3.2.3.  I'm 
 trying to configure Tomcat so I can watch JSP variables and 
 expressions.  
 Here is how I'm starting Tomcat:
 
  start Tomcat 3.2.3 
C:\Java\1.3.0_02\bin\java -classic -Xdebug 
-Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address= 
-Dtomcat.home=C:\jakarta-tomcat-3.2.3 
org.apache.tomcat.startup.Tomcat
 
 Once Tomcat is running, I can attach to it from NetBeans via 
 dt_socket on 
 port .  I can then mount the compiled servlet in NetBeans, set 
 a breakpoint, and execute up to that breakpoint.  What I cannot do is 
 watch variables or expressions.  If I specify a variable to watch, 
 NetBeans tells me the Identifier cannot be resolved.  
 
 At the top of the variables list in the NetBeans debugger window is 
 the message source compiled without -g option.  This leads me to 
 believe Tomcat isn't creating the servlet with the required 
 debugging information.  I enabled the classdebuginfo parameter in 
 Tomcat's WEB.XML, but this seems to have no effect.  Here's 
 an excerpt:
 
  servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.runtime.JspServlet/servlet-class
init-param
  param-nameclassdebuginfo/param-name
  param-valuetrue/param-value
/init-param
load-on-startup-2147483646/load-on-startup
  /servlet
  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
  /servlet-mapping
 
 Any suggestions?  The application I'm using requires Tomcat 3.2.3.  I 
 cannot use a different version of Tomcat.
 
 Bruce
 
 
 
 __
 The NEW Netscape 7.0 browser is now available. Upgrade now! 
 http://channels.netscape.com/ns/browsers/downl oad.jsp 
 
 Get 
 your own FREE, personal Netscape Mail account 
 today at http://webmail.netscape.com/
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Programmatic login

2002-11-15 Thread Juergen Weber
Hello,

we have a portal. Now the marketing people want that
on the portal page be a form with user and password
field. After submitting the user should be logged in.

First this looked like a very easy to do feature.

We use container managed security to protect some
pages.

So submitting the above mentioned form should simply
authenticate the user with the container.

As simple as that seems, I cannot find any way to do
this via the servlet API.

Two posts by Craig R. McClanahan

(http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-user;jakarta.apache.orgmsgId=297658
and 
http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-user;jakarta.apache.orgmsgId=297211)

suggest, that this is in fact not possible.

If that is indeed the case, this is a big deficiency
of the servlet specification.

Or is there another solution? 

Thank you,
Juergen


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




AW: JDBC Policy connection problem

2002-11-15 Thread Torsten Fohrer


 -Ursprüngliche Nachricht-
 Von: Jacob Kjome [mailto:hoju;visi.com]
 Gesendet: Freitag, 15. November 2002 15:16
 An: Tomcat Users List
 Betreff: Re: JDBC Policy connection problem
 
 
 
 Can you connect to your MySQL server via a basic application 
 started with 
 the java command rather than trying to do it within the 
 container?  You 
 should do this to make sure it works first.
 
 Jake
 
 At 12:21 AM 11/15/2002 -0800, you wrote:
 I am having some issues with trying to use my JDBC driver to 
 connect to a 
 mySQL server. I get the following error in my catalina.out file:
 
 java.sql.SQLException: Cannot connect to MySQL server on 
 dbox.dnsalias.net:3306. Is there a MySQL server running on the 
 machine/port you are trying to connect to? 
 (java.security.AccessControlException)
 
 Yet, there most certainly is a server running at that 
 location. In fact, I 
 dont get this error when I start tomcat without the 
 -security option. This 
 obviously narrows the problem down to a policy setting. So I 
 added the 
 following grant (based on a sample that was commented out in 
 catalina.policy:
 
 grant codeBase 
 file:/usr/share/tomcat4/webapps/bookstore/WEB-INF/lib/mysql-
connector-java-2.0.14-bin.jar!/- 
{
  permission java.net.SocketPermission dbox.dnsalias.net:3306, 
 connect;
};

I've restarted the server with this added but it still gives me the error 
message shown earlier when I try to establish the connection. Any idea's 
what I should change this grant to? Or if there is another one I need to
add?

--
Trevor MacPhail


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Using Tomcat 4.1.12 with Jikes

2002-11-15 Thread Jacob Kjome

First, if you are running Tomcat under Windows you can quit thinking about 
using Jikes right now because of a number of bugs (search the list).  If 
you are running under Linux, keep reading.

First, install Jikes and put it in the path for you shell.  Also put 
tools.jar, rt.jar and dt.jar in your CLASSPATH:

Put the following in CATALINA_OPTS:

-Dbuild.compiler.emacs=true

now go into the default web.xml and add the following to the jsp servlet:

init-param
param-namecompiler/param-name
param-valuejikes/param-value
/init-param
init-param
!-- use this only if you get errors
 reporting that jikes can't use
 UTF-8 --
param-namejavaEncoding/param-name
param-valueISO-8859-1/param-value
/init-param

That should be about it.

Jake

At 02:31 PM 11/15/2002 +0100, you wrote:
Hello,

could somebody explain me or give me the instruction for the file web.xml
in order to use jikes with Tomcat 4.1.12 ?

thank you in advance,

greetings,

Salutations,

Christophe BAROIN
JP Services
16, Rue de Moronval
28100 DREUX

Tél.   : 02.37.38.92.12
Fax   : 02.37.42.87.58
E Mail :[EMAIL PROTECTED]
Visiter notre site sur http://www.jpservices.fr



RE: Programmatic login

2002-11-15 Thread Jim Krygowski
Hi Jurgen-

It is possible to subclass FormAuthenticator so that it short-circuts the
typical servlet login process.  What you need to do is define a standard
login url in your applications, I chose /security and parameterize the url
with information like j_username, j_password, j_redirect_url.  This
information is then used to authenticate with the realm and forward on to
the desired resource.  It's pretty straight forward and I think you can find
a good example of it if you cull through the archives for this mailing list.

HTH,

jk

 -Original Message-
 From: Juergen Weber [mailto:weberjn;yahoo.com]
 Sent: Friday, November 15, 2002 8:42 AM
 To: [EMAIL PROTECTED]
 Subject: Programmatic login


 Hello,

 we have a portal. Now the marketing people want that
 on the portal page be a form with user and password
 field. After submitting the user should be logged in.

 First this looked like a very easy to do feature.

 We use container managed security to protect some
 pages.

 So submitting the above mentioned form should simply
 authenticate the user with the container.

 As simple as that seems, I cannot find any way to do
 this via the servlet API.

 Two posts by Craig R. McClanahan

 (http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-user
@jakarta.apache.orgmsgId=297658
 and
 http://archives.apache.org/eyebrowse/ReadMsg?listName=tomcat-user;
jakarta.apache.orgmsgId=297211)

suggest, that this is in fact not possible.

If that is indeed the case, this is a big deficiency
of the servlet specification.

Or is there another solution?

Thank you,
Juergen


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Programmatic login

2002-11-15 Thread Ralph Einfeldt
The only solution that I see, is to use your
own security.

One solution: use a Filter that is mapped to 
every request. Check if username and passwort 
are present, validate them and place a user
object in the session. Where ever you want to
have diffen content for an authenticated user 
you can query for that object to show the 
content.

As we have implemented something like that, 
quite before something like realms came to 
the world, I havn't looked at the details 
of realms. So I'm not shure how much of the 
Realms you can reuse to implement this.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Original Message-
 From: Juergen Weber [mailto:weberjn;yahoo.com]
 Sent: Friday, November 15, 2002 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: Programmatic login
 
 
 we have a portal. Now the marketing people want that
 on the portal page be a form with user and password
 field. After submitting the user should be logged in.
 
 First this looked like a very easy to do feature.
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Hugo Villeneuve

Hello Bill Baker

I don’t know much about “partial-request” and the HTTP 1.1 Header (I will
read about that) but for now all my tests make it looks like a combination
of Adobe with Tomcat 4.1 problem.

Like you said, there is multiple request for the same document. One call is
made by the IE5 till it realize it is a pdf, IE drop’s the connection, start
the Adobe plug-in, then Adobe call the server again to download the pdf.

What do you suggest?
Dropping Tomcat 4.1 and go back on tomcat 3.3 to fix header issues ( I can
not drop Adobe…) ?
Can I use the Servlet API to fix my problem ?

By the way, my pdf is comming from a BLOB i a Oracle D.B

Thanks for the response.

-Original Message-
From: news [mailto:news;main.gmane.org]On Behalf Of Bill Barker
Sent: Friday, November 15, 2002 3:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
4.1


Well, they are pretty significant.  3.3.x (at least until the
yet-to-be-released 3.3.2) stand-alone ignores HTTP/1.1 headers on the
request.  Even 3.3.2 will ignore the partial-request that Adobe is so fond
of issuing for a pdf (which is it's right under the HTTP/1.1 spec, even if
it is not the recomended behavior).

At a guess, your servlet can't handle Adobe's partial-request statements,
and is getting confused when Adobe issues multiple request for the same
document.

Hugo Villeneuve [EMAIL PROTECTED] wrote in message
news:NFBBKMKLCMGJANFCBENAOEKLCEAA.hvilleneuve;b-wax.com...

 Hello,
 I was surprise how easy it was moving from tomcat 3.3 to 4.1. Except for
 something, pdf files. I generate dynamically pdf file Inside a Struts
 Action.

 I took me a while to figure out how to pop the Adobe reader inside MSIE 5
 browser by tweaking to response header (header key like
Content-Disposition,
 inline; filename=myFile.pdf ). Now avery think is working fine with IE5
and
 tomcat 3.3
 When I switch to Tomcat 4 the browser does not pop the Adobe reader but
ask
 me to save the file on disk . I read some issues about calling a PDF via a
 GET v.s a  POST and I think the problem is there.

 What is the difference between Tomcat 3.2 HTTP Header and 4.1 Header ?

 Any information about that ?


 My System :
 -  Win NT
 - Struts 1.0
 - Tomcat 3.2 --- 4.1

 thank you

 Hugo Villeneuve
 www.b-wax.com








--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Ralph Einfeldt
Some options: (All not very nice)
- run tomcat behind apache.
- rewrite your servlet to implement http1.1
  (Have a look at the tomcat source of the tomcat
   servlet that serves the files (Can't remember 
   the name)
- store the blob in the file system and redirect 
  the browser to that file (so tomcat would serve 
  the file)
- Don't know if there is a possibility to downgrade 
  the http version in tomcat.

 -Original Message-
 From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
 Sent: Friday, November 15, 2002 3:39 PM
 To: Tomcat Users List
 Subject: RE: Serving PDF files gets different results from 
 Tomcat 3.3 to
 4.1
 
 I don't know much about partial-request and the HTTP 1.1 
 Header (I will read about that) but for now all my tests
 make it looks like a combination of Adobe with Tomcat 4.1 problem.
  
 What do you suggest?
 Dropping Tomcat 4.1 and go back on tomcat 3.3 to fix header 
 issues ( I can
 not drop Adobe...) ?
 Can I use the Servlet API to fix my problem ?
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




How to see JSP error messages while tomcat is running

2002-11-15 Thread Steven Peterson
I recently upgraded from tomcat 3 to tomcat 4.1.12 and am having trouble
debugging new jsp pages as I add them.  Whereas tomcat 3 would send the
error output of a jsp to the html page (making it easy to identify the
problem, fix it, and test it again), tomcat 4 sends the output to the
context's log file.  This would not be so bad, but the log file is
locked by my operating system (Windows 98 se) until tomcat is shutdown.
The upshot is that for every error, I have to shut down tomcat to see
what the error was.  Is there any way to see the error output of a jsp
page without shutting down tomcat either by a) having the output sent to
the html stream; or b) having the log file accessible while tomcat is
running; or c) . . . ?

Thanks,

- Steve Peterson

--
Steven Peterson, President
Frontier Productions, Inc.
310 Wesley Drive
Chapel Hill, NC 27516
http://www.frontierproductions.net
Tel: 919-942-1386
Fax: 919-933-2677



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat 4.1.12 - Incompatible type for getting or setting field

2002-11-15 Thread B W
Jeff:

I post a similar message several days ago but no
response.  I think I figure it out yesterday.  It's
because of the bug in jasper-compiler.jar(in
common/lib) for jsper2.  You can either upgrate tomcat
to 4.15 or copy the old jasper-compiler.jar from 4.06
which is using jsper1. 

HTH,
Bin

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Tim Funk
Examine the HTTP headers coming back. It may be as easy as 
adding/removing a new header.

How to look at headers coming back:
telnet webserver.running.tomcat3 80
GET /myServet/givesme/pdfFile HTTP/1.1
Connection: Close
Host: needsFilledIn


Then repeat for your tomcat 4 version.

-Tim


Ralph Einfeldt wrote:
Some options: (All not very nice)
- run tomcat behind apache.
- rewrite your servlet to implement http1.1
  (Have a look at the tomcat source of the tomcat
   servlet that serves the files (Can't remember 
   the name)
- store the blob in the file system and redirect 
  the browser to that file (so tomcat would serve 
  the file)
- Don't know if there is a possibility to downgrade 
  the http version in tomcat.


-Original Message-
From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
Sent: Friday, November 15, 2002 3:39 PM
To: Tomcat Users List
Subject: RE: Serving PDF files gets different results from 
Tomcat 3.3 to
4.1

I don't know much about partial-request and the HTTP 1.1 
Header (I will read about that) but for now all my tests
make it looks like a combination of Adobe with Tomcat 4.1 problem.

What do you suggest?
Dropping Tomcat 4.1 and go back on tomcat 3.3 to fix header 
issues ( I can
not drop Adobe...) ?
Can I use the Servlet API to fix my problem ?

 



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache + one TC for each webapp

2002-11-15 Thread Srinadh Karumuri
John,

I started to look into it and then realized that there is no 
workers.properties with my tomcat. I checked the docs and found that they 
started it with TCv3.2. Mine is TCv3.1. To be more specific.
Apachev1.3.14 + ajpv12 + Tomcatv3.1

It looks like TCv3.1 docs are pulled off web.
I am back to square one.

I am investigating the archives. Please let me know if have any ideas?

Thank you in advance,
-Sri

At 08:09 AM 11/12/2002, Turner, John wrote:

Set up 4.1.12 in a completely different directory.  Modify server.xml so
there are no port conflicts with your 3.x instance.

In httpd.conf add JkMounts for app2, point them to a different worker than
app1.  Assign a different port to the new worker in workers.properties.
Make sure the Coyote/JK2 (or Ajp13) connector in the 4.1.12 server.xml is
listening on the same port as the new worker.

That should be the bulk of it.

John


 -Original Message-
 From: Srinadh Karumuri [mailto:skarumur;bbn.com]
 Sent: Monday, November 11, 2002 4:05 PM
 To: [EMAIL PROTECTED]
 Subject: Apache + one TC for each webapp


 All,

 I read many postings on how to configure multiple tomcats for load
 balancing etc. But my case is genuine (I feel).
 :)

 We have a web site up and running for 1 1/2 yrs. using Apache
 1.3, mod_jk
 and tomcat 3.1 and we access it as below:

 https://myhost.domain.com/myapp1

 Now we need to add another app using tomcat 4.1.12. We don't want to
 upgrade myapp1 to TC4 right now. Is there any way to setup
 the second
 tomcat/apache to access the second application as below:

 https://myhost.domain.com/myapp2


 I don't want to access the second app as below (unless it is
 the last resort) :
 https://myhost.domain.com:9090/myapp2

 Any ideas?
 Thanks for any help.
 -Sri


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




TC authentication: j_security_check and url-pattern

2002-11-15 Thread Andrew Geery
I'm using form-based authentication in Tomcat 4.1.12 -- it works great!

However, I have two questions about Tomcat authentication:

1) Many end-users bookmark the login page. So, the first time they login
everything works as expected, but when they use the bookmark, they get the
invalid reference form login page. Is there a way to specify a page for
Tomcat to redirect the user to after authentication in the case that the
user goes directly to the login page? I've seen this question come up in the
archives, but I haven't seen a solution other than user education :). The
closest thing I've seen is 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8976
Does anyone know the status of this enhancement? Is there some other
workaround?

2) I have some images I want to use on the login page. If I use
url-pattern/*/url-pattern in the web.xml file, the pictures are blocked
from being displayed. In the web.xml file, I would like to say, 'protect all
files except the images used on the login page'. Is there a way to do this;
that is, rather than saying, 'protect x, y and z', is it possible to say,
'protect everything except a, b and c'? I haven't seen anything like this in
the documentation.

Thanks
Andrew



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache + one TC for each webapp

2002-11-15 Thread Turner, John

If you are using ajp12, in httpd.conf you will see a line that looks like
this:

 ApJServMount /servlet ajpv12://some.host.com:/servlet

The port number is right on the URL.  So, setup 4.1.12, and make sure there
aren't any connectors listening on any of the ports used in your ajpv12
statements.  At that point, you can pretty much do whatever you like with
your 4.1.12 instance.

John


 -Original Message-
 From: Srinadh Karumuri [mailto:skarumur;bbn.com]
 Sent: Friday, November 15, 2002 10:28 AM
 To: Tomcat Users List; 'Tomcat Users List'
 Subject: RE: Apache + one TC for each webapp
 
 
 John,
 
 I started to look into it and then realized that there is no 
 workers.properties with my tomcat. I checked the docs and 
 found that they 
 started it with TCv3.2. Mine is TCv3.1. To be more specific.
 Apachev1.3.14 + ajpv12 + Tomcatv3.1
 
 It looks like TCv3.1 docs are pulled off web.
 I am back to square one.
 
 I am investigating the archives. Please let me know if have any ideas?
 
 Thank you in advance,
 -Sri
 
 At 08:09 AM 11/12/2002, Turner, John wrote:
 
 Set up 4.1.12 in a completely different directory.  Modify 
 server.xml so
 there are no port conflicts with your 3.x instance.
 
 In httpd.conf add JkMounts for app2, point them to a 
 different worker than
 app1.  Assign a different port to the new worker in 
 workers.properties.
 Make sure the Coyote/JK2 (or Ajp13) connector in the 4.1.12 
 server.xml is
 listening on the same port as the new worker.
 
 That should be the bulk of it.
 
 John
 
 
   -Original Message-
   From: Srinadh Karumuri [mailto:skarumur;bbn.com]
   Sent: Monday, November 11, 2002 4:05 PM
   To: [EMAIL PROTECTED]
   Subject: Apache + one TC for each webapp
  
  
   All,
  
   I read many postings on how to configure multiple tomcats for load
   balancing etc. But my case is genuine (I feel).
   :)
  
   We have a web site up and running for 1 1/2 yrs. using Apache
   1.3, mod_jk
   and tomcat 3.1 and we access it as below:
  
   https://myhost.domain.com/myapp1
  
   Now we need to add another app using tomcat 4.1.12. We 
 don't want to
   upgrade myapp1 to TC4 right now. Is there any way to setup
   the second
   tomcat/apache to access the second application as below:
  
   https://myhost.domain.com/myapp2
  
  
   I don't want to access the second app as below (unless it is
   the last resort) :
   https://myhost.domain.com:9090/myapp2
  
   Any ideas?
   Thanks for any help.
   -Sri
  
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Daniel Dugal
John Turner wrote 

So, you can have many virtual hosts in both Apache and Tomcat, but only one
worker.

Is this the preferred method if you only have one one Tomcat instance? Or is
there any benefit to having a 1 to 1 ratio of workers and hosts? 

Tomcat Veteran opinions?

apache vhost1 - worker1 - tomcat host1
apache vhost2 - worker2 - tomcat host2
apache vhostn - workern - tomcat hostn

or

apache vhost1 - worker - tomcat host1
apache vhost2 - worker - tomcat host2
apache vhostn - worker - tomcat hostn

--
Dan

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Friday, November 15, 2002 7:14 AM
To: 'Tomcat Users List'
Subject: RE: Apache 2, Tomcat 4, Lee 0



The host in workers.properties is not virtual host but the location of
Tomcat.

snip



RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Turner, John

If you have more than one worker defined like this:

apache vhost1 - worker1 - tomcat host1
apache vhost2 - worker2 - tomcat host2
apache vhostn - workern - tomcat hostn

wouldn't you also need a connector and separate port for each one in
server.xml?  I can't see any benefit to doing it that way, but I guess you
could do it. Others probably have different opinions.

John

 -Original Message-
 From: Daniel Dugal [mailto:DanielDugal;affina.com]
 Sent: Friday, November 15, 2002 10:43 AM
 To: 'Tomcat Users List'
 Subject: RE: Apache 2, Tomcat 4, Lee 0
 
 
 John Turner wrote 
 
 So, you can have many virtual hosts in both Apache and 
 Tomcat, but only one
 worker.
 
 Is this the preferred method if you only have one one Tomcat 
 instance? Or is
 there any benefit to having a 1 to 1 ratio of workers and hosts? 
 
 Tomcat Veteran opinions?
 
 apache vhost1 - worker1 - tomcat host1
 apache vhost2 - worker2 - tomcat host2
 apache vhostn - workern - tomcat hostn
 
 or
 
 apache vhost1 - worker - tomcat host1
 apache vhost2 - worker - tomcat host2
 apache vhostn - worker - tomcat hostn
 
 --
 Dan
 
 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Friday, November 15, 2002 7:14 AM
 To: 'Tomcat Users List'
 Subject: RE: Apache 2, Tomcat 4, Lee 0
 
 
 
 The host in workers.properties is not virtual host but 
 the location of
 Tomcat.
 
 snip
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Daniel Dugal
Yes, you would need a second connector and separate port for each worker.
But I wasn't sure if keeping separate workers/connectors for each host would
really buy you better separation between hosts, i.e. keeping hosts from
stepping on each other. 

I suppose if someone really wanted that they could run a separate tomcat
instance for each host. I wasn't sure - which is why I asked. Thanks

--
Dan

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Friday, November 15, 2002 9:53 AM
To: 'Tomcat Users List'
Subject: RE: Apache 2, Tomcat 4, Lee 0



If you have more than one worker defined like this:

apache vhost1 - worker1 - tomcat host1
apache vhost2 - worker2 - tomcat host2
apache vhostn - workern - tomcat hostn

wouldn't you also need a connector and separate port for each one in
server.xml?  I can't see any benefit to doing it that way, but I guess you
could do it. Others probably have different opinions.

John

 -Original Message-
 From: Daniel Dugal [mailto:DanielDugal;affina.com]
 Sent: Friday, November 15, 2002 10:43 AM
 To: 'Tomcat Users List'
 Subject: RE: Apache 2, Tomcat 4, Lee 0
 
 
 John Turner wrote 
 
 So, you can have many virtual hosts in both Apache and 
 Tomcat, but only one
 worker.
 
 Is this the preferred method if you only have one one Tomcat 
 instance? Or is
 there any benefit to having a 1 to 1 ratio of workers and hosts? 
 
 Tomcat Veteran opinions?
 
 apache vhost1 - worker1 - tomcat host1
 apache vhost2 - worker2 - tomcat host2
 apache vhostn - workern - tomcat hostn
 
 or
 
 apache vhost1 - worker - tomcat host1
 apache vhost2 - worker - tomcat host2
 apache vhostn - worker - tomcat hostn
 
 --
 Dan
 
 -Original Message-
 From: Turner, John [mailto:JTurner;AAS.com]
 Sent: Friday, November 15, 2002 7:14 AM
 To: 'Tomcat Users List'
 Subject: RE: Apache 2, Tomcat 4, Lee 0
 
 
 
 The host in workers.properties is not virtual host but 
 the location of
 Tomcat.
 
 snip
 

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



RE: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Hugo Villeneuve
I am all confused now. All the test I did make it looks like a Adobe problem
but :

1-  When I call static PDF from tomcat 4.1 : PDF open in the IE5 (ok)
2-  When I call a pdf from my servlet  in tomcat 4.1 : IE5 ask to save file
(bad).
3-  When I right click on the URL and ask for open in new Window  : PDF
open in IE5 (ok) !!!.
4-  All condition above works on tomcat 3.3 !!

Base on the header dump I did with telnet (thanks to Tim) (see below) It
looks like Adobe threat HTTP 1.1 (tomcat 4.1) and HTTP 1.0 (tomcat 3.3) in a
different manner. I read some issues about calling PDf via GET or POST...

If you have any Idea what could cause the problem base from the header below
please let me know. Un less I will keep looking on Adobe and IE news group.


//- Call a Static PDF, Tomcat 4.1 (open ok on IE5)-
GET /ocian/bug-mime.pdf HTTP/1.1
connection: close
host: hugo

HTTP/1.1 200 OK
ETag: W/22649-1037304708111
Last-Modified: Thu, 14 Nov 2002 20:11:48 GMT
Content-Length: 22649
Date: Fri, 15 Nov 2002 15:27:34 GMT
Server: Apache Coyote/1.0
Connection: close

//- Call to Dynamic PDF, Tomcat 4.1 (IE 5ask for save, bad)-
GET /ocian/renderer/renderPdfForm.do HTTP/1.1
connection: close
host:hugo

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=380EC9BAF52E335EBCA0759930ACC311; Path=/ocian
Content-Type: application/pdf
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 22649
Content-Disposition: inline; filename=myDoc.pdf
Date: Fri, 15 Nov 2002 15:58:01 GMT
Server: Apache Coyote/1.0
Connection: close

 Call to Dynamic PDF Tomcat 3.3 (open ok on IE5)-
HTTP/1.0 200 OK
Content-Type: application/pdf
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 1361957
Content-Disposition: inline; filename=OcianForm_102040.pdf
Set-Cookie: JSESSIONID=8amd9yad71;Path=/ocian
Date: Fri, 15 Nov 2002 16:06:15 GMT
Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )

 Ops, did not know Tomcat 3.3 does not support HTTP
1.1 -
GET /ocian/renderer/renderPdfForm.do?path=/:102040 HTTP/1.1
connection:close
host:xian

HTTP/1.0 501 Not Implemented
Content-Type: text/html
Content-Length: 224
Date: Fri, 15 Nov 2002 16:01:50 GMT
Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )
Thank you all.

-Original Message-
From: Tim Funk [mailto:funkman;joedog.org]
Sent: Friday, November 15, 2002 10:21 AM
To: Tomcat Users List
Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
4.1


Examine the HTTP headers coming back. It may be as easy as
adding/removing a new header.

How to look at headers coming back:
telnet webserver.running.tomcat3 80
GET /myServet/givesme/pdfFile HTTP/1.1
Connection: Close
Host: needsFilledIn


Then repeat for your tomcat 4 version.

-Tim


Ralph Einfeldt wrote:
 Some options: (All not very nice)
 - run tomcat behind apache.
 - rewrite your servlet to implement http1.1
   (Have a look at the tomcat source of the tomcat
servlet that serves the files (Can't remember
the name)
 - store the blob in the file system and redirect
   the browser to that file (so tomcat would serve
   the file)
 - Don't know if there is a possibility to downgrade
   the http version in tomcat.


-Original Message-
From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
Sent: Friday, November 15, 2002 3:39 PM
To: Tomcat Users List
Subject: RE: Serving PDF files gets different results from
Tomcat 3.3 to
4.1

I don't know much about partial-request and the HTTP 1.1
Header (I will read about that) but for now all my tests
make it looks like a combination of Adobe with Tomcat 4.1 problem.

What do you suggest?
Dropping Tomcat 4.1 and go back on tomcat 3.3 to fix header
issues ( I can
not drop Adobe...) ?
Can I use the Servlet API to fix my problem ?





--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: non Http connector

2002-11-15 Thread John B. Moore
John,

   Maybe you can clear this up for me..  I get the hint from several 
different messages that the CoyoteConnector handles both JK and JK2. 
Looking at the server.xml it appears that, based on the comments in 
that file

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=2
  useURIValidationHack=false
  
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


...that the CoyoteConnector is ONLY for JK2 and that the commented tag 
below that:

!-- Define an AJP 1.3 Connector on port 8009 --
   !--
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
  --

...is for JK..  Last I tried this, uncommenting this code threw errors..

This Saturday I'm making another run at getting Apache2 and Tomcat4 
talking, and maybe clearing this up might help..G

   Thanks...

John...

Turner, John wrote:

Well, JK/JK2 are their own protocols, and the CoyoteConnector class handles
them just fine. 



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Trouble installing SSL on Tomcat Standalone

2002-11-15 Thread Joseph Stephen Vaithara
Just hit the solution to the problem
Here is the steps to get it working, let me know if it works for you
1) keytool -genkey -keyalg RSA -alias tomcat -keystore ./.keystore
2) keytool -certreq -alias tomcat -keyalg RSA  -file
myhostname.csr -keystore keystore
3) Got the csr file  signed by verisign

3a) The $JAVA_HOME/jre/lib/security/cacerts  file should contain the CA Certificate. 
Now for a VeriSign trial certificate the certificate issuer is not listed in cacerts. 
So you need to download the CA Certificate and 
(http://www.verisign.com/server/trial/faq/index.html) and import the same in to 
cacerts  

The command 
 keytool -import  -alias tomcat -trustcacerts -keystore 
$JAVA_HOME/jre/lib/security/cacerts -file getcacert.cer 

getcacert.cer  - is the CA Certificate.

4)  keytool -import  -alias tomcat -trustcacerts -file myHostName.crt -keystore 
.keystore


Regards,
Joseph

-Original Message-
From: Johan Bryssling [mailto:johan.bryssling;assembla.se]
Sent: Friday, November 15, 2002 6:25 PM
To: Tomcat Users List
Subject: RE: Trouble installing SSL on Tomcat Standalone


Hi!

I have the same problem, but have not yet solved it. (I know what the
problem means, but it doesnt help). If you come across a solution to this
please share it with you. :)

But...

However, I will not sit back and wait so I will install the Apache
server(HTTPD) and have a tomcat-mod running instead,  because I already know
that Apache handle SSL/TSL (Client Auth and others) just right.

It would have simplyfied and enhanced my implementaion phase a lot if I only
had to worry about tomcat. Now I have to worry about both HTTPD and
tomcat.  *hmmf*


Regards

/Johan

ps.. This problem is called an abstraction leakage.

-Original Message-
From: Joseph Stephen Vaithara [mailto:Josephsv;infosys.com]
Sent: den 15 november 2002 10:34
To: [EMAIL PROTECTED]
Subject: Trouble installing SSL on Tomcat Standalone


Hi ,

I have configured SSL for my tomcat standalone webserver. I am using a trial
VeriSign certificate. Now when I try to connect to tomcat Netscape throws
the message Netscape and  my host cannot communicate because they have
no common encryption algorithms

Any pointers as to where the problem would be greatly appreciated.

Steps I followed to setup SSL
1) keytool -genkey -keyalg RSA -alias tomcat -keystore ./.keystore
2) keytool -certreq -alias tomcat -keyalg RSA  -file
myhostname.csr -keystore ./.keystore
3) Got the csr file  signed by verisign
4)  keytool -import  -alias root -trustcacerts -file
myHostName.crt -keystore ./.keystore
5) keytool -delete -alias tomcat  -keystore ./.keystore  (If skip this step
then the self signed certificate is used.)

Thanks
Joe




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Nicholas Pappas
What exactly are you using to generate the pdf-- home-grown code or Adobe
Distiller?  If your own code, are you sure you're creating the file itself
properly?

Hugo Villeneuve wrote:

 I am all confused now. All the test I did make it looks like a Adobe problem
 but :

 1-  When I call static PDF from tomcat 4.1 : PDF open in the IE5 (ok)
 2-  When I call a pdf from my servlet  in tomcat 4.1 : IE5 ask to save file
 (bad).
 3-  When I right click on the URL and ask for open in new Window  : PDF
 open in IE5 (ok) !!!.
 4-  All condition above works on tomcat 3.3 !!

 Base on the header dump I did with telnet (thanks to Tim) (see below) It
 looks like Adobe threat HTTP 1.1 (tomcat 4.1) and HTTP 1.0 (tomcat 3.3) in a
 different manner. I read some issues about calling PDf via GET or POST...

 If you have any Idea what could cause the problem base from the header below
 please let me know. Un less I will keep looking on Adobe and IE news group.

 //- Call a Static PDF, Tomcat 4.1 (open ok on IE5)-
 GET /ocian/bug-mime.pdf HTTP/1.1
 connection: close
 host: hugo

 HTTP/1.1 200 OK
 ETag: W/22649-1037304708111
 Last-Modified: Thu, 14 Nov 2002 20:11:48 GMT
 Content-Length: 22649
 Date: Fri, 15 Nov 2002 15:27:34 GMT
 Server: Apache Coyote/1.0
 Connection: close

 //- Call to Dynamic PDF, Tomcat 4.1 (IE 5ask for save, bad)-
 GET /ocian/renderer/renderPdfForm.do HTTP/1.1
 connection: close
 host:hugo

 HTTP/1.1 200 OK
 Set-Cookie: JSESSIONID=380EC9BAF52E335EBCA0759930ACC311; Path=/ocian
 Content-Type: application/pdf
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Content-Length: 22649
 Content-Disposition: inline; filename=myDoc.pdf
 Date: Fri, 15 Nov 2002 15:58:01 GMT
 Server: Apache Coyote/1.0
 Connection: close

  Call to Dynamic PDF Tomcat 3.3 (open ok on IE5)-
 HTTP/1.0 200 OK
 Content-Type: application/pdf
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Content-Length: 1361957
 Content-Disposition: inline; filename=OcianForm_102040.pdf
 Set-Cookie: JSESSIONID=8amd9yad71;Path=/ocian
 Date: Fri, 15 Nov 2002 16:06:15 GMT
 Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )

  Ops, did not know Tomcat 3.3 does not support HTTP
 1.1 -
 GET /ocian/renderer/renderPdfForm.do?path=/:102040 HTTP/1.1
 connection:close
 host:xian

 HTTP/1.0 501 Not Implemented
 Content-Type: text/html
 Content-Length: 224
 Date: Fri, 15 Nov 2002 16:01:50 GMT
 Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )
 Thank you all.

 -Original Message-
 From: Tim Funk [mailto:funkman;joedog.org]
 Sent: Friday, November 15, 2002 10:21 AM
 To: Tomcat Users List
 Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
 4.1

 Examine the HTTP headers coming back. It may be as easy as
 adding/removing a new header.

 How to look at headers coming back:
 telnet webserver.running.tomcat3 80
 GET /myServet/givesme/pdfFile HTTP/1.1
 Connection: Close
 Host: needsFilledIn

 Then repeat for your tomcat 4 version.

 -Tim

 Ralph Einfeldt wrote:
  Some options: (All not very nice)
  - run tomcat behind apache.
  - rewrite your servlet to implement http1.1
(Have a look at the tomcat source of the tomcat
 servlet that serves the files (Can't remember
 the name)
  - store the blob in the file system and redirect
the browser to that file (so tomcat would serve
the file)
  - Don't know if there is a possibility to downgrade
the http version in tomcat.
 
 
 -Original Message-
 From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
 Sent: Friday, November 15, 2002 3:39 PM
 To: Tomcat Users List
 Subject: RE: Serving PDF files gets different results from
 Tomcat 3.3 to
 4.1
 
 I don't know much about partial-request and the HTTP 1.1
 Header (I will read about that) but for now all my tests
 make it looks like a combination of Adobe with Tomcat 4.1 problem.
 
 What do you suggest?
 Dropping Tomcat 4.1 and go back on tomcat 3.3 to fix header
 issues ( I can
 not drop Adobe...) ?
 Can I use the Servlet API to fix my problem ?
 
 
 

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

--
Nicholas Pappas



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Hugo Villeneuve
I don not touch the PDF. I get a valid PDF out of a DataBase as a blob.

-Original Message-
From: Nicholas Pappas [mailto:pappas;cs.nyu.edu]
Sent: Friday, November 15, 2002 12:03 PM
To: Tomcat Users List
Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
4.1


What exactly are you using to generate the pdf-- home-grown code or Adobe
Distiller?  If your own code, are you sure you're creating the file itself
properly?

Hugo Villeneuve wrote:

 I am all confused now. All the test I did make it looks like a Adobe
problem
 but :

 1-  When I call static PDF from tomcat 4.1 : PDF open in the IE5 (ok)
 2-  When I call a pdf from my servlet  in tomcat 4.1 : IE5 ask to save
file
 (bad).
 3-  When I right click on the URL and ask for open in new Window  :
PDF
 open in IE5 (ok) !!!.
 4-  All condition above works on tomcat 3.3 !!

 Base on the header dump I did with telnet (thanks to Tim) (see below) It
 looks like Adobe threat HTTP 1.1 (tomcat 4.1) and HTTP 1.0 (tomcat 3.3) in
a
 different manner. I read some issues about calling PDf via GET or POST...

 If you have any Idea what could cause the problem base from the header
below
 please let me know. Un less I will keep looking on Adobe and IE news
group.

 //- Call a Static PDF, Tomcat 4.1 (open ok on IE5)-
 GET /ocian/bug-mime.pdf HTTP/1.1
 connection: close
 host: hugo

 HTTP/1.1 200 OK
 ETag: W/22649-1037304708111
 Last-Modified: Thu, 14 Nov 2002 20:11:48 GMT
 Content-Length: 22649
 Date: Fri, 15 Nov 2002 15:27:34 GMT
 Server: Apache Coyote/1.0
 Connection: close

 //- Call to Dynamic PDF, Tomcat 4.1 (IE 5ask for save, bad)-
 GET /ocian/renderer/renderPdfForm.do HTTP/1.1
 connection: close
 host:hugo

 HTTP/1.1 200 OK
 Set-Cookie: JSESSIONID=380EC9BAF52E335EBCA0759930ACC311; Path=/ocian
 Content-Type: application/pdf
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Content-Length: 22649
 Content-Disposition: inline; filename=myDoc.pdf
 Date: Fri, 15 Nov 2002 15:58:01 GMT
 Server: Apache Coyote/1.0
 Connection: close

  Call to Dynamic PDF Tomcat 3.3 (open ok on IE5)-
 HTTP/1.0 200 OK
 Content-Type: application/pdf
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Content-Length: 1361957
 Content-Disposition: inline; filename=OcianForm_102040.pdf
 Set-Cookie: JSESSIONID=8amd9yad71;Path=/ocian
 Date: Fri, 15 Nov 2002 16:06:15 GMT
 Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )

  Ops, did not know Tomcat 3.3 does not support HTTP
 1.1 -
 GET /ocian/renderer/renderPdfForm.do?path=/:102040 HTTP/1.1
 connection:close
 host:xian

 HTTP/1.0 501 Not Implemented
 Content-Type: text/html
 Content-Length: 224
 Date: Fri, 15 Nov 2002 16:01:50 GMT
 Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )
 Thank you all.

 -Original Message-
 From: Tim Funk [mailto:funkman;joedog.org]
 Sent: Friday, November 15, 2002 10:21 AM
 To: Tomcat Users List
 Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
 4.1

 Examine the HTTP headers coming back. It may be as easy as
 adding/removing a new header.

 How to look at headers coming back:
 telnet webserver.running.tomcat3 80
 GET /myServet/givesme/pdfFile HTTP/1.1
 Connection: Close
 Host: needsFilledIn

 Then repeat for your tomcat 4 version.

 -Tim

 Ralph Einfeldt wrote:
  Some options: (All not very nice)
  - run tomcat behind apache.
  - rewrite your servlet to implement http1.1
(Have a look at the tomcat source of the tomcat
 servlet that serves the files (Can't remember
 the name)
  - store the blob in the file system and redirect
the browser to that file (so tomcat would serve
the file)
  - Don't know if there is a possibility to downgrade
the http version in tomcat.
 
 
 -Original Message-
 From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
 Sent: Friday, November 15, 2002 3:39 PM
 To: Tomcat Users List
 Subject: RE: Serving PDF files gets different results from
 Tomcat 3.3 to
 4.1
 
 I don't know much about partial-request and the HTTP 1.1
 Header (I will read about that) but for now all my tests
 make it looks like a combination of Adobe with Tomcat 4.1 problem.
 
 What do you suggest?
 Dropping Tomcat 4.1 and go back on tomcat 3.3 to fix header
 issues ( I can
 not drop Adobe...) ?
 Can I use the Servlet API to fix my problem ?
 
 
 

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
Nicholas Pappas



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   

RE: non Http connector

2002-11-15 Thread Turner, John

JK is known as ajp13.  JK2 is known as, I believe, ajp14.  The precursor
to JK was JServ, and that is known as ajp12.

The Coyote Connector (org.apache.coyote.tomcat4.CoyoteConnector) can speak
JK and JK2.  The Ajp13Connector (org.apache.ajp.tomcat4.Ajp13Connector) only
speaks JK.

CoyoteConnector: JK, JK2, SSL, HTTP
Ajp13Connector: JK

If you look in your server.xml, you will see
org.apache.coyote.tomcat4.CoyoteConnector used as ALL default connectors in
4.1.12, regardless of protocol.

From what I understand (someone correct me if I am wrong), the administrator
app in 4.1.12 uses something call MBeans...Ajp13Connector has problems with
this.  So, if you must use Ajp13Connector, comment out the MBeans tags in
server.xml, they look like this:

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

If you disable the mbeans Listeners, the administrator app will not work.
So, you basically have a choice:

CoyoteConnector: everything works, including the administration app
Ajp13Connector: JK only works, admin app doesn't

Some people are using Ajp13Connector because that's what they used in
previous versions of Tomcat, and some may feel that CoyoteConnector is still
untested.  That's cool as long as they are using mod_jk and they don't mind
not having the administration app.  If they want to use JK2 (mod_jk2) or
enable the administration app, then they need to use CoyoteConnector.

HTH

John

 -Original Message-
 From: John B. Moore [mailto:jbm;microps.com]
 Sent: Friday, November 15, 2002 11:56 AM
 To: Tomcat Users List
 Subject: Re: non Http connector
 
 
 John,
 
 Maybe you can clear this up for me..  I get the hint from several 
 different messages that the CoyoteConnector handles both JK and JK2. 
  Looking at the server.xml it appears that, based on the comments in 
 that file
 
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
 
 ...that the CoyoteConnector is ONLY for JK2 and that the 
 commented tag 
 below that:
 
 !-- Define an AJP 1.3 Connector on port 8009 --
 !--
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--
 
 ...is for JK..  Last I tried this, uncommenting this code 
 threw errors..
 
 This Saturday I'm making another run at getting Apache2 and Tomcat4 
 talking, and maybe clearing this up might help..G
 
 Thanks...
 
  John...
 
 Turner, John wrote:
 
 Well, JK/JK2 are their own protocols, and the 
 CoyoteConnector class handles
 them just fine. 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




can write to / not /var frpm jsp/servlet

2002-11-15 Thread Brendon Mosher
I have run accross an unusual problem.  I am running Linux and am able
to write to any directory in the same partition as / from a servlet or
jsp.  However, if i try and write from a servlet or jsp to a location in
any other partition on the machine (/var, /usr, /home) it fails.  

I have checked, and it is not a file permission problem as i have set
the dirs to full rwx access when testing.  I am not running with the
optional -security option, so I'm ruling out catalina.policy issues as
well.

Does anyone have any idea what could be causing this, it's been driving
me craxy for the last day.

Thanks in advance for any help,
   Brendon

-- 
Brendon Mosher [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat Application on Port 443 or 8080?

2002-11-15 Thread Kent Perrier
On Tue, 2002-11-12 at 15:42, Milt Epstein wrote:

 Now, assuming you set up Apache+SSL for a reason, you probably want to
 use that for your https communication.  That means the URL you should
 use is:
 
 https://www.kithany.com/kithany/index.jsp
 
 This will go through Apache (on port 443, the default for https).  But
 for this to work, that is, to get to Tomcat, you have to make sure you
 have the proper configuration set up, mostly in terms of the connector
 directives in your Apache httpd.conf file.  (You don't say what
 connector you're using, perhaps it's mod_jk.)

I have having the same issue.  I have apache 1.3 working on port 80 and
on port 443 with mod_ssl.  Accessing the example apps via http works
fine. From the https server I either get a 404.  How do I make the
settings from the mod_jk.conf file get imported into the virtual server
that is running the SSL enabled httpd?

I am looking in the archives, but I am not finding anything very
quickly.

Kent

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Coyote Source Code

2002-11-15 Thread Turner, John

You're joking, right?

http://jakarta.apache.org

John

 -Original Message-
 From: Scott Goldstein [mailto:sdgoldst;mailandnews.com]
 Sent: Friday, November 15, 2002 12:51 PM
 To: [EMAIL PROTECTED]
 Subject: Coyote Source Code
 
 
 Is the Coyote source code available?  If so, where can I get it?
 
 Thanks.
 
 Scott
 
 
 Just a mirror for the sun...
  My smiling eyes are just a mirror for the sun.
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Coyote Source Code

2002-11-15 Thread Jon Eaves
Hi Scott,

You can get instructions from here:

http://jakarta.apache.org/site/cvsindex.html

and the CVS-WEB access is here:

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/

Cheers,
	-- jon


Scott Goldstein wrote:

Is the Coyote source code available?  If so, where can I get it?

Thanks.

Scott



--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat3.2. error

2002-11-15 Thread mbe . bem
Hi!
I know that these versions of tomcat and apace1.3.14 are fast no more in use
by many. I would be very glad if anyone had had this problem and could
remember how he/she did fix it. Here is the error message:

2002-11-13 06:04:01 - ContextManager: Adding context Ctx( /resource )
2002-11-13 06:04:01 - PoolTcpConnector: Starting HttpConnectionHandler on
8188
2002-11-13 06:04:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8189
 
   
2002-11-13 06:05:09 - Ctx( /resource ): 404 R( /resource +
/borrow.jsp + null) JSP file not found

in my server.xml, I did configure the following :

Connector className=org.apache.tomcat.service.PoolTcpConnector
  parameter name=handler  
value=org.apache.tomcat.service.http.HttpConnectionHandler/
parameter name=port value=8188/

Connector className=org.apache.tomcat.service.PoolTcpConnector
  parameter name=handler  
value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/
parameter name=port value=8189/

Context path=/resource docBase=webapps/resource debug=0
reloadable=true/

Is there anything I am doing wrong?

Thanks,
Mbe

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: can write to / not /var frpm jsp/servlet

2002-11-15 Thread Torsten Fohrer

how do you mount the other partition?
On Friday 15 November 2002 18:13, Brendon Mosher wrote:
 I have run accross an unusual problem.  I am running Linux and am able
 to write to any directory in the same partition as / from a servlet or
 jsp.  However, if i try and write from a servlet or jsp to a location in
 any other partition on the machine (/var, /usr, /home) it fails.

 I have checked, and it is not a file permission problem as i have set
 the dirs to full rwx access when testing.  I am not running with the
 optional -security option, so I'm ruling out catalina.policy issues as
 well.

 Does anyone have any idea what could be causing this, it's been driving
 me craxy for the last day.

 Thanks in advance for any help,
Brendon


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Cahrset problem

2002-11-15 Thread Torsten Fohrer

some tips from me

1. mask non standart characters with html entitys like nbsp; that you display 
in html pages, if there exist some one.
2. setting response contentType, with % page contentType=
3. adding to the head of your html page
meta http-equiv=Content-Type content=text/html; charset=iso-8859-15
4. test different browsers
5. does the browser have fonts with the characters?

which browser you use?

On Sunday 15 December 2002 09:23, Galbayar Dorjgotov wrote:
 hi all.
 i have one problem. My JSP's enconding is windows-1251 and have a form.
 i'm wrote cyrillic characters and submit
 when i reading textfield value use getParameter() method it returns
  what's the matter?
 MY JSP is

 % page contentType=text/html; charset=windows-1251 language=java
 import=java.io.* errorPage= %
 html
 head
 titleUntitled Document/title
 /head

 body
 %
   String a1=request.getParameter(textfield);
   out.println(a1);
   if (a1!=null){
   InputStreamReader a=new InputStreamReader(new
 ByteArrayInputStream(a1.getBytes()),windows-1251);
   int gg=0;
   gg=a.read();
   out.println((char)gg);
   a.close();
   }
 %

 form name=form1 method=post action=
   input type=text name=textfield
   input type=submit name=Submit value=Submit
 /form
 /body
 /html


 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional
 commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




openSSL - but at what point ???

2002-11-15 Thread achana
Hi All.
I know this has been discussed ad nauseum, but I do need some
clarification conceptually.
By the time the web-server applet calls a servlet in Tomcat, the http
request has already gone pass the firewall.
Ideally, I would like to see anything between the web-server and the
browser encoded in SSL.
So my questions are :
(1) Is there a need for openSSL between Tomcat and web-server ?
(2) If I implement openSSL between web-server and browser, how will this
affect Tomcat downstream, if at all ?

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: openSSL - but at what point ???

2002-11-15 Thread Neufeld David L
I'm no security expert, but I was looking at mod_ssl the other day, so
here are my thoughts...

1Is there a need for SSL between web server and Tomcat?
It depends on what traffic is allowed through your firewall?  If webserver-tomcat
communication is on port 8009 and your firewall doesn't allow access to
this port from the outside then the unencrypted communication between
webserver and tomcat is safe from the outside world.  However, if someone
was to upload an application to the web server they would then be able to
monitor the traffic on 8009.  Also without SSL between webserver-Tomcat
you are still vulnerable from inside the network coworkers, etc.

2) In mod_ssl for Apache data is unencrypted by the webserver and then
forwarded in unencrypted format to tomcat.

Note - I have never setup Apache mod_ssl / Tomcat so take this with a
grain of salt, all comments based on my limited understanding of the
documentation.

cheers, On Fri, 15 Nov 2002 [EMAIL PROTECTED] wrote:
Dave

 Hi All.
 I know this has been discussed ad nauseum, but I do need some
 clarification conceptually.
 By the time the web-server applet calls a servlet in Tomcat, the http
 request has already gone pass the firewall.
 Ideally, I would like to see anything between the web-server and the
 browser encoded in SSL.
 So my questions are :
 (1) Is there a need for openSSL between Tomcat and web-server ?
 (2) If I implement openSSL between web-server and browser, how will this
 affect Tomcat downstream, if at all ?

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: jk2 load balancing problem (only fail-over)

2002-11-15 Thread Milt Epstein
On Fri, 15 Nov 2002, Turner, John wrote:

 The Coyote connector speaks JK...there's no reason to use
 Ajp13Connector if you don't want to,
[ ... ]

Other than the apparent isSecure()/getScheme() bug with
CoyoteConnector when using AJP :-).

  though I haven't seen anyone
 post a working conf specifically using load-balanced JK with
 org.apache.coyote.tomcat4.CoyoteConnector.

 It's worth a shot.

 John


  -Original Message-
  From: Nick Wesselman [mailto:nick;digivis.com]
  Sent: Friday, November 15, 2002 3:53 AM
  To: Tomcat Users List
  Subject: Re: jk2 load balancing problem (only fail-over)
 
 
  So there's no production quality code to let me load balance
  using the
  Coyote connector?
 
  Should I use mod_jk and the older Ajp13 connector instead?
 
  Nick
 
  On Friday, November 15, 2002, at 01:52 AM, Bill Barker wrote:
 
   Load balancing is still not implemented fully in Jk2 (it's still a
   Beta).
   It has very nice fail-over code however.  I'm sure that the
  Jk2 team
   would
   welcome any patches.
  
   Nick Wesselman [EMAIL PROTECTED] wrote in message
   news:2303332D-F84E-11D6-8322-000393452A4C;digivis.com...
   I'm trying to set up jk2 load balancing for 2 Virtual
  Hosts in Apache
   with 2 Tomcats each. I have it mostly working, except it doesn't
   actually load balance the Tomcats... however it will do
  fail-over just
   fine if I kill one VM.
  
   All my server.xml's have the correct jvmRoute set for the Engine.
  
   Any help on how to fix or debug this?
  
   Nick Wesselman
  
  -
  
   Environment:
   RedHat 7.2
   Apache 2.0.43
   Tomcat 4.1.12
   mod_jk2
  
   workers2.properties (names obfuscated to protect the innocent):
   [logger]
   level=DEBUG
  
   [config:]
   file=/usr/local/apache2/conf/workers2.properties
   debug=0
   debugEnv=0
  
   [uriMap:]
   info=Maps the requests. Options: debug
   debug=0
  
   [logger.file:0]
   level=DEBUG
   file=/usr/local/apache2/logs/jk2.log
  
   [shm:]
   info=Scoreboard. Required for reconfiguration and status with
   multiprocess servers
   file=/usr/local/apache2/logs/jk2.shm
   size=100
   debug=0
   disabled=0
  
   [workerEnv:]
   info=Global server options
   timing=1
   debug=0
  
   [status:]
   info=Status worker, displays runtime information
  
   [uri:/jkstatus/*]
   group=status:
  
   [lb:vhost1]
   debug=0
  
   [channel.socket:vhost1_vm1]
   port=8015
   host=127.0.0.1
   debug=0
   group=vhost1
   tomcatId=vhost1_vm1
   lb_factor=1
  
   [channel.socket:vhost1_vm2]
   port=8019
   host=127.0.0.1
   debug=0
   group=vhost1
   tomcatId=vhost1_vm2
   lb_factor=1
  
   [uri:www.vhost1.com]
   info=blah
  
   [uri:www.vhost1.com/*.jsp]
   group=vhost1
   info=blah
  
   [lb:vhost2]
   debug=0
  
   [channel.socket:vhost2_vm1]
   port=8015
   host=127.0.0.1
   debug=0
   group=vhost2
   tomcatId=vhost2_vm1
   lb_factor=1
  
   [channel.socket:vhost2_vm2]
   port=8019
   host=127.0.0.1
   debug=0
   group=vhost2
   tomcatId=vhost2_vm2
   lb_factor=1
  
   [uri:www.vhost2.com]
   info=blah
  
   [uri:www.vhost2.com/*.jsp]
   group=vhost2
   info=blah
  
  
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Lee Grey
The distinction of host versus virtualhost in workers.properties is critical
and was never clear to me.  The examples in the Workers HOW-TO use
domain-like names such as www.x.com, www2.x.com, and node1.domain.org.  I'm
already obsessed about getting the VirtualHosts right, so my mind was in
that groove.  Of course, after a few hours sleep, it makes perfect sense
that the worker is a machine and port listening to serve servlets and JSPs.
Thanks for clearing that up.

Now, what is a worker?  The first line of Workers HOW-TO says A Tomcat
worker is a Tomcat instance...  So, how are you distinguishing between an
instance of Tomcat and instance of a worker?

Once I changed my workers.properties file to point to the machine, rather
than a virtual domain, things started working.  Now, I'm getting a Server
Error 500, so stay tuned for my next question.  :-)

Thank you!

Lee

-Original Message-
From: Turner, John [mailto:JTurner;AAS.com]
Sent: Friday, November 15, 2002 8:14 AM
To: 'Tomcat Users List'
Subject: RE: Apache 2, Tomcat 4, Lee 0



The host in workers.properties is not virtual host but the location of
Tomcat.

Each worker is not an instance of Tomcat.  Each worker is an instance of a
worker.

Yes, a single instance of Tomcat can server multiple virtual domains using
a Host element in server.xml for each virtual host.

So, you can have many virtual hosts in both Apache and Tomcat, but only one
worker.  The reason workers have names is because you can define multiple
workers for load balancing purposes.

John


 -Original Message-
 From: Lee Grey [mailto:leegrey;mindspring.com]
 Sent: Friday, November 15, 2002 7:05 AM
 To: Tomcat Users List
 Subject: RE: Apache 2, Tomcat 4, Lee 0


 Also, when you have multiple named virtual hosts, what are
 you supposed to
 put in workers.properties for worker.worker1.host?

 To be clear, each worker is an INSTANCE of Tomcat, right?  I
 can have a
 single instance of Tomcat serve multiple virtual domains,
 right?  So, which
 of my multiple virtual hosts should be the one that I specify in
 worker.worker1.host=www...?

 Thanks,
 Lee


 -Original Message-
 From: Lee Grey [mailto:leegrey;mindspring.com]
 Sent: Friday, November 15, 2002 6:45 AM
 To: [EMAIL PROTECTED]
 Subject: Apache 2, Tomcat 4, Lee 0


 I've fought the good fight all night, but I'm stuck.

 Here's the first log I got:
 2002-11-15 05:55:00 StandardContext[]: Starting
 2002-11-15 05:55:00 StandardContext[]: Processing start(), current
 available=false
 2002-11-15 05:55:00 StandardContext[]: Configuring default Resources
 2002-11-15 05:55:00 StandardContext[]: Configuring
 non-privileged default
 Loader
 2002-11-15 05:55:00 StandardContext[]: Configuring default Manager
 2002-11-15 05:55:00 StandardContext[]: Processing standard
 container startup
 2002-11-15 05:55:01 WebappLoader[]: Deploying class
 repositories to work
 directory /usr/jakarta-tomcat-4.1.12/work/Apache/www.urlinone.com/_
 2002-11-15 05:55:01 WebappLoader[]: Deploy class files
 /WEB-INF/classes to
 /var/tomcat4/webapps/urlinone/WEB-INF/classes
 2002-11-15 05:55:01 ContextConfig[]: ContextConfig: Processing START
 2002-11-15 05:55:02 StandardContext[]: Setting deployment
 descriptor public
 ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 2002-11-15 05:55:03 StandardContext[]: Setting deployment
 descriptor public
 ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
 2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role
 name tomcat used
 in an auth-constraint without being defined in a security-role
 2002-11-15 05:55:04 ContextConfig[]: WARNING: Security role
 name role1 used
 in an auth-constraint without being defined in a security-role
 2002-11-15 05:55:04 ContextConfig[]:  Accumulating TLD resource paths
 2002-11-15 05:55:04 ContextConfig[]:  Scanning TLD at resource path
 '/WEB-INF/jsp/debug-taglib.tld'
 2002-11-15 05:55:04 ContextConfig[] Exception processing TLD
 at resource
 path /WEB-INF/jsp/debug-taglib.tld
 javax.servlet.ServletException: Exception processing TLD at
 resource path
 /WEB-INF/jsp/debug-taglib.tld
 at
 org.apache.catalina.startup.ContextConfig.tldScanTld(ContextCo
 nfig.java:1010
 )
 at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi
 g.java:870)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.
 java:647)
 at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
 xtConfig.java:
 243)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
 ifecycleSuppor
 t.java:166)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:3493)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 

Interacting with desktop (jxta/tomcat/apachesoap)

2002-11-15 Thread Dave Searle
Hi,

My final year project is titled: describing peer-to-peer networks using
webservices.
I am using JXTA for the p2p network and tomcat/apache soap for the
webservice platform.

My aim is to create a JXTA peer which connects to the JXTA network when
it is invoked via a webservice. I have a very simple JXTA application
that connects to the netpeergroup, however when it is invoked via the
webservice it fails to start. I think this is because the class needs to
interact with the desktop (it creates and uses a directory called
.jxta).

Any ideas how I can do this?
Cheers,
Dave Searle.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat support for Java Connector Architecture?

2002-11-15 Thread Jason Rizer
Hello,

I've written a resource adapter for an EIS compliant
with the J2EE Connector Architecture.  I've done some
preliminatry testing using Sun's J2ee Server Reference
Implementation.  I would like to move my test
application to a straight stand alone Tomcat
installation.  I've read all the Tomcat docs I could
find, but I see no mention of support for the
Connector Architecture.  Two questions then: 

1)  Does Tomcat support the Connector Architecture?
2)  If so, how do I go about deploying my resource
adapter (.rar file).  

Thanks in advance!

-Jason


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Detecting Usage of http/1.1 by Tomcat

2002-11-15 Thread Craig R. McClanahan


On Fri, 15 Nov 2002, Cees van de Griend wrote:

   response.setHeader(Cache-Control,no-cache);
   response.setHeader(Cache-Control,no-store);
   response.setHeader(Cache-Control,must-revalidate);

Don't know if this is all of your problem, but the above code probably
doesn't do what you intended.  The setHeader() method will *replace* any
previous value for the same header name, so only the third one would
actually take effect.  Use addHeader() if you want to send all three.

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: ManagedBean is not found with Ajp13Connector

2002-11-15 Thread Bill Barker

- Original Message -
From: Milt Epstein [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: Bill Barker [EMAIL PROTECTED]
Sent: Friday, November 15, 2002 8:25 AM
Subject: Re: ManagedBean is not found with Ajp13Connector


 On Fri, 15 Nov 2002, Bill Barker wrote:

  In the default 4.1.x server.xml file there is an un-commented out
  entry: Connector
  className=org.apache.coyote.tomcat4.CoyoteConnector port=8009
  minProcessors=5 maxProcessors=75 enableLookups=true
  redirectPort=8443 acceptCount=10 debug=0
  connectionTimeout=2 useURIValidationHack=false
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /
 
  This is the coyote connector.  Use this one instead of the
  AjpConnector if you want to enable the admin webapp that has the
  very nice GUI to allow you to configure your server.  If you don't
  care about this, remove (or comment out) the two lines under
  Server that have Listener
  className=org.apache.catalina.mbeans /.  In this case, the
  admin application won't work, but you can use the legacy
  AjpConnector.

 The CoyoteConnector apparently has a bug where isSecure() and
 getScheme() don't work correctly on SSL requests.  This is pretty core
 functionality, and makes it unusable for many applications/environments.
 Has this bug been fixed?

It's been fixed since 4.1.13.


 Thanks.


  Anderson, M. Paul [EMAIL PROTECTED] wrote in message
  news:D66093F40B7B4B428A20AD9796835FD17FE442;central.ssd.jhuapl.edu...
   What do you mean set up your configuration with the coyote
connector?  I
   followed the documenation as given and it uses the AjpConnector.  What
is
  it
   that is using MBeans?  I'm totally confused!  I am completely new to
  tomcat
   and apache and would appreciate any clarification!  How can I comment
out
   the MBeans that are causing the exception?  Will this exception cause
   instability or can I just ignore it without fear of further problems?
  
   Please Help!!!  I've looked at the default server.xml and I don't see
any
   help there.
  
   -Original Message-
   From: Jacob Kjome [mailto:hoju;visi.com]
   Sent: Thursday, November 14, 2002 3:20 PM
   To: Tomcat Users List
   Subject: Re: ManagedBean is not found with Ajp13Connector
  
  
   Hello M.,
  
   The Ajp13Connector doesn't support MBeans.  You need to set up your
   AJP configuration with the CoyoteConnector instead.  Or, just comment
   out the MBeans that are causing the exception.  See Tomcat-4.1.12's
   default server.xml for reference.
  
   Jake
 [ ... ]

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



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat support for Java Connector Architecture?

2002-11-15 Thread Craig R. McClanahan


On Fri, 15 Nov 2002, Jason Rizer wrote:

 Date: Fri, 15 Nov 2002 11:01:46 -0800 (PST)
 From: Jason Rizer [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Tomcat support for Java Connector Architecture?

 Hello,

 I've written a resource adapter for an EIS compliant
 with the J2EE Connector Architecture.  I've done some
 preliminatry testing using Sun's J2ee Server Reference
 Implementation.  I would like to move my test
 application to a straight stand alone Tomcat
 installation.  I've read all the Tomcat docs I could
 find, but I see no mention of support for the
 Connector Architecture.  Two questions then:

 1)  Does Tomcat support the Connector Architecture?

No.  Tomcat standalone is not a J2EE server, and only supports
servlet/jsp.

 2)  If so, how do I go about deploying my resource
 adapter (.rar file).


You'll need to use a server that does support JCA.  Several J2EE servers
(including the J2EE RI and JBoss) actually use Tomcat inside as the web
tier, but you have to use the integrated server environment to use such
features.

 Thanks in advance!

 -Jason

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Apache 2, Tomcat 4, Lee 0

2002-11-15 Thread Turner, John

The HOW-TO is correct...though it's not clear exactly why.  Typically, each
Tomcat instance has one Connector configured, and there is typically one
worker configured to connect to it.

For example, in a load-balancing scenario, Tomcat-A has a Connector on port
8009, as does Tomcat-B.  There would be two workers, however:

worker.tomcat-a.host=tomcat-a.domain.com
worker.tomcat-b.host=tomcat-b.domain.com

So yes, I guess you could say one Tomcat = one worker, as there really isn't
any point in doing this:

worker.tomcat-a.host=tomcat-a.domain.com
worker.tomcat-b.host=tomcat-a.domain.com

HTH

John

 -Original Message-
 From: Lee Grey [mailto:leegrey;mindspring.com]
 Sent: Friday, November 15, 2002 2:01 PM
 To: Tomcat Users List
 Subject: RE: Apache 2, Tomcat 4, Lee 0
 
 
 The distinction of host versus virtualhost in 
 workers.properties is critical
 and was never clear to me.  The examples in the Workers HOW-TO use
 domain-like names such as www.x.com, www2.x.com, and 
 node1.domain.org.  I'm
 already obsessed about getting the VirtualHosts right, so my 
 mind was in
 that groove.  Of course, after a few hours sleep, it makes 
 perfect sense
 that the worker is a machine and port listening to serve 
 servlets and JSPs.
 Thanks for clearing that up.
 
 Now, what is a worker?  The first line of Workers HOW-TO says 
 A Tomcat
 worker is a Tomcat instance...  So, how are you 
 distinguishing between an
 instance of Tomcat and instance of a worker?
 
 Once I changed my workers.properties file to point to the 
 machine, rather
 than a virtual domain, things started working.  Now, I'm 
 getting a Server
 Error 500, so stay tuned for my next question.  :-)
 
 Thank you!

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat support for Java Connector Architecture?

2002-11-15 Thread Jason Rizer

 No.  Tomcat standalone is not a J2EE server, and
 only supports
 servlet/jsp.

I suspected as much.  Thanks for the quick
confirmation.

-Jason (who is back to Sun's RI server and all its
foibles) 



__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Strange behaviour of webapps/examples/jsp/security with SSL transport guarantee and best practice for SSL logins?!

2002-11-15 Thread mech
I was trying to use the webapps/exmaples/jsp/security/protected
example with SSL but experienced strange effects with different
browsers.

I did the following with Tomcat 4.1.12LE (Jboss bundle, but shouldn't
matter as tomcat was started standalone):

I successfully enabled SSL by uncommenting and modifying server.xml like
this:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
   useURIValidationHack=false
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
keystoreFile=C:/jboss/tomcat-4.1.x/bin/jboss.keystore
keystorePass=* /
/Connector


I changed the web.xml of the examples application by adding into
security-constraint:

user-data-constraint
transport-guaranteeCONFIDENTAL/transport-guarantee
/user-data-constraint


When opening the url:
http://localhost:8080/examples/jsp/security/protected I expected an
automatic redirect to
https://localhost:8443/examples/jsp/security/protected/login.jsp to obey
the transport guarantee as specified above.

When I try with Mozilla it works like expected.
When using IE, I get a popup (because I just use a SSL test certificate)
- so far so good, but the redirect fails and IE stalls while loading. If
I manually use https://localhost:8443 everything is fine. Obviously only
the redirection does not work with IE. Any idea what could be wrong? Did
I setup anything wrong or can anyone confirm this problem?

Anyhow, also with both Mozilla and Opera I get http errors sometimes: 

https://localhost:8443/examples/jsp/security/protected/j_security_check
pops up a status 400 message: Invalid direct reference to form login
page and The requested resource
(/examples/jsp/security/protected/j_security_check) is not available.
or a status 404 message:
/examples/jsp/security/protected/j_security_check and The requested
resource (/examples/jsp/security/protected/j_security_check) is not
available.

These problems occur when hitting the back button (instead in my browser
after having successfully logged on user tomcat.
So I logon using login.jsp with a valid user view the index.jsp and hit
back. When I try to submit again I get those errors.

What can be done to avoid these problems? I would like to be able to hit
back and either get to the error.jsp or index.jsp when i try to logon
repeatedly instead of that j_security_check resource.


One more question:

Tomcat can handle the automatic redirection with these security
constrains, but actually I only need SSL for login purposes. So after
automatic SSL login, I'm stuck to https on port 8443 if I don't manually
load a http-URL later. But this would require to specify
http://host:port somewhere instead of using relative links what I prefer
not to make the webapp need to know the server names etc.

What is a good practice for SSL-login in general? 
Also in case I want to use Struts for let's say a E-Commerce like site
where you just have to log on or need SSL-security for one single login
page. Later I'd like to use http again and would prefer not to hard code
host:port into any page.
Is it a good idea to let Tomcat do this login stuff with all above
issues or should one better code oneself?

Thanks!
mech


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: building the mod_jk2 in one linux SuSE 8.1

2002-11-15 Thread Dionisio Ruiz de Zarate
thanks for your answer.
but one question:
in the jakarta/jk directori i have native and native2 directories.
for one apache 1.3.26 and tomcat 4.1.12 which must i to use?

thanks

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 2:47 PM
Subject: RE: building the mod_jk2 in one linux SuSE 8.1



 You need to install automake and autoconf.  binutils would be a good idea,
 as well.

 Get them here:

 http://www.gnu.org/directory/ or wherever SuSE users get packages.

 John


  -Original Message-
  From: Dionisio Ruiz de Zarate [mailto:dionisio;tinieblas.com]
  Sent: Thursday, November 14, 2002 9:48 AM
  To: [EMAIL PROTECTED]
  Subject: building the mod_jk2 in one linux SuSE 8.1
 
 
  I am trying to build the mod_jk2 for the 4.1.12 version of
  tomcat and when
  i try to make the buildconf.sh command from the jk/native directori
  appears this error (bellow).
 
  Can you help me please?
 
  thanks
 
  # ./buildconf.sh
  libtoolize --force --automake --copy
  aclocal
  ./buildconf.sh: line 8: aclocal: command not found
  automake -a --foreign -i --copy
  ./buildconf.sh: line 10: automake: command not found
  autoconf
  ./buildconf.sh: line 12: autoconf: command not found
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: building the mod_jk2 in one linux SuSE 8.1

2002-11-15 Thread Turner, John

native

John


 -Original Message-
 From: Dionisio Ruiz de Zarate [mailto:dionisio;tinieblas.com]
 Sent: Friday, November 15, 2002 2:42 PM
 To: Tomcat Users List
 Subject: Re: building the mod_jk2 in one linux SuSE 8.1
 
 
 thanks for your answer.
 but one question:
 in the jakarta/jk directori i have native and native2 directories.
 for one apache 1.3.26 and tomcat 4.1.12 which must i to use?
 
 thanks
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, November 14, 2002 2:47 PM
 Subject: RE: building the mod_jk2 in one linux SuSE 8.1
 
 
 
  You need to install automake and autoconf.  binutils would 
 be a good idea,
  as well.
 
  Get them here:
 
  http://www.gnu.org/directory/ or wherever SuSE users get packages.
 
  John
 
 
   -Original Message-
   From: Dionisio Ruiz de Zarate [mailto:dionisio;tinieblas.com]
   Sent: Thursday, November 14, 2002 9:48 AM
   To: [EMAIL PROTECTED]
   Subject: building the mod_jk2 in one linux SuSE 8.1
  
  
   I am trying to build the mod_jk2 for the 4.1.12 version of
   tomcat and when
   i try to make the buildconf.sh command from the jk/native 
 directori
   appears this error (bellow).
  
   Can you help me please?
  
   thanks
  
   # ./buildconf.sh
   libtoolize --force --automake --copy
   aclocal
   ./buildconf.sh: line 8: aclocal: command not found
   automake -a --foreign -i --copy
   ./buildconf.sh: line 10: automake: command not found
   autoconf
   ./buildconf.sh: line 12: autoconf: command not found
  
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
   mailto:tomcat-user-help;jakarta.apache.org
  
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




PoolTcpConnector not found?

2002-11-15 Thread Lee Grey
When I try to start Tomcat, catalina.out says:

Nov 15, 2002 3:10:50 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.tomcat.service.PoolTcpConnector
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:992)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:857)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252
).

I think this happened because I moved Connector to before Engine in
server.xml, per an article I found at onjava.com.  The beginning of
server.xml is:

Server port=8005 shutdown=SHUTDOWN debug=0

  !-- Define an Apache-Connector Service --

  Service name=Tomcat-Apache

Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
  Parameter name=port value=8009/
/Connector

Engine name=Apache defaultHost=www.urlinone.com debug=0


So, I'm not sure if I've gone forward or backward.  Have I just uncovered
the next problem on the road to getting this working, or have I broken
something?  Tomcat was starting up before, with the same Connector
definition, but now that I moved it in front of Engine, it won't start.
Where should PoolTcpConnector be?  My classpath is
CLASSPATH=.:/usr/local/java/lib:/var/tomcat4/common/lib/servlet.jar.

Thanks,
Lee

If you've ever opened more than one browser
window at the same time, you need URL in One
at http://www.URLinOne.com.  There's no
software to install, and it's free!


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: PoolTcpConnector not found?

2002-11-15 Thread Lee Grey
There is a definite cost to free software.  I'm losing my mind.

If Engine appears before Connector, Tomcat starts.  If Connector
appears before Engine, Tomcat fails with PoolTcpConnector not found.
Aside from the fact that a non-nested XML structure should not be
order-dependent, AFAIK, the correct order is the opposite of what the
article at http://www.onjava.com/lpt/a/1618 says.

--Lee

-Original Message-
From: Lee Grey [mailto:leegrey;mindspring.com]
Sent: Friday, November 15, 2002 3:28 PM
To: [EMAIL PROTECTED]
Subject: PoolTcpConnector not found?


When I try to start Tomcat, catalina.out says:

Nov 15, 2002 3:10:50 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.tomcat.service.PoolTcpConnector
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:992)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:857)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252
).

I think this happened because I moved Connector to before Engine in
server.xml, per an article I found at onjava.com.  The beginning of
server.xml is:

Server port=8005 shutdown=SHUTDOWN debug=0

  !-- Define an Apache-Connector Service --

  Service name=Tomcat-Apache

Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
  Parameter name=port value=8009/
/Connector

Engine name=Apache defaultHost=www.urlinone.com debug=0


So, I'm not sure if I've gone forward or backward.  Have I just uncovered
the next problem on the road to getting this working, or have I broken
something?  Tomcat was starting up before, with the same Connector
definition, but now that I moved it in front of Engine, it won't start.
Where should PoolTcpConnector be?  My classpath is
CLASSPATH=.:/usr/local/java/lib:/var/tomcat4/common/lib/servlet.jar.

Thanks,
Lee

If you've ever opened more than one browser
window at the same time, you need URL in One
at http://www.URLinOne.com.  There's no
software to install, and it's free!


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




How does servlets know it is a page refresh?

2002-11-15 Thread Peter Lee

I have some servlets serving html pages from the servlet engine.
suppose the user click the refresh button of the browser. How 
does the servlet know that the user wants a refresh of the page?

My servlet needs to know if it is a refresh since if it processes the 
same request twice in a row, it may produce  unexpected results 
by the issuing the same comand twice.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Serving PDF files gets different results from Tomcat 3.3 to 4.1

2002-11-15 Thread Hugo Villeneuve
I have found the problem.
It was a IE issues with the Cache-Control header parameter. Under HTTP 1.0
(Tomcat 3.3) IE5 and Adobe gets pdf correctly. With HTTP 1.1 and the use of
Cache-Control=no-cache IE5  keep asking to save the PDF file.. MS is suppose
to send SP4 in november.

Thank you all.


PS: there is ten time more action/response in this apache mailing list then
any Oracle Forums (when forum is working).


-Original Message-
From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
Sent: Friday, November 15, 2002 11:57 AM
To: Tomcat Users List
Subject: RE: Serving PDF files gets different results from Tomcat 3.3 to
4.1


I don not touch the PDF. I get a valid PDF out of a DataBase as a blob.

-Original Message-
From: Nicholas Pappas [mailto:pappas;cs.nyu.edu]
Sent: Friday, November 15, 2002 12:03 PM
To: Tomcat Users List
Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
4.1


What exactly are you using to generate the pdf-- home-grown code or Adobe
Distiller?  If your own code, are you sure you're creating the file itself
properly?

Hugo Villeneuve wrote:

 I am all confused now. All the test I did make it looks like a Adobe
problem
 but :

 1-  When I call static PDF from tomcat 4.1 : PDF open in the IE5 (ok)
 2-  When I call a pdf from my servlet  in tomcat 4.1 : IE5 ask to save
file
 (bad).
 3-  When I right click on the URL and ask for open in new Window  :
PDF
 open in IE5 (ok) !!!.
 4-  All condition above works on tomcat 3.3 !!

 Base on the header dump I did with telnet (thanks to Tim) (see below) It
 looks like Adobe threat HTTP 1.1 (tomcat 4.1) and HTTP 1.0 (tomcat 3.3) in
a
 different manner. I read some issues about calling PDf via GET or POST...

 If you have any Idea what could cause the problem base from the header
below
 please let me know. Un less I will keep looking on Adobe and IE news
group.

 //- Call a Static PDF, Tomcat 4.1 (open ok on IE5)-
 GET /ocian/bug-mime.pdf HTTP/1.1
 connection: close
 host: hugo

 HTTP/1.1 200 OK
 ETag: W/22649-1037304708111
 Last-Modified: Thu, 14 Nov 2002 20:11:48 GMT
 Content-Length: 22649
 Date: Fri, 15 Nov 2002 15:27:34 GMT
 Server: Apache Coyote/1.0
 Connection: close

 //- Call to Dynamic PDF, Tomcat 4.1 (IE 5ask for save, bad)-
 GET /ocian/renderer/renderPdfForm.do HTTP/1.1
 connection: close
 host:hugo

 HTTP/1.1 200 OK
 Set-Cookie: JSESSIONID=380EC9BAF52E335EBCA0759930ACC311; Path=/ocian
 Content-Type: application/pdf
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Content-Length: 22649
 Content-Disposition: inline; filename=myDoc.pdf
 Date: Fri, 15 Nov 2002 15:58:01 GMT
 Server: Apache Coyote/1.0
 Connection: close

  Call to Dynamic PDF Tomcat 3.3 (open ok on IE5)-
 HTTP/1.0 200 OK
 Content-Type: application/pdf
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Content-Length: 1361957
 Content-Disposition: inline; filename=OcianForm_102040.pdf
 Set-Cookie: JSESSIONID=8amd9yad71;Path=/ocian
 Date: Fri, 15 Nov 2002 16:06:15 GMT
 Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )

  Ops, did not know Tomcat 3.3 does not support HTTP
 1.1 -
 GET /ocian/renderer/renderPdfForm.do?path=/:102040 HTTP/1.1
 connection:close
 host:xian

 HTTP/1.0 501 Not Implemented
 Content-Type: text/html
 Content-Length: 224
 Date: Fri, 15 Nov 2002 16:01:50 GMT
 Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )
 Thank you all.

 -Original Message-
 From: Tim Funk [mailto:funkman;joedog.org]
 Sent: Friday, November 15, 2002 10:21 AM
 To: Tomcat Users List
 Subject: Re: Serving PDF files gets different results from Tomcat 3.3 to
 4.1

 Examine the HTTP headers coming back. It may be as easy as
 adding/removing a new header.

 How to look at headers coming back:
 telnet webserver.running.tomcat3 80
 GET /myServet/givesme/pdfFile HTTP/1.1
 Connection: Close
 Host: needsFilledIn

 Then repeat for your tomcat 4 version.

 -Tim

 Ralph Einfeldt wrote:
  Some options: (All not very nice)
  - run tomcat behind apache.
  - rewrite your servlet to implement http1.1
(Have a look at the tomcat source of the tomcat
 servlet that serves the files (Can't remember
 the name)
  - store the blob in the file system and redirect
the browser to that file (so tomcat would serve
the file)
  - Don't know if there is a possibility to downgrade
the http version in tomcat.
 
 
 -Original Message-
 From: Hugo Villeneuve [mailto:hvilleneuve;b-wax.com]
 Sent: Friday, November 15, 2002 3:39 PM
 To: Tomcat Users List
 Subject: RE: Serving PDF files gets different results from
 Tomcat 3.3 to
 4.1
 
 I don't know much about partial-request and the HTTP 1.1
 Header (I will read about that) but for now all my tests
 make it looks like a combination of Adobe with Tomcat 4.1 problem.
 
 What do you suggest?
 Dropping Tomcat 4.1 and go back on 

System.out.println not working on servlets initialized when Tomcat starts

2002-11-15 Thread Travis Shook
Hi,


For some reason, for any servlets that are initialized via the web.xml
(load-on-startup), Tomcat is not printing out to my DOS screen any of my
error messages or System.out.prinln in the code, although these are printing
out fine for any other Servlets or JavaBeans, etc.

Is there a setting in Tomcat that can change this?  Or a bug?  Or am I the
bug? :)

Thanks for any help,


Travis






Like jazz?
http://www.travisshook.com/
http://www.veronicanunn.com/


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Errors in mod_jk.log

2002-11-15 Thread Lee Grey
When I try to run a JSP or servlet, I get the following in mod_jk.log (this
is all from a single request):

[Fri Nov 15 15:47:27 2002] [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 111
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (626)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (872)]: Error connecting to the
Tomcat process.
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (1181)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0
[Fri Nov 15 15:47:27 2002] [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 111
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (626)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (872)]: Error connecting to the
Tomcat process.
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (1181)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Fri Nov 15 15:47:27 2002] [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 111
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (626)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (872)]: Error connecting to the
Tomcat process.
[Fri Nov 15 15:47:27 2002] [jk_ajp_common.c (1181)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2


Here's part of my httpd.conf
file
-:

# mod_jk configuration
JkWorkersFile /var/tomcat4/conf/jk/workers.properties
JkLogFile /var/tomcat4/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y]
JkMount /*.jsp worker1
JkMount /servlets/* worker1
JkMount /servlet/* worker1
JkMount /jsp/* worker1

VirtualHost *
ServerName www.ebayrelay.com
ServerAlias ebayrelay.com
DocumentRoot /var/tomcat4/webapps/examples
ErrorLog logs/ebayrelay-errorlog
CustomLog logs/ebayrelay-access.log common

Alias /examples /var/tomcat4/webapps/examples
JkMount /*.jsp worker1
JkMount /*/servlet/ worker1
/VirtualHost


And here's part of
server.xml--
--:

Engine name=Apache defaultHost=www.urlinone.com debug=0

Connector className=org.apache.tomcat.service.PoolTcpConnector
  Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
  Parameter name=port value=8009/
/Connector

  Realm className=org.apache.catalina.realm.MemoryRealm /

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=ebayrelay_access_log.
 suffix=.txt
 pattern=common resolveHosts=false/

  Host name=www.ebayrelay.com debug=0
appBase=/var/tomcat4/webapps/examples
unpackWARs=true autoDeploy=true
   Aliaslocalhost/Alias
   Aliaswww/Alias
   Alias192.168.1.80/Alias

  Context path= docBase= debug=1/

  Valve
 className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=home_access_log. suffix=.txt
 pattern=common resolveHosts=false/
  /Host


Finally, workers.properties
contains
---:

worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=192.168.1.80
worker.worker1.port=8009


I'm trying to run
http://www.ebayrelay.com:8080/examples/jsp/num/numguess.jsp or
http://www.ebayrelay.com:8080/examples/jsp/num/numguess.jsp when I get the
errors.  The static pages from Apache work fine.  I'm sure there's something
stupid here, but I just don't see it.

Thanks,
Lee

If you've ever opened more than one browser
window at the same time, you need URL in One
at http://www.URLinOne.com.  There's no
software to install, and it's free!


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: System.out.println not working on servlets initialized when Tomcat starts

2002-11-15 Thread achana
Hi Travis 

Can you see them in $CATALINA_HOME/logs/catalina.out ???
That's how I debug my stuff

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to see JSP error messages while tomcat is running

2002-11-15 Thread Paul Legato
Steven Peterson wrote:

what the error was.  Is there any way to see the error output of a jsp
page without shutting down tomcat either by a) having the output sent to
the html stream; or b) having the log file accessible while tomcat is
running; or c) . . . ?



If you do your development on a Linux or Unix box, you can do b) with 
tail -f logfile while Tomcat's running and writing to the file.

As far as I know, there's no way around the questionable file locking 
semantics implemented in Windows

-Paul




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



AW: System.out.println not working on servlets initialized when Tomcat starts

2002-11-15 Thread josh
I have almost the same problem in Tomcat 4.1.12 - in my case tomcat just
doesn't print out the System.out.prinln in the servlet init() methode, the
System.out.prinln in the service methode works. In Tomcat 4.0.4 it worked
without problem. I think it has something to do with the new loggin/debug
parameter, but i couldn't find a setting that enables System.out.prinln for
the init() methode until now.

-Ursprüngliche Nachricht-
Von: Travis Shook [mailto:travis.shook;verizon.net]
Gesendet: Freitag, 15. November 2002 22:03
An: [EMAIL PROTECTED]
Betreff: System.out.println not working on servlets initialized when
Tomcat starts


Hi,


For some reason, for any servlets that are initialized via the web.xml
(load-on-startup), Tomcat is not printing out to my DOS screen any of my
error messages or System.out.prinln in the code, although these are printing
out fine for any other Servlets or JavaBeans, etc.

Is there a setting in Tomcat that can change this?  Or a bug?  Or am I the
bug? :)

Thanks for any help,


Travis






Like jazz?
http://www.travisshook.com/
http://www.veronicanunn.com/


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




  1   2   >