Tomcat 5.0.2 and IIS

2003-08-09 Thread vikas jain
Hello,
had anyone tested tomcat servlets working with IIS server using the 
redirectory as explained at 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html

if you know how to make tomcat servlets with IIS server, please tell me.

Thanks for your help.

Vikas

_
Dress up your desktop! Get the best wallpapers. 
http://server1.msn.co.in/msnchannels/Entertainment/wallpaperhome.asp Just 
click here!

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


Re: external parameters to tomcat (how?)

2003-08-09 Thread Jon Wingfield
erm. can't you just use init parameters in the web.xml: section 
SRV.2.3.2 in the servlet 2.3 spec.
If the location is for one servlet use a servlet init param otherwise 
use a servlet context init param. In the latter case you can access it 
in your servlet by doing (for example):

String value = getServletConfig().getServletContext().
getInitParameter(KEY_NAME);
If you need to access an external file you can use an init param as a 
path to the file.
Then access it using:
standard java io (if file is outside the container)
ServletContext.getResource(...)
ServletContext.getResourceAsStream(...)

HTH,

Jon

tim wrote:

I would like to specify the location of a configuration file to tomcat 
which indicates the location of parameters used by some of my servlets. 
What is the best practice for doing this?  Particularly I want to be 
able to get access to the location in any of my servlets.

Thanks

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




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


Again, Problem: Tomcat server went down ...

2003-08-09 Thread Bing Zhang

Can someone out there help on this ?  I have posted my problem for 2 days,
didn't really get any response.  

Our Tomcat server just shut down by itself.  It caused an application
error(0xc05 ) in Java.exe and shut down.

Did this type of things happen to anybody before ?  Any ideas or directions
about what could cause this ?

Our platform is Apache 1.3.9, Tomcat 3.3, JDK 1.3, and FOP 0.20.4 running on
NT servers.  Well, I know this configuration is kinda old.

Any info on how to dig out the problem is greatly appreciated.

Bing


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



RE: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2

2003-08-09 Thread Pat Pomatto








Hi,



I have done everything you mentioned. I also reconfigured the
connector without jni. Tomcat does not throw any errors but apache does. Apache

errors:



[Thu Aug 07 12:39:45 2003] [error] mod_jk child init 1 0

[Thu Aug 07 12:39:45 2003] [error] jk2_init() Can't find child 9981 in scoreboard


[Thu Aug 07 12:39:45 2003] [error] mod_jk child init 1 -2



Any ideas?



Thanks,

Pat







-Original Message-

From: John Turner [mailto:[EMAIL PROTECTED]]


Sent: Tuesday, August 05, 2003 1:30 PM

To: Tomcat
 Users List

Subject: Re: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2





Are either of those directories in $LD_LIBRARY_PATH?



Without JNI, what's the error message then? My advice: get
it working 

without JNI first. If its not working either way, pounding
on JNI isn't



going to help much.



John



Pat Pomatto wrote:



 I have libjvm.so under JAVA_HOME/jre/lib/i386/server and


 JAVA_HOME/jre/lib/i386/client. I can't get to work
without jni either.

 

 Pat

 

 -Original Message-

 From: John Turner [mailto:[EMAIL PROTECTED]]

 Sent: Tuesday, August 05, 2003 11:00 AM

 To: Tomcat Users List

 Subject: Re: Apache 2.0.47, Tomcat 5.0.5, JK2 connector
2.0.2

 

 

 It can't find libjvm.so. Do you have that installed?

 

 Alternatively, does it work without JNI?

 

 John

 

 Pat Pomatto wrote:

 

 

Hi,



 



I'm running on Linux Apache 2.0.47, Tomcat 5.0.5 and
trying to use JK2

 

 

connector 2.0.2 which I built successfully. I
configured the connector

 

 

with jni. I cannot seem to get the connector to
work. In my

apache/logs/error_log the error generated is:



 



[Tue Aug 05 10:31:53 2003] [error] vm.init(): no jvm_dll_path,
will

 

 use

 

LD_LIBRARY_PATH libjvm.so



[Tue Aug 05 10:31:53 2003] [error] Can't load native
library libjvm.so

 

 :

 

libjvm.so: cannot open shared object file:



 No such file or directory



[Tue Aug 05 10:31:53 2003] [error] jni.loadJvm()
Error - can't load

 

 jvm dll

 

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initChannel()
init failed

 

 

for channel.jni:jni



[Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers()
init failed

 

 

for worker.jni:onStartup



[Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers()
init failed

 

 

for worker.jni:onShutdown



[Tue Aug 05 10:31:53 2003] [error] shm.init(): No
file



[Tue Aug 05 10:31:53 2003] [error] uriEnv.init() map
to invalid worker

 

 

/jsp-examples/* ajp13:localhost:8009



[Tue Aug 05 10:32:05 2003] [error] mod_jk.handle() No
worker for

/jsp-examples/index.html



 



 



Any ideas? Has anyone successfully gotten jk2
connector 2.0.2 working

with Tomcat 5?



 



Thanks in Advance,



Pat



 

 

 

 


-

 To unsubscribe, e-mail:
[EMAIL PROTECTED]

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

 

 

 


-

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 







-

To unsubscribe, e-mail:
[EMAIL PROTECTED]

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





-

To unsubscribe, e-mail:
[EMAIL PROTECTED]

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












Re: Tomcat 5.0.2 and IIS

2003-08-09 Thread John Turner
I'm pretty sure your .properties file should use port 8009.  Do you have 
the CoyoteConnector listening on port 8009 for JK?  Its enabled by default.

John

vikas jain wrote:
I changed the IIS port back to 80 and tomcat to 8080, also in the 
worker.properties file i have changed to port to 8080. still not working.

I can go to servlet using tomcat by following paths:

http://localhost:8080/servlet/HelloWorld
http://localhost:8080/examples/servlet/HelloWorld
I didn't get any error log in isapi.log file this time, but it doesn't 
work.

Thanks,


From: John Turner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 11:27:06 -0400
Well, since the error messages are complaining about localhost 80, I 
would assume that you should either:

1. consider putting Tomcat on 8080, and IIS back on 80

or

2. analyzing the registry and your properties files and look for 
anything that has port 80 specified and switch it to 8080.

Switching Tomcat back and forth on ports is easy.  I would think the 
easiest way for you to do this would be:

1. leave IIS on 80.
2. switch Tomcat between 80 and 8080 as needed, when on 80, turn IIS 
on/off as needed so there are no conflicts.

That way your environment will match the deployment environment, and 
still give you the flexibility to use Tomcat in standalone mode for 
your own development with little fuss.

John



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


RE: Servlet Dispatcher is currently unavailable

2003-08-09 Thread Shapira, Yoav

Howdy,
Oh, very interesting.  It's been a long time since I've seen this one.

Are there any errors in the tomcat logs during startup?

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Oscar (Eccox) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 2:46 PM
To: Tomcat Users List
Subject: Servlet Dispatcher is currently unavailable

I'm using TOMCAT 4.1.24 on Linux RedHat 8...
 
When I try to reach http://localhost:8080/qc/main, I have the message:
 
HTTP Status 503 - Servlet dispatcher is currently unavailable
 
Any help ???
 
Thanks,

===
José Oscar de Souza Eduardo
Coordenador de Projetos
tel: 3047-4541
fax: 3047-4550
[EMAIL PROTECTED]
===
 
 



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


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



Re: Front Controller Servlet

2003-08-09 Thread Dionisio Ruiz de Zarate
and whoy don't use one filter?
i am usin one filter; in my web.xml i have mapped all my jsp pages (*.jsp)
to this filter, an the filter actions are made first and in the second fase
the systems shows me the jsp page
- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 12:59 AM
Subject: Re: Front Controller Servlet


 The reason it is crashing is because you are forwarding to a JSP page,
 however you have already taken over jsp processing in your servlet by
 declaring that it should handle *.jsp, thus it forwards in a circle until
 it runs out of stack space.
 Try using another extension for your controller, such as .ktx as we use in
 ours.  This can then forward sucessfully to jsps!

 Should be:
 servlet-mapping
   servlet-nameFCservlet/servlet-name
   url-pattern*.ktx/url-pattern
 /servlet-mapping

 Then your links can be to index.ktx instead and it will got through ok.
 Pete

 Kiss Technologies

 http://www.kisstechnologies.co.uk/

 4, Percy Street
 London
 W1T 1DF

 Phone numbers:

 Phone 020 7692 9922
 Fax 020 7692 9923




 Sharon Cohen [EMAIL PROTECTED]
 05/08/2003 13:42
 Please respond to Tomcat Users List

 To: [EMAIL PROTECTED]
 cc:
 Subject:Front Controller  Servlet


 I am trying to build FrontController servlet for a web site on Tomcat 4 ,
 after long time of changes on the web.xml file , I wasn't able to achieve
 this pattern,
 the web.xml portion is :

 servlet-mapping
   servlet-nameFCservlet/servlet-name
   url-pattern*.jsp/url-pattern
 /servlet-mapping

 my problem start when the FrontController servlet needs to forward the
 request to other jsp pages
 and when he uses the Forward method , the tomcat activate my
 FrontController
 again , and after a  while  I get : StackOverflowError .

 Thanks for any help
 Sharon

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






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



when building tomcat 4.0 : cannot resolve symbol

2003-08-09 Thread Prestation3 . EXPLOITATION
Hi,

Trying to build Tomcat 4.1
I get the following error
what I missed ?
Can You help ?



[EMAIL PROTECTED]:/opt/jakarta-tomcat-4.1.24-src# ant dist
Buildfile: build.xml

deploy-prepare:

deploy-static:

deploy:
 [echo] Target: Catalina - Deploy ...

flags:

flags.display:
 [echo] --- Build environment for Catalina ---
 [echo] If ${property_name} is displayed, then the property is not 
set)
 [echo] --- Build options ---
 [echo] full.dist=${full.dist}
 [echo] build.sysclasspath=${build.sysclasspath}
 [echo] compile.debug=on
 [echo] compile.deprecation=off
 [echo] compile.optimize=on
 [echo] --- Ant Flags ---
 [echo] style task available (required)=true
 [echo] --- JDK ---
 [echo] jdk.1.2.present=true
 [echo] jdk.1.3.present=true
 [echo] jdk.1.4.present=true
 [echo] --- Source Dependencies ---
 [echo] jtc.home.present=true
 [echo] --- Required Libraries ---
 [echo] beanutils.present=true
 [echo] collections.present=true
 [echo] digester.present=true
 [echo] jaxp.present=true
 [echo] jndi.present=true
 [echo] logging.present=true
 [echo] regexp.present=true
 [echo] servlet.present=true
 [echo] --- Optional Libraries ---
 [echo] daemon.present=${daemon.present}
 [echo] dbcp.present=${dbcp.present}
 [echo] fileupload.present=${fileupload.present}
 [echo] jaas.present=true
 [echo] javamail.present=${javamail.present}
 [echo] jmx.present=${jmx.present}
 [echo] jsse.present=true
 [echo] jta.present=${jta.present}
 [echo] junit.present=${junit.present}
 [echo] ldap.present=true
 [echo] modeler.present=${modeler.present}
 [echo] pool.present=${pool.present}
 [echo] tyrex.present=${tyrex.present}
 [echo] --- Required JARs ---
 [echo] jndi.jar.present(except JDK 1.3+)=${jndi.jar.present}
 [echo] regexp.jar.present=true
 [echo] servlet.jar.present=true
 [echo] xerces.jar.present(except JDK 1.4+ or xerces2)=true
 [echo] xerces2.jars.present(except JDK 1.4+ or 
xerces1)=${xerces2.jars.pres
ent}
 [echo] --- Optional JARs ---
 [echo] daemon.jar.present=${daemon.jar.present}
 [echo] dbcp.jar.present=${dbcp.jar.present}
 [echo] fileupload.jar.present=${fileupload.jar.present}
 [echo] jaas.jar.present=${jaas.jar.present}
 [echo] javamail.jar.present=${javamail.jar.present}
 [echo] jdbc20ext.jar.present=${jdbc20ext.jar.present}
 [echo] jmx.jar.present=${jmx.jar.present}
 [echo] jta.jar.present=${jta.jar.present}
 [echo] junit.jar.present=${junit.jar.present}
 [echo] ldap.jar.present=${ldap.jar.present}
 [echo] modeler.jar.present=${modeler.jar.present}
 [echo] pool.jar.present=${pool.jar.present}
 [echo] tyrex.jar.present=${tyrex.jar.present}
 [echo] --- Conditional compilation flags ---
 [echo] compile.daemon=${compile.daemon}
 [echo] compile.dbcp=${compile.dbcp}
 [echo] compile.jaas=true
 [echo] compile.javamail=${compile.javamail}
 [echo] compile.jmx=${compile.jmx}
 [echo] compile.jndi=true
 [echo] compile.jsse=true
 [echo] compile.jta=${compile.jta}
 [echo] compile.junit=${compile.junit}
 [echo] compile.ldap=true
 [echo] compile.ssi=true
 [echo] compile.tyrex=${compile.tyrex}
 [echo] --- Distribution flags ---
 [echo] copy.daemon.jar=${copy.daemon.jar}
 [echo] copy.dbcp.jar=${copy.dbcp.jar}
 [echo] copy.jaas.jar=${copy.jaas.jar}
 [echo] copy.jdbc20ext.jar=${copy.jdbc20ext.jar}
 [echo] copy.javamail.jar=${copy.javamail.jar}
 [echo] copy.jmx.jar=${copy.jmx.jar}
 [echo] copy.jndi.jar=${copy.jndi.jar}
 [echo] copy.jta.jar=${copy.jta.jar}
 [echo] copy.ldap.jar=${copy.ldap.jar}
 [echo] copy.logging.jar=true
 [echo] copy.modeler.jar=${copy.modeler.jar}
 [echo] copy.pool.jar=${copy.pool.jar}
 [echo] copy.tyrex.jar=${copy.tyrex.jar}
 [echo] copy.xerces.jar=${copy.xerces.jar}
 [echo] copy.xerces2.jars=${copy.xerces2.jars}

build-prepare:

copy-activation.jar:

copy-daemon.jar:

copy-dbcp.jar:

copy-fileupload.jar:

copy-jaas.jar:

copy-jdbc20ext.jar:

copy-jmx.jar:

copy-jndi.jar:

copy-jsse.jar:

copy-jta.jar:

copy-ldap.jar:

copy-modeler.jar:

copy-pool.jar:

copy-tyrex.jar:

copy-xerces.jar:

copy-xerces2.jars:

build-static:

build-tomcat-util:

detect:

build-prepare:

build-main:
 [echo] - Java-utils -
 [echo] -- puretls.present = ${puretls.present}
 [echo] -- jsse.present = true
 [echo] -- commons-logging = true
 [echo] -- jmx = ${jmx.present} /opt/mx4j-1.1.1/lib/mx4j-jmx.jar
 [echo] -- modeler = ${modeler.present} 
/opt/commons-modeler-1.0/commons-mod
eler.jar
[javac] Compiling 50 source files to 
/opt/jakarta-tomcat-connectors-4.1.24-s
rc/util/build/classes
[javac] This version of java does not support the classic compiler; 
upgradin
g to modern
[javac] 
/opt/jakarta-tomcat-connectors-4.1.24-src/util/java/org/apache/tomca

Re: Tomcat 5.0.2 and IIS

2003-08-09 Thread vikas jain
seems something is working but still something is wrong.

Now in the isapi.log file I am getting following, looks like it's trying to 
get the file but not getting

[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1018)]: Using registry.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1020)]: Using log file 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\isapi.log.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1022)]: Using extension uri 
/tomcat/isapi_redirect.dll.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1023)]: Using worker file 
C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\workers.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1024)]: Using worker mount 
file C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (396)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was 
added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 
was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/examples/servlet/=ajp13 was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (88)]: Into wc_open
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (224)]: Into build_worker_map, 
creating 1 workers
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (230)]: build_worker_map, creating 
worker ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp12
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (164)]: wc_create_worker, about to 
create instance ajp13 of ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (173)]: wc_create_worker, about to 
validate and init ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1206)]: Into 
jk_worker_t::validate
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1226)]: In 
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1254)]: Into jk_worker_t::init
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1274)]: In jk_worker_t::init, 
setting socket timeout to 0
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (189)]: wc_create_worker, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (240)]: build_worker_map, removing 
old ajp13 worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (252)]: build_worker_map, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (111)]: wc_open, done 1
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (655)]: Detected IIS = 5.0
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc 
started
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (759)]: In HttpFilterProc 
Virtual Host redirection of /localhost/
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/localhost/'
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (599)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (765)]: In HttpFilterProc 
test Default redirection of /
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/'
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (599)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (829)]: HttpFilterProc [/] is 
not a servlet url
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (838)]: HttpFilterProc check 
if [/] is points to the web-inf directory
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc 
started
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (759)]: In HttpFilterProc 
Virtual Host redirection of /localhost/
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/localhost/'
[Thu Aug 07 15:47:22 

Re: Automatic switch from http to https doesn't work for IE, does for Netscape

2003-08-09 Thread


ÔÚ 2003-08-09 16:30:00 ÄúдµÀ£º
Tomcat 4.0.6of you ? Could you tell me ? Thanks~~
Windows 2000
IE 5, SP3
Netscape 7.02


I have a website which is part public, part secure.  There are html entries
such as lt a href=members/index.jsp gt in the public area which will
jump to the secure area.  The site is entered, by default using
http://localhost:8080 but the members area is protected via SSL and
transport guarantee stanzas
 security-constraint
  web-resource-collection
   web-resource-nameScoutGroup-Secure/web-resource-name
   url-pattern/members/*/url-pattern
  /web-resource-collection
  auth-constraint
role-namemember/role-name
  /auth-constraint
  user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint

I understand that this should force any
http://localhost:8080/scoutgroup/members request to switch to
https://localhost:8443/scoutgroup/members.  Under Netscape it does and I am
notified that I am going to a secure page, prompted to accept the SSL
certificate then driven through my logon.jsp to
response.encodeURL(j_security_check).  Under IE, however, I am notified
that I am going to a secure page, prompted to accept the SSL certificate
then told the page cannot be found.

For testing purposes, I tried putting
http://localhost:8080/scoutgroup/members in the browser's address box.

The access log contains the following (with my annotations prefixed with
)
 Using IE
127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1]   a  ] ?4?
Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988

 Using Netscape
127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp
HTTP/1.1 200 576
127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST
/scoutgroup/j_security_check HTTP/1.1 302 654
127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 200 427



Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they
attempted to navigate to the security check but then IE generated something
very peculiar and appeared to try to renegotiate the protocol to http/0.9
before giving up.


I've checked the logs - can't find anything more informative than above.

I've tried running Tomcat via the catalina run command line option but
there is no extra info there either.

I know I can modify my code to always force the full path into hyperlinks
but that's not good programming and has enormous potential for maintenance
problems.

Where do I look now?


Murray



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


 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Tomcat startup error

2003-08-09 Thread krishnakumar kumaraswamypillai
hi all
i have installed JAVA 2 SDK 1.3.1_08
 Apache HTTP server 2.0.47
 Apache Tomcat 4.1
on starting tomcat i get the  error:

Created catalinaLoader in: C:\Program Files\Apache
Group\Tomcat 4.1\server\lib
java.lang.NoClassDefFoundError:
org/xml/sax/InputSource
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:201)
at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)


I browsed google and found that my CLASSPATH has to be
set.
But to what path should it point?
which jar files?

Where will i get information.

Thank u for considering
Krishna Kumar K

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Automatic switch from http to https doesn't work for IE, does for Netscape

2003-08-09 Thread


ÔÚ 2003-08-09 16:30:00 ÄúдµÀ£º
Tomcat 4.0.6of you ? Could you tell me ? Thanks~~
Windows 2000
IE 5, SP3
Netscape 7.02


I have a website which is part public, part secure.  There are html entries
such as lt a href=members/index.jsp gt in the public area which will
jump to the secure area.  The site is entered, by default using
http://localhost:8080 but the members area is protected via SSL and
transport guarantee stanzas
 security-constraint
  web-resource-collection
   web-resource-nameScoutGroup-Secure/web-resource-name
   url-pattern/members/*/url-pattern
  /web-resource-collection
  auth-constraint
role-namemember/role-name
  /auth-constraint
  user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint

I understand that this should force any
http://localhost:8080/scoutgroup/members request to switch to
https://localhost:8443/scoutgroup/members.  Under Netscape it does and I am
notified that I am going to a secure page, prompted to accept the SSL
certificate then driven through my logon.jsp to
response.encodeURL(j_security_check).  Under IE, however, I am notified
that I am going to a secure page, prompted to accept the SSL certificate
then told the page cannot be found.

For testing purposes, I tried putting
http://localhost:8080/scoutgroup/members in the browser's address box.

The access log contains the following (with my annotations prefixed with
)
 Using IE
127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1]   a  ] ?4?
Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988

 Using Netscape
127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp
HTTP/1.1 200 576
127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST
/scoutgroup/j_security_check HTTP/1.1 302 654
127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 200 427



Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they
attempted to navigate to the security check but then IE generated something
very peculiar and appeared to try to renegotiate the protocol to http/0.9
before giving up.


I've checked the logs - can't find anything more informative than above.

I've tried running Tomcat via the catalina run command line option but
there is no extra info there either.

I know I can modify my code to always force the full path into hyperlinks
but that's not good programming and has enormous potential for maintenance
problems.

Where do I look now?


Murray



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


 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



moving from tomcat3 to tomcat4

2003-08-09 Thread Frank Cooley
I'm a little late with this.  I have an app running under tomcat3 and am
trying to move it to tomcat4.1.18.

 

I moved the directory structure  to WEB-INF, added a context to server.xml
and a mapping to my web.xml file, but I get a file not found error when I
run the app and it tries the first servlet.  Here is a snippet of my web.xml

 

servlet

servlet-name

DbOpen

/servlet-name

servlet-class

workservlet.DbOpenServlet

/servlet-class

!--

init-param

param-namefoo/param-name

param-valuebar/param-value

/init-param

--

/servlet

 

servlet-mapping

servlet-nameDbOpen/servlet-name

url-pattern/DbOpen/url-pattern

/servlet-mapping

 

and my context in server.xml

 

!-- workout Context --

Context path=/workout docBase=workout debug=0

 reloadable=true crossContext=true

  Logger className=org.apache.catalina.logger.FileLogger

 prefix=localhost_workout_log. suffix=.txt

  timestamp=true/

  

  

/Context

 

This app uses MySql, so have yet to deal with that whole issue, but I would
at least like to get connected to the servlet.  I've looked through the
archive, but none of the previous answers really apply to my case.  The log
indicates that the webapp is loaded. Thanks.

 

Frank

 



Re: Re: Oracle connection pooling

2003-08-09 Thread


ÔÚ 2003-08-09 00:07:00 ÄúдµÀ£º
Hi,of you ? Could you tell me ? Thanks~~

Firewalls, and I'm not speaking for all of them, as a rule of thumb close
_idle_ connections after an hour.

Your connections should be done well before that.

-e

On Fri, 8 Aug 2003, Cristopher Daniluk wrote:

 We are running a fairly large ecommerce site consisting of 3 apache
 2.0.48 servers being balanced between using UltraMonkey/ldirector and 2
 tomcat servers with AJP1.3. Everything is Linux except the back end
 which is a fairly hefty and firewalled Sun running Oracle8i.

 The webapps build a connection pool to oracle via the oracle.jdbc.pool.*
 connection pool. The pool instantiates fine and everything is great, but
 gradually the pool begins to break down. Idle connections are closed by
 Oracle (not sure if its oracle itself or the fw..), but the oracle pool
 doesn't figure it out. If someone happens to get the dead connection,
 Tomcat completely hangs on all threads until the session-timeout
 expires. Even the session replication code stops and the apache servers
 and the other tomcat in the cluster mark it offline. During the peak
 traffic it isn't so bad but at the end of the day after load goes back
 down, it's a big problem.

 We initially used DBCP but it didn't work for crap with Oracle. Is there
 a better pool to use with Oracle and Tomcat in a cluster environment and
 if not, is there a way we can get the Oracle pool to recycle some of
 these bad connections without blowing up the server?

 Thanks,

 Cris Daniluk

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




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


 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Re: Tomcat 5.0.2 and IIS

2003-08-09 Thread vikas jain
I was searching all the time yesterday for this topic. All I found is two 
things:
First, You are everywhere when there is some question about tomcat and IIS. 
and you are the person who resolves problems. :)
second, I found the problem i am having, ie incorrect redirecting of the 
DLL. but the solution was not there. the last messege was from you and then 
no info. Here is the link what I visited 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg95175.html

Please help me out.

Thanks,


From: John Turner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 17:00:43 -0400
It's attempting to map the DLL, which is incorrect.  I'm pretty sure this 
has come up before, I would search the archives or start a new thread with 
a different, more descriptive subject line and see if anyone has the 
answer.

John

vikas jain wrote:

seems something is working but still something is wrong.

Now in the isapi.log file I am getting following, looks like it's trying 
to get the file but not getting

[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1018)]: Using registry.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1020)]: Using log file 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\isapi.log.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1022)]: Using extension 
uri /tomcat/isapi_redirect.dll.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1023)]: Using worker file 
C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\workers.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1024)]: Using worker mount 
file C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1025)]: Using uri select 
0.
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (396)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was 
added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp13 
was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/examples/servlet/=ajp13 was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (88)]: Into wc_open
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (224)]: Into build_worker_map, 
creating 1 workers
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (230)]: build_worker_map, 
creating worker ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp12
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (164)]: wc_create_worker, about 
to create instance ajp13 of ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (173)]: wc_create_worker, about 
to validate and init ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1206)]: Into 
jk_worker_t::validate
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1226)]: In 
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1254)]: Into 
jk_worker_t::init
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1274)]: In 
jk_worker_t::init, setting socket timeout to 0
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (189)]: wc_create_worker, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (240)]: build_worker_map, 
removing old ajp13 worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (252)]: build_worker_map, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (111)]: wc_open, done 1
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (655)]: Detected IIS = 5.0
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Attention NRIs! Send money home in a jiffy. 
http://server1.msn.co.in/msnleads/citibankrca/citibankrca2.asp?type=txt Find 
out how here.

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

Binary data POSTed to Tomcat 4.1+JK2+IIS 5+Win2KSvr corrupted

2003-08-09 Thread Jim JXR
Hi, list:

I'm running a web application hosted in Tomcat 4.1,
with IIS redirector enabled. There has been no problem
with jsp browsing so far, but I have a serious problem
when posting binary data to a servlet in this
environment. Basically, a random 36byte sequence is
inserted near 56k in the data stream, which corrupts
the data received from POST. I have setup a test
environment to reproduce the problem as follows:

((Test Environment))
Win2000 Server SP4
IIS 5.0.2195.6700
J2SDK 1.4.1_02
Tomcat 4.1.27
iis_redirector.dll 2.0.2 and 2.0.1

((jk2.properties))
No setting, all comments, same as the one from the
Tomcat installation

((workers2.properties))
[logger.file:0]
# level: EMERG or ERROR or INFO or DEBUG
level=DEBUG
file=${serverRoot}/logs/jk2.log

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

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

# Map the Tomcat examples webapp to the Web server uri
space
[uri:/examples/*]
info=Map the whole webapp
debug=5

((examples context web.xml))
...
servlet
servlet-nameBinaryPostTest/servlet-name
   
servlet-classtest.BinaryPostServlet/servlet-class
/servlet
...
servlet-mapping
servlet-nameBinaryPostTest/servlet-name
url-pattern/posttest/url-pattern
/servlet-mapping

((test.BinaryPostServlet))
package test;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class BinaryPostServlet
extends HttpServlet
{
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(html);
out.println(head);
out.println(title + Binary post test servlet +
/title);
out.println(/head);
out.println(body);
out.println(Please post data to this servlet, with
entity header 'File-Name');
out.println(/body);
out.println(/html); 
}

protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
String fileName = request.getHeader(File-Name);
if(fileName == null)
fileName = file + System.currentTimeMillis() +
.dat;
fileName = C:/temp/ + fileName;
FileOutputStream fout = new
FileOutputStream(fileName, false);
InputStream in = request.getInputStream();
byte[] buffer = new byte[1024];
int read = in.read(buffer, 0, buffer.length);
while(read != -1)
{
fout.write(buffer, 0, read);
read = in.read(buffer, 0, buffer.length);
}
fout.close();
in.close();

response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(html);
out.println(head);
out.println(title + Binary post test servlet +
/title);
out.println(/head);
out.println(body);
out.println(File saved to  + fileName);
out.println(/body);
out.println(/html); 
}
}

((Java application who does the POST))
package test;

import java.io.File;
import java.io.FileInputStream;
import java.io.OutputStream;
import java.net.URL;
import java.net.HttpURLConnection;

public class BinaryPostTester
{
public static void main(String[] args)
{
try
{
if(args.length != 2)
{
System.out.println(Usage: java
test.BinaryPostTester FilePathName URL);
return;
}
File file = new File(args[0]);
URL url = new URL(args[1]);
HttpURLConnection conn =
(HttpURLConnection)url.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setRequestProperty(File-Name,
file.getName());
conn.setRequestProperty(Content-Type,
application/octet-stream);
conn.setRequestProperty(Content-Length,
String.valueOf(file.length()));
  

Re: Re: Exception report

2003-08-09 Thread
hi ,all: 
   how can I send my questions to all of you ? Could you tell me ? Thanks~~ 
 mqg 

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Re: Automatic switch from http to https doesn't work for IE, does for Netscape

2003-08-09 Thread


ÔÚ 2003-08-09 16:30:00 ÄúдµÀ£º
Tomcat 4.0.6of you ? Could you tell me ? Thanks~~
Windows 2000
IE 5, SP3
Netscape 7.02


I have a website which is part public, part secure.  There are html entries
such as lt a href=members/index.jsp gt in the public area which will
jump to the secure area.  The site is entered, by default using
http://localhost:8080 but the members area is protected via SSL and
transport guarantee stanzas
 security-constraint
  web-resource-collection
   web-resource-nameScoutGroup-Secure/web-resource-name
   url-pattern/members/*/url-pattern
  /web-resource-collection
  auth-constraint
role-namemember/role-name
  /auth-constraint
  user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint

I understand that this should force any
http://localhost:8080/scoutgroup/members request to switch to
https://localhost:8443/scoutgroup/members.  Under Netscape it does and I am
notified that I am going to a secure page, prompted to accept the SSL
certificate then driven through my logon.jsp to
response.encodeURL(j_security_check).  Under IE, however, I am notified
that I am going to a secure page, prompted to accept the SSL certificate
then told the page cannot be found.

For testing purposes, I tried putting
http://localhost:8080/scoutgroup/members in the browser's address box.

The access log contains the following (with my annotations prefixed with
)
 Using IE
127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1]   a  ] ?4?
Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988

 Using Netscape
127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp
HTTP/1.1 200 576
127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST
/scoutgroup/j_security_check HTTP/1.1 302 654
127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 200 427



Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they
attempted to navigate to the security check but then IE generated something
very peculiar and appeared to try to renegotiate the protocol to http/0.9
before giving up.


I've checked the logs - can't find anything more informative than above.

I've tried running Tomcat via the catalina run command line option but
there is no extra info there either.

I know I can modify my code to always force the full path into hyperlinks
but that's not good programming and has enormous potential for maintenance
problems.

Where do I look now?


Murray



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


 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Re: Tomcat 5.0.2 and IIS

2003-08-09 Thread John Turner
It's attempting to map the DLL, which is incorrect.  I'm pretty sure 
this has come up before, I would search the archives or start a new 
thread with a different, more descriptive subject line and see if anyone 
has the answer.

John

vikas jain wrote:

seems something is working but still something is wrong.

Now in the isapi.log file I am getting following, looks like it's trying 
to get the file but not getting

[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1018)]: Using registry.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1020)]: Using log file 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\isapi.log.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1021)]: Using log level 0.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1022)]: Using extension 
uri /tomcat/isapi_redirect.dll.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1023)]: Using worker 
file C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\workers.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1024)]: Using worker 
mount file C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1025)]: Using uri select 0.
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (396)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 
was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/examples/.jsp=ajp13 was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/examples/servlet/=ajp13 was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (88)]: Into wc_open
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (224)]: Into build_worker_map, 
creating 1 workers
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (230)]: build_worker_map, 
creating worker ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp12
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (164)]: wc_create_worker, about 
to create instance ajp13 of ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (173)]: wc_create_worker, about 
to validate and init ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1206)]: Into 
jk_worker_t::validate
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1226)]: In 
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1254)]: Into 
jk_worker_t::init
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1274)]: In 
jk_worker_t::init, setting socket timeout to 0
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (189)]: wc_create_worker, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (240)]: build_worker_map, 
removing old ajp13 worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (252)]: build_worker_map, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (111)]: wc_open, done 1
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (655)]: Detected IIS = 5.0
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc 



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


Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2

2003-08-09 Thread Pat Pomatto








Hi,



Im running on Linux Apache 2.0.47, Tomcat 5.0.5 and trying to
use JK2 connector 2.0.2 which I built successfully. I configured the connector
with jni. I cannot seem to get the connector to work. In my apache/logs/error_log
the error generated is:



[Tue Aug 05 10:31:53 2003] [error] vm.init(): no jvm_dll_path,
will use LD_LIBRARY_PATH libjvm.so

[Tue Aug 05 10:31:53 2003] [error] Can't load native
library libjvm.so : libjvm.so: cannot open shared object file:

No such file or directory

[Tue Aug 05 10:31:53 2003] [error] jni.loadJvm() Error -
can't load jvm dll

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initChannel()
init failed for channel.jni:jni

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers()
init failed for worker.jni:onStartup

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers()
init failed for worker.jni:onShutdown

[Tue Aug 05 10:31:53 2003] [error] shm.init(): No file

[Tue Aug 05 10:31:53 2003] [error] uriEnv.init() map to
invalid worker /jsp-examples/* ajp13:localhost:8009

[Tue Aug 05 10:32:05 2003] [error] mod_jk.handle() No
worker for /jsp-examples/index.html





Any ideas? Has anyone successfully gotten jk2 connector 2.0.2 working
with Tomcat 5? 



Thanks in Advance,

Pat








Servlet Dispatcher is currently unavailable

2003-08-09 Thread Oscar \(Eccox\)
Title: Mensagem



I'm using TOMCAT 
4.1.24 on Linux RedHat 8...

When I try to reach 
http://localhost:8080/qc/main, I 
have the message:

HTTP Status 503 - 
Servlet dispatcher is currently unavailable

Any help 
???

Thanks,


  
  
 
===José Oscar de Souza 
  EduardoCoordenador de Projetostel: 3047-4541fax: 
  3047-4550[EMAIL PROTECTED]=== 
  




Re: Tomcat 5.0.2 and IIS

2003-08-09 Thread vikas jain
woww, it finally worked. What I did is rebooted the system.

Thanks John for all the notes you gave me. thanks to the messages that was 
really helpful


From: vikas jain [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0.2 and IIS
Date: Fri, 08 Aug 2003 13:48:34 +
I was searching all the time yesterday for this topic. All I found is two 
things:
First, You are everywhere when there is some question about tomcat and IIS. 
and you are the person who resolves problems. :)
second, I found the problem i am having, ie incorrect redirecting of the 
DLL. but the solution was not there. the last messege was from you and then 
no info. Here is the link what I visited 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg95175.html

Please help me out.

Thanks,


From: John Turner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 17:00:43 -0400
It's attempting to map the DLL, which is incorrect.  I'm pretty sure this 
has come up before, I would search the archives or start a new thread with 
a different, more descriptive subject line and see if anyone has the 
answer.

John

vikas jain wrote:

seems something is working but still something is wrong.

Now in the isapi.log file I am getting following, looks like it's trying 
to get the file but not getting

[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1018)]: Using registry.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1020)]: Using log file 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\isapi.log.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1021)]: Using log level 
0.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1022)]: Using extension 
uri /tomcat/isapi_redirect.dll.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1023)]: Using worker file 
C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\workers.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1024)]: Using worker 
mount file C:\Program Files\Apache Software Foundation\Tomcat 
5.0\conf\uriworkermap.properties.
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (1025)]: Using uri select 
0.
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (172)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (375)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (396)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was 
added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/examples/.jsp=ajp13 was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/examples/servlet/=ajp13 was added
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules
[Thu Aug 07 15:47:22 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (88)]: Into wc_open
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (224)]: Into build_worker_map, 
creating 1 workers
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (230)]: build_worker_map, 
creating worker ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp12
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (260)]: Factory :ajp13
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (164)]: wc_create_worker, about 
to create instance ajp13 of ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (173)]: wc_create_worker, about 
to validate and init ajp13
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1206)]: Into 
jk_worker_t::validate
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1226)]: In 
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1254)]: Into 
jk_worker_t::init
[Thu Aug 07 15:47:22 2003]  [jk_ajp_common.c (1274)]: In 
jk_worker_t::init, setting socket timeout to 0
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (189)]: wc_create_worker, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (240)]: build_worker_map, 
removing old ajp13 worker
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (252)]: build_worker_map, done
[Thu Aug 07 15:47:22 2003]  [jk_worker.c (111)]: wc_open, done 1
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (655)]: Detected IIS = 
5.0
[Thu Aug 07 15:47:22 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc



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

Re: is there a way to download a jsp file from server withoutexecuting it?

2003-08-09 Thread Eric J. Pinnell
Or stealing :)

-e

On Fri, 8 Aug 2003, Tim Funk wrote:

 I hope not, we tend to call that a security flaw.

 -Tim

 Prince wrote:
  hi
 
  is there a way to download a .jsp file without executing it? ie i need the
  content od jsp file, not the result of that jsp file. same question goes
  with .cgi, .asp, .pl etc
 
  regds
  Prince
 


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



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



Tape Drive - Red Hat - Power PC (OFF TOPIC)

2003-08-09 Thread Hari Om
I have IBM 3580 Ultrium LTO Tape Drive and want to use it on IBM pSeries 
PowerPC which has Red Hat Linux installed on it. From where can I find 
DRIVERS for this Tape Drive on Red Hat Linux on Power PC?
Are they available. I checked IBM Site but it supported Linux on Intel 
platforms.

Any related information on this is appreciated.

APOLOGIES FOR OFF TOPIC

THANKS!

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: Tomcat server shutsdown very often

2003-08-09 Thread


ÔÚ 2003-08-08 22:29:00 ÄúдµÀ£º
Hello,of you ? Could you tell me ? Thanks~~

We are running Apache/Tomcat/Mysql on linux. The site was working fine till a few 
days back. When we introduced a few services, the tomcat server hangs very often. 
Then we have to restart it using startup.sh.

Sometimes it shutsdown. Any idea why. Before we had faced a similar problem with 
mysql  then we increased the max limit to 1 users.

Is there a similar problem with Tomcat. One other thing we did was turn off keep 
alives. Now the Tomcat does not shutdown but the jsp pages are very slow. The htm 
pages are ok.

Kindly guide.

Thanks  Regards,
Srinivasan.

_
www.asianetglobal.com
Get Free Email - Asianetglobal.com

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


 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: window close session invalidate

2003-08-09 Thread Jeremy Crosbie
Have you tried running this in Mozilla/Netscape? That would rule-out/in it
being a browser issue. Something to do with cookies, perhaps?

 -Original Message-
 From: Paul Wallace [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 4:55 PM
 To: [EMAIL PROTECTED]
 Subject: window close session invalidate
 
 Hi,
   This problem bought to the user list after it became evident it was
 a configuration issue and not a development one.
   Can anyone tell me why my session cookie is being invalidated when I
 close a popup window (the original remains open), either by
 window.close(); (Javascript) or the Windows close Ap. icon on the top
 right corner? Note: running the app. (and closing the popup) from the same
 instance of Tomcat, but from a different terminal does NOT do this! This
 would imply it is an IE config issue? Does anyone have any experience of
 this please?
 
 Thanks
 
 Paul.
 
 where my session was being invalidated
 OK, Thanks for that.
   An interesting note however..after some testing, the session is not
 killed when run from another terminal i.e running the same instance of TC
 (same server) but from different terminals. That would suggest it is an IE
 configuration issue (at much annoyance to certain developers). I will at
 this stage bring this up on the user list!
 
 Thanks
 
 Paul.
 
 i had the same problem with internet explorer. mozilla seems to work
 properly.
 i tracked the problem down and found out that internet explorer looses
 the session cookie when closing the popup browser window.
 
 then i added
  DefaultContext cookies=false /
 to my virtualhost definition in server.xml to disable the session-cookie
 mechanism.
 after that everything worked fine for me.
 remember to encode all urls with response.encodeURL().
 
 jochen schwörer
 
 
 Wednesday, August 6, 2003, 6:00:57 AM, you wrote:
 
 PW Dear all,
 PW May someone enlighten me on why my session is being
 invalidated
 PW when I close a browser window? I am doing this in one of two ways -
 the
 PW application close icon on the top right of the window, or a simple:
 
 PW a href=javascript:window.close();CLOSE/a
 
 PW Does anyone have any experience of this? The session is being killed
 and
 PW thus so is my app. I will submit this query to the user list, but
 PW thought it appropriate for this list as I am getting the same result
 PW from multiple instances of TC on different servers, implying it is not
 a
 PW configuration issue as first suspected.
 
 PW Thanks
 
 PW Paul.
 
 PW -
 PW To unsubscribe, e-mail: [EMAIL PROTECTED]
 PW For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: jsps xhtml and Internet Explorer

2003-08-09 Thread Bill Barker
MSIE has a bad habit of ignoring Content-Type, so I don't know that this
will work.  However, what you want is:
  jsp:directive.page contentType=text/html; charset=iso-8859-1 /

(of course, change the charset if you aren't using iso-latin-1).

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi there,
   anoyone know this one?

 I have a jsp page written to the xhtml standard. It looks like this:

 ?xml version=1.0?

 !-- 
   - Author(s):
   - Date:
   - Copyright Notice:
   - @(#)
   - Description:
   --
  jsp:root  xmlns:jsp=http://java.sun.com/JSP/Page;
 xmlns:html=/WEB-INF/struts-html.tld
 xmlns:bean=/WEB-INF/struts-bean.tld
 xmlns:dt=http://jakarta.apache.org/taglibs/datetime-1.0;
 xmlns:c=http://java.sun.com/jstl/core;
 xmlns:fmt=http://java.sun.com/jstl/fmt;
 version=1.2
 html:html xhtml=true
 head
[...]
 /head
 body
[...]
 /body
   /html:html
 /jsp:root


 All seems fine. The page compiles properly and looks nice on every browser
I've
 tried. Except Internet Explorer (v6), where it simply displays the XML
source tree.

 I tried adding:

  mime-mapping
 extensionjsp/extension
 mime-typetext/html/mime-type
   /mime-mapping

 (and simlarly for xhtml) to the web.xml (both the webapp one and the
global one).


 I'm using tomcat 4.0.6 and java 1.4.1 (I can't easily upgrade these
because this
 is what my client use). I've had a search through the FAQs, this list's
archive
 and on Google and can't find the solution.

 Has anyone seen this before?

 Many thanks,

 Graham




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



Re: unexpected java.lang.NoClassDefFoundError:javax/management/MBeanRegistration

2003-08-09 Thread Jean-Francois Arcand
Try adding the mx4j jar file to the classpath command line to see if it 
work. Or start using Netbeans or Eclipse (just kidding :-) )

-- Jeanfrancois

Dmitry Beransky wrote:
At 10:07 AM 8/8/2003, Jean-Francois Arcand wrote:

This plug-in is for which version?


The plugin itself is from Sean Taylor 
(http://www.objectorientedsoftware.com/projects/index.html).  I'm using 
IDEA v. 3.0.4

Can you post the entire stack trace?


Exception during startup processing
java.lang.reflect.InvocationTargetException
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)
Caused by: java.lang.NoClassDefFoundError: 
javax/management/MBeanRegistration
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:723)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1097) 

at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:579) 

at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) 

at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Can I get an answer please -- Re: Why integrate Tomcat with a web server?

2003-08-09 Thread Shawn Zernik
It actually makes since.  Most web servers are in native code which is
uasually faster, and tomcat is in java.

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 10:38 AM
To: Tomcat Users List
Subject: Re: Can I get an answer please -- Re: Why integrate Tomcat with
a web server?


Of course not.  I'm only regergitating stuff I have read.  But I have seen
it
from several different sources, so I took it as truth.  Do you have
benchmarks
to prove otherwise?

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.ait-web.com  *
***
Shapira, Yoav wrote:
 Howdy,


Because a web server serves static content (html, images, etc.) much

 faster

than tomcat will.


 Really?  Do you have a benchmark using tomcat 4.1.x that supports the
 above?

 Yoav Shapira


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



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



Apache's SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt:460

2003-08-09 Thread achana
A bit off topic again.
I have apache 2.0.40 + mod_ssl talking with OpenSSL. 
Things seem to be working, client browsers present certificate and
log-on, tells me its high grade encryption etc.
But when I do
[ssl]# openssl s_client localhost:443 -state -debug
I still get this error message :
SSL_connect:SSLv2/v3 write client hello A
read from 0809D018 [080A25C0] (7 bytes = 7 (0x7))
 - 3c 21 44 4f 43 54 59  !DOCTY
SSL_connect:error in SSLv2/v3 read server hello A
3751:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:s23_clnt.c:460:
***
Been researching this, seems a lot of people had this problem and it has
to do wth some fine-tuning of httpd.conf, short on specifics.
Does anyone know how to resolve this problem ???
Cheers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

configuration of thread pool used by Tomcat

2003-08-09 Thread Agarwal, Naresh



Hi

How does thread 
creation/destruction works in Tomcat?

Is the total no. of threads in 
thread pool maintained by Tomcat variesas load 
varies?

Does Tomcat destroys threads in 
the pool, if they are idle for the long time? If yes, is there way to ensure 
that Tomcat didn't kill the idle threads, ie., once created, a thread will never 
die as long as Tomcat is running?

If I keep Min_no_of_threads = 
Max_no_of_threads = 20, then can I assume that Tomcat will always use 20 
threads?


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

RE: Multiple Tomcat instances

2003-08-09 Thread Angus Mezick
Can the developers have a tomcat instance running inside of eclipse on
their desktops?  This will allow them do use the debugger.
--Angus

 -Original Message-
 From: Christian Hauser [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 05, 2003 9:57 AM
 To: Tomcat Users List
 Subject: Multiple Tomcat instances
 
 
 Hello Tomcat cracks
 
 I'm new to Tomcat administration and would like to switch from 
 ServletExec to Tomcat 4.1.
 
 However, I have some difficulty understanding how to set up different 
 Tomcat instances. I'd like to have different Tomcat instances 
 for each 
 developer (to test web applications) and for each application.
 
 Tomcat is installed into /usr/local/tomcat-4.1.24 
 (CATALINA_HOME). Every 
 developer and web application should now have its own 
 instance somewhere 
 (CATALINA_BASE).
 
 For example: /home/chauser/tomcat in my case (CATALINA_BASE). This 
 directory contains some folders: logs, conf, work, webapps, bin.
 
 Which port to change?
 In the conf directory I'd like to put a tailored versions of 
 web.xml and 
 server.xml, but I don't know which Port I have to change.
 
 How to deal with user/root problems?
 When I have a start, stop or restart script in CATALINA_BASE/bin, I 
 cannot startup or shutdown tomcat, because the startup.sh and 
 shutdown.sh (in CATALINA_HOME/bin) belong to root.
 
 Is there a good Tomcat 4.1 administration reference available online 
 (apart from the Tomcat documentation)? In about 2-3 weeks 
 I'll get the 
 book Tomcat: The Definitive Guide (O'Reilly), however, I'd like to 
 progress until then.
 
 Thank you in advance for all your help.
 
Christian
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: how to suppor 30000 concurrent users

2003-08-09 Thread Angus Mezick
Ahh, the is the beauty of the cookie!  All my servers respond to
www.guidestar.org.  I start a session, save that session id in the
cookie, save the sessionid and data to the DB table that all the servers
share.  The next request goes to a different server but it can still see
the id in the cookie.  That id is used to get the session data out of
the table for use and then put the data back in.  As long as the DB can
handle the load I can add servers.  I am not worried about the network
handling the load because the only other way of doing this that I know
of is to use Filip Hank's In Memory Session Replication at
http://www.filip.net/tomcat/tomcat-javagroups.html which uses IP
multicast.  I didn't want all my servers to get load every time one
server got a hit.  If the DB gets overloaded I can always split my
servers into 2 groups and use apache session affinity to split the work
between them.  Which leads to my next email :) Do the worker names in
worker2.properties and the jvmroute in server.xml have any relation?

--Angus

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 05, 2003 10:25 AM
 To: Tomcat Users List
 Subject: RE: how to suppor 3 concurrent users
 
 
 Sorry for being thick but Im a bit confused as to when you are doing 
 anything with the sessions?  If I make a request to one 
 server, then go on 
 to another for the next request, how does server 2 get my 
 session from 
 server 1 without server 1 having had to persist the session 
 to disk every 
 time any change is made to it?
 Pete
 
 
 
 
 
 Angus Mezick [EMAIL PROTECTED]
 05/08/2003 15:11
 Please respond to Tomcat Users List
  
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:RE: how to suppor 3 concurrent users
 
 
 Doesn't seem to have that much of an effect.  I guess I should profile
 it though.  I don't want to use session persistence because 
 then I would
 need to use network session clustering.  Session clustering is a
 requirement for my app.  I figure using a DB instead of 
 memory to store
 my sessions is better than sending 5 network connections to 
 the other 5
 of the 6 web servers with the session data that will only be valid to
 ONE of those servers.  Before tomcat we were using Iplanet 4.1 and the
 cisco load balance we have SAID it could handle session 
 affinity but it
 didn't seem to be able to.  So we went with a DB solution 
 which, to me,
 seems to be the more optimal solution.  The DB also means I can have a
 MUCH larger number of active sessions using my servers because I don't
 have to worry about the sessions using all my memory.  I just have to
 worry about DB disk space but I had have 2 or 3 terabytes of 
 disk while
 only have 2 GB of memory.  Seems to be an easy trade.
 --Angus
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, August 05, 2003 9:40 AM
  To: Tomcat Users List
  Subject: RE: how to suppor 3 concurrent users
  
  
  Angus,
  doesnt using a shared jdbc based session manager slow the 
  whole thing down 
  a lot?  Why dont you just use session persistence?
  Pete
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions

2003-08-09 Thread Eric J. Pinnell
Hi,

Do a ps -ef (or ps -aux) and find out the PID of the java process (your
sys-admin can help here).  Then do a 'kill -QUIT PID' where PID is the
PID of the java process.

It will send the thread dump to the catalina.out file.

Deciphering the thread dump is a little difficult if you have never done
it before and it is out of the scope of this list.  Suffice it to say you
can see what lines of code your threads are on.

Typically when you hang up your DB connections you will see a bunch of
threads hung up on the same class.  Then you will see one just a little
further ahead.  Typically this is the thread and class that all the others
are waiting for to finish...  so the other threads can finish.  It's
important to get as many thread dumps as you can as fast as you can right
in a row.

You have to read up, so to speak.  Google is your friend.

Hope this helps.

-e

On Fri, 8 Aug 2003, Barclay A. Dunn wrote:

 thanks to eric for your ideas. this is a new idea but i don't know exactly
 how to get a thread dump. i guess it's outside the range of my experience so
 far. :) can you spell it out for me? much appreciated.

 thanks,
 barclay

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 10:20 PM
 To: Tomcat Users List
 Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
 DBCP exceptions


 Sorry, I sent this a little to soon...

 Get 5 or 10 thread dumps in a row real fast... just bam, bam, bam, etc...

 From that you can tell what the threads are doing.  They should be moving
 through methods (or classes) very quickly.  If they are sticking they are
 waiting on something and that's typically bad.

 Find what they are sticking on and fix it. :)  Simple, eh?

 -e

 On Fri, 8 Aug 2003, Eric J. Pinnell wrote:

  Hi,
 
  You could get a thread dump and see where your connections are hanging.
 
  When you get your errors kill -QUIT the pid.
 
  -e
 
  On Fri, 8 Aug 2003, Barclay A. Dunn wrote:
 
   ok, well, at least we have concrete proof of it.
  
   now, given that i can confirm that i am closing connections (calling
 close()
   on them, which returns them to the pool), can you suggest how i might
 locate
   where those connections are not getting released? i have read some stuff
   about dbcp not being entirely reliable in releasing connections. is that
   true? argh.
  
   thanks again,
   barclay
  
   -Original Message-
   From: Angus Mezick [mailto:[EMAIL PROTECTED]
   Sent: Friday, August 08, 2003 4:27 PM
   To: Tomcat Users List
   Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
   DBCP exceptions
  
  
   Yup, and when nothing is happening, the # of active connections should
   be 0.  If it isn't you aren't releasing connections properly.
  
-Original Message-
From: Barclay A. Dunn [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:19 PM
To: Tomcat Users List
Subject: RE: Help! heavy traffic is crapping out our site
every 5 min! DBCP exceptions
   
   
cool. that works for me. so, let's say i want to watch my sql server
connections monitor and run this pool monitor from a jsp at
the same time.
shouldn't i expect to see the # of active + # of idle on the
jsp add up to
the # of connections that sql server knows about? (assuming
tomcat is the
only user of connections to this db)
   
trying to check my assumptions here.
   
barclay
   
-Original Message-
From: Angus Mezick [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
DBCP exceptions
   
   
Oh, here is the code that will work with a JNDI resource:
javax.naming.Context initContext;
try {
initContext = new InitialContext();
javax.naming.Context envContext =
(javax.naming.Context)initContext.lookup(java:/comp/env);
BasicDataSource ds =
(BasicDataSource)envContext.lookup(jdbc/SessionDB);
if(ds!=null){
pageContext.getOut().println(
jdbc/SessionDB:  Active:
 + ds.getNumActive() +  Idle:  + ds.getNumIdle() + br);
}
} catch (NamingException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
}
   
 -Original Message-
 From: Angus Mezick
 Sent: Friday, August 08, 2003 3:26 PM
 To: 'Tomcat Users List'
 Subject: RE: Help! heavy traffic is crapping out our site
 every 5 min! DBCP exceptions


 Here is a little snippet I use inside of a custom tag to
 disply pool health:
 private void printPoolStatus() throws IOException {
 PoolingDriver driver = new PoolingDriver();
 pageContext.getOut().println(brbDbcp Pool
 Data:/b br);
 ObjectPool gop = 

RE: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions

2003-08-09 Thread Barclay A. Dunn
your logic seems on target to me.

my sysadmin (who's just as stymied as i am) says that according to his
sources, sockets on linux are open files so if the open file limit is
exceeded, it would affect sockets as well. any thoughts on this?

barclay

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 1:38 PM
To: Tomcat Users List
Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
DBCP exceptions


I'm pretty sure can't create socket means it can't connect to the DB for
some reason.  I would wager the DB (or something) is refusing the
connection.  The fact that it said can't create socket means that tomcat
is trying to do so.  So that part of it seems alright.

-e

On Fri, 8 Aug 2003, Barclay A. Dunn wrote:

 well, i followed the dbcp comment that says set to 0 for unlimited and
 that turns out to be wrong.

 i also tried -1 and that is equally unuseful in terms of setting it to
 unlimited.

 so i tried setting maxActive to 10 and so far it is generating no
 errors. no, i'm wrong. connecs shot up to around 600 or maybe more, then
we
 started getting the java.sql.SQLException: [Microsoft][SQLServer 2000
Driver
 for JDBC]Error establishing socket.

 the db has an insanely huge connection limit of 99,999 we think.

 barclay

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 08, 2003 1:27 PM
 To: Tomcat Users List
 Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
 DBCP exceptions


 Is it also unlimited (or insanely huge) on the database?

 -e

 On Fri, 8 Aug 2003, Barclay A. Dunn wrote:

  i adjusted the pool to unlimited and am still getting these errors.
  something else seems to be fekachte.
 
  barclay
 
  -Original Message-
  From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 08, 2003 1:11 PM
  To: Tomcat Users List
  Subject: Re: Help! heavy traffic is crapping out our site every 5 min!
  DBCP exceptions
 
 
  Hi,
 
  Your pool of  connections to your database is exhausted.  Try upping the
  number.
 
  -e
 
  On Fri, 8 Aug 2003, Barclay A. Dunn wrote:
 
   we are getting a ton of these errors in our catalina.out and i could
use
   help in fixing it.
  
   i know they are related to our connection pooling, but not what to do
to
   fix. my understanding of the underlying mechanics of connection
pooling
 is
   somewhat limited.
  
   i have put two different but related error messages in here:
  
   java.sql.SQLException: DBCP could not obtain an idle db connection,
pool
   exhausted
   at
  
 

org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
   .java:123)
   at
  
 

org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
   va:110)
   at
  
 

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
   12)
   at com.happypuppy.util.HPSql.getConnection(HPSql.java:21)
   at org.apache.jsp.index_jsp._jspService(index_jsp.java:222)
   at
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
   04)
   at
  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
   java:684)
   at
  
 

org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
   er.java:575)
   at
  
 

org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
   .java:498)
   at
  
 

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
   22)
   at org.apache.jsp._404_jsp._jspService(_404_jsp.java:373)
   at
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
   04)
   at
  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
   FilterChain.java:247)
   at
  
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
   ain.java:193)
   at
  
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
   va:260)
   at
  
 


Re: Freeing processors

2003-08-09 Thread Jon Wingfield
Yep. Since RH 8 the ps command only shows the main java process. In 
previous versions ps showed the parent process and a child process for 
each thread the java app spawned. The previous behaviour often lead to 
confusion relating to memory assignment so i guess that's why RH changed 
it. Personally, I find the change annoying coz it was an easy way to see 
how many threads the app had spawned.

Jon

Donaldson Sgt Michael J wrote:

I have a question along these lines...
I am running jakarta-tomcat-4.1.18 on 4 different severs. 3 are Red Hat 8.0
and 1 Red Hat 6.2. Same tomcat configuration on all of them. ps -el shows
one java process on the Red Hat 8.0 but on the 6.2 box I have upward of 30
processes for java. Is there a reason for this?
R/S
Magilla


Hi

My problem is that tomcat runs out of processors and I see No processor
available, rejecting this connection in the log file. By reading earlier
posts a I understand that each processor is a thread and is not freed until
it is returned by my code, my code is hanging somewhere.
The problem is that my servlet (the only thing running in tomcat) only
forwards requests threw CORBA to a big app that I can't change, and its in
their the code hangs.
So, how can I solve this? The perfect solution would be if tomcat could
automaticly free processors after some timeout ( 60 s) but I have not found
such a feature/setting, does it exist? If not, could I do some small hack in
my servlet that monitors and somehow terminates (kills thread or something)
the request after 60s and therby freeing the processor?
I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the
HttpConnector. 

Thank you

Daniel Carlsson 
Gimlisoft AB
Email: [EMAIL PROTECTED]
Tel: 0709-744570, 031-189024





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


RE: is there a way to download a jsp file from server without executing it?

2003-08-09 Thread Angus Mezick
Write a servlet/jsp that goes and gets the jsp you want and displays it
to you.

 -Original Message-
 From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 08, 2003 2:02 PM
 To: Tomcat Users List
 Subject: Re: is there a way to download a jsp file from 
 server without executing it?
 
 
 Or stealing :)
 
 -e
 
 On Fri, 8 Aug 2003, Tim Funk wrote:
 
  I hope not, we tend to call that a security flaw.
 
  -Tim
 
  Prince wrote:
   hi
  
   is there a way to download a .jsp file without executing 
 it? ie i need the
   content od jsp file, not the result of that jsp file. 
 same question goes
   with .cgi, .asp, .pl etc
  
   regds
   Prince
  
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Stable tomcat + apache + mod_j2 + ssl

2003-08-09 Thread John Turner
Mod_ssl is an Apache module that allows SSL encryption between the 
webserver and the client.  It is not involved in any way with the 
communications between Apache and Tomcat.

There is no such thing as an Apache connector that encrypts 
transmissions to Tomcat, SSL or otherwise.  As far as I know, you have 
two options:

1) hack the Apache module source code and implement SSL yourself

or

2) use an external application such as stunnel or some other tool to 
tunnel the AJP protocol over an encrypted channel.  I am not familiar 
with any such tools on a Windows OS, they may or may not exist...on a 
UNIX or Linux it wouldn't be very hard to setup.

John

Ramanan Ramadoss wrote:

Thanks for your reply. 

We need to implement end to end encryption. I do not have an option with
respect to the OS. I have Windows 2000 as our OS for both the webserver and
app server. Due to end to end encryption, we have to secure the
communication between the webserver and app server. 

I have heard about mod_ssl but have not used it. Would that be an option to
secure the communication between apache and tomcat. Your opinion is highly
appreciated.
--Ramanan

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:17 AM
To: Tomcat Users List
Subject: Re: Stable tomcat + apache + mod_j2 + ssl


Apache 2.0.47
Tomcat 4.1.24
There isn't an SSL version of either the mod_jk or jk2 connector.  Since 
JK and JK2 don't ever communicate with a client, there's really no need. 
   You might be able to setup a tunnel using stunnel or similar, but on 
Windows that will be problematic.

Apache binary: http://httpd.apache.org/download.cgi

Tomcat binary: http://jakarta.apache.org/site/binindex.cgi

Connectors: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

Connector FAQ: http://jakarta.apache.org/tomcat/faq/connectors.html

John

Ramanan Ramadoss wrote:


Dear friends,
I am a newbie and have to set up a secure enviroment between tomcat
and

apache. 

Can someone tell me which is the stable production ssl version of
tomcat and apache? Is there a ssl version of mod_jk or mod_j2 connector?
If

no which connector should we use? Where can I get a built version of the
webserver, app server and the connectors that work with each other for a
windows 2000 environment.
Thanks
Ramanan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


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


Freeing processors

2003-08-09 Thread Daniel Carlsson
Hi 

My problem is that tomcat runs out of processors and I see No processor available, 
rejecting this connection in the log file. By reading earlier posts a I understand 
that each processor is a thread and is not freed until it is returned by my code, my 
code is hanging somewhere. 

The problem is that my servlet (the only thing running in tomcat) only forwards 
requests threw CORBA to a big app that I can't change, and its in their the code 
hangs. 

So, how can I solve this? The perfect solution would be if tomcat could automaticly 
free processors after some timeout ( 60 s) but I have not found such a 
feature/setting, does it exist? If not, could I do some small hack in my servlet that 
monitors and somehow terminates (kills thread or something) the request after 60s and 
therby freeing the processor? 

I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the 
HttpConnector.  


Thank you 

Daniel Carlsson 
Gimlisoft AB
Email: [EMAIL PROTECTED]
Tel: 0709-744570, 031-189024

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



Re: Can I get an answer please -- Re: Why integrate Tomcat with a web server?

2003-08-09 Thread Nathan Ward
Sorry about that John. I must have missed your reply. I'm still figuring out
how to effectively use the mailing lists. I wanted to direct the message to
you, but I thought it would be useful to others so I wanted to post it here
rather than sending it only to you.

   Nathan

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 08, 2003 9:35 AM
Subject: Re: Can I get an answer please -- Re: Why integrate Tomcat with a
web server?



 I did, last week.

 In any case, if you have something to ask me directly, you can send me a
 message off-list.

 John

 Nathan Ward wrote:

  Hello John,
 
  I hate to be pushy, but are you going to post a reply to this question
at some point?
 
 Nathan
- Original Message -
From: Nathan Ward
To: [EMAIL PROTECTED] ; Tomcat Users List
Sent: Monday, August 04, 2003 11:05 AM
Subject: Why integrate Tomcat with a web server?
 
 
I have a question for John Turner about a statement in the book Apache
Tomcat Security.
 
Page 12 says:
As discussed earlier, running publicly available web services as root
or superuser is typically a bad idea, so the solution is to avoid using
Tomcat as a stand-alone web server on port 80 by integrating it with a
standard HTTP web server such as Apache, Microsoft's IIS, or Sun
Microsystem's iPlanet.
 
Question: Does this apply when running under Windows? The reference to
as discussed earlier talks about running Tomcat as a service with more
permissions than necessary. Windows defaults to running services as SYSTEM
which has administrator privileges. Fine, but as also mentioned earlier, you
can create a user account with less permissions and setup the service to run
Tomcat under that account. So, how does the statement on page 12 relate to
running Tomcat under windows, i.e. why run Tomcat with IIS rather than just
run Tomcat? There may be performance reasons, but from a security point of
view, is there increased security risks in running Tomcat without IIS when
running as a service under Windows?
 
   Nathan
 



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





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



Re: is there a way to download a jsp file from server without executingit?

2003-08-09 Thread Tim Funk
I hope not, we tend to call that a security flaw.

-Tim

Prince wrote:
hi

is there a way to download a .jsp file without executing it? ie i need the
content od jsp file, not the result of that jsp file. same question goes
with .cgi, .asp, .pl etc
regds
Prince
 


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


Re: Tomcat 5.0.2 and IIS

2003-08-09 Thread John Turner
Gotta love Windows. :)

Glad you got it working.

John

vikas jain wrote:

woww, it finally worked. What I did is rebooted the system.

Thanks John for all the notes you gave me. thanks to the messages that 
was really helpful


From: vikas jain [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0.2 and IIS
Date: Fri, 08 Aug 2003 13:48:34 +
I was searching all the time yesterday for this topic. All I found is 
two things:
First, You are everywhere when there is some question about tomcat and 
IIS. and you are the person who resolves problems. :)
second, I found the problem i am having, ie incorrect redirecting of 
the DLL. but the solution was not there. the last messege was from you 
and then no info. Here is the link what I visited 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg95175.html

Please help me out.

Thanks,


From: John Turner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 17:00:43 -0400
It's attempting to map the DLL, which is incorrect.  I'm pretty sure 
this has come up before, I would search the archives or start a new 
thread with a different, more descriptive subject line and see if 
anyone has the answer.

John



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


Re: Tomcat 4.1.24 behind a proxy

2003-08-09 Thread Ken Rachynski
On Wed, Aug 06, 2003 at 09:24:03AM +0200, [EMAIL PROTECTED] wrote:
 Hello,
 
 My Tomcat server runs behind a proxy.
 I set on my Windows 2000 server this environment variable to be able to access to 
 external locations:
 CATALINA_OPTS = -DproxySet=true -DproxyHost=myproxy.blabla.com -DproxyPort=8080
 
 It worked very well since I updated Tomcat to 4.1.24.
 Now it doesn't work anymore.
 
 Is there something wrong with my configuration?

Those appear to be JVM settings.  You didn't also change your JDK at the
same time?

-- 
Ken Rachynski [EMAIL PROTECTED]
http://www.tanga.dyndns.org/
xmpp:[EMAIL PROTECTED]  [http://www.jabber.org]
Fingerprint: 74BF 0307 A067 D5E0 81CF  5DF7 CD9C 293D B6EE DE6F

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



integration of apache2.0.40 tomcat4.1.27

2003-08-09 Thread unplug
Hi all,

   I have installed RH9 and it contains apache2.0.40.  Then I installed
tomcat4.1.27 by binary.  After that I want to integrate them to work
together by using jk2.  What is the easy way to integrate them?  Any
document that shows step by step integration?  

   I found jakarta site have a related document about it.  But I can't
find the bin mod_jk2 for 2.0.40 in jakarta site.  Where can I find
mod_jk2 for 2.0.40?  Any guide line to build it myself?  I wonder why
jakarta site doesn't have mod_jk2-2.0.40 for download.

Rgds,
unplug

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



Starting tomcat from init scripts (HP/UX)

2003-08-09 Thread Lott, Carey
Hi,
The above subject is based on the exact same topic I found in the archives
from back in January, but no solution was ever posted.  We are having the
exact same problem that Pascal was having.  We are trying to start tomcat
from an init script at boot time.  I have the needed variables in the init
script, and the init script calls catalina.sh directly.  Below is a copy of
my script.  I have used the script to stop and start tomcat manually without
a problem.  However, when Tomcat tries to start at boot time the run control
information states that it can't start as root, and it is going to try as
bin, but it is unsuccessful.  Does anybody know why it wouldn't be able to
start as root?  What can I do to fix this?

Init script:
-
#!/bin/sh
# Start/Stop for Tomcat Java Servlet Container
#

CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4
export CATALINA_HOME
JAVA_HOME=/opt/java1.4
export JAVA_HOME
CLASSPATH=/bto/appl/apache/jakarta-tomcat-4.0.4/common/lib/servlet.jar:/opt
/java1.4/jre/lib/rt.jar:/opt/java1.4/lib/tools.jar:/opt/java1.4/lib/dt.jar:/
opt/java1.4/lib/htmlconverter.jar:/opt/java1.4/jre/lib/charsets.jar:/opt/jav
a1.4/jre/lib/javaplugin.jar:/opt/java1.4/jre/lib/ext/dnsns.jar:/opt/java1.4/
jre/lib/ext/localedata.jar:/opt/java1.4/jre/lib/ext/ldapsec.jar:/opt/java1.4
/jre/lib/jce.jar:/opt/java1.4/jre/lib/jsse.jar:.:/bto/appl/apache/jakarta-to
mcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/jakarta-tomcat-4.0.4
/webapps/esd/WEB-INF/lib:/bto/appl/apache/htdocs/esd/java:/bto/sys/oracle/pr
oduct/8.0.6/jdbc/lib/classes111.zip
export CLASSPATH

case $1 in
'start')
/bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start
 /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstart.txt 21 
;;
'stop')
/bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop
 /bto/appl/apache/jakarta-tomcat-4.0.4/logs/bootlogstop.txt 21 
;;
esac


Thank you for any help you can offer.
Carey

signature
nameCarey Lott/name
posWeb Tools Support/pos
orgInfrastructure Storage  Tools Support/org
companyEDS/company
accountBellSouth/account
email[EMAIL PROTECTED]/email
ipager[EMAIL PROTECTED]/ipager
/signature

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



Re: Oracle connection pooling

2003-08-09 Thread Mark
For what it's worth... in a webapp I wrote for my company we had flaky 
connection problems when using 
oracle.jdbc.pool.OracleConnectionPoolDataSource against 8i. I switched to 
oracle.jdbc.pool.OracleConnectionCacheImpl and all the problems magically 
disappeared (much to the delight of our dba's).

http://otn.oracle.com/doc/oracle8i_816/java.816/a81354/samapp9.htm



At 8/8/2003 11:50 PM, you wrote:
We are running a fairly large ecommerce site consisting of 3 apache
2.0.48 servers being balanced between using UltraMonkey/ldirector and 2
tomcat servers with AJP1.3. Everything is Linux except the back end
which is a fairly hefty and firewalled Sun running Oracle8i.
The webapps build a connection pool to oracle via the oracle.jdbc.pool.*
connection pool. The pool instantiates fine and everything is great, but
gradually the pool begins to break down. Idle connections are closed by
Oracle (not sure if its oracle itself or the fw..), but the oracle pool
doesn't figure it out. If someone happens to get the dead connection,
Tomcat completely hangs on all threads until the session-timeout
expires. Even the session replication code stops and the apache servers
and the other tomcat in the cluster mark it offline. During the peak
traffic it isn't so bad but at the end of the day after load goes back
down, it's a big problem.
We initially used DBCP but it didn't work for crap with Oracle. Is there
a better pool to use with Oracle and Tomcat in a cluster environment and
if not, is there a way we can get the Oracle pool to recycle some of
these bad connections without blowing up the server?
Thanks,

Cris Daniluk

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


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


Problem with tomcat

2003-08-09 Thread batristain
Greetings,

 I'm hosting a ssl site with mod_ssl on the 
 apache server and I need to have it to connect to tomcat can't I 
 change one of the connector lines in server.xml to redirect the port? 

  You see my website works fine going through 8080 but when I try to get 
 the https site to go through it - I get page can't be found or it 
 displays code instead of working.
 
 Thanks,
 Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



Re: Automatic switch from http to https doesn't work for IE, does for Netscape

2003-08-09 Thread Bill Barker
This is a known problem with MSIE.  See
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13861 for more details.

Murray [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Tomcat 4.0.6
 Windows 2000
 IE 5, SP3
 Netscape 7.02


 I have a website which is part public, part secure.  There are html
entries
 such as lt a href=members/index.jsp gt in the public area which will
 jump to the secure area.  The site is entered, by default using
 http://localhost:8080 but the members area is protected via SSL and
 transport guarantee stanzas
  security-constraint
   web-resource-collection
web-resource-nameScoutGroup-Secure/web-resource-name
url-pattern/members/*/url-pattern
   /web-resource-collection
   auth-constraint
 role-namemember/role-name
   /auth-constraint
   user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
  /security-constraint

 I understand that this should force any
 http://localhost:8080/scoutgroup/members request to switch to
 https://localhost:8443/scoutgroup/members.  Under Netscape it does and I
am
 notified that I am going to a secure page, prompted to accept the SSL
 certificate then driven through my logon.jsp to
 response.encodeURL(j_security_check).  Under IE, however, I am notified
 that I am going to a secure page, prompted to accept the SSL certificate
 then told the page cannot be found.

 For testing purposes, I tried putting
 http://localhost:8080/scoutgroup/members in the browser's address box.

 The access log contains the following (with my annotations prefixed with
 )
  Using IE
 127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET
 /scoutgroup/members/index.jsp HTTP/1.1 302 654
 127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET
 /scoutgroup/members/index.jsp HTTP/1.1 302 654
 127.0.0.1 - - [09/Aug/2003:15:09:30 1]   a  ] ?4?
 Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988

  Using Netscape
 127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET
 /scoutgroup/members/index.jsp HTTP/1.1 302 654
 127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET
 /scoutgroup/members/index.jsp HTTP/1.1 302 654
 127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp
 HTTP/1.1 200 576
 127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST
 /scoutgroup/j_security_check HTTP/1.1 302 654
 127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET
 /scoutgroup/members/index.jsp HTTP/1.1 200 427



 Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they
 attempted to navigate to the security check but then IE generated
something
 very peculiar and appeared to try to renegotiate the protocol to http/0.9
 before giving up.


 I've checked the logs - can't find anything more informative than above.

 I've tried running Tomcat via the catalina run command line option but
 there is no extra info there either.

 I know I can modify my code to always force the full path into hyperlinks
 but that's not good programming and has enormous potential for maintenance
 problems.

 Where do I look now?


 Murray




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



RE: error-code 401

2003-08-09 Thread Mike Curwen
There appears to be a bug report on this, with a workaround.  Let us
know if it works for you Georges...
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18040



 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 07, 2003 9:23 AM
 To: Tomcat Users List
 Subject: RE: error-code 401
 
 
 
 Howdy,
 It's working, too slowly apparently ;)
 
 Autographs after the show, please... ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 10:19 AM
 To: Tomcat Users List
 Subject: Re: error-code 401
 
 Internet Explorer?
 
 man Internet Explorer
 No manual entry for Internet
 No manual entry for Explorer
 
 
 georges
 
 
 Shapira, Yoav wrote:
 
 Internet Explorer...
 
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 10:02 AM
 To: Tomcat Users List
 Subject: Re: error-code 401
 
 IE?
 man ie
 No manual entry for ie
 
 georges
 
 Abid Ali Teepo wrote:
 
 
 
 Are you using IE ?, and have you deselected Show friendly HTTP
 error
 
 
 messages under Tools-Internet Options-Advanced
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: 7. august 2003 14:39
 To: Tomcat Users List
 Subject: error-code 401
 
 
 Hi,
 
 I'm trying to display custom error pages. My https 
 context is BASIC 
 protected, and now the site is automatically redirecting to the 
 error page
 before
 asking for authentification...
 
 I put this lines in web.xml
 
 error-page
error-code401/error-code
locationerror/401.jsp/location
 /error-page
 
 I m using tomcat 4.1.27 standalone on linux.
 
 I need your help please.
 
 
 
 
 
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended
 recipient, please immediately delete this e-mail from your computer
 system
 and notify the sender.  Thank you.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Apache + Tomcat + mod_jk

2003-08-09 Thread Marcia de Oliveira Cardoso
Versions:
Tomcat 4.1.24
Apache 1.3.28
using mod_jk
OS : FreeBSD 4.8

1 - Tomcat seems to work.
http://localhost:8180 works  - the Tomcat page appears.
http://localhost:8180/examples/jsp/index.html works too
I tested the examples and everything works fine.

2 - I have some users that want to use jsp. So I need a mechanism to do this:
I tested with one user - configured a Context in server.xml like this:

 Context path=/jmvargas docBase=/www/jmvargas/public_html debug=0
 reloadable=false crossContext=true
/Context
So I tried to get it:
 http://localhost:8180/jmvargas
 And it works.

  Now, my problem:

4 - I decided to use mod_jk so that my web server, apache, could pass *.jsp to Tomcat.

I put an Alias in httpd.conf
   Alias /jmvargas /www/jmvargas/public_html

And the include to mod_jk.conf
   Include /usr/local/etc/apache/mod_jk.conf

And my mod_jk.conf and workers.properties are:
---mod_jk.conf
 IfModule mod_jk.c
JkWorkersFile /usr/local/etc/apache/workers.properties
JkLogFile /var/log/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V %T
JkMount /*.jsp tomcat-acd
JkMount /servlet/* tomcat-acd
JkMount /examples/* tomcat-acd
JkMount /jmvargas/curso/*.jsp tomcat-acd
JkMount /jmvargas/*.jsp tomcat-acd
/IfModule
---workers.properties
worker.list=tomcat-acd
worker.tomcat-acd.type=ajp13
worker.tomcat-acd.host=localhost
worker.tomcat-acd.port=8009
#worker.tomcat-acd.lbfactor=1
worker.tomcat-acd.lbfactor=50
worker.tomcat-acd.cachesize=10
worker.tomcat-acd.cache_timeout=600
worker.tomcat-acd.socket_keepalive=1
worker.tomcat-acd.socket_timeout=300

5 - Re-started Tomcat and Apache
Tested again: http://localhost:8180/jmvargas/curso  - work
Testing without 8180 port : http://localhost/jmvargas/curso - not working

   Error: This appears when I call http://localhost/jmvargas/curso (from index.html) 
or http://localhost/jmvargas/curso/index.jsp
  But the URL http://localhost:8180/jmvargas/curso/index.jsp still works
HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: 


The localhost_log file indicates:

2003-08-08 11:00:15 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp
 threw exception
org.apache.jasper.JasperException: 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex



What is wrong?

Marcia


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



Mod_jk/tomcat errors

2003-08-09 Thread Cristopher Daniluk
After a lot of pain, I found that the real root of the problem is that
JK is having trouble communicating with Tomcat:

[Sun Aug 10 07:02:14 2003]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sun Aug 10 07:02:14 2003]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Sun Aug 10 07:02:14 2003]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111

This is showing up every 15 requests or so for me. I have seen a ton of
threads about this both here and elsewhere, but no clear cut way to
resolve it.

I don't think it is a timeout problem, and I disabled
MaxClientsPerRequest in Apache to try and help. Nothing I've done so far
has helped.

Thanks,

Cris

-Original Message-
From: Cristopher Daniluk 
Sent: Saturday, August 09, 2003 10:52 AM
To: Tomcat Users List
Subject: RE: Oracle connection pooling


I agree. I think its something else, but the real problem is - why
doesn't the Oracle connection pool at least check the TCP state of the
conn before it works? Is it because it sucks and shouldn't be used?

As best I can tell, we're following all the documentation for the oracle
pool to the letter.

-Original Message-
From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 09, 2003 12:07 AM
To: Tomcat Users List
Subject: Re: Oracle connection pooling


Hi,

Firewalls, and I'm not speaking for all of them, as a rule of thumb
close _idle_ connections after an hour.

Your connections should be done well before that.

-e

On Fri, 8 Aug 2003, Cristopher Daniluk wrote:

 We are running a fairly large ecommerce site consisting of 3 apache
 2.0.48 servers being balanced between using UltraMonkey/ldirector and 
 2 tomcat servers with AJP1.3. Everything is Linux except the back end 
 which is a fairly hefty and firewalled Sun running Oracle8i.

 The webapps build a connection pool to oracle via the
 oracle.jdbc.pool.* connection pool. The pool instantiates fine and 
 everything is great, but gradually the pool begins to break down. Idle

 connections are closed by Oracle (not sure if its oracle itself or the

 fw..), but the oracle pool doesn't figure it out. If someone happens
 to get the dead connection, Tomcat completely hangs on all threads 
 until the session-timeout expires. Even the session replication code 
 stops and the apache servers and the other tomcat in the cluster mark 
 it offline. During the peak traffic it isn't so bad but at the end of 
 the day after load goes back down, it's a big problem.

 We initially used DBCP but it didn't work for crap with Oracle. Is
 there a better pool to use with Oracle and Tomcat in a cluster 
 environment and if not, is there a way we can get the Oracle pool to 
 recycle some of these bad connections without blowing up the server?

 Thanks,

 Cris Daniluk

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




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


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


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



Re: Bare Minimum server.xml

2003-08-09 Thread John Turner
The answer to your question is:  does Tomcat startup and work as you 
desire with the server.xml file you have posted?  You can answer your 
own question in about 30 seconds.

John

Satish Talim wrote:

Okay. Then would the following, constitute a bare minimum optimised
server.xml file?
Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true 
/Connector
Engine name=Standalone defaultHost=localhost debug=0
  Host name=localhost debug=0 appBase=webapps liveDeploy=false
autoDeploy=false deployXML=false 
Context path=/netapsv1 docBase=netapsv1 debug=0
 reloadable=false 
/Context
  /Host
/Engine
  /Service
/Server
I have installed Tomcat 4.1.27 and JDK 1.4.2 on my Windows 2000 Professional
PC for testing.
Satish

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Satish Talim
[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 5:27 AM
Subject: RE: Bare Minimum server.xml



Howdy,
You need a server, service, engine, host, connector.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Satish Talim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:58 PM
To: Tomcat Users List
Subject: Bare Minimum server.xml
Hello,

A newbie question -

I use Tomcat Version 4.0.1 and Java 2 SDK Standard Edition Version 1.4.0 on
Windows 2000 server.
I have been going thro' Oreilly's book 'Tomcat - The Definitive Guide'
(still not been able to get my hands on 'The Apache Tomcat Bible' from
Wiley) and wanted to know what is the bare minimum contents of server.xml
file. Which elements and their corresponding attributes are a must-must. An
example server.xml file would help and which is optimised too.
I am sure the experts here can help.

Thanks.

Satish





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


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


Re: Automatic switch from http to https doesn't work for IE, does for Netscape

2003-08-09 Thread


ÔÚ 2003-08-09 16:30:00 ÄúдµÀ£º
Tomcat 4.0.6of you ? Could you tell me ? Thanks~~
Windows 2000
IE 5, SP3
Netscape 7.02


I have a website which is part public, part secure.  There are html entries
such as lt a href=members/index.jsp gt in the public area which will
jump to the secure area.  The site is entered, by default using
http://localhost:8080 but the members area is protected via SSL and
transport guarantee stanzas
 security-constraint
  web-resource-collection
   web-resource-nameScoutGroup-Secure/web-resource-name
   url-pattern/members/*/url-pattern
  /web-resource-collection
  auth-constraint
role-namemember/role-name
  /auth-constraint
  user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint

I understand that this should force any
http://localhost:8080/scoutgroup/members request to switch to
https://localhost:8443/scoutgroup/members.  Under Netscape it does and I am
notified that I am going to a secure page, prompted to accept the SSL
certificate then driven through my logon.jsp to
response.encodeURL(j_security_check).  Under IE, however, I am notified
that I am going to a secure page, prompted to accept the SSL certificate
then told the page cannot be found.

For testing purposes, I tried putting
http://localhost:8080/scoutgroup/members in the browser's address box.

The access log contains the following (with my annotations prefixed with
)
 Using IE
127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:09:30 1]   a  ] ?4?
Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988

 Using Netscape
127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 302 654
127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp
HTTP/1.1 200 576
127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST
/scoutgroup/j_security_check HTTP/1.1 302 654
127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET
/scoutgroup/members/index.jsp HTTP/1.1 200 427



Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they
attempted to navigate to the security check but then IE generated something
very peculiar and appeared to try to renegotiate the protocol to http/0.9
before giving up.


I've checked the logs - can't find anything more informative than above.

I've tried running Tomcat via the catalina run command line option but
there is no extra info there either.

I know I can modify my code to always force the full path into hyperlinks
but that's not good programming and has enormous potential for maintenance
problems.

Where do I look now?


Murray



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


 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`-- http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: Https not working

2003-08-09 Thread Steven Garrett
sorry, you should be able to grep through your server.xml file and find port
8443.  If its not there, try and find a server.xml file that comes default
with the install, its there.

-Original Message-
From: Steven Garrett [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:58 PM
To: 'Tomcat Users List'
Subject: RE: Https not working


You can configure tomcat to handle https connections directly, its usually
port 8443.  other than that, it shouldn't matter to tomcat if its http or
https if its going through apache.  Apache will handle all the ssl
connections.  

-Original Message-
From: Kurt Overberg [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:37 PM
To: Tomcat Users List
Subject: Re: Https not working


Neither of those urls are passing through you apache, unless you have it 
configured to run on port 8080 (which is usually the Tomcat port).  Not 
sure if you can configure Tomcat to use SSL directly, but I do know that 
just sticking an 'https' in front of it won't work.  You need to set up 
apache so it deals with the http/https side of things and configure a 
connector (the thing that allows apache to forward requests to Tomcat's 
AJP13 port).

/kurt


[EMAIL PROTECTED] wrote:
 Greetings,
 I'm running Tomcat primarily as a Servlet/JSP container behind Apache so I
have
 configure the primary web server to handle the SSL connections from users.
So if
 my apache box will negotiate all SSL-related functionality what do I have
to do
 in tomcat to get it to work?
 
 If you go to http://placeanad.classifiedmarketplace.net:8080/AdWebster
works
 But https://placeanad.classifiedmarketplace.net:8080/AdWebster does not
work
 
 Thanks,
 Bobbie
 
 
 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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

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

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



Tuning KeepAlive Connections?

2003-08-09 Thread Mike Cherichetti \(Renegade Internet\)
RedHat Linux 7.3
IBM JDK 1.4.1
Tomcat 4.1.24

Is it possible to disable KeepAlive connections with the Coyote HTTP/1.1
connector?  If it's not possible to turn them off, is it possible to lower
the request limit and timeout period for them?

Have a nice day ...

Sincerely,

Mike Cherichetti
Renegade Internet
www.renegadeinternet.com
Phone (724) 658-6346
Fax (724) 658-6346




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



Strange NullPointerException using IIS, tomcat 5.0.6 servlets

2003-08-09 Thread Vikas Jain
Hello there,

I setup the IIS to work with tomcat (using the help from this forum only).

I have various form. users submit the forms and then they are processed by 
servlets.  but using iis they give error NullPointerException. but if i use 
the tomcat, it works perfectly. I was using POST method, then i read POST is 
bug in redirection. so i changed it to GET method. but though it is not 
working and gving this exception.

Here is the log file of tomcat:
2003-08-08 16:03:18 StandardWrapperValve[FormECN]: Servlet.service() for 
servlet FormECN threw exception
java.lang.NullPointerException
	at 
com.ti.SCMTools.Forms.FormECN.ECNFormParameters.getFormString(ECNFormParameters.java:75)
	at com.ti.SCMTools.Forms.FormECN.FormECN.doGet(FormECN.java:208)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:253)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:174)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:294)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:375)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:664)
	at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:606)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:777)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
	at java.lang.Thread.run(Thread.java:536)

Any idea!!!
Thanks in advance,
_
Going on a holiday? Want to study abroad? 
http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt 
Need a personal loan?

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


RE: configuration of thread pool used by Tomcat

2003-08-09 Thread Shapira, Yoav

Howdy,

How does thread creation/destruction works in Tomcat?

Read the source code.

Is the total no. of threads in thread pool maintained by Tomcat varies as load 
varies? 

Yes.

Does Tomcat destroys threads in the pool, if they are idle for the long time? If 
yes, is there way to ensure that Tomcat didn't kill the idle threads, ie., once 
created, a thread will never die as long as Tomcat is running?

Usually no, and that renders the second part of your question irrelevant.

If I keep Min_no_of_threads = Max_no_of_threads = 20, then can I assume that Tomcat 
will always use 20 threads?

No.

You have to be more precise: are you talking about request processing threads, or all 
threads in the server?  You have control over the former by using the minProcessors 
and maxProcessors parameters of a Connector element.  The latter you don't control.

Lazy/greedy creation, destruction of idle threads has been discussed in the past: you 
can search the archives for more information.  Better yet, if you read the source and 
have a gee-whiz enhancement, contribute it ;)

Yoav Shapira



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


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